joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ec0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x423c76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
mov dword [esp], ecx
push ebp
lea ecx, [esp + 0x10]
call fcn.00403b1a
mov ebp, dword [esp + 0x35c]
lea eax, [esp + 0xf4]
push ebp
push str._s.
push eax
mov dword [esp + 0x360], 0
call fcn.0040b2ea
add esp, 0xc
lea ecx, [esp + 0xf4]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00403bdd
test eax, eax
je 0x40200d
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00403dfd
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00403dc4
test eax, eax
jne 0x401fff
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.00403ff5
push 0xc8
mov ecx, eax
mov byte [esp + 0x360], 1
call fcn.00418a91
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x35c], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0041873b
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
lea eax, [esp + 0x34]
push eax
push ebp
push str._s_s
je 0x401fe1
lea ecx, [esp + 0x1d0]
push ecx
call fcn.0040b2ea
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0x1c4]
push edx
call fcn.00401ec0
jmp 0x401fff
lea ecx, [esp + 0x298]
push ecx
call fcn.0040b2ea
add esp, 0x10
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401f2e
pop edi
pop esi
lea ecx, [esp + 0x10]
call fcn.00403b93
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebp
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x40204f
call fcn.00403b57
xor eax, eax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
add esp, 0x354
ret 4
call fcn.00403b57
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret 4
Function at 0x4022a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x423cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x2c]
call fcn.004184b0
mov ecx, dword [0x42f214]
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 1
cmp dword [eax - 8], esi
jle 0x402352
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + eax], 0x5c
jne 0x402349
lea edx, [esi + 1]
lea eax, [esp + 0xc]
push edx
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00417865
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.00418874
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0041873b
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ecx
push edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 0xc
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x4022ec
pop edi
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.0041873b
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041873b
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x402450
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x402495
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x402515
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x402515
dec eax
je 0x4024e0
dec eax
jne 0x402515
mov eax, dword [esp + 0xc]
cmp eax, 4
jbe 0x402515
cmp eax, 5
jne 0x402515
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4024c8
pop edi
mov eax, 2
add byte [eax], al
pop esi
add esp, 0x9c
ret
cmp eax, 1
je 0x4024d2
cmp eax, 2
jne 0x402515
pop edi
mov eax, 4
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 4
jne 0x402515
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402515
cmp eax, 0xa
jne 0x402502
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
cmp eax, 0x5a
jne 0x402515
pop edi
mov eax, 3
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret

Function at 0x402520
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x402860
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423d9c
push eax
mov dword fs:[0], esp
sub esp, 0x324
lea eax, [esp + 0x20]
push ebx
push ebp
push esi
push edi
push eax
mov ebp, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x2f], 0x5c
je 0x4028d4
mov edi, 0x42f120
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SetupFile.bin
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0x68
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402976
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
lea eax, [esp + 0x30]
push 0x1001
push eax
lea ecx, [esp + 0x28]
call fcn.0041cf48
push edi
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x344], 0
call fcn.0041d1fc
lea ecx, [esp + 0x20]
call fcn.0041d2c0
lea ecx, [esp + 0x20]
mov dword [esp + 0x33c], 0xffffffff
invalid
call fcn.0041cfe8
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call fcn.004187a9
mov ebx, 1
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x340], ebx
call fcn.004178fb
test eax, eax
jle 0x4029d2
push eax
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x1c]
call fcn.00417865
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 2
call fcn.00418874
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], bl
call fcn.0041873b
push str.ChinaVnet
lea ecx, [esp + 0x14]
call main
lea eax, [esp + 0x10]
push str.VnetSP2
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0041896a
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x344], 3
call fcn.004184b0
mov ecx, ebp
call fcn.00402550
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x134]
push eax
push str._sSetup.exe
push ecx
call fcn.0040b2ea
add esp, 0xc
lea edx, [esp + 0x134]
push 5
push 0
push 0
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, ebp
call fcn.0041cd96
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], bl
call fcn.0041873b
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.0041873b
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x330
ret
Function at 0x47db51
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x445780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x28]
push 0x45f520
push eax
call fcn.004a0bf3
add esp, 8
test eax, eax
je 0x47dc64
mov ecx, dword [esp + 0x2c]
push 0x45f520
push ecx
call fcn.004a0bf3
add esp, 8
test eax, eax
je 0x47dc64
mov eax, dword [0x45aa64]
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push 0x4592d8
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 4
call fcn.004b3edf
lea edx, [esp + 0x2c]
lea ecx, [esp + 8]
push edx
call fcn.004b416e
push 0x4592d4
lea ecx, [esp + 0xc]
call fcn.004b4132
push 0x4592d0
lea ecx, [esp + 0x10]
call fcn.004b3edf
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
call fcn.004b416e
push 0x4592d4
lea ecx, [esp + 0x10]
call fcn.004b4132
mov ecx, dword [esp + 8]
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004b2519
mov esi, eax
cmp esi, ebx
jl 0x47dc3a
mov eax, dword [esp + 0xc]
lea edx, [esi + 1]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.004b2519
cmp eax, ebx
jge 0x47dc95
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.004b3d56
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.004b3d56
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.004b3d56
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call fcn.004b3d56
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.004b3d56
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
mov ecx, dword [ecx - 8]
sub eax, ecx
add ecx, esi
sub eax, esi
push eax
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.004b235f
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.004b3e8f
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 4
call fcn.004b3d56
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
call fcn.004b3e8f
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.004b3d56
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.004b3d56
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.004b3d56
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call fcn.004b3d56
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.004b3d56
mov ecx, dword [esp + 0x18]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4852c1
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x446516
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push esi
mov esi, ecx
push 0x459ae0
lea ecx, [esp + 8]
call fcn.004b3dc4
lea eax, [esp + 0x34]
push 0x105
push eax
mov dword [esp + 0x14c], 0
call dword [0x449210]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 8]
call fcn.004b3edf
lea edx, [esp + 0x10]
push 2
push edx
lea ecx, [esp + 0xc]
call fcn.004b2471
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x148], 1
call fcn.004b3e8f
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 0
call fcn.004b3d56
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call dword [0x449240]
cmp eax, 1
jne 0x4853a6
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
mov ecx, 0x14
mov eax, edi
mov edx, ebp
call fcn.004a0dd1
push 0
push 0x64
push ebp
push edi
mov dword [esi + 0x2c], eax
call fcn.004a0d91
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push edx
push eax
call fcn.004a0df1
pop edi
mov dword [esi + 0x30], eax
pop ebp
jmp 0x4853ed
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call dword [0x44923c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 8]
imul ecx, dword [esp + 0x14]
imul ecx, eax
lea eax, [eax + eax*4]
xor edx, edx
shr ecx, 0x14
lea eax, [eax + eax*4]
mov dword [esi + 0x2c], ecx
shl eax, 2
div dword [esp + 0xc]
mov dword [esi + 0x30], eax
lea ecx, [esp + 4]
mov dword [esp + 0x144], 0xffffffff
call fcn.004b3d56
mov ecx, dword [esp + 0x13c]
pop esi
mov dword fs:[0], ecx
add esp, 0x144
ret
Function at 0x402e6c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ec5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d08
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d08
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402eaf
inc ebx
jmp 0x402e98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ecc
lea eax, [ebp - 8]
call fcn.00404620
ret

