joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ce0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x66c
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0x668], eax
mov eax, dword [esp + 0x670]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x175]
mov edi, edx
push ebx
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov byte [esp + 0x17c], bl
call fcn.00436760
push 0x103
lea edx, [esp + 0x7d]
push ebx
push edx
mov byte [esp + 0x84], bl
call fcn.00436760
add esp, 0x18
push 0x104
lea eax, [esp + 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x6c]
push 0x5c
push ecx
call fcn.00433420
add esp, 8
cmp eax, ebx
jne 0x406d77
lea edx, [esp + 0x6c]
push 0x2f
push edx
call fcn.00433420
add esp, 8
mov byte [eax], bl
push str.Time.Dat
lea eax, [esp + 0x70]
push eax
push 0x456658
lea ecx, [esp + 0x17c]
push 0x104
mov dword [esi], ebx
push ecx
mov dword [edi], ebx
call fcn.00432ab6
add esp, 0x14
lea edx, [esp + 0x170]
push edx
push 0x200
lea eax, [esp + 0x27c]
push eax
push str.NULL
push str.TestDemo
push str.HookGame
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x274]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406dd5
sub eax, edx
je 0x406f59
mov edi, str.NULL
lea esi, [esp + 0x274]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x406f59
lea eax, [esp + 0x274]
lea ebx, [esp + 0x1c]
call fcn.00405d50
cmp eax, 5
jge 0x406e33
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0043197e
add esp, 0x66c
ret
mov eax, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x24]
push ebp
push eax
lea ecx, [esp + 0x480]
push str._s_s
push ecx
call fcn.00432a00
mov edx, dword [esp + 0x38]
push edx
call fcn.00432fde
mov esi, eax
lea eax, [esp + 0x48c]
push eax
call fcn.0040b180
add esp, 0x18
cmp eax, esi
je 0x406e8e
mov eax, 0xfffffffd
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0043197e
add esp, 0x66c
ret
push 0
call fcn.004329c4
mov ebx, dword [esp + 0x30]
push ebx
mov edi, eax
mov esi, edx
call fcn.00432fde
cdq
add esp, 8
cmp esi, edx
jl 0x406f4f
jg 0x406eb9
cmp edi, eax
jb 0x406f4f
push 0
call fcn.004329c4
push ebx
mov esi, eax
mov edi, edx
call fcn.00432fde
cdq
add esp, 8
sub esi, eax
sbb edi, edx
test edi, edi
jg 0x406f4f
jl 0x406ee0
cmp esi, 0x12c
ja 0x406f4f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
push ecx
push ebx
push edx
push ebp
push esi
lea eax, [esp + 0x48c]
push str._s_s_s_s_s
push eax
call fcn.00432a00
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00432fde
lea edx, [esp + 0x498]
push edx
mov edi, eax
call fcn.0040b180
add esp, 0x24
cmp eax, edi
je 0x406f2d
mov eax, 0xfffffffa
jmp 0x406e75
push esi
call fcn.00432fde
mov ecx, dword [esp + 0x14]
push ebp
mov dword [ecx], eax
call fcn.00432fde
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [edx], eax
xor eax, eax
jmp 0x406e75
mov eax, 0xfffffffc
jmp 0x406e75
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0043197e
add esp, 0x66c
ret
Function at 0x407e90
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0c
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0xa08], eax
push ebx
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x110]
mov dword [esp + 0x10], edi
call fcn.00406620
lea eax, [esp + 0x110]
push eax
push 0x400
lea ecx, [esp + 0x318]
push ecx
push str.NULL
mov ecx, str.LnkCount
mov edx, str.LocalConfig
call fcn.0040dfe0
lea edx, [esp + 0x310]
push edx
call fcn.00432fde
add esp, 4
cmp eax, 0x400
mov dword [esp + 0x14], eax
jle 0x4080d0
mov dword [esp + 0x14], 0x400
cmp dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
jle 0x4080b7
push edi
lea eax, [esp + 0x74]
push str.LnkNo_d
push eax
call fcn.00432a00
add esp, 0xc
lea ecx, [esp + 0x110]
push ecx
push 0x400
lea edx, [esp + 0x318]
push edx
push str.NULL
lea ecx, [esp + 0x80]
mov edx, str.LocalConfig
call fcn.0040dfe0
lea eax, [esp + 0x310]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407f65
sub eax, edx
cmp eax, 0xa
jbe 0x4080a6
lea eax, [esp + 0x310]
lea ebx, [esp + 0x20]
call fcn.00405d50
cmp eax, 4
jne 0x4080a6
mov esi, dword [esp + 0x28]
push 0
push esi
call fcn.00432bea
add esp, 8
cmp eax, 0xffffffff
jne 0x4080a6
mov eax, dword [esp + 0x20]
push 0
push eax
call fcn.00432bea
add esp, 8
cmp eax, 0xffffffff
je 0x4080a6
mov ebx, dword [esp + 0x24]
push 0
push ebx
call fcn.00432bea
add esp, 8
cmp eax, 0xffffffff
je 0x4080a6
add dword [esp + 0x10], 1
push 0x104
lea ecx, [esp + 0x814]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push esi
lea edx, [esp + 0x818]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4080f2
push 0x5c
push ebx
call fcn.00432fa0
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40810a
mov eax, dword [esp + 0x20]
push eax
lea ebx, [esp + 0x94]
lea edi, [esp + 0x714]
call fcn.00407d60
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
add esp, 4
push ebx
add edi, 1
call fcn.00432fde
add esp, 4
push eax
lea ecx, [esp + 0x94]
push ecx
push esi
mov ecx, edi
call fcn.00405e10
add esp, 0xc
test eax, eax
je 0x408094
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call fcn.00432fde
add esp, 4
push eax
lea edx, [esp + 0x94]
push edx
push esi
mov ecx, edi
call fcn.00405e10
add esp, 0xc
mov eax, dword [esp + 0x24]
push eax
push esi
call fcn.00408760
mov edi, dword [esp + 0x20]
add esp, 8
add edi, 1
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x18], edi
jl 0x407f1d
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa08]
xor ecx, esp
call fcn.0043197e
mov esp, ebp
pop ebp
ret
cmp eax, edi
jg 0x407f0f
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa08]
xor ecx, esp
call fcn.0043197e
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa08]
xor ecx, esp
call fcn.0043197e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xa14]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0xfffffffe
call fcn.0043197e
mov esp, ebp
pop ebp
ret
Function at 0x4099a0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x224
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x101
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x80
lea ecx, [esp + 0x1a4]
push ecx
xor edi, edi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x409a8c
lea edx, [esp + 0x1a0]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x409a8c
movsx edi, word [eax + 0xa]
shr edi, 2
cmp edi, 0x32
jle 0x409a0c
mov edi, 0x32
xor ecx, ecx
test edi, edi
jle 0x409a24
mov edx, dword [eax + 0xc]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx]
mov dword [esi + ecx*4], edx
add ecx, 1
cmp ecx, edi
jl 0x409a12
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
push esi
push str._nmy_ip_s_n_n
call fcn.004339cc
mov eax, esi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409a47
sub eax, edx
je 0x409a8c
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409a60
sub eax, edx
cmp eax, 0x40
jae 0x409a8c
mov edx, 0x46a760
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x409a80
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0043197e
add esp, 0x224
ret

