joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e96c
Capabilities:
Allocate or change rwx memory
Set file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
xor eax, eax
call fcn.0040dab8
lea edx, [esp + 4]
call fcn.0040d2fc
mov esi, eax
mov ax, 0x1a
call fcn.0040d2bc
mov ebx, eax
push 0x40ea74
push ebx
call sub.kernel32.dll_lstrcatW
mov al, 8
call fcn.0040d544
call fcn.0040d154
push eax
push ebx
call sub.kernel32.dll_lstrcatW
push 0x40ea8c
push ebx
call sub.kernel32.dll_lstrcatW
push 4
push 0x3000
push 0x10
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp], eax
push 0x40ea98
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrcpyA
mov eax, esp
call fcn.0040d4e4
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, esi
call fcn.0040d370
cmp eax, 0xa
jle 0x40ea23
mov edi, eax
dec edi
push 0x40
push 0x3000
push edi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebp, eax
mov ecx, edi
mov edx, esi
mov eax, ebp
call fcn.0040d49c
mov ecx, ebx
mov edx, edi
mov eax, ebp
call fcn.0040dc10
mov edi, ebx
jmp 0x40ea32
mov ecx, ebx
mov edx, dword [esp + 4]
mov eax, esi
call fcn.0040dc10
mov edi, ebx
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, ebx
call fcn.00408df0
mov eax, ebx
call fcn.00408f58
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesW
mov eax, edi
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40eaac
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor ebx, ebx
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x40ead4
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x40ead4
push esi
call sub.kernel32.dll_CloseHandle
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ax, 0x1a
call fcn.0040d2bc
mov ebx, eax
push 0x40eb90
push ebx
call sub.kernel32.dll_lstrcatW
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40eb8a
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

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

Disassembly:
push ebx
push ecx
mov ax, 0x1a
call fcn.0040d2bc
mov ebx, eax
push 0x40ec0c
push ebx
call sub.kernel32.dll_lstrcatW
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40ebeb
mov edx, esp
mov eax, ebx
call fcn.0040d2fc
pop edx
pop ebx
ret
mov al, 0x20
call fcn.0040d544
mov ecx, ebx
mov edx, 0x20
call fcn.0040dc10
mov edx, esp
mov eax, ebx
call fcn.0040d2fc
pop edx
pop ebx
ret
Function at 0x40ec38
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call fcn.0040e96c
mov ebx, eax
test ebx, ebx
je 0x40ed00
test esi, esi
je 0x40ec98
mov dx, 0x5c
mov eax, esi
call fcn.0040de38
mov edi, eax
mov eax, edi
call fcn.0040e5d0
call fcn.0040eaac
push 0x1388
call sub.kernel32.dll_Sleep
push 9
push esi
push ebx
call sub.kernel32.dll_MoveFileExW
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
jmp 0x40ecf3
mov ax, 7
call fcn.0040d2bc
mov esi, eax
push 0x40ed04
push esi
call sub.kernel32.dll_lstrcatW
mov al, 7
call fcn.0040d544
call fcn.0040d154
push eax
push esi
call sub.kernel32.dll_lstrcatW
push 0x40ed08
push esi
call sub.kernel32.dll_lstrcatW
push esi
push 0
push 0x40ed14
push 0xf
push 0
mov edx, 0x40ed2c
xor ecx, ecx
mov eax, ebx
call fcn.004095fc
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40ed4f
test al, 0x10
jne 0x40ed52
xor eax, eax
ret
mov al, 1
ret

Function at 0x40ed58
Capabilities:
Allocate or change rwx memory
Get common file path

Disassembly:
push ebx
push esi
mov esi, eax
push 0x40
push 0x3000
push 0x200
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esi], eax
push 0x40
push 0x3000
push 0x38
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
push 0x200
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
push 2
mov eax, dword [esi]
push eax
push ebx
call sub.kernel32.dll_lstrcpynW
push 0x40edf4
push ebx
call sub.kernel32.dll_lstrcatW
mov eax, ebx
call fcn.0040ed40
test al, al
je 0x40ede2
push 2
mov eax, dword [esi]
push eax
push ebx
call sub.kernel32.dll_lstrcpynW
push 0x40ee04
push ebx
call sub.kernel32.dll_lstrcatW
mov eax, ebx
call fcn.0040ed40
test al, al
je 0x40ede2
push 0x40ee20
mov eax, dword [esi]
push eax
call sub.kernel32.dll_lstrcatW
pop esi
pop ebx
ret
push 0x40ee48
mov eax, dword [esi]
push eax
call sub.kernel32.dll_lstrcatW
pop esi
pop ebx
ret
Function at 0x40ef18
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
test edi, edi
je 0x40efab
mov ebx, edi
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0040d370
mov esi, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.0040d370
mov dword [ebp - 0x14], eax
cmp esi, dword [ebp - 0x14]
jae 0x40ef9e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_lstrlenA_1
add eax, esi
mov edx, dword [ebp - 0x14]
sub edx, eax
inc edx
mov dword [ebp - 0x10], edx
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_lstrlenA_1
add esi, eax
add ebx, esi
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_lstrcpynA_1
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f1d0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push ecx
mov esi, eax
test esi, esi
je 0x40f21a
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push edx
call sub.kernel32.dll_CreateFileW
mov ebx, eax
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 4]
push eax
push esi
call sub.kernel32.dll_lstrlenA_1
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
pop edx
pop esi
pop ebx
ret

