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

Disassembly:
sub esp, 0x30c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
push ebx
push ebp
mov ebp, dword [esp + 0x318]
push esi
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x12c]
xor esi, esi
push ecx
call fcn.00419fac
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x41687b
mov esi, 1
lea edx, [esp + 0x128]
push edx
push str.Buscara__s
push 1
call fcn.0040d050
add esp, 0xc
test esi, esi
jne 0x416975
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov bl, 0x10
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push str.dect2_s_atrib_d
push 1
call fcn.0040d050
mov al, byte [esp + 0x20]
add esp, 0x10
test bl, al
je 0x416923
lea edx, [esp + 0x24]
push 0x42d990
push edx
call fcn.00422610
add esp, 8
test eax, eax
je 0x416923
lea eax, [esp + 0x24]
push 0x42d98c
push eax
call fcn.00422610
add esp, 8
test eax, eax
je 0x416923
lea ecx, [esp + 0x24]
lea edx, [esp + 0x128]
push ecx
push ebp
push 0x42b858
push edx
call fcn.00418db9
lea eax, [esp + 0x138]
push eax
call fcn.004167f0
add esp, 0x14
lea ecx, [esp + 0x128]
push ecx
call esi
jmp 0x41695f
lea edx, [esp + 0x24]
lea eax, [esp + 0x128]
push edx
push ebp
push 0x42b858
push eax
call fcn.00418db9
lea ecx, [esp + 0x138]
push ecx
push str.borrara_s
push 1
call fcn.0040d050
lea edx, [esp + 0x144]
push edx
call fcn.0041a21c
add esp, 0x20
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0041a076
add esp, 8
test eax, eax
je 0x4168a2
push edi
call fcn.0041a13b
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret
Function at 0x416990
Capabilities:
Create directory
Create process on windows
Set file attributes

