joyce8/EMBER2024-capa huggingface dataset:
Function at 0x132fe
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x133fa
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x133fa
cmp dword [0x3cd50], 1
jne 0x13329
call fcn.000132aa
mov eax, dword [ebp + 8]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x133dd
mov edx, edi
shr edx, 3
push ebx
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x458f0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x458f0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x458f0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x458f0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x458f0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x458f0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x458f0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x458f0]
inc esi
sub edi, 8
dec edx
jne 0x13342
pop ebx
test edi, edi
je 0x133f6
movzx edx, byte [esi]
xor edx, eax
and edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x458f0]
inc esi
dec edi
jne 0x133e1
not eax
jmp 0x133fc
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1497e
Capabilities:
Attach user process memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x14a47
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x14a47
push esi
push edi
mov edi, 0x208
mov dword [ebp - 8], edi
mov byte [ebp - 1], bl
mov dword [eax], ebx
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp dword [ebp + 8], eax
je 0x149c8
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [ebp - 1], 1
mov esi, 0x7069715a
push esi
push edi
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
jmp 0x14a1a
push dword [ebp - 8]
push 0
push edi
call fcn.00034d7e
and dword [ebp - 0xc], 0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push edi
push 0x1b
push 0xffffffffffffffff
call fcn.00034dae
mov dword [ebp + 8], eax
test eax, eax
jge 0x14a2b
cmp eax, 0xc0000023
jne 0x14a30
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
shl dword [ebp - 8], 1
push esi
push dword [ebp - 8]
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x149d8
mov dword [ebp + 8], 0xc000009a
jmp 0x14a30
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
cmp byte [ebp - 1], 1
pop edi
pop esi
jne 0x14a42
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [ebp + 8]
jmp 0x14a4c
mov eax, 0xc000000d
pop ebx
leave
ret 8
Function at 0x14a56
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ebx, 0x2e00
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call esi
mov edi, 0x6e62704c
cmp dword [ebp - 8], 0
je 0x14a9b
push edi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push edi
push ebx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x14b86
push ebx
push 0
push esi
call fcn.00034d7e
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 5
call fcn.00034d8a
cmp eax, 0xc0000004
jne 0x14ae0
add ebx, ebx
cmp ebx, 0x100000
ja 0x14b72
test eax, eax
jne 0x14a8b
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x38]
push eax
mov dword [ebp - 0xc], esi
call ebx
test eax, eax
jne 0x14b5e
lea eax, [ebp + 8]
push eax
push dword [esi + 0x44]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x14b5e
cmp dword [ebp + 8], 0
je 0x14b5e
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.0001497e
test eax, eax
jne 0x14b55
push 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call ebx
test eax, eax
jne 0x14b3d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x7069715a
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and dword [ebp + 0xc], 0
cmp dword [ebp - 4], 0
jne 0x14b5e
mov ecx, dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0xc]
add esi, dword [esi]
cmp dword [eax], 0
je 0x14b72
cmp dword [ebp - 4], 0
je 0x14aea
push edi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x14b7f
Function at 0x16b6e
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x42c54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45f7c]
and dword [ebp - 0x250], 0
test eax, eax
je 0x16bb2
lea ecx, [ebp - 0x250]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x16bb2
cmp dword [ebp - 0x250], 0
jne 0x16c48
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x44]
push eax
push 0x38054
call fcn.000118ce
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x38068
call fcn.000118ce
call fcn.00013284
pop edi
test eax, eax
je 0x16c2e
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 0x46406
push eax
push 0x36fd6
lea eax, [ebp - 0x24c]
push 0x104
push eax
call fcn.00014002
add esp, 0x1c
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00014a56
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x16c48
push dword [ebp - 0x250]
call dword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov dword [0x45f7c], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x250]
xor ecx, ebp
call fcn.00034d0e
leave
ret

Function at 0x350e0
Capabilities:
Encode data using xor

Disassembly:
imul ebx, dword [eax + 0x68c3e8c], 0x4d1a1209
fisttp dword [edi - 0x6a86568e]
pop esi
cmp eax, 0x3a65c86e
dec ecx
aam 0xd
xor dword [esi], esi
mov bh, dl
fstp dword [ecx]
or al, 0x86
test eax, 0xca405d96
add dword [ebx + 0x1e], edx
push eax
cmpsd dword [esi], dword es:[edi]
scasb al, byte es:[edi]
in eax, dx
push ecx
push esp
fidivr dword [ebp + 0x43]
xor al, 0xfa
push ecx
fnstenv [eax + ebx*4]
aaa
movsd dword es:[edi], dword [esi]
add byte [ebx - 0x2a], bh
invalid
Function at 0x10012ab0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov al, cl
test edi, edx
out dx, al
movsd dword es:[edi], dword [esi]
push cs
and ah, byte [ebp - 0x38cdaf72]
outsb dx, byte [esi]
jb 0x10012b11
aam 0xa7
int3
cdq
salc
mov edx, 0x88044afa
pop ecx
xchg edi, eax
cld
push ss
int3
leave
mov edx, 0x826660cd
arpl word [edx], sp
movsx ebp, byte [edx - 0x78]
shl dword [esi], 1
adc dword [edx + 0xe], ebp
jo 0x10012b55
dec eax
mov dword [0xc4683609], eax
push 0x2326d6c4
lodsd eax, dword [esi]
xchg ebx, eax
test dword [eax + 0x29], edx
salc
and ebp, dword es:[ebp + 0x29508593]
add al, 0xbc
mov al, byte [0xcc837d70]
idiv byte [ecx + 0x79]
aas
popfd
add dh, al
mov dh, 0x42
cmp al, 0xea
test al, 0x13
add al, 0x60
popfd
sub dl, byte [esi - 0x65]
dec eax
sbb al, 0xb0
mov eax, dword [0x7a3067cc]
add esi, eax
mov edi, 0x3822a63
and dl, byte ds:[ecx]
jp 0x10012acf
jp 0x10012b0f
mov bh, 0x29
push eax
ja 0x10012af7
clc
jae 0x10012b74
invalid
dec ebp
les edi, [edi - 0x7bae5691]
and byte [edi - 0x23], dl
mov dword [ebx - 0x7b], edi
sbb byte gs:[bp + di], 0x4d
cdq
stosd dword es:[edi], eax
or esi, dword [ebx]
pop edi
cli
shl bl, cl
xor byte [edi], 0x7d
dec esp
invalid
and eax, dword [bx + si - 0x101f]
call dword [edi]
fst qword [ecx + ebx*8 - 0x43]
jmp 0x10012be8
wait
mov ch, 0xd6
pop ecx
int3
Function at 0x1001f9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001fa0a
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
push ecx
push edx
push eax
push esi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100202b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10046ca0]
jne 0x100202bb
repz ret
jmp fcn.100244fa

