joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec80
Capabilities:
Enumerate gui resources

Disassembly:
push edi
push esi
mov esi, str.3cee576c923c105dfff58c9d208675356500a635395dff5e354a858600a665000001008604a663b85dfff58c9d2086756540a600a65dff652a5b0f86ce5780e4ffc0470c585dff16475a9986756501a6795dff0efdf0ae8605040504050505056e98d751002086812be34786a0a65dff00b608928605454c92000010098b0dff8e98706277c48645f5233777860000233386d5ffffff089e21b8a5f5850eff15a59516b5b5424244980d10b840b83d10c185b8b4c0b8663d104285b8850e5742d7b38fd7304f570e837c10d0fc1cca0c136d10b843b8ff1394c3479c583d108184b8050285b80d10c4470c588704b80d10c324b80125b87525fe57947c10d0fc1c02c220c716c3ca0c1362a47bf08227b8ff134125b8c025b80325b8465e982d1306000000f88ecf
push ebx
sub esp, 0x270
mov eax, dword [str.3cee576c923c105dfff58c9d208675356500a635395dff5e354a858600a665000001008604a663b85dfff58c9d2086756540a600a65dff652a5b0f86ce5780e4ffc0470c585dff16475a9986756501a6795dff0efdf0ae8605040504050505056e98d751002086812be34786a0a65dff00b608928605454c92000010098b0dff8e98706277c48645f5233777860000233386d5ffffff089e21b8a5f5850eff15a59516b5b5424244980d10b840b83d10c185b8b4c0b8663d104285b8850e5742d7b38fd7304f570e837c10d0fc1cca0c136d10b843b8ff1394c3479c583d108184b8050285b80d10c4470c588704b80d10c324b80125b87525fe57947c10d0fc1c02c220c716c3ca0c1362a47bf08227b8ff134125b8c025b80325b8465e982d1306000000f88ecf]
lea ebx, [esp + 0x1f]
lea edi, [esp + 0x20]
mov ecx, ebx
mov dword [esp + 0x1f], eax
mov eax, dword [0x4102b5]
sub ecx, edi
sub esi, ecx
add ecx, 0x251
mov dword [esp + 0x26c], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], 1
mov dword [esp], 0x128
call sub.msvcrt.dll_calloc
test eax, eax
je 0x40edae
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.msvcrt.dll__strrev]
movzx eax, byte [esp + 0x1f]
test al, al
je 0x40ed20
mov edi, esi
jmp 0x40ed11
mov dword [esp], ebx
add ebx, 2
mov dword [esp + 8], edi
add edi, 1
mov dword [esp + 4], str._02X
call fcn.0040ec50
movzx eax, byte [ebx]
test al, al
je 0x40ed20
cmp al, 0x20
jne 0x40ecf0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
jne 0x40ed11
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x40000
call dword [sym.imp.KERNEL32.dll_HeapCreate]
sub esp, 0xc
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x40ed98
mov dword [esp + 8], 0x128
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
sub esp, 8
add esp, 0x270
pop ebx
pop esi
pop edi
ret
mov dword [esp], str.HeapAlloc_error
call fcn.0040ec20
add esp, 0x270
pop ebx
pop esi
pop edi
ret
mov dword [esp], str.malloc_error
call fcn.0040ec20
jmp 0x40ed8a
Function at 0x405ca5
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.00405fc9
test bl, 8
mov dword [ebp - 8], eax
je 0x405ce4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42cac8], eax
jmp 0x405eba
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405cfe
test eax, eax
je 0x405e3c
test bl, 2
je 0x405e3c
mov edi, 0x426720
push esi
push edi
call fcn.00406476
cmp dword [ebp + 8], 0
je 0x405d1d
push 0x40b43c
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405d23
push esi
call fcn.00405f0d
cmp word [esi], 0
jne 0x405d33
cmp word [0x426720], 0x5c
jne 0x405d3e
push 0x40a4e4
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405e31
cmp word [ebp - 0x22c], 0x2e
jne 0x405d90
cmp word [ebp - 0x22a], 0
je 0x405e14
cmp word [ebp - 0x22a], 0x2e
jne 0x405d90
cmp word [ebp - 0x228], 0
je 0x405e14
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406476
test byte [ebp - 0x258], 0x10
je 0x405dbb
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405e14
push dword [ebp + 0xc]
push esi
call fcn.00405ca5
jmp 0x405e14
push esi
push str.Delete:_DeleteFile___s__
call fcn.0040693b
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00405c5d
test eax, eax
push esi
jne 0x405e0d
cmp dword [ebp - 4], eax
je 0x405df9
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040693b
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405692
push 0
push esi
call fcn.00406310
jmp 0x405e14
push str.Delete:_DeleteFile_failed___s__
call fcn.0040693b
inc dword [0x42cac8]
pop ecx
pop ecx
jmp 0x405e14
push 0xfffffffffffffff2
call fcn.00405692
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d60
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405e3c
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x405eba
cmp dword [ebp - 8], edi
push esi
jne 0x405e5d
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040693b
inc dword [0x42cac8]
pop ecx
pop ecx
jmp 0x405eba
call fcn.0040696c
test eax, eax
je 0x405eba
push esi
call fcn.00405ec1
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040693b
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00405c5d
test eax, eax
push esi
jne 0x405eb3
cmp dword [ebp - 4], edi
je 0x405eac
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040693b
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405692
push edi
push esi
call fcn.00406310
jmp 0x405eba
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405e4e
push 0xffffffffffffffe5
call fcn.00405692
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x411054
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42e068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov dword [ebp - 0x208], ecx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x20c], 0x100
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x41112f
lea eax, [ebp - 0x208]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411144
push dword [ebp - 0x208]
call fcn.00411054
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411144
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411144
jmp 0x411137
cmp esi, 0x80070103
je 0x411142
test esi, esi
jne 0x411144
xor ecx, ecx
jmp 0x411074
xor esi, esi
cmp dword [ebp - 0x208], 0
je 0x411159
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004116b9
mov esp, ebp
pop ebp
ret 4