Function at 0x409ab0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push esi
mov esi, dword [eax]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0043197e
add esp, 0x10c
ret
Function at 0x409b20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 3
push 0
push 0
push ebx
push str.open
push 0
call esi
cmp eax, 0x20
ja 0x409ca1
push 3
push 0
push ebx
push str.iexplore
push str.open
push 0
call esi
cmp eax, 0x20
ja 0x409ca1
push ebp
push 3
push 0
push ebx
push str.explorer
push str.open
push 0
call esi
mov ebp, eax
cmp ebp, 0x20
mov dword [esp + 0xc], ebp
ja 0x409ca0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str..htm
push SysReAllocStringLen
call esi
test eax, eax
jne 0x409c9d
lea ecx, [esp + 0xc]
push ecx
lea edi, [esp + 0x18]
call fcn.00409ab0
add esp, 4
test eax, eax
jne 0x409c9d
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
mov edx, edi
push edx
call ebp
lea eax, [esp + 0xc]
push eax
push 1
push 0
mov ecx, edi
push ecx
push SysReAllocStringLen
call esi
test eax, eax
jne 0x409c81
lea edx, [esp + 0xc]
push edx
call fcn.00409ab0
add esp, 4
test eax, eax
jne 0x409c81
mov eax, edi
push str.__1_
push eax
call fcn.00434404
mov esi, eax
add esp, 8
test esi, esi
jne 0x409c47
mov ecx, edi
push 0x457a48
push ecx
call fcn.00434404
mov esi, eax
add esp, 8
test esi, esi
jne 0x409c47
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409c4a
mov byte [esi], 0
push 0x4564dc
push esi
call ebp
push ebx
push esi
call ebp
call dword [0x46491c]
push 3
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0043197e
add esp, 0x214
ret
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0043197e
add esp, 0x214
ret
mov eax, ebp
pop edi
pop ebp
mov ecx, dword [esp + 0x214]
pop esi
xor ecx, esp
call fcn.0043197e
add esp, 0x214
ret
Function at 0x40b3d0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0x10], eax
test edi, edi
jne 0x40b3f3
xor eax, eax
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043197e
add esp, 0x14
ret
cmp dword [esi + 0xa58], 0
je 0x40b426
mov eax, dword [esi + 0xa5c]
test eax, eax
je 0x40b412
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x40b426
mov dword [esi + 0xa5c], 0
mov dword [esi + 0xa58], 0
push edi
mov dword [esi + 0x954], 0x50
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esi + 0xa60], eax
je 0x40b3e2
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
xor eax, eax
push ebx
mov ebx, dword [ecx]
mov dword [esp + 4], eax
push 0x50
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
mov edx, ebx
shr edx, 0x18
push edx
mov eax, ebx
shr eax, 0x10
movzx ecx, al
push ecx
mov edx, ebx
shr edx, 8
movzx eax, dl
push eax
movzx ecx, bl
push ecx
lea edx, [esi + 0x958]
push str._d._d._d._d
push edx
mov dword [esp + 0x20], ebx
call fcn.00432a00
mov ecx, dword [esi + 0xa5c]
add esp, 0x18
push 0x10
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
pop ebx
jne 0x40b3e2
mov ecx, dword [esp + 0x10]
mov eax, 1
xor ecx, esp
mov dword [esi + 0xa58], eax
call fcn.0043197e
add esp, 0x14
ret

