joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b38
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x405b59
mov ecx, dword [0x42e3fc]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x42ec58]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, 0x42dbc0
sub ecx, eax
mov ebx, eax
cmp ecx, 0x800
jae 0x405cff
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405cff
mov edx, ebx
sub edx, eax
cmp edx, 0x400
jge 0x405d0c
inc edi
cmp cl, 0xfc
jbe 0x405cf2
movsx eax, byte [edi + 1]
movsx ecx, byte [edi]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405c9d
cmp dword [0x42eca4], 0
push 2
pop esi
je 0x405be4
push 4
pop esi
mov eax, dword [ebp - 0x14]
test al, al
jns 0x405c1b
mov ecx, eax
and eax, 0x3f
add eax, dword [0x42ec58]
and ecx, 0x40
push ecx
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004059fd
cmp byte [ebx], 0
jne 0x405c84
push dword [ebp - 0xc]
push ebx
call fcn.00405b38
jmp 0x405c7f
cmp eax, 0x25
jne 0x405c2e
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405c7f
cmp eax, 0x24
jne 0x405c7b
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405c7b
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x42ec24]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405c78
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405c7f
and byte [ebx], 0
test esi, esi
jne 0x405c43
cmp byte [ebx], 0
je 0x405c95
cmp dword [ebp - 0xc], 0x1a
jne 0x405c95
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call fcn.00405d25
jmp 0x405ce3
cmp byte [ebp + 0xf], 0xfd
jne 0x405cd1
cmp esi, 0x1d
jne 0x405cb6
push dword [0x42ec24]
push ebx
call fcn.00405a74
jmp 0x405cc7
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push ebx
call fcn.00405b16
add esi, 0xffffffeb
cmp esi, 7
jae 0x405ce3
jmp 0x405c95
cmp byte [ebp + 0xf], 0xff
jne 0x405ce3
or eax, 0xffffffff
sub eax, esi
push eax
push ebx
call fcn.00405b38
push ebx
call sub.KERNEL32.dll_lstrlenA
add ebx, eax
mov eax, 0x42dbc0
jmp 0x405cff
jne 0x405cfc
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
inc edi
jmp 0x405cff
mov byte [ebx], cl
inc ebx
mov cl, byte [edi]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405b84
and byte [ebx], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405d21
push eax
push dword [ebp + 8]
call fcn.00405b16
leave
ret 8
Function at 0x405e68
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c62c], 0
push esi
jne 0x405e9f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405e79
mov dword [ecx*4 + 0x42c628], eax
inc ecx
cmp ecx, 0x100
jl 0x405e74
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ed0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c628]
xor eax, esi
inc ecx
dec edx
jne 0x405eb2
pop edi
not eax
pop esi
ret 0xc
Function at 0x401224
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov dword [ebp - 0x19c], ecx
lea eax, [ebp - 0x190]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x40125b
mov eax, 0xfffffffd
jmp 0x401388
mov ecx, dword [ebp - 0x190]
and ecx, 0xff
cmp ecx, 2
jne 0x40128b
mov edx, dword [ebp - 0x190]
and edx, 0xffff
sar edx, 8
and edx, 0xff
and edx, 0xff
test edx, edx
je 0x40129b
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xfffffffd
jmp 0x401388
mov ecx, dword [ebp - 0x19c]
call fcn.0040138e
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x24], ecx
push 0
mov edx, dword [ebp - 0x19c]
mov eax, dword [edx + 0x14]
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x19c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x19c]
cmp dword [edx], 0xffffffff
jne 0x4012e9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xfffffffc
jmp 0x401388
mov dword [ebp - 0x194], 1
lea eax, [ebp - 0x194]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x401325
mov ecx, dword [ebp - 0x19c]
call fcn.0040138e
mov eax, 0xfffffffc
jmp 0x401388
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x19c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x19c]
mov word [edx + 4], 2
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x19c]
mov word [ecx + 6], ax
push 0x10
mov edx, dword [ebp - 0x19c]
add edx, 4
push edx
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x19c]
mov dword [edx + 0x28], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4013ec
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x120], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 0x28]
cmp ecx, dword [ebp - 0xc]
jbe 0x40141f
mov edx, dword [ebp - 0x120]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x120]
cmp dword [edx + 0x24], ecx
jae 0x40144b
mov ecx, dword [ebp - 0x120]
call fcn.0040138e
mov eax, 0xfffffffe
jmp 0x40157e
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
jmp 0x401470
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0x114]
jae 0x401499
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + edx*4 - 0x110]
cmp ecx, dword [eax]
jne 0x401497
jmp 0x401499
jmp 0x401461
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ebp - 0x114]
jne 0x4014d4
cmp dword [ebp - 0x114], 0x40
jae 0x4014d4
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx]
mov dword [ebp + eax*4 - 0x110], edx
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
xor ecx, ecx
test ecx, ecx
jne 0x401455
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x64
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 0x114]
push eax
push 0
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x401518
mov eax, 0xfffffff9
jmp 0x40157e
mov eax, dword [ebp - 0x120]
cmp dword [eax + 0x30], 0
je 0x401579
lea ecx, [ebp - 0x10]
push ecx
push 0xf0300004
mov ecx, dword [ebp - 0x120]
call fcn.00401e6d
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 1
jne 0x401574
cmp dword [ebp - 0x10], 0
je 0x40156d
push 1
push 0xf0380000
mov ecx, dword [ebp - 0x120]
call fcn.00402326
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
jmp 0x40157e
mov eax, 1
jmp 0x40157e
or eax, 0xffffffff
jmp 0x40157e
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401e6d
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov dword [ebp - 0x13c], ecx
mov eax, dword [ebp - 0x13c]
cmp dword [eax], 0xffffffff
jne 0x401e91
mov eax, 0xfffffff7
jmp 0x402098
mov ecx, dword [ebp - 0x13c]
call fcn.00405100
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x134], 0
jmp 0x401ec1
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
cmp edx, dword [ebp - 0x128]
jae 0x401eea
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp + eax*4 - 0x124]
cmp edx, dword [ecx]
jne 0x401ee8
jmp 0x401eea
jmp 0x401eb2
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0x128]
jne 0x401f25
cmp dword [ebp - 0x128], 0x40
jae 0x401f25
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx]
mov dword [ebp + ecx*4 - 0x124], eax
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
xor edx, edx
test edx, edx
jne 0x401ea6
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x13c]
mov dl, byte [ecx + 0x34]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.0040168c
push 0
push 0xc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0xffffffff
jne 0x401f86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x12c], eax
or eax, 0xffffffff
jmp 0x402098
mov ecx, dword [ebp - 0x13c]
add ecx, 0x18
push ecx
push 0
push 0
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x401fbb
mov eax, 0xfffffffe
jmp 0x402098
push 0
push 0x10
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0x10
je 0x401feb
mov eax, 0xfffffffa
jmp 0x402098
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x13c]
call fcn.004018df
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 1
jne 0x40204d
mov eax, dword [ebp - 0x24]
and eax, 0xff
test eax, eax
jne 0x40204d
mov ecx, dword [ebp - 0x13c]
xor edx, edx
mov dl, byte [ecx + 0x34]
mov eax, dword [ebp - 0x130]
and eax, 0xff
cmp edx, eax
jne 0x40204d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, 1
jmp 0x402098
cmp dword [ebp - 0x12c], 1
jne 0x402093
mov eax, dword [ebp - 0x24]
and eax, 0xff
test eax, eax
je 0x402093
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x13c]
call fcn.004039e1
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 1
jne 0x40208b
mov eax, dword [ebp - 0x138]
jmp 0x402098
mov eax, dword [ebp - 0x12c]
jmp 0x402098
mov eax, 0xfffffffa
mov esp, ebp
pop ebp
ret 8
Function at 0x402326
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
cmp dword [eax], 0xffffffff
jne 0x40234a
mov eax, 0xfffffff7
jmp 0x402540
mov ecx, dword [ebp - 0x138]
call fcn.00405100
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x130], 0
jmp 0x40237a
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x130]
cmp edx, dword [ebp - 0x124]
jae 0x4023a3
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp + eax*4 - 0x120]
cmp edx, dword [ecx]
jne 0x4023a1
jmp 0x4023a3
jmp 0x40236b
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x124]
jne 0x4023de
cmp dword [ebp - 0x124], 0x40
jae 0x4023de
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x138]
mov eax, dword [edx]
mov dword [ebp + ecx*4 - 0x120], eax
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
xor edx, edx
test edx, edx
jne 0x40235f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 0x138]
mov al, byte [edx + 0x34]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x138]
call fcn.004017fc
push 0
push 0x10
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0xffffffff
jne 0x402439
or eax, 0xffffffff
jmp 0x402540
mov edx, dword [ebp - 0x138]
add edx, 0x18
push edx
push 0
push 0
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x40246e
mov eax, 0xfffffffe
jmp 0x402540
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0xc
je 0x40249e
mov eax, 0xfffffffa
jmp 0x402540
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x138]
call fcn.00401a14
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 1
jne 0x4024f4
mov eax, dword [ebp - 4]
and eax, 0xff
test eax, eax
jne 0x4024f4
mov ecx, dword [ebp - 0x138]
xor edx, edx
mov dl, byte [ecx + 0x34]
mov eax, dword [ebp - 0x12c]
and eax, 0xff
cmp edx, eax
jne 0x4024f4
mov eax, 1
jmp 0x402540
cmp dword [ebp - 0x128], 1
jne 0x40253b
mov ecx, dword [ebp - 4]
and ecx, 0xff
test ecx, ecx
je 0x40253b
lea edx, [ebp - 0x134]
push edx
mov ecx, dword [ebp - 0x138]
call fcn.004039e1
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 1
jne 0x402533
mov eax, dword [ebp - 0x134]
jmp 0x402540
mov eax, dword [ebp - 0x128]
jmp 0x402540
mov eax, 0xfffffffa
mov esp, ebp
pop ebp
ret 8
Function at 0x408ae1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f518
cmp edx, dword [eax]
je 0x408b03
add eax, 8
inc ecx
cmp eax, 0x40f5a8
jl 0x408af4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f518]
jne 0x408c31
mov eax, dword [0x411d68]
cmp eax, 1
je 0x408c0b
test eax, eax
jne 0x408b34
cmp dword [0x40f1b4], 1
je 0x408c0b
cmp edx, 0xfc
je 0x408c31
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408b6b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040aa90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407f10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408bae
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407f10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e54c
push edi
call fcn.004059a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040aa90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040aaa0
lea eax, [ebp - 0xa0]
push 0x40e52c
push eax
call fcn.0040aaa0
push dword [esi + 0x40f51c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040aaa0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b77f
add esp, 0x2c
pop edi
jmp 0x408c31
lea eax, [ebp + 8]
lea esi, [esi + 0x40f51c]
push 0
push eax
push dword [esi]
call fcn.00407f10
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 0x401f50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x401f71
add esp, 0x104
ret
push edi
lea edi, [esp + 4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401f77
mov ecx, dword [str.d3d9.dll]
mov edx, dword [0x446c8c]
mov ax, word [0x446c90]
mov dword [edi], ecx
lea ecx, [esp + 4]
mov dword [edi + 4], edx
push 0
push ecx
mov word [edi + 8], ax
call fcn.004201e9
add esp, 8
neg eax
sbb eax, eax
inc eax
pop edi
add esp, 0x104
ret

Function at 0x402660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402679
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40268d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4026ae
cmp esi, eax
jae 0x402687
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4026a0
cmp esi, eax
jae 0x402687
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402b50
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [esp + 4]
cmp edx, dword [esp + 0x18]
ja 0x402b84
jb 0x402b7c
mov eax, dword [esp]
cmp eax, dword [esp + 0x14]
ja 0x402b84
xor al, al
add esp, 0x10
ret 8
mov al, 1
add esp, 0x10
ret 8

Function at 0x404440
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov edi, dword [esp + 0x14]
mov ebx, ecx
jle 0x40446f
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebx + 0xc]
push 0
push esi
push edi
push eax
call ebp
cmp eax, 0xffffffff
je 0x404478
sub esi, eax
add edi, eax
test esi, esi
jg 0x404458
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x40448e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0xc], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x4473a8
call fcn.00420d3f
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
Function at 0x404f00
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4442f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push ebx
push ebp
push esi
push edi
mov ebp, ecx
or esi, 0xffffffff
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], esi
xor ebx, ebx
mov dword [ebp], 0x447520
mov dword [esp + 0x52c], ebx
mov dword [ebp + 0x20], esi
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [ebp + 0x28]
mov byte [esp + 0x544], 1
call fcn.0043f078
mov dword [ebp + 0x60], esi
push ebx
push ebx
push 1
push ebx
mov byte [ebp + 0x40], bl
mov byte [ebp + 0x41], bl
mov byte [ebp + 0x25], bl
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0x866], bl
mov dword [ebp + 0xc], ebx
mov byte [ebp + 0x864], bl
mov byte [ebp + 0x865], bl
mov byte [ebp + 0x24], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp + 0x20], eax
push str..CONFIG.ini
mov byte [ebp + 0x874], bl
mov ecx, 7
mov esi, str.pt.shaiya_eos.com
mov edi, 0x45b9c0
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x104
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0x447078
push str.TEST_IP
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4050db
mov edi, str.GERMANY
lea esi, [esp + 0x18]
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x405035
mov edi, str.FRANCE
lea esi, [esp + 0x18]
mov ecx, 7
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405035
mov edi, str.POLAND
lea esi, [esp + 0x18]
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4050db
push 0x44741c
push str.UpdaterURL.txt
call fcn.00420efc
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x405065
push ebx
push str.Error
push str.Cant_Find_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00420ceb
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x120]
push eax
push 0x4470bc
push esi
call fcn.00420f0f
lea eax, [esp + 0x12c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405095
sub eax, edx
cmp eax, 1
jae 0x4050bb
push ebx
push str.Error
push str.Cant_Read_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00420ceb
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x120]
mov byte [eax + 0x45b9c0], cl
inc eax
cmp cl, bl
jne 0x4050c0
push esi
call fcn.00420e4f
add esp, 4
mov ecx, dword [esp + 0x524]
pop edi
mov eax, ebp
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405500
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
mov edx, dword [esp + 0x58]
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x54
ret 4
mov al, byte [ecx + 0x41]
test al, al
je 0x405541
mov al, byte [ecx + 0x25]
test al, al
je 0x405536
mov eax, dword [0x45c630]
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x45c630]
mov dword [esp + 4], str.Game.exe_new_updater
jmp 0x402750
mov ecx, dword [0x45c630]
call fcn.00403e10
ret 4

Function at 0x405940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004057d0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00405550
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4059d2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret