joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e134
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x41e151
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41e15f
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x41e281
test ebx, ebx
jl 0x41e281
test esi, esi
jle 0x41e281
mov eax, dword [ebp - 8]
call fcn.004083d0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004083d0
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x41e21e
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x41e281
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x41e203
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x41e1d2
inc dword [ebp - 0x14]
jmp 0x41e1e2
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x41e1e2
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x41e1ed
or eax, 0xffffffff
jmp 0x41e203
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x41e200
inc eax
jmp 0x41e203
or eax, 0xffffffff
test eax, eax
jl 0x41e20b
cmp esi, eax
jg 0x41e1c0
cmp esi, eax
jg 0x41e216
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x41e284
inc edx
dec dword [ebp - 0x1c]
jne 0x41e1bc
jmp 0x41e281
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x41e281
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x41e268
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x41e247
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x41e252
or eax, 0xffffffff
jmp 0x41e268
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x41e265
inc eax
jmp 0x41e268
or eax, 0xffffffff
test eax, eax
jl 0x41e270
cmp esi, eax
jg 0x41e230
cmp esi, eax
jg 0x41e27b
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x41e284
inc edx
dec dword [ebp - 0x1c]
jne 0x41e22c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4012e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x404ac0
push 0x104
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [edi], 0
jne 0x401309
mov edi, esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push edi
call fcn.00401365
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add esp, 0x14
lea eax, [eax + ecx*4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x401361
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push edi
call fcn.00401365
mov eax, dword [ebp - 4]
add esp, 0x14
dec eax
mov dword [0x404bd8], esi
push 1
mov dword [0x404bd4], eax
pop eax
pop edi
pop esi
leave
ret

Function at 0x401539
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
push str.CONIN_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4015dc
lea eax, [ebp - 8]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push edi
push esi
call ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
test eax, eax
je 0x4015ce
cmp dword [ebp - 4], edi
je 0x4015ce
cmp word [ebp - 0x1c], 1
jne 0x401577
cmp dword [ebp - 0x18], edi
je 0x401577
movzx eax, word [ebp - 0x12]
cmp eax, 0x11
jl 0x4015ce
cmp eax, 0x12
jle 0x401577
cmp eax, 0x43
je 0x4015b5
cmp eax, 0x63
jne 0x4015ce
mov eax, dword [ebp - 0xc]
and eax, 0x1f
test al, 0xc
je 0x4015ce
test eax, 0xfffffff3
jne 0x4015ce
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp - 8]
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x401a9f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov edx, dword [ecx + 0x38]
mov dword [ebp - 8], ecx
test edx, edx
mov dword [ebp - 4], edx
jne 0x401bff
cmp dword [ecx + 0x3c], edx
jne 0x401bff
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
push ebx
lea eax, [ebp - 4]
neg esi
mov ebx, 0x401200
push eax
sbb esi, esi
push ebx
push 1
and si, 0xf7cb
push edx
push 0x401210
add esi, 0x835
call edi
test eax, eax
je 0x401b4a
lea eax, [ebp - 0x40]
push 0x27
push eax
push str.JVIEW_PROFILER_CLSID
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401b4a
xor ecx, ecx
lea eax, [ebp - 0xdc]
movsx dx, byte [ebp + ecx - 0x40]
mov word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, 0x27
jb 0x401b12
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x401b4a
lea eax, [ebp - 4]
push eax
push ebx
xor ebx, ebx
push 1
lea eax, [ebp - 0x18]
push ebx
push eax
call edi
jmp 0x401b4c
xor ebx, ebx
cmp dword [ebp - 4], ebx
jne 0x401b91
lea eax, [ebp - 0x144]
push 0x104
push eax
push str.JVIEW_PROFILER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401b7b
lea eax, [ebp - 0x144]
push eax
call fcn.00401a16
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x401b91
push str.JVIEWPRF.DLL
call fcn.00401a16
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401be1
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
je 0x401ba7
mov dword [eax], 0x401230
jmp 0x401ba9
xor eax, eax
cmp eax, ebx
je 0x401bdc
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0xc]
test eax, eax
jge 0x401bdc
mov esi, dword [0x404bcc]
mov eax, dword [ebp - 4]
neg esi
mov ecx, dword [eax]
push eax
sbb esi, esi
and si, 0xf7cc
add esi, 0x834
call dword [ecx + 8]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jne 0x401bec
cmp esi, ebx
je 0x401bec
push esi
call fcn.00401694
pop ecx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop ebx
pop esi
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], 1
pop edi
mov eax, edx
leave
ret 4
Function at 0x40292a
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 0x10]
lea ebx, [ebp - 0x108]
not ecx
dec ecx
mov esi, 0x100
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
lea edi, [ecx + edx + 1]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, esi
jae 0x40297b
lea ecx, [edi + eax]
cmp ecx, esi
jbe 0x402994
lea esi, [edi + eax]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x402965
mov eax, 0x8007000e
jmp 0x4029f9
test eax, eax
jne 0x40299b
and dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov edx, ecx
lea edi, [eax + ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 0x10]
inc ecx
lea edi, [edx + eax]
mov eax, ecx
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
lea eax, [ebp - 0x108]
cmp ebx, eax
je 0x4029e9
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x402e73
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 1
pop esi
push 0x4c
push 0x40
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x402e9e
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.00401926
mov edi, eax
jmp 0x402ea0
xor edi, edi
test edi, edi
jne 0x402eb0
push esi
call fcn.00401694
pop ecx
jmp 0x402f40
mov ecx, edi
call fcn.00402785
test eax, eax
je 0x402f32
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
lea eax, [ebp + 8]
push eax
push 0
push edi
push 0x402a00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x402f15
call fcn.0040278a
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402f0c
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402f32
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x402f28
call esi
or eax, 0x80070000
push 0x12
push eax
call fcn.00401756
pop ecx
pop ecx
mov ecx, edi
call fcn.00401968
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40c830
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4d1088]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.00477000
mov esi, dword [esi]
cmp esi, 0xffffffff
jne 0x40c86a
call fcn.00477000
mov dword [esp + 0xc], 0x2719
mov dword [esp + 0x10], eax
jmp 0x40c8ba
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push edi
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.00477000
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
test edi, edi
jne 0x40c8b6
call fcn.00477000
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x40c8a3
mov edx, str.set_option
lea ecx, [esp + 0xc]
call fcn.0041c4c0
int3