Function at 0x10021b27
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10021b4e
call fcn.10024368
mov dword [eax], esi
call fcn.10024355
push 0x16
pop esi
mov dword [eax], esi
call fcn.10024a92
mov eax, esi
jmp 0x10021ba3
test dword [ebp + 0xc], 0xfffffff9
jne 0x10021b34
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10021b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1002437b
pop ecx
call fcn.10024355
mov eax, dword [eax]
jmp 0x10021ba3
test al, 0x10
jne 0x10021ba1
test al, 1
je 0x10021ba1
test byte [ebp + 0xc], 2
je 0x10021ba1
call fcn.10024368
mov dword [eax], 5
call fcn.10024355
mov dword [eax], 0xd
jmp 0x10021b72
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1001761
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001c70
call fcn.01001984
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1003378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001576
cmp eax, esi
jne 0x1001569
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001579
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001550
xor esi, esi
inc esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x100158c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10015c7
mov eax, dword [0x1003374]
test eax, eax
jne 0x10015c1
mov dword [0x1003374], esi
push 0x10010d0
push 0x10010c4
call fcn.010014cd
pop ecx
pop ecx
test eax, eax
je 0x10015c7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1001691
mov dword [0x1003038], esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x10015eb
push 0x10010c0
push 0x10010b8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003374], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10015f8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100337c], ebx
je 0x1001619
push 0x100337c
call fcn.010018f9
pop ecx
test eax, eax
je 0x1001619
push ebx
push 2
push ebx
call dword [0x100337c]
push dword [0x1003020]
push dword [0x1003024]
push dword [0x100301c]
call fcn.01001296
add esp, 0xc
mov dword [0x1003034], eax
cmp dword [0x1003028], ebx
jne 0x1001677
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1003038], ebx
jne 0x1001685
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003034]
call fcn.010019c9
ret
call fcn.01001aa7
jmp 0x100152e

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x402d34
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d71
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d91
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404a18
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f70
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047a8
test esi, esi
jne 0x402fa7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404898
jmp 0x402fc8
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e0c
mov dword [esp], eax
test esi, esi
je 0x402fc8
cmp dword [ebx], 0
je 0x402fc8
dec esi
jmp 0x402faf
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4037c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x52e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403860
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403840
xor eax, eax
push ebp
push 0x403839
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40387c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403840
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x52e020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x52e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404580
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55204c], 0
je 0x4045e1
cmp word [0x552220], 0xd7b2
jne 0x4045a9
cmp dword [0x552228], 0
jbe 0x4045a9
mov eax, 0x55221c
call dword [0x552238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x52e06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404608
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52e030], 0
jne 0x4045fd
push 0
push 0x52e064
push 0x52e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40475c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402b20
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x55204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404724
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406ab0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406b16
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404a18
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b00
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b1d
lea eax, [ebp - 0x10]
call fcn.004047a8
ret

Function at 0x40cb18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cb51
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404898
jmp 0x40cb5a
mov eax, ebx
mov edx, esi
call fcn.004047fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cb64
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cb85
mov al, byte [esp]
jmp 0x40cb87
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40dba8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40dc7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404840
lea eax, [ebp - 8]
call fcn.00404cb8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c68
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dc68
mov eax, ebx
call fcn.00402b20
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dc61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c68
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dc4b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dc90
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dc4b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc68
mov eax, dword [ebp - 0x10]
call fcn.00402b50
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc85
lea eax, [ebp - 8]
call fcn.004047a8
ret
Function at 0x40e1ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e250
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404a18
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409794
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e257
lea eax, [ebp - 0xc]
call fcn.004047a8
ret

Function at 0x425814
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004255fc
dec esi
jne 0x425836
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x426978
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x55288c
cmp dword [edi], 0
jne 0x4269f4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x552888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x52e6c8
mov ecx, 2
call fcn.00402dcc
mov edx, 0x426950
lea eax, [esi + 5]
call fcn.00426970
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426970
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4269c9
mov dword [0x552888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x427fa0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x427fa6
ret

Function at 0x42a848
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42a899
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42a880
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42a870
jmp 0x42a899
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42a881
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433b40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404c58
xor eax, eax
push ebp
push 0x433c6e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x433c41
xor eax, eax
push ebp
push 0x433c3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a68
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x433c0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x433bfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a68
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404c68
mov edx, ebx
pop ecx
call fcn.00402dcc
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433c05
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x551864]
mov dl, 1
mov eax, dword [0x4081d8]
call fcn.0040d3c4
call fcn.004040fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433c75
lea eax, [ebp - 4]
call fcn.004047a8
ret