Function at 0x40f234
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d88
xor eax, eax
push ebp
push 0x40f2d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x3000
mov eax, dword [ebp - 4]
call fcn.00403b98
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403b98
push eax
lea eax, [ebp - 4]
call fcn.00403df0
mov ecx, ebx
pop edx
call fcn.00405504
mov esi, eax
mov eax, 0x411b44
mov edx, 0x80
call fcn.0040d61c
push 0x40
push 0x3000
lea eax, [esi + 0x20]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov edx, edi
mov eax, ebx
mov ecx, esi
call fcn.0040d834
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f2e0
lea eax, [ebp - 4]
call fcn.00403918
ret
Function at 0x40f2e8
Capabilities:
Allocate or change rwx memory
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffbe8
mov dword [esp], eax
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x40f3d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40f3c5
mov dword [esp + 4], 0x400
push 0x40
push 0x3000
mov eax, dword [esp + 0xc]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
xor edi, edi
xor ebp, ebp
mov dword [esp + 4], 0x400
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
mov eax, dword [esp + 0x28]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebp, eax
test ebp, ebp
jne 0x40f3aa
mov dword [esp + 8], 0x401
mov dword [esp + 0x10], 1
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push esi
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40f3a9
lea eax, [esp + 0x14]
mov ecx, dword [esp + 8]
mov edx, dword [esp]
call fcn.0040d370
inc eax
jle 0x40f3a9
mov bl, 1
jmp 0x40f3ae
inc edi
test ebp, ebp
je 0x40f33b
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x418
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40f520
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
mov al, 8
call fcn.0040d544
call fcn.0040d154
mov ebx, eax
push 0x40f608
push ebx
call sub.kernel32.dll_lstrcatW
mov ecx, ebx
xor edx, edx
xor eax, eax
call fcn.0040dafc
mov ebx, eax
mov eax, esi
call fcn.0040d154
mov cl, 1
mov edx, ebx
call fcn.0040d8e0
mov edx, esp
mov eax, ebx
call fcn.0040d2fc
mov ebp, eax
cmp dword [esp], 0x400
jbe 0x40f5e7
cmp byte [0x418d68], 0
jne 0x40f585
xor eax, eax
call fcn.0040dab8
mov edi, eax
jmp 0x40f58e
mov al, 1
call fcn.0040dab8
mov edi, eax
push 0x40
push 0x3000
push edi
call sub.kernel32.dll_lstrlenW_1
add eax, 0xc
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
push 0x40f614
push esi
call sub.kernel32.dll_lstrcatW
push edi
push esi
call sub.kernel32.dll_lstrcatW
push esi
push 0
push 1
mov edx, 0x40f628
mov ecx, ebx
xor eax, eax
call fcn.0040d24c
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push ebp
call sub.kernel32.dll_VirtualFree_1
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40fcec
Capabilities:
Allocate or change rwx memory

Disassembly:
add esp, 0xfffffff4
call fcn.0040ebbc
mov dword [0x418d64], eax
mov byte [0x418d58], 0
push 0x40
push 0x3000
push 0x20
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [0x418d54], eax
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, 0x40fcd8
xor edx, edx
xor eax, eax
call fcn.004038d4
push 0
push 0
lea eax, [esp + 0xc]
push eax
mov ecx, 0x40fcc4
xor edx, edx
xor eax, eax
call fcn.004038d4
cmp byte [0x418d68], 0
jne 0x40fd6a
push 0
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, 0x40eedc
xor edx, edx
xor eax, eax
call fcn.004038d4
push 0xffffffffffffffff
call sub.kernel32.dll_Sleep
add esp, 0xc
ret

