joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032845
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10048400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10027a3c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10027a3c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100328bc
cmp word [ecx], dx
je 0x100328bc
mov eax, dword [0x1003f8ac]
push edi
dec eax
push eax
push 0x1003f798
call fcn.100327e4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1003292f
cmp word [eax], dx
je 0x1003292f
mov eax, dword [edi]
test eax, eax
je 0x100328e0
cmp word [eax], dx
je 0x100328e0
lea eax, [ebp - 0x10]
push eax
call fcn.100321c7
jmp 0x100328e9
lea eax, [ebp - 0x10]
push eax
call fcn.10032262
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10032959
mov eax, dword [0x1003f794]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1003f488
call fcn.100327e4
add esp, 0xc
test al, al
je 0x10032959
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10032924
cmp word [eax], di
je 0x10032924
lea eax, [ebp - 0x10]
push eax
call fcn.100321c7
pop ecx
jmp 0x1003295b
lea eax, [ebp - 0x10]
push eax
call fcn.10032262
jmp 0x10032921
mov eax, dword [edi]
test eax, eax
je 0x10032946
cmp word [eax], dx
je 0x10032946
lea eax, [ebp - 0x10]
push eax
call fcn.1003217c
pop ecx
jmp 0x10032959
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10032a24
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10032669
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10032a24
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10032a24
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10032a24
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100329b1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1002b2cf
test ebx, ebx
je 0x10032a1f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1002b2cf
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10032a24
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10032a24
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002b726
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10032a26
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017809
leave
ret
Function at 0x10037390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100373bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100373bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401cd0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x401d40
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
and eax, 0xff
inc eax
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401320
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x403cd7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [0x428ee8]
push str._PZR2Fgyw9I
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, dword [ebp + 8]
mov ecx, eax
or esi, 0xd19f8a47
xor edx, edx
mov eax, 0x7a3cb5a5
div esi
xor edx, edx
and ecx, 0x772d
mov esi, eax
or esi, 0xe8b4c33e
mov eax, 0x7676
div esi
sub ecx, eax
lea eax, [edi + ecx]
pop edi
pop esi
pop ebp
ret

Function at 0x403eeb
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push str.m_w59EMikJ2N4K
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
mov eax, dword [ebp + 0xc]
not ecx
and ecx, dword [ebp + 8]
xor edx, edx
and ecx, 0x10
or ecx, 0x38435ceb
div ecx
pop ebp
ret

Function at 0x403f12
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push str.N_Y_IYTt_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 0xc]
add ecx, 0x7c1b904
and eax, 0x9b1
or ecx, 0x5776dec3
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
sub eax, ecx
sub eax, dword [ebp + 8]
pop ebp
ret