Disassembly:
sub esp, 0x44c
lea eax, [esp]
push esi
push 4
push eax
push str.CACLSWPATH
call fcn.00408060
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0xc
test eax, eax
jne 0x416a10
push 1
lea ecx, [esp + 8]
push 4
push ecx
push str.CACLSWPATH
mov dword [esp + 0x14], 1
call fcn.004084d0
push 0x42c4e0
lea edx, [esp + 0x18]
push str.CACLS.exe__s__E__G_Users:R
push edx
call fcn.00418db9
add esp, 0x1c
lea eax, [esp + 4]
push 5
push eax
call esi
push 0x42c4e0
lea ecx, [esp + 8]
push str.CACLS.exe__s__E__G_Usuarios:R
push ecx
call fcn.00418db9
add esp, 0xc
lea edx, [esp + 4]
push 5
push edx
call esi
lea eax, [esp + 0x25c]
push eax
call fcn.00413070
lea ecx, [esp + 0x260]
push ecx
push str.patss_s
push 2
call fcn.0040d050
lea edx, [esp + 0x26c]
lea eax, [esp + 0x14]
push edx
push str._schtdir.bin
push eax
call fcn.00418db9
lea ecx, [esp + 0x20]
push ecx
call fcn.00411f30
add esp, 0x20
test eax, eax
je 0x416a70
push str.ya_chtd
push 2
call fcn.0040d050
add esp, 8
pop esi
add esp, 0x44c
ret
lea edx, [esp + 0x25c]
lea eax, [esp + 4]
push edx
push str._schat
push eax
call fcn.00418db9
lea ecx, [esp + 0x10]
push ecx
call fcn.004167f0
add esp, 0x10
lea edx, [esp + 4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x416ab5
lea eax, [esp + 4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
push 4
push ecx
push str.CACLSPTSQ
call fcn.00408060
add esp, 0xc
test eax, eax
jne 0x416b3f
push 1
lea edx, [esp + 8]
push 4
push edx
push str.CACLSPTSQ
mov dword [esp + 0x14], 1
call fcn.004084d0
lea eax, [esp + 0x26c]
lea ecx, [esp + 0x14]
push eax
push str.cacls.exe___s___E__G_usuarios:C
push ecx
call fcn.00418db9
add esp, 0x1c
lea edx, [esp + 4]
push 5
push edx
call esi
lea eax, [esp + 4]
push eax
push str.ps_s
push 2
call fcn.0040d050
lea ecx, [esp + 0x268]
lea edx, [esp + 0x10]
push ecx
push str.cacls.exe___s___E__G_users:C
push edx
call fcn.00418db9
add esp, 0x18
lea eax, [esp + 4]
push 5
push eax
call esi
lea ecx, [esp + 4]
push 4
push ecx
push str.CACLSPTSP
call fcn.00408060
add esp, 0xc
test eax, eax
jne 0x416bc9
push 1
lea edx, [esp + 8]
push 4
push edx
push str.CACLSPTSP
mov dword [esp + 0x14], 1
call fcn.004084d0
lea eax, [esp + 0x26c]
lea ecx, [esp + 0x14]
push eax
push str.cacls.exe___sChat___E__G_usuarios:C
push ecx
call fcn.00418db9
add esp, 0x1c
lea edx, [esp + 4]
push 5
push edx
call esi
lea eax, [esp + 4]
push eax
push str.ps_s
push 2
call fcn.0040d050
lea ecx, [esp + 0x268]
lea edx, [esp + 0x10]
push ecx
push str.cacls.exe___sChat___E__G_users:C
push edx
call fcn.00418db9
add esp, 0x18
lea eax, [esp + 4]
push 5
push eax
call esi
lea ecx, [esp + 0x25c]
lea edx, [esp + 4]
push ecx
push str._schtdir.bin
push edx
call fcn.00418db9
lea eax, [esp + 0x10]
push 0x42b298
push eax
call fcn.0041906c
mov esi, eax
add esp, 0x14
test esi, esi
je 0x416c10
push esi
push 0xa
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.0041910b
push esi
call fcn.00418f0e
add esp, 0x14
pop esi
add esp, 0x44c
ret
Function at 0x417cb0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x190
mov eax, dword [0x42de84]
push edi
mov dword [esp + 4], eax
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push 0x433620
lea ecx, [esp + 8]
push str._sFILES.DAT
push ecx
call fcn.00418db9
lea edx, [esp + 0x10]
push edx
call fcn.00411f30
add esp, 0x10
test eax, eax
pop edi
je 0x417d0b
push str.existe_el_files.dat
push 1
call fcn.0040d050
add esp, 8
xor eax, eax
add esp, 0x190
ret
cmp byte [esp], 0x43
jne 0x417d22
cmp byte [esp + 1], 0x3a
jne 0x417d22
xor eax, eax
add esp, 0x190
ret
push str.no_esta
push 1
call fcn.0040d050
mov al, byte [0x433620]
lea ecx, [esp + 8]
push ecx
push str.path_s
push 1
mov byte [esp + 0x14], al
call fcn.0040d050
add esp, 0x14
lea edx, [esp]
mov byte [esp + 3], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x417d78
push str.es_fixed
push 1
call fcn.0040d050
add esp, 8
xor eax, eax
add esp, 0x190
ret
push str.no_es_fixed
push 1
call fcn.0040d050
add esp, 8
mov eax, 1
add esp, 0x190
ret

Function at 0x417da0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x190
lea eax, [esp]
push ebx
push esi
push edi
push str.C:WINDOWSLEVTEMP
push str._s_temp
push eax
call fcn.00418db9
lea ecx, [esp + 0x18]
push ecx
call fcn.00411cb0
mov eax, dword [0x434594]
add esp, 0x10
test eax, eax
lea edx, [esp + 0xc]
je 0x417e0d
mov edi, str._nicand.exe
or ecx, 0xffffffff
xor eax, eax
push 0x433620
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str._s_nicand.exe
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x417e41
mov edi, str.install.exe
or ecx, 0xffffffff
xor eax, eax
push 0x433620
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str._sinstall.exe
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x433b7c
call fcn.00418db9
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x42bc38
push 0x433db0
call fcn.00418db9
push 0x433b7c
push str.orig_s
push 1
call fcn.0040d050
push 0x433db0
push str.dest_s
push 1
call fcn.0040d050
push 0x433db0
push 0x433b7c
call fcn.00412320
add esp, 0x2c
push 5
push 0x433db0
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x190
ret
Function at 0x417eb0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push str.2entra_instalar
push 1
call fcn.0040d050
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x1388
call edi
push str.paso_time
push 1
call fcn.0040d050
add esp, 8
push str.DISCOVER_INST
push 1
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x417efc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ecx
ret
push str.paso_open
push 1
call fcn.0040d050
add esp, 8
push str.DISCOVER_INST
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x418083
push str.Buscara_vent_si_esta_act
push 1
call fcn.0040d050
add esp, 8
push str.INSTALL
push str.LEVERIT_INSTALL
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x417f5a
push str.ya_win
push 2
call fcn.0040d050
add esp, 8
pop edi
pop esi
pop ecx
ret
push str.llamara_duro
push 1
call fcn.0040d050
add esp, 8
call fcn.00417cb0
test eax, eax
jne 0x418070
call fcn.00417ba0
test eax, eax
jne 0x418070
push str.llamara_3_inst
push 1
call fcn.0040d050
add esp, 8
mov dword [0x43458c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push str.p_nst
push 2
mov dword [0x432b90], eax
call fcn.0040d050
push 3
push str.LEVERIT_INSTALL
push 0x417b80
call fcn.00417b00
mov eax, dword [0x432b8c]
add esp, 0x14
push 0
push eax
push 0
push 0
push 0x64
push 0x64
push 0
push 0
push 0
push str.INSTALL
push str.LEVERIT_INSTALL
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
lea ecx, [esp + 8]
mov dword [0x434810], eax
push ecx
push 0
push 0x432b90
push 0x40cf50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x418022
push str.No_th2
push 2
call fcn.0040d050
add esp, 8
push 0
call fcn.00417aa0
push str.ped_mes
push 2
call fcn.0040d050
push str.exit
push 2
call fcn.0040d050
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x434810]
test eax, eax
je 0x418065
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x434810], 0
push 0x1388
call edi
pop edi
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00417da0
pop edi
pop esi
pop ecx
ret
Function at 0x418090
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x422ade
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0040c440
mov ecx, dword [esp + 0x1b0]
mov eax, dword [esp + 0x1ac]
mov dword [esi], 0x4282f8
push ecx
mov dword [0x434814], esi
mov ecx, edi
mov dword [esp + 0x1a8], 0
mov dword [esi + 0xb40], eax
call fcn.0040c4d0
mov edx, dword [esi + 0x110]
mov ecx, 0x4333b0
push edx
call fcn.0040bdf0
mov al, byte [esi + 0x115]
test al, al
je 0x418123
mov eax, dword [0x4282d8]
mov edx, dword [0x4282e0]
or eax, edx
mov ecx, 0x4333b0
push eax
call fcn.0040bd90
mov al, byte [esi + 0x114]
test al, al
je 0x418140
lea ecx, [esi + 0x116]
push 0
push ecx
mov ecx, 0x4333b0
call fcn.0040be00
lea edx, [esp + 0xc]
lea edi, [esi + 0xb44]
mov ecx, 0x80
xor eax, eax
push edx
push 0x101
rep stosd dword es:[edi], eax
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x41817f
push 0x10
push str.NetDAC_info_3
push str.Error_initialising_sockets_library
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [esp + 0xc]
and eax, 0xffff
push eax
push str.Started_and_Winsock__v__d__initialised_n
push 3
push 0x4333b0
call fcn.00405690
mov ecx, dword [esp + 0x1ac]
add esp, 0x10
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x1a0
ret 8
Function at 0x41f395
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42f760
cmp edx, dword [eax]
je 0x41f3b7
add eax, 8
inc ecx
cmp eax, 0x42f7f0
jl 0x41f3a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42f760]
jne 0x41f4e5
mov eax, dword [0x43488c]
cmp eax, 1
je 0x41f4bf
test eax, eax
jne 0x41f3e8
cmp dword [0x42ef74], 1
je 0x41f4bf
cmp edx, 0xfc
je 0x41f4e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41f41f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041e060
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041da40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41f462
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041da40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x428778
push edi
call fcn.0041a260
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041e060
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041e070
lea eax, [ebp - 0xa0]
push 0x428758
push eax
call fcn.0041e070
push dword [esi + 0x42f764]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041e070
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042104f
add esp, 0x2c
pop edi
jmp 0x41f4e5
lea eax, [ebp + 8]
lea esi, [esi + 0x42f764]
push 0
push eax
push dword [esi]
call fcn.0041da40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4226da
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x422705
test byte [esp + 8], 0x80
je 0x4226f4
and al, 0xfe
jmp 0x4226f6
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x422716
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041ec01
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x402cbc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403114
Capabilities:
Query or enumerate registry value

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