Function at 0x40fd7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
call fcn.0040d8a8
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
push ebx
call sub.kernel32.dll_lstrlenW_1
mov ecx, eax
mov edx, 0x40fe4c
mov eax, ebx
call fcn.0040d404
dec eax
jle 0x40fdaa
call fcn.0040fcec
jmp 0x40fe3b
push ebx
call sub.kernel32.dll_lstrlenW_1
mov ecx, eax
mov edx, 0x40fe60
mov eax, ebx
call fcn.0040d404
dec eax
jle 0x40fdfe
push ebx
call sub.kernel32.dll_lstrlenW_1
mov ecx, eax
mov edx, 0x40fe60
mov eax, ebx
call fcn.0040d404
add eax, 8
add eax, eax
add ebx, eax
mov edx, 0x40fe74
mov eax, ebx
call fcn.0040d9fc
test al, al
je 0x40fdf5
mov eax, ebx
call fcn.0040ec38
jmp 0x40fe3b
mov eax, ebx
call fcn.0040ee64
jmp 0x40fe3b
call fcn.0040eb64
test al, al
jne 0x40fe3b
call fcn.0040eadc
test al, al
je 0x40fe3b
call fcn.0040e4e8
test al, al
je 0x40fe22
xor eax, eax
call fcn.0040ec38
jmp 0x40fe3b
call fcn.0040e554
test al, al
je 0x40fe34
xor eax, eax
call fcn.0040ee64
jmp 0x40fe3b
xor eax, eax
call fcn.0040ec38
call fcn.0040e7c8
push 0
call sub.kernel32.dll_ExitProcess_1

Function at 0x40fe80
Capabilities:
Allocate or change rwx memory
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov esi, edx
push 0x4411
push 0x160
lea edx, [esp + 8]
push edx
push 0x80
push eax
call sub.shell32.dll_SHGetFileInfoA
push 0x40
push 0x3000
lea eax, [esp + 0x118]
push eax
call sub.kernel32.dll_lstrlenA_1
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
lea eax, [esp + 0x110]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, ebx
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x402f1c
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 0x402f75
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402db8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402db8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f5f
inc ebx
jmp 0x402f48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f7c
lea eax, [ebp - 8]
call fcn.004049f0
ret

Function at 0x402f84
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004049f0
test esi, esi
jne 0x402fbb
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.00404ae0
jmp 0x402fdc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402db8
mov dword [esp], eax
test esi, esi
je 0x402fdc
cmp dword [ebx], 0
je 0x402fdc
dec esi
jmp 0x402fc3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40394c
Capabilities:
Query or enumerate registry value

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

Function at 0x4047c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x57704c], 0
je 0x404829
cmp word [0x577220], 0xd7b2
jne 0x4047f1
cmp dword [0x577228], 0
jbe 0x4047f1
mov eax, 0x57721c
call dword [0x577238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x57006c
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 0x404850
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x570030], 0
jne 0x404845
push 0
push 0x570064
push 0x57006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4049a4
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.00402b58
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x57704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40496c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406f14
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 0x406f7a
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.00404c60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004034b8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406f64
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f81
lea eax, [ebp - 0x10]
call fcn.004049f0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404eb0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a03d
test al, 0x10
jne 0x40a041
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d1e8
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 0x40d221
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ae0
jmp 0x40d22a
mov eax, ebx
mov edx, esi
call fcn.00404a44
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d8ec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d754
mov eax, dword [0x576428]
cmp byte [eax], 0
je 0x40d968
mov eax, dword [0x575fbc]
call fcn.00403110
call fcn.00402ce4
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.0040a33c
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 0x40d9b0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d99e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x575f1c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x577668]
call fcn.00406324
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 0x40e278
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 0x40e34e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404a88
lea eax, [ebp - 8]
call fcn.00404f00
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404eb0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e338
mov eax, ebx
call fcn.00402b58
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e331
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.00404eb0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e31b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e360
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e31b
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 0x40e338
mov eax, dword [ebp - 0x10]
call fcn.00402b88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e355
lea eax, [ebp - 8]
call fcn.004049f0
ret

Function at 0x40e974
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 0x40e9d8
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.00404c60
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409b6c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9df
lea eax, [ebp - 0xc]
call fcn.004049f0
ret

Function at 0x40f1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x576014]
cmp dword [eax], 0
je 0x40f206
push 0xa
push 0x40f25c
mov eax, dword [0x576014]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x576014]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x40f252
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x5764d4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40f252
mov ebx, dword [esp + 4]
push 0xa
push 0x40f25c
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x40f252
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x40f21d
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4250a8
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 0x4250f5
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.00424ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42510d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x425114
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.00424ed4
dec esi
jne 0x425136
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x426290
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x57788c
cmp dword [esi], 0
jne 0x426336
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x577888]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x5706ec
mov ecx, 2
call fcn.00402d78
mov edx, 0x426268
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00426288
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.00426288
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x4262fd
mov eax, dword [ebp - 8]
mov dword [0x577888], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4279dc
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 0x4279e2
ret