joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f89e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0044fa4e
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x44f99c
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x44f93f
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x44f982
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x44f956
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x44f971
test al, 0x40
je 0x44f968
mov ecx, dword [edi + 0x20]
jmp 0x44f96f
test al, 0x80
je 0x44f982
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x44f982
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x44f90e
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x484452
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x48448a
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x484478
mov al, 1
jmp 0x4844d4
cmp dword [ebx + 0x54], ecx
jne 0x484481
mov al, 2
jmp 0x4844d4
cmp dword [ebx + 0x7c], ecx
jne 0x4844d4
mov al, 3
jmp 0x4844d4
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x48449f
mov al, 4
jmp 0x4844d4
cmp ecx, 5
jne 0x4844bf
cmp ebx, 0
jne 0x4844ad
mov al, 5
jmp 0x4844d4
cmp ebx, 1
jne 0x4844b6
mov al, 6
jmp 0x4844d4
cmp ebx, 2
jne 0x4844bf
mov al, 7
jmp 0x4844d4
cmp ecx, 6
jne 0x4844cb
cmp ebx, 0
jne 0x4844cd
mov al, 8
jmp 0x4844d4
cmp ebx, 1
jne 0x4844d4
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403340
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc40
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x550590], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jne 0x40337a
push 0x402b40
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x49fd28]
mov edi, dword [0x49fd2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.00403339
mov eax, dword [0x49fd30]
add dword [ebp - 0x14], 0x23f
mov ebx, dword [0x49fd34]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x550590], 0xc
mov dword [ebp - 4], ecx
jne 0x403417
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x440]
push eax
push esi
push 0x402b64
push 0x402b6c
push 0x402b74
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x550590]
cmp ecx, 0xfa9
jne 0x403435
mov dword [0x54fb2c], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403443
mov dword [0x54f4dc], esi
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
shr eax, cl
mov dword [0x54fb28], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x550590], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403482
push esi
push 0x402b98
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x550590], 0xc
jne 0x4034b5
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc40]
push eax
push 0x402c10
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
call fcn.00403332
dec dword [ebp - 0x1c]
jne 0x4033af
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403505
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x550590]
mov ecx, dword [0x54f4e0]
sub esp, 0x42c
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4035fa
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x550590], 0x959
jne 0x4035e6
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402bd4
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402cbc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402cd8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00403340
add ebx, 8
dec dword [ebp - 4]
jne 0x40352e
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4036cc
Capabilities:
Get common file path

Disassembly:
mov eax, 0x49cf94
call fcn.0049ce98
mov eax, 0x1428
call fcn.0040ba60
push ebx
push esi
xor esi, esi
cmp dword [0x550590], 0x5b1
push edi
jne 0x403761
push esi
lea eax, [ebp - 0xc34]
push eax
push esi
push 0x402d60
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
push esi
call sub.KERNEL32.dll_GetSystemTimes
lea eax, [ebp - 0x34]
call fcn.004039c3
push esi
mov dword [ebp - 4], esi
call fcn.0040455f
call fcn.004044fd
lea ecx, [ebp - 0x18]
mov dword [esp], 0x402da0
call fcn.00403210
lea ecx, [ebp - 0x18]
call fcn.0040322c
lea ecx, [ebp - 0x18]
call fcn.00403272
lea ecx, [ebp - 0x18]
call fcn.0040328b
push esi
push esi
call fcn.0040487c
push esi
call fcn.0040484d
add esp, 0xc
push esi
call fcn.00404c95
add dword [0x550590], 0x1134b
push dword [0x550590]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x54f4e0], eax
call fcn.00403617
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x4037aa
inc edi
cmp edi, 0x4f6a4
jl 0x40378a
mov eax, dword [0x550590]
xor ecx, ecx
cmp eax, esi
jbe 0x4037d0
mov edx, dword [0x550594]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x54f4e0]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x4037b5
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x40381b
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [ebp - 0x434]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402db0
push 0x402dbc
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
mov eax, dword [0x550590]
inc edi
cmp edi, 0x39621
jl 0x4037d2
call fcn.00403505
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x403837
call fcn.004035fd
inc edi
cmp edi, 0x6753f
jl 0x40382b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x7b
pop ebx
cmp dword [0x550590], 0x86
jne 0x403892
push 0x402de8
push 0x402e1c
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x550590], 0xf
jne 0x4038ba
push esi
push esi
call edi
push esi
lea eax, [ebp - 0x1434]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0x402e34
push 0x402e78
call edi
dec ebx
jne 0x403849
push 0x402ec8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40541b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49f494]
jne 0x405425
repz ret
jmp fcn.00408c3c
Function at 0x40aa5b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004069e6
and dword [ebp - 4], 0
cmp dword [0x4a1108], 0
mov ebx, eax
jne 0x40ab0c
push 0x4021ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40abbd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021a0
push edi
call esi
test eax, eax
je 0x40abbd
push eax
call fcn.00406974
mov dword [esp], 0x402190
push edi
mov dword [0x4a1108], eax
call esi
push eax
call fcn.00406974
mov dword [esp], 0x40217c
push edi
mov dword [0x4a110c], eax
call esi
push eax
call fcn.00406974
mov dword [esp], 0x402160
push edi
mov dword [0x4a1110], eax
call esi
push eax
call fcn.00406974
pop ecx
mov dword [0x4a1118], eax
test eax, eax
je 0x40ab0c
push 0x402148
push edi
call esi
push eax
call fcn.00406974
pop ecx
mov dword [0x4a1114], eax
mov eax, dword [0x4a1114]
cmp eax, ebx
je 0x40ab64
cmp dword [0x4a1118], ebx
je 0x40ab64
push eax
call fcn.004069ef
push dword [0x4a1118]
mov esi, eax
call fcn.004069ef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ab64
test edi, edi
je 0x40ab64
call esi
test eax, eax
je 0x40ab5b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ab5b
test byte [ebp - 0xc], 1
jne 0x40ab64
or dword [ebp + 0x10], 0x200000
jmp 0x40ab9d
mov eax, dword [0x4a110c]
cmp eax, ebx
je 0x40ab9d
push eax
call fcn.004069ef
pop ecx
test eax, eax
je 0x40ab9d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ab9d
mov eax, dword [0x4a1110]
cmp eax, ebx
je 0x40ab9d
push eax
call fcn.004069ef
pop ecx
test eax, eax
je 0x40ab9d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a1108]
call fcn.004069ef
pop ecx
test eax, eax
je 0x40abbd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40abbf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ab8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040a4
test esi, esi
jne 0x402aee
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404194
jmp 0x402b0c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029cc
mov edi, eax
test esi, esi
je 0x402b0c
cmp dword [ebx], 0
je 0x402b0c
dec esi
jmp 0x402af5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031c4
Capabilities:
Query or enumerate registry value

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