Function at 0x40b790
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
cmp dword [esi + 0xa68], 0
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
jne 0x40b815
push ebx
push edi
mov byte [esp + 0xf], 0
xor edi, edi
mov bl, 0xa
lea esp, [esp]
cmp edi, 0x400
jge 0x40b803
mov ecx, dword [esi + 0xa5c]
push 0
push 1
lea eax, [esp + 0x17]
push eax
push ecx
call ebp
mov dl, byte [esp + 0xf]
mov byte [edi + esi + 0x554], dl
add edi, 1
cmp edi, 4
jl 0x40b7b0
cmp byte [edi + esi + 0x550], 0xd
jne 0x40b7b0
cmp byte [edi + esi + 0x551], bl
jne 0x40b7b0
cmp byte [edi + esi + 0x552], 0xd
jne 0x40b7b0
cmp byte [edi + esi + 0x553], bl
jne 0x40b7b0
mov dword [esi + 0xa6c], edi
pop edi
mov dword [esi + 0xa68], 1
pop ebx
cmp dword [esi + 0xa68], 0
mov eax, dword [esi + 0xa6c]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
je 0x40b870
mov dl, byte [esi + 0x55d]
mov al, byte [esi + 0x55e]
mov cl, byte [esi + 0x55f]
mov byte [esp + 0xc], dl
lea edx, [esp + 0xc]
push edx
mov byte [esp + 0x11], al
mov byte [esp + 0x12], cl
call fcn.00432fde
add esp, 4
cmp eax, 0xc8
jne 0x40b870
mov ecx, dword [esi + 0xa5c]
push 0
push 0x100
lea eax, [esi + 0x54]
push eax
push ecx
call ebp
lea eax, [esi + 0x554]
pop ebp
pop ecx
ret 4
Function at 0x40b930
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0x1a8], eax
push esi
lea eax, [esp + 0x18]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40ba0d
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ba0d
mov eax, edi
call fcn.00405d10
push str.www.
push edi
call fcn.00432f10
add esp, 8
test eax, eax
jne 0x40b9a7
push str.http
push edi
call fcn.00432f10
add esp, 8
test eax, eax
jne 0x40b9a7
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x40b9b9
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40ba06
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push 0x50
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push esi
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
push esi
je 0x40ba07
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.0043197e
add esp, 0x1b0
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1ac]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0043197e
add esp, 0x1b0
ret
Function at 0x40dfe0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3410
call fcn.004368e0
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0x340c], eax
mov eax, dword [esp + 0x3418]
push ebx
mov ebx, dword [esp + 0x3418]
push ebp
mov ebp, dword [esp + 0x3428]
push esi
mov esi, edx
mov dword [esp + 0xc], eax
mov eax, esi
push edi
mov edi, ecx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e020
sub eax, edx
je 0x40e202
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e036
sub eax, edx
je 0x40e202
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e050
sub eax, edx
je 0x40e202
lea edx, [esp + 0x18]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40e070
lea eax, [esp + 0x18]
call fcn.00405d10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e088
push 0
push 0x400
lea ecx, [esp + 0x420]
sub eax, edx
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0040d730
test eax, eax
jg 0x40e0bb
mov eax, 0xffffff9a
jmp 0x40e207
lea edx, [esp + 0x18]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40e0c3
lea eax, [esp + 0x18]
call fcn.00405d10
lea edx, [eax + 1]
jmp 0x40e0e0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e0e0
push 0
push 0x400
lea ecx, [esp + 0x820]
sub eax, edx
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0040d730
test eax, eax
jg 0x40e113
mov eax, 0xffffff99
jmp 0x40e207
push ebp
push 0x2801
lea eax, [esp + 0xc20]
push eax
push ebx
lea ecx, [esp + 0x828]
push ecx
lea edx, [esp + 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0xc18]
mov ecx, ebx
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x40e161
test bl, bl
je 0x40e15d
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x40e161
add ecx, 2
add edx, 2
test bl, bl
jne 0x40e141
xor ecx, ecx
jmp 0x40e166
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x40e1e5
test eax, eax
jbe 0x40e1e5
lea eax, [esp + 0xc18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e178
sub eax, edx
lea ecx, [esp + 0xc18]
push ecx
mov edx, eax
call fcn.0040daf0
mov edi, dword [esp + 0x342c]
mov esi, eax
cmp esi, edi
push edi
push 0
jb 0x40e1c5
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00436760
lea esi, [edi - 1]
push esi
lea edx, [esp + 0xc28]
push edx
push ebx
call fcn.0043bae0
add esp, 0x18
mov eax, esi
jmp 0x40e207
mov edi, dword [esp + 0x18]
push edi
call fcn.00436760
push esi
lea eax, [esp + 0xc28]
push eax
push edi
call fcn.0043bae0
add esp, 0x18
mov eax, esi
jmp 0x40e207
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0xc18]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x40e1f4
jmp 0x40e207
mov eax, 0xffffff9b
mov ecx, dword [esp + 0x341c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043197e
add esp, 0x3410
ret 0x10
Function at 0x40e520
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_select]
push edi
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
lea edi, [esi + 1]
mov ebx, 1
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], 6
mov dword [esp + 0x28], 0
call ebp
test eax, eax
jg 0x40e59f
jne 0x40e5ba
cmp ebx, 0x32
jge 0x40e5ab
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x20]
push eax
push 0
push edi
add ebx, 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], 6
mov dword [esp + 0x28], 0
call ebp
test eax, eax
jle 0x40e564
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x118
ret
mov eax, 1
pop edi
pop ebp
pop ebx
add esp, 0x118
ret
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x118
ret

