joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ecx, 0x40
lea edi, [ebp - 0x100]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x108], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xff
div ecx
mov byte [ebp - 0xb0], dl
mov dword [ebp - 0x104], 0
jmp 0x41a894
mov edx, dword [ebp - 0x104]
add edx, 1
mov dword [ebp - 0x104], edx
cmp dword [ebp - 0x104], 8
jge 0x41a8c9
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x104]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0xb0]
and edx, 0xff
or ecx, edx
mov eax, dword [ebp - 0x104]
mov byte [ebp + eax - 0xe9], cl
jmp 0x41a885
mov dword [ebp - 0x104], 0
jmp 0x41a8e4
mov ecx, dword [ebp - 0x104]
add ecx, 1
mov dword [ebp - 0x104], ecx
cmp dword [ebp - 0x104], 8
jge 0x41a919
mov edx, dword [ebp - 0x108]
add edx, dword [ebp - 0x104]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0xb0]
and ecx, 0xff
and eax, ecx
mov edx, dword [ebp - 0x104]
mov byte [ebp + edx - 0xff], al
jmp 0x41a8d5
mov dword [ebp - 0x104], 0
jmp 0x41a934
mov eax, dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 8
jge 0x41a968
mov ecx, dword [ebp - 0x108]
add ecx, dword [ebp - 0x104]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0xb0]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp - 0x104]
mov byte [ebp + ecx - 0xaf], dl
jmp 0x41a925
mov dword [ebp - 0x104], 0
jmp 0x41a983
mov edx, dword [ebp - 0x104]
add edx, 1
mov dword [ebp - 0x104], edx
cmp dword [ebp - 0x104], 8
jge 0x41a9b5
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x104]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0xb0]
and edx, 0xff
add ecx, edx
mov eax, dword [ebp - 0x104]
mov byte [ebp + eax - 0x1e], cl
jmp 0x41a974
push 0x100
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b8a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 0x48
call dword [sym.imp.GrphCalc.dll_public:_void___thiscall_CDPoint::constructor_void_]
push 0x41b860
push 4
push 0x4c
mov eax, dword [ebp - 8]
add eax, 0xa4
push eax
call fcn.0041ba40
mov dword [ebp - 4], 0
jmp 0x41b8de
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 4
jge 0x41b8f3
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [eax + edx*4], 0xffffffff
jmp 0x41b8d5
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x9c], 0
mov dword [edx + 0xa0], 0xc0c38800
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], 0
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x60], 0
mov dword [edx + 0x64], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x70], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x74], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x7c], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x80], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x84], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x88], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x8c], 0
mov dword [edx + 0x90], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x94], 0
mov dword [eax + 0x98], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x420544
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
cmp dword [0x474ca0], 1
je 0x420679
push 0xa0
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x22
lea ecx, [ebp - 0xb0]
push ecx
push 0x18
call fcn.00420a90
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x4739f4
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4000
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x420679
lea ecx, [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x474ca4], eax
cmp dword [0x474ca4], 0
jne 0x4205f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x154], eax
jmp 0x420679
push str.DSM_Entry
mov edx, dword [0x474ca4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x474b58], eax
cmp dword [0x474b58], 0
jne 0x420625
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x154], eax
jmp 0x420679
push 0x474c9c
push 0x301
push 4
push 1
push 0
push 0x474c00
call dword [0x474b58]
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x8c]
and eax, 0xffff
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x420663
jmp 0x42066f
mov dword [0x474ca0], 1
jmp 0x420679
mov dword [0x474ca0], 0
mov eax, dword [0x474ca0]
mov esp, ebp
pop ebp
ret
Function at 0x45d0b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45d110
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x474d94
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45d103
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x45d112
xor eax, eax
pop esi
leave
ret 4
Function at 0x402740
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40d048
call sym._EnterCriticalSection_4
mov ebx, dword [0x40d040]
sub esp, 4
test ebx, ebx
je 0x40278b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402784
test esi, esi
je 0x402784
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402760
mov dword [esp], 0x40d048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402970
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4029c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402a98
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4029fe
cmp eax, 4
jne 0x402a20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402a0e
cmp edx, 4
je 0x402a0e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402970
Function at 0x4075c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x4075cf
pop dword [ebp - 0x20]
mov eax, 0x149a961a
add eax, 0xeba5dfb5
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xaeda1dac
sub dword [ebp - 0x30], 0x6087d861
mov dword [ebp - 0x2c], 0xccc1a16f
sub dword [ebp - 0x2c], 0x9a8e552a
mov dword [ebp - 0x28], 0xbc425e51
sub dword [ebp - 0x28], 0x6ff61a23
mov dword [ebp - 0x24], 0x4b94a333
sub dword [ebp - 0x24], 0x4b94a333
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xb67b804e
add dword [ebp - 0x30], 0xbdf6e908
mov dword [ebp - 0x2c], 0xb548153f
add dword [ebp - 0x2c], 0x8c244c36
mov dword [ebp - 0x28], 0xb1cc7d37
add dword [ebp - 0x28], 0xb1a2ef35
mov dword [ebp - 0x24], 0xf8f7618c
add dword [ebp - 0x24], 0x7089e74
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3afe2
push 0
call eax
mov ecx, 0xe223a473
sub ecx, 0xe2235c9e
xor esi, esi
add esi, eax
mov edi, 0x42a600
add edi, dword [ebp - 0x20]
mov ebx, 0x4159178f
add ebx, 0x4c519f75
xor dword [ebp - 4], 0xff0fca9a
mov edx, dword [edi]
xor dword [ebp - 0x10], ecx
add edx, ebx
mov dword [ebp - 4], 0x6dd316ba
mov dword [esi], edx
xor dword [ebp - 0xc], 0x69dec3c0
add esi, 0x1eadbf1f
sub esi, 0x1eadbf1b
add edi, 4
loop 0x4076e3
add eax, 0x3aeb7d07
add eax, 0xc5159520
xor ebx, ebx
add ebx, eax
add eax, 0x457fadcc
add eax, 0xba805239
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4032ac
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.00404b18
test esi, esi
jne 0x4032e2
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.00404c08
jmp 0x403300
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031b0
mov edi, eax
test esi, esi
je 0x403300
cmp dword [ebx], 0
je 0x403300
dec esi
jmp 0x4032e9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a10
Capabilities:
Query or enumerate registry value

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