Function at 0x402ed4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404620
test esi, esi
jne 0x402f0b
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.00404710
jmp 0x402f2c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d08
mov dword [esp], eax
test esi, esi
je 0x402f2c
cmp dword [ebx], 0
je 0x402f2c
dec esi
jmp 0x402f13
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4031e8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x480008], 0x8088405
inc edx
mov dword [ebx + 0x480008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x480024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036b8
xor eax, eax
push ebp
push 0x4036b1
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 0x4036f4
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 0x4036b8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x480024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x480024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48304c], 0
je 0x404459
cmp word [0x483220], 0xd7b2
jne 0x404421
cmp dword [0x483228], 0
jbe 0x404421
mov eax, 0x48321c
call dword [0x483238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x480070
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 0x404480
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x480034], 0
jne 0x404475
push 0
push 0x480068
push 0x480070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4045d4
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.00402aa8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40459c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40696c
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 0x4069d2
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.00404890
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403204
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4069bc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069d9
lea eax, [ebp - 0x10]
call fcn.00404620
ret

Function at 0x40c5c8
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 0x40c601
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404710
jmp 0x40c60a
mov eax, ebx
mov edx, esi
call fcn.00404674
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c614
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 0x40c635
mov al, byte [esp]
jmp 0x40c637
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cccc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cb34
mov eax, dword [0x481f2c]
cmp byte [eax], 0
je 0x40cd48
mov eax, dword [0x481ba4]
call fcn.00403018
call fcn.00402c34
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040982c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cd90
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cd7e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x481b18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x483668]
call fcn.00405d98
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d640
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 0x40d716
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004046b8
lea eax, [ebp - 8]
call fcn.00404b30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ae0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d700
mov eax, ebx
call fcn.00402aa8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d6f9
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.00404ae0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d6e3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d728
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d6e3
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 0x40d700
mov eax, dword [ebp - 0x10]
call fcn.00402ad8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d71d
lea eax, [ebp - 8]
call fcn.00404620
ret

Function at 0x40dd70
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 0x40ddd4
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.00404890
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409110
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dddb
lea eax, [ebp - 0xc]
call fcn.00404620
ret

Function at 0x40ea7c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404620
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404ae0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40eac1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404710
jmp 0x40eada
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404c6c
push ebx
mov eax, dword [esi]
call fcn.00404ae0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41f9d0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41fa1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041f7e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41fa35
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41fa3c
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.0041f7e4
dec esi
jne 0x41fa5e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x420ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48388c
cmp dword [edi], 0
jne 0x420c1c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x483888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48041c
mov ecx, 2
call fcn.00402cc8
mov edx, 0x420b78
lea eax, [esi + 5]
call fcn.00420b98
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420b98
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 0x420bf1
mov dword [0x483888], 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 0x422230
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 0x422236
ret

Function at 0x4247ec
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 0x42483d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x424824
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x424814
jmp 0x42483d
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 0x424825
pop ebx
mov esp, ebp
pop ebp
ret