joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45519e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp dword [esi + 0x1c0], eax
je 0x455262
push edi
push eax
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432ce0
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
mov ecx, dword [esi + 0x1c0]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebx]
push eax
push ecx
lea edx, [ebp + 8]
push str._nUpdateUIByState:_d___d_n
push edx
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx]
mov dword [esi + 0x1c0], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
xor ecx, ecx
dec edx
xor edi, edi
lea eax, [ecx + 5]
cmp edx, 6
ja case.default.0x455197
jmp dword [edx*4 + 0x455274]
xor edi, edi
mov dword [esi + 0x1b8], ecx
mov ecx, 1
mov dword [esi + 0x19c], ecx
jmp 0x4551e6
mov ecx, 1
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551e0
mov edi, eax
xor eax, eax
jmp 0x4551a0
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551de
mov edi, eax
mov dword [esi + 0x19c], 1
xor eax, eax
mov dword [esi + 0x1b8], ecx
mov dword [esi + 0x1bc], ecx
push eax
lea ecx, [esi + 0x78]
call fcn.00479170
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x455261
mov edx, dword [esi + 0xdc]
push edi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push str._nButton_ShowWindow:_d
push eax
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4551b3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp dword [esi + 0x1c0], eax
je 0x455262
push edi
push eax
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432ce0
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
mov ecx, dword [esi + 0x1c0]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebx]
push eax
push ecx
lea edx, [ebp + 8]
push str._nUpdateUIByState:_d___d_n
push edx
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx]
mov dword [esi + 0x1c0], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
xor ecx, ecx
dec edx
xor edi, edi
lea eax, [ecx + 5]
cmp edx, 6
ja case.default.0x455197
jmp dword [edx*4 + 0x455274]
xor edi, edi
mov dword [esi + 0x1b8], ecx
mov ecx, 1
mov dword [esi + 0x19c], ecx
jmp 0x4551e6
mov ecx, 1
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551e0
mov edi, eax
xor eax, eax
jmp 0x4551a0
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551de
mov edi, eax
mov dword [esi + 0x19c], 1
xor eax, eax
mov dword [esi + 0x1b8], ecx
mov dword [esi + 0x1bc], ecx
push eax
lea ecx, [esi + 0x78]
call fcn.00479170
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x455261
mov edx, dword [esi + 0xdc]
push edi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push str._nButton_ShowWindow:_d
push eax
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4551c2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp dword [esi + 0x1c0], eax
je 0x455262
push edi
push eax
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432ce0
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
mov ecx, dword [esi + 0x1c0]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebx]
push eax
push ecx
lea edx, [ebp + 8]
push str._nUpdateUIByState:_d___d_n
push edx
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx]
mov dword [esi + 0x1c0], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
xor ecx, ecx
dec edx
xor edi, edi
lea eax, [ecx + 5]
cmp edx, 6
ja case.default.0x455197
jmp dword [edx*4 + 0x455274]
xor edi, edi
mov dword [esi + 0x1b8], ecx
mov ecx, 1
mov dword [esi + 0x19c], ecx
jmp 0x4551e6
mov ecx, 1
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551e0
mov edi, eax
xor eax, eax
jmp 0x4551a0
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551de
mov edi, eax
mov dword [esi + 0x19c], 1
xor eax, eax
mov dword [esi + 0x1b8], ecx
mov dword [esi + 0x1bc], ecx
push eax
lea ecx, [esi + 0x78]
call fcn.00479170
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x455261
mov edx, dword [esi + 0xdc]
push edi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push str._nButton_ShowWindow:_d
push eax
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4551c8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp dword [esi + 0x1c0], eax
je 0x455262
push edi
push eax
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432ce0
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
mov ecx, dword [esi + 0x1c0]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebx]
push eax
push ecx
lea edx, [ebp + 8]
push str._nUpdateUIByState:_d___d_n
push edx
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx]
mov dword [esi + 0x1c0], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
xor ecx, ecx
dec edx
xor edi, edi
lea eax, [ecx + 5]
cmp edx, 6
ja case.default.0x455197
jmp dword [edx*4 + 0x455274]
xor edi, edi
mov dword [esi + 0x1b8], ecx
mov ecx, 1
mov dword [esi + 0x19c], ecx
jmp 0x4551e6
mov ecx, 1
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551e0
mov edi, eax
xor eax, eax
jmp 0x4551a0
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551de
mov edi, eax
mov dword [esi + 0x19c], 1
xor eax, eax
mov dword [esi + 0x1b8], ecx
mov dword [esi + 0x1bc], ecx
push eax
lea ecx, [esi + 0x78]
call fcn.00479170
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x455261
mov edx, dword [esi + 0xdc]
push edi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push str._nButton_ShowWindow:_d
push eax
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4551d2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp dword [esi + 0x1c0], eax
je 0x455262
push edi
push eax
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432ce0
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
mov ecx, dword [esi + 0x1c0]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebx]
push eax
push ecx
lea edx, [ebp + 8]
push str._nUpdateUIByState:_d___d_n
push edx
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx]
mov dword [esi + 0x1c0], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
xor ecx, ecx
dec edx
xor edi, edi
lea eax, [ecx + 5]
cmp edx, 6
ja case.default.0x455197
jmp dword [edx*4 + 0x455274]
xor edi, edi
mov dword [esi + 0x1b8], ecx
mov ecx, 1
mov dword [esi + 0x19c], ecx
jmp 0x4551e6
mov ecx, 1
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551e0
mov edi, eax
xor eax, eax
jmp 0x4551a0
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551de
mov edi, eax
mov dword [esi + 0x19c], 1
xor eax, eax
mov dword [esi + 0x1b8], ecx
mov dword [esi + 0x1bc], ecx
push eax
lea ecx, [esi + 0x78]
call fcn.00479170
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x455261
mov edx, dword [esi + 0xdc]
push edi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push str._nButton_ShowWindow:_d
push eax
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4563a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
movzx edi, ax
shr eax, 0x10
mov ebx, eax
push ebx
mov esi, ecx
push edi
lea eax, [esi + 0x188]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4563e7
push 5
push 0
push 0
push str.http:__go.5211game.com__id3000
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
push ebx
push edi
lea ecx, [esi + 0x1a4]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x45644c
cmp dword [esi + 0x1b8], 0
je 0x45644c
mov ecx, esi
call fcn.00455420
test eax, eax
je 0x45644c
mov edx, dword [esi + 0xdc]
push edx
mov dword [esi + 0x1b8], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x456438
mov eax, dword [esi + 0xdc]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [esi + 0x78]
call fcn.00479170
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x45e370
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call fcn.0045f340
cmp dword [eax + 0x10ac], 0
jne 0x45e3b0
push ebx
mov ebx, dword [ebp + 8]
call esi
sub eax, edi
cmp eax, ebx
jge 0x45e3af
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0045f340
cmp dword [eax + 0x10ac], 0
je 0x45e391
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x460660
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x460684
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [esi + 4]
push 4
lea ecx, [ebp - 4]
push ecx
push 0x80
push 0xffff
push edx
mov dword [ebp - 4], 0x3c0001
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x460793
mov ecx, dword [ebp + 8]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebx + 4]
lea edx, [esi + ecx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x46078d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x460793
jmp 0x46078f
add esi, eax
cmp esi, edi
jl 0x460761
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x460e40
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x114], eax
lea esp, [esp]
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x460ed0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x110]
push ecx
push ebx
lea edx, [ebp - 0x108]
push edx
push ebx
mov dword [ebp - 0x10c], ebx
push ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], 0x2710
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], 1
call edi
cmp eax, 0xffffffff
je 0x460efb
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x108]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x460f10
mov eax, dword [esi + 8]
cmp eax, 2
je 0x460f17
cmp eax, ebx
je 0x460efb
cmp eax, 1
jne 0x460efb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 8]
sub eax, dword [ebp - 0x114]
imul edx, edx, 0x3e8
cmp eax, edx
jb 0x460e70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 8], 2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
Function at 0x460f30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
test ax, ax
jne 0x460f4e
mov dword [ebp + 0x10], 1
jmp 0x460f5b
cmp ax, 5
jb 0x460f5b
mov dword [ebp + 0x10], 5
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
lea edi, [esi + 0x10]
cmp dword [esi + 4], 0xffffffff
jne 0x460fb5
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x460fb5
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [esi + 4]
push 4
lea ecx, [ebp - 4]
push ecx
push 0x80
push 0xffff
push edx
mov dword [ebp - 4], 0x3c0001
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, 2
push edx
mov word [edi], ax
mov dword [esi + 0x14], ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [esi + 0x12], ax
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x460ff9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x46101c
mov dword [esi + 8], 1
jmp 0x461000
mov dword [esi + 8], 2
movzx ecx, word [ebp + 0x14]
push ecx
mov ecx, esi
call fcn.00460e40
mov ebx, eax
mov eax, dword [ebp + 0x18]
xor edx, edx
test ebx, ebx
sete dl
mov dword [eax], edx
jmp 0x461027
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp + 0x10], 0xffff
test ebx, ebx
jne 0x46103c
cmp word [ebp + 0x10], bx
ja 0x460f63
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x461050
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x114], eax
xor edi, edi
cmp dword [esi + 8], 2
jne 0x4610d4
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x110]
push ecx
push edi
push edi
lea edx, [ebp - 0x108]
push edx
mov dword [ebp - 0x10c], edi
push edi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x10c], 0x2710
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4610d4
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x108]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x461101
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 8]
sub eax, dword [ebp - 0x114]
imul edx, edx, 0x3e8
cmp eax, edx
jb 0x461075
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0xc], 1
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
Function at 0x461120
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push esi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ecx + 4]
push eax
push ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jg 0x461156
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
cmp eax, 4
jb 0x46114d
mov ecx, dword [ebp - 4]
push ebx
mov esi, ecx
mov dword [ebp - 0xc], ecx
push edi
inc ecx
push ecx
mov edi, eax
sub esi, eax
call fcn.0047c0b3
mov ebx, dword [ebp + 8]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x4611da
mov edx, dword [ebp - 4]
mov dword [eax], edx
test esi, esi
jle 0x4611b7
mov eax, dword [ebx]
push 0
add eax, edi
push esi
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4611ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4611cf
xor eax, eax
sub esi, eax
add edi, eax
test esi, esi
jg 0x461185
test esi, esi
jne 0x4611e5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword [eax], ecx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebx]
push edx
call fcn.005001ec
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x469ee0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
call fcn.00401000
mov esi, eax
test esi, esi
je 0x469fbc
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
mov dword [ebp - 4], eax
call fcn.0045f340
mov eax, dword [eax + 0x1064]
push eax
lea ecx, [ebp - 4]
push str._slog_
push ecx
call fcn.00428a30
add esp, 0xc
push 0x556338
push 0x53d38c
lea ecx, [ebp - 4]
call fcn.00423850
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x469f51
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esi]
mov eax, dword [edi - 0xc]
mov edx, dword [edx + 0x50]
push ebx
push edi
push eax
mov ecx, esi
call edx
mov ebx, dword [esi]
push 0x848
call fcn.0045f340
add eax, 0x14
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.127.0.0.1
call fcn.0045f340
movzx ecx, word [eax + 0x1028]
mov edx, dword [ebx]
push ecx
mov ecx, esi
call edx
mov esi, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop ebx
test edx, edx
jg 0x469fb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4