Function at 0x412a00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x53bb5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x412a18
mov edx, dword [eax + 4]
jmp 0x412a1a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x412a39
test edx, edx
je 0x412a39
cmp dword [edx], 0
jne 0x412a39
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.0047a528
add esp, 4
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x412aa4
mov ecx, dword [edi + 4]
push 0
push ebx
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x412acc
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x18
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x412b28
cmp eax, 0x3e5
je 0x412b28
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.004136a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x18
Function at 0x412b50
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4d1088]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412b95
xorps xmm0, xmm0
movq qword [esp + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.00477000
mov dword [esp + 0x10], eax
test esi, esi
jne 0x412ba8
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret
mov edx, 0x4bdf68
lea ecx, [esp + 0xc]
call fcn.0041c4c0
int3

Function at 0x412bc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x53bb5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x412c02
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x412c02
mov eax, dword [ecx]
test eax, eax
je 0x412c02
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x412bf9
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
push eax
call fcn.0047a528
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.0047a4e7
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x412c23
movzx eax, bl
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
xor eax, eax
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x413060
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4d1088]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp dword [ebx], 0x40
mov edi, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x4130a1
call fcn.00477000
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [ebx], 0x2745
cmp dword [ebx], 0
jne 0x413191
test eax, eax
je 0x41311f
test esi, esi
je 0x41311f
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push edi
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov edi, dword [esp + 0x20]
cmp edi, dword [esi]
jbe 0x41310c
call fcn.00477000
mov dword [ebx], 0x2726
mov dword [ebx + 4], eax
jmp 0x41311f
push edi
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.0047daa0
add esp, 0xc
mov dword [esi], edi
mov esi, dword [ebp + 0x14]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
cmp esi, 0xffffffff
jne 0x41314f
call fcn.00477000
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x2c]
push eax
push 0x700b
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.00477000
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x413191
call fcn.00477000
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret
Function at 0x413250
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi]
push 0
cmp eax, 0xffffffff
jne 0x4132ae
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push dword [ebp + 0x18]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push dword [ebp - 0xc]
push 0
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x41330f
cmp eax, 0x3e5
je 0x41330f
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [edi + 4]
push ebx
call fcn.004136a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi]
push 0
cmp eax, 0xffffffff
jne 0x413394
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
push dword [ebp - 0x14]
mov dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push eax
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x4133fe
cmp eax, 0x3e5
je 0x4133fe
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [edi + 4]
push ebx
call fcn.004136a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x413420
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 0x1c]
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x413474
mov ecx, dword [esi + 4]
push 0
push edi
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
jne 0x41349c
mov ecx, dword [esi + 4]
push 0x2719
push edi
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x4134d3
mov eax, 0x2746
jmp 0x4134e0
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x41350b
cmp eax, 0x3e5
je 0x41350b
push dword [ebp - 8]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.004136a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x18

Function at 0x416200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a829a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0045f259
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4162c0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0047caee
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4ce788
push eax
call fcn.0047d653
push edi
push esi
call fcn.0045f0dd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 4