Function at 0x403f28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48b04c], 0
je 0x403f89
cmp word [0x48b220], 0xd7b2
jne 0x403f51
cmp dword [0x48b228], 0
jbe 0x403f51
mov eax, 0x48b21c
call dword [0x48b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48806c
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 0x403fb0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x488030], 0
jne 0x403fa5
push 0
push 0x488064
push 0x48806c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4055f4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405824
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405677
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405824
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405677
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405840
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405700
xor eax, eax
push ebp
push 0x4056f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040543c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4056de
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405860
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4056de
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405700
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40581a
cmp byte [ebp - 0xd], 0
jne 0x405747
cmp byte [ebp - 0x12], 0
je 0x40581a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405760
dec ebx
cmp byte [ebx], 0x2e
je 0x40576f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40575f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40581a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4057ac
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40581a
cmp byte [ebp - 0xd], 0
je 0x40581a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40581a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405f30
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 0x405f96
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.00404314
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d64
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f80
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f9d
lea eax, [ebp - 0x10]
call fcn.004040a4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404564
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4089b1
test al, 0x10
jne 0x4089b5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b65c
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 0x40b695
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404194
jmp 0x40b69e
mov eax, ebx
mov edx, esi
call fcn.004040f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bd50
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbc8
mov eax, dword [0x48a260]
cmp byte [eax], 0
je 0x40bdcc
mov eax, dword [0x48a028]
call fcn.00402bd0
call fcn.004028f8
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.00408d74
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 0x40be14
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be02
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x489fd0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48b668]
call fcn.00405400
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 0x40c6bc
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 0x40c792
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040413c
lea eax, [ebp - 8]
call fcn.004045b4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404564
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c77c
mov eax, ebx
call fcn.00402790
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c775
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.00404564
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c75f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c7a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c75f
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 0x40c77c
mov eax, dword [ebp - 0x10]
call fcn.004027b0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c799
lea eax, [ebp - 8]
call fcn.004040a4
ret

Function at 0x40cd08
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 0x40cd6c
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.00404314
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004085f8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd73
lea eax, [ebp - 0xc]
call fcn.004040a4
ret

Function at 0x41ee70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48b888
cmp dword [edi], 0
jne 0x41eeec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48b884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4883fc
mov ecx, 2
call fcn.0040298c
mov edx, 0x41ee48
lea eax, [esi + 5]
call fcn.0041ee68
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ee68
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 0x41eec1
mov dword [0x48b884], 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 0x420438
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 0x42043e
ret
Function at 0x4229d8
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 0x422a29
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422a10
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422a00
jmp 0x422a29
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 0x422a11
pop ebx
mov esp, ebp
pop ebp
ret