Function at 0x403f92
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x403fc0
mov ecx, dword [ebp - 4]
cmp ecx, 2
jl 0x403fc0
push dword [eax + ecx*4 - 4]
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
leave
ret
xor eax, eax
leave
ret
Function at 0x4049f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov dword [ebp - 0x1a0], ecx
mov ecx, dword [ebp - 0x1a0]
call fcn.00404b00
mov eax, dword [ebp - 0x1a0]
mov dword [eax], vtable.CTcpSocket.0
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x2c
call fcn.00401000
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x3c
call fcn.00401000
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x4c
call fcn.00401000
mov byte [ebp - 4], 2
push str.CTcpSocket::CTcpSocket
push 0x424264
call fcn.00404b60
add esp, 8
lea ecx, [ebp - 0x19c]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 4], eax
push 0
mov eax, dword [ebp - 0x1a0]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x64], 0xffffffff
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x1a0]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x404b70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str.CTcpSocket::Disconnect
push 0x424280
call fcn.00404b60
add esp, 8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x404b96
jmp 0x404c02
mov ecx, 1
mov word [ebp - 4], cx
xor edx, edx
mov word [ebp - 2], dx
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
mov edx, dword [ebp - 8]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x64], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x4053b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
jmp 0x4053ec
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jl 0x40545d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
jmp 0x40540d
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x10]
jge 0x405439
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x405437
jmp 0x405439
jmp 0x405404
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
jne 0x405449
or eax, 0xffffffff
jmp 0x4054c9
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x4053e3
cmp dword [ebp - 0x14], 0
jle 0x4054b7
mov dword [ebp - 0x1c], 0
jmp 0x405475
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x10]
jge 0x4054a1
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x40549f
jmp 0x4054a1
jmp 0x40546c
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x10]
jne 0x4054ae
or eax, 0xffffffff
jmp 0x4054c9
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jne 0x4054c6
mov eax, dword [ebp - 4]
jmp 0x4054c9
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405700
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], 0x598
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x198], 0
jne 0x40572a
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x1b8], edx
jmp 0x405751
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x198]
cmp ecx, dword [ebp - 0x28]
jbe 0x40573f
xor eax, eax
jmp 0x4058b9
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x198]
mov dword [edx + 0x1b8], ecx
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x64], 0
mov ecx, dword [ebp - 0x30]
call fcn.00405960
push 1
push 0
push 5
push 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.00405910
mov dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004058c0
push 0x42d278
call fcn.004018e0
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x48], 0
jne 0x4057b8
push 0x42d278
call fcn.004018e0
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x48], eax
mov dword [ebp - 0x20], 0x40000
push 4
lea edx, [ebp - 0x20]
push edx
push 0x1001
push 0xffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x20], 0x40000
push 4
lea edx, [ebp - 0x20]
push edx
push 0x1002
push 0xffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00405ab0
test eax, eax
je 0x40586c
mov ecx, dword [ebp - 0x30]
add ecx, 0x58
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
push 0x405c80
push 0
push 0
call fcn.00410692
add esp, 0x18
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x54], 0
je 0x405856
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x2c
call fcn.00405940
jmp 0x40586a
push 0x65f
push 0x424558
push 8
mov ecx, dword [ebp - 0x30]
call fcn.00406a80
jmp 0x405882
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CUdpSocket::Start
push 0xb
mov ecx, dword [ebp - 0x30]
call fcn.00406a80
cmp dword [ebp - 0x24], 0
jne 0x4058b6
push 1
push 0
push 5
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.00405910
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
call fcn.004066e0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405f30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x405f71
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2733
jne 0x405f71
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x48]
push eax
push str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.00404b60
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, 1
test eax, eax
je 0x40648e
push 0
push 0x598
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x70]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x40643b
cmp dword [ebp - 4], 0x10
jne 0x4063c8
push 0x10
push 0x424548
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x70]
push eax
call fcn.004107c8
add esp, 0xc
test eax, eax
jne 0x4063c8
push 0
push 0
push 5
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00405910
xor eax, eax
jmp 0x406493
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c0]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1c8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x70]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x1d8
call fcn.00407860
cmp eax, 2
jne 0x406439
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x48]
push eax
push str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.00404b60
add esp, 8
push 1
push 0x4c7
call fcn.00405f10
add esp, 4
push eax
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00405910
xor eax, eax
jmp 0x406493
jmp 0x406489
cmp dword [ebp - 4], 0xffffffff
jne 0x406489
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
jne 0x406457
jmp 0x40648e
cmp dword [ebp - 8], 0x2744
je 0x406469
cmp dword [ebp - 8], 0x2746
jne 0x406470
jmp 0x406359
push 1
mov ecx, dword [ebp - 8]
push ecx
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00405910
xor eax, eax
jmp 0x406493
jmp 0x406359
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4064a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov eax, 1
test eax, eax
je 0x406627
mov ecx, dword [ebp - 0x2c]
call fcn.00406660
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x7c
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407930
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004078f0
movzx edx, al
test edx, edx
je 0x406602
push 0
lea ecx, [ebp - 0x14]
call fcn.00407910
mov ecx, eax
call fcn.00401660
push eax
lea ecx, [ebp - 0x14]
call fcn.00407910
mov ecx, eax
call fcn.00406640
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x406569
mov edx, dword [ebp - 0x2c]
add edx, 0x160
push edx
lea ecx, [ebp - 0x1c]
call fcn.004018f0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x194]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x194], ecx
lea ecx, [ebp - 0x1c]
call fcn.00401940
jmp 0x406600
cmp dword [ebp - 0x18], 0xffffffff
jne 0x406600
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2733
jne 0x4065d0
mov eax, dword [ebp - 0x2c]
add eax, 0x160
push eax
lea ecx, [ebp - 0x24]
call fcn.004018f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004078c0
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x178
call fcn.004074a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407960
jmp 0x406627
push 1
mov ecx, dword [ebp - 0x20]
push ecx
push 3
push 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.00405910
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407960
mov eax, dword [ebp - 0x28]
jmp 0x40662c
jmp 0x406613
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407960
jmp 0x406627
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407960
jmp 0x4064be
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x406d50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
push 0x4246e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
push 0x424704
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push str.CUdpSocket::Connect
push 0x424724
call fcn.00404b60
add esp, 8
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x14], eax
push 0
mov eax, dword [ebp - 0x24]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xa
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
push ecx
call fcn.00410190
add esp, 0xc
push 8
mov edx, dword [ebp - 0x24]
add edx, 0x14
push edx
mov eax, dword [ebp - 0x24]
add eax, 0x20
push eax
call fcn.0040f460
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x28], 0xca
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x29], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x64], 3
je 0x406df6
mov ecx, dword [ebp - 0x24]
call fcn.004066e0
push 0
push 0
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00405700
mov dword [ebp - 0x10], eax
push 0x1770
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
je 0x406e3d
cmp dword [ebp - 0x28], 0x102
je 0x406e7e
cmp dword [ebp - 0x28], 0xffffffff
je 0x406e8e
jmp 0x406e9e
push 1
mov edx, dword [ebp - 0x24]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x24]
push edx
push 0x406eb0
push 0
push 0
call fcn.00410692
add esp, 0x18
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x268], eax
mov al, 1
jmp 0x406ea4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x406ea4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x406ea4
xor al, al
jmp 0x406ea4
mov esp, ebp
pop ebp
ret 8

Function at 0x408610
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408638
mov eax, 0x190
call fcn.00411d20
mov dword [ebp - 0xc], esp
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
movzx eax, byte [ebp + 0x10]
and eax, 0xff
movzx ecx, al
movzx edx, byte [ebp + 0xc]
and edx, 0xff
movzx eax, dl
shl eax, 8
or ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
lea esp, [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4086c0
push 0
push 0
call fcn.00410692
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
call fcn.00404670
mov esp, ebp
pop ebp
ret
Function at 0x409ef0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call fcn.00404b60
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
call fcn.00409310
push 0
push 0
push 0
push 0x4096f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42f3a8], eax
push 0xffffffffffffffff
mov eax, dword [0x42f3a8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x42f3a8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop ebp
ret