Function at 0x40e5d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_select]
push edi
lea eax, [esp + 0x10]
push eax
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edi, [esi + 1]
mov ebx, 1
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], 6
mov dword [esp + 0x28], 0
call ebp
test eax, eax
jg 0x40e64f
jne 0x40e66a
cmp ebx, 0x32
jge 0x40e65b
lea edx, [esp + 0x10]
push edx
push 0
push 0
lea eax, [esp + 0x24]
push eax
push edi
add ebx, 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], 6
mov dword [esp + 0x28], 0
call ebp
test eax, eax
jle 0x40e614
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x118
ret
mov eax, 1
pop edi
pop ebp
pop ebx
add esp, 0x118
ret
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x118
ret

Function at 0x40e970
Capabilities:
Create thread

Disassembly:
mov edx, 0x46a2d8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40e977
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
push esi
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push esi
push edx
push 0x40e680
push esi
push esi
mov dword [0x46a2d0], eax
mov dword [0x46a2cc], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
je 0x40e9dd
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e9c0
push 0x64
call edi
cmp dword [0x46a2cc], 1
je 0x40e9d5
add esi, 1
cmp esi, 0x64
jl 0x40e9c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40e9f0
Capabilities:
Create thread

Disassembly:
sub esp, 0x50c
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0x508], eax
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x314]
call fcn.004069b0
lea eax, [esp + 0x314]
push eax
push 0x200
lea ecx, [esp + 0x11c]
push ecx
push str.NULL
mov ecx, 0x456924
mov edx, str.StatServer
call fcn.0040dfe0
mov edi, str.NULL
lea esi, [esp + 0x114]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40ea84
lea eax, [esp + 0x114]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ea60
sub eax, edx
je 0x40ea84
xor eax, eax
nop
mov cl, byte [esp + eax + 0x114]
mov byte [esp + eax + 0x14], cl
add eax, 1
test cl, cl
jne 0x40ea70
jmp 0x40eabe
mov eax, dword [str.LinuxStat.gamedia.cn]
mov ecx, dword [0x45692c]
mov edx, dword [0x456930]
mov dword [esp + 0x14], eax
mov eax, dword [0x456934]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x456938]
mov dword [esp + 0x1c], edx
mov dl, byte [0x45693c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x28], dl
lea eax, [esp + 0x314]
push eax
push 0x200
lea ecx, [esp + 0x11c]
push ecx
push str.NULL
mov ecx, str.PORT
mov edx, str.StatServer
call fcn.0040dfe0
mov edi, str.NULL
lea esi, [esp + 0x114]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40eb27
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40eb08
sub eax, edx
je 0x40eb27
lea eax, [esp + 0x114]
push eax
call fcn.00432fde
add esp, 4
jmp 0x40eb2c
mov eax, 0x50
xor esi, esi
xor ecx, ecx
mov dl, byte [esp + ecx + 0x14]
mov byte [ecx + 0x46a2d8], dl
add ecx, 1
test dl, dl
jne 0x40eb30
lea ecx, [esp + 0x10]
push ecx
push esi
push ebx
push 0x40e680
push esi
push esi
mov dword [0x46a2d0], eax
mov dword [0x46a2cc], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
je 0x40eb8c
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0x64
call edi
cmp dword [0x46a2cc], 1
je 0x40eb85
add esi, 1
cmp esi, 0x64
jl 0x40eb70
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x514]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043197e
add esp, 0x50c
ret
Function at 0x40f830
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44e9f2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x463610]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x4584e4
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.004109e0
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.004114d0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x46b444]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov ebx, esi
mov byte [esp + 0x24], 2
call fcn.00410dd0
test eax, eax
jne 0x40f935
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x40f923
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x40f935
push 0
call fcn.00413e00
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8