Function at 0x403e70
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x476048], 0
je 0x403ed1
cmp word [0x47621c], 0xd7b2
jne 0x403e99
cmp dword [0x476224], 0
jbe 0x403e99
mov eax, 0x476218
call dword [0x476234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x474070
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 0x403ef8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x474034], 0
jne 0x403eed
push 0
push 0x474068
push 0x474070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b74
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 0x405bda
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.0040425c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cd8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bc4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405be1
lea eax, [ebp - 0x10]
call fcn.00403fec
ret

Function at 0x40ad58
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 0x40ad91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040dc
jmp 0x40ad9a
mov eax, ebx
mov edx, esi
call fcn.00404040
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b44c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b2c4
mov eax, dword [0x475ac0]
cmp byte [eax], 0
je 0x40b4c8
mov eax, dword [0x4758cc]
call fcn.00402b28
call fcn.00402834
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.004084f8
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 0x40b510
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b4fe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x475874]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x476664]
call fcn.00405088
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 0x40bd64
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 0x40be3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404084
lea eax, [ebp - 8]
call fcn.004044fc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044ac
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40be24
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40be1d
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.004044ac
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40be07
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40be4c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40be07
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 0x40be24
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be41
lea eax, [ebp - 8]
call fcn.00403fec
ret

Function at 0x40c344
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 0x40c3a8
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.0040425c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040800c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3af
lea eax, [ebp - 0xc]
call fcn.00403fec
ret

Function at 0x41a510
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x476884
cmp dword [edi], 0
jne 0x41a58c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x476880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4743f0
mov ecx, 2
call fcn.004028c8
mov edx, 0x41a4e8
lea eax, [esi + 5]
call fcn.0041a508
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a508
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 0x41a561
mov dword [0x476880], 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 0x41bb28
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 0x41bb2e
ret
Function at 0x41dffc
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 0x41e04d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e034
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e024
jmp 0x41e04d
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 0x41e035
pop ebx
mov esp, ebp
pop ebp
ret