Function at 0x4048c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e04c], 0
je 0x404925
cmp word [0x48e220], 0xd7b2
jne 0x4048ed
cmp dword [0x48e228], 0
jbe 0x4048ed
mov eax, 0x48e21c
call dword [0x48e238]
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 0x40494c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48b02c], 0
jne 0x404941
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404a9c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x48b030], 0
je 0x404ac2
mov edx, esi
mov eax, ebx
call dword [0x48b030]
jmp 0x404ad1
mov eax, 8
call fcn.00402ec0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x48e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a64
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406170
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 0x4063a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061f3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061f3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40627c
xor eax, eax
push ebp
push 0x406275
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405fac
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 0x40625a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4063dc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40625a
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 0x40627c
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 0x406396
cmp byte [ebp - 0xd], 0
jne 0x4062c3
cmp byte [ebp - 0x12], 0
je 0x406396
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4062dc
dec ebx
cmp byte [ebx], 0x2e
je 0x4062eb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4062db
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406396
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406328
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 0x406396
cmp byte [ebp - 0xd], 0
je 0x406396
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 0x406396
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 0x408dc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408e16
test eax, edx
je 0x408e19
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408dd9
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 0x408dff
add ecx, 4
js 0x408def
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408dfc
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 0x408e25
test edx, edx
jne 0x408dcc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404fa8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4098c6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4098e7
cmp ebx, 3
je 0x4098e7
cmp ebx, 0x7b
je 0x4098e7
mov eax, esi
call fcn.00409868
test al, al
jne 0x4098eb
xor eax, eax
jmp 0x4098ed
mov al, 1
pop esi
pop ebx
ret

Function at 0x40cb04
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 0x40cb3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c08
jmp 0x40cb46
mov eax, ebx
mov edx, esi
call fcn.00404b6c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cb50
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 0x40cb72
movzx eax, byte [esp]
jmp 0x40cb74
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d204
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d07c
mov eax, dword [0x48d770]
cmp byte [eax], 0
je 0x40d280
mov eax, dword [0x48d430]
call fcn.004033c4
call fcn.0040301c
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.00409adc
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 0x40d2c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d2b6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48d3b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4907f8]
call fcn.00405f54
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 0x40db94
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 0x40dc6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404bb0
lea eax, [ebp - 4]
call fcn.00405000
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fa8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dc54
mov eax, ebx
call fcn.00402ec0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dc4d
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.00404fa8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dc37
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dc7c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dc37
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 0x40dc54
mov eax, dword [ebp - 0x10]
call fcn.00402edc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc71
lea eax, [ebp - 4]
call fcn.00404b18
ret

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

Function at 0x420d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4929f0
cmp dword [edi], 0
jne 0x420d9c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4929ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48baf0
mov ecx, 2
call fcn.004030b0
mov edx, 0x420cf8
lea eax, [esi + 5]
call fcn.00420d18
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420d18
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 0x420d71
mov dword [0x4929ec], 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