Function at 0x41116d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x411197
xor esi, esi
inc esi
jmp 0x4111de
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4111de
push dword [ebp - 4]
call fcn.00411054
mov esi, eax
test esi, esi
js 0x4111de
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x4111ed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4116af
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
push edx
sub esi, esi
add esi, 0x30
mov ebx, dword fs:[esi]
push ds
push ecx
mov ecx, dword [ebx + 8]
dec ebx
mov edx, dword [ebx + 0xd]
lea esi, [edx]
add esi, 0xc
mov ebx, dword [esi]
push ds
push edi
Function at 0x4dda9d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4ddb78
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [fcn.004280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4030b8
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 0x4030f4
movzx eax, 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 0x403114
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040525c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4033ac
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.00404fec
test esi, esi
jne 0x4033e2
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.004050dc
jmp 0x403400
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403250
mov edi, eax
test esi, esi
je 0x403400
cmp dword [ebx], 0
je 0x403400
dec esi
jmp 0x4033e9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403fd0
Capabilities:
Query or enumerate registry value

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

Function at 0x404e6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47d04c], 0
je 0x404ecd
cmp word [0x47d220], 0xd7b2
jne 0x404e95
cmp dword [0x47d228], 0
jbe 0x404e95
mov eax, 0x47d21c
call dword [0x47d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404ef4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47a02c], 0
jne 0x404ee9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4066fc
Capabilities:
Get geographical location

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 0x406820
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406673
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406820
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406673
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40683c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066fc
xor eax, eax
push ebp
push 0x4066f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040642c
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 0x4066da
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40685c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4066da
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 0x4066fc
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 0x406816
cmp byte [ebp - 0xd], 0
jne 0x406743
cmp byte [ebp - 0x12], 0
je 0x406816
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40675c
dec ebx
cmp byte [ebx], 0x2e
je 0x40676b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40675b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406816
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4067a8
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 0x406816
cmp byte [ebp - 0xd], 0
je 0x406816
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 0x406816
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 0x408e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408ed2
test eax, edx
je 0x408ed5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408e95
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408ebb
add ecx, 4
js 0x408eab
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408eb8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408ee1
test edx, edx
jne 0x408e88
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040547c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4097de
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4097ff
cmp ebx, 3
je 0x4097ff
cmp ebx, 0x7b
je 0x4097ff
mov eax, esi
call fcn.00409780
test al, al
jne 0x409803
xor eax, eax
jmp 0x409805
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040547c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409821
test al, 0x10
jne 0x409825
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c608
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 0x40c641
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004050dc
jmp 0x40c64a
mov eax, ebx
mov edx, esi
call fcn.00405040
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c654
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 0x40c676
movzx eax, byte [esp]
jmp 0x40c678
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cd08
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cb80
mov eax, dword [0x47bf8c]
cmp byte [eax], 0
je 0x40cd84
mov eax, dword [0x47bd6c]
call fcn.004037f8
call fcn.0040300c
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.00409c78
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 0x40cdcc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cdba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47bcfc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47f7f8]
call fcn.004063d4
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 0x40d68c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d762
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405084
lea eax, [ebp - 4]
call fcn.004054d4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040547c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d74c
mov eax, ebx
call fcn.00402eb0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d745
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 - 4]
call fcn.0040547c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d72f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d774
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d72f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d74c
mov eax, dword [ebp - 0x10]
call fcn.00402ecc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d769
lea eax, [ebp - 4]
call fcn.00404fec
ret
Function at 0x41f9f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4819ec
cmp dword [edi], 0
jne 0x41fa6c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4819e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47ab68
mov ecx, 2
call fcn.00403150
mov edx, 0x41f9c8
lea eax, [esi + 5]
call fcn.0041f9e8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f9e8
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 0x41fa41
mov dword [0x4819e8], 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