joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f300
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x45ad34
push eax
call fcn.00414070
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0041e360
test eax, eax
jne 0x41f32e
mov ecx, esi
jmp fcn.0041e700
ret
Function at 0x41f7a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0xc]
push ebp
push esi
mov esi, dword [eax + 0x408]
push edi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x80
mov eax, dword [esi + 0x13c]
mov ecx, dword [esi + 0x148]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0x14]
push 0
add eax, 4
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x130], 0
mov dword [esi + 0x134], eax
jne 0x41f821
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 0xb0]
push edx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x134]
cmp eax, 4
jge 0x41f85b
push str.Received_too_short_packet
push ebx
call fcn.00413f30
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x88
ret
mov edx, dword [esi + 0x148]
movzx ecx, byte [edx]
movzx edx, byte [edx + 1]
shl cx, 8
movzx ecx, cx
or ecx, edx
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x41f880
jmp dword [ecx*4 + 0x41f9fc]
cmp eax, 4
jle case.0x41f880.4
mov ecx, dword [esi + 0x148]
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx edx, dx
or edx, ecx
movzx ecx, word [esi + 0x144]
inc ecx
and ecx, 0xffff
cmp ecx, edx
jne case.0x41f880.4
mov edx, dword [esi + 0x148]
add eax, 0xfffffffc
push eax
add edx, 4
push edx
push 1
push ebx
call fcn.00416080
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41f902
mov ecx, 5
mov eax, esi
call fcn.0041f720
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x88
ret
mov eax, dword [esi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
mov ecx, dword [ebx + 0x90]
adc dword [ebx + 0x94], edx
mov eax, dword [ebx + 0x94]
push eax
push ecx
push ebx
call fcn.00434320
jmp 0x41f9bf
mov edi, dword [esi + 0x148]
lea ebp, [eax - 4]
mov eax, dword [esi + 0x148]
movzx edx, byte [eax + 2]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 3]
push ebp
add edi, 4
or ecx, edx
push 0
push edi
mov dword [esi + 8], ecx
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
test eax, eax
je case.0x41f880.4
sub eax, edi
cmp eax, ebp
jae case.0x41f880.4
push edi
push str.TFTP_error:__s
push ebx
call fcn.00414070
jmp 0x41f9bf
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 0x148]
add eax, 2
push eax
push esi
call fcn.0041e460
add esp, 0xc
test eax, eax
je case.0x41f880.4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x88
ret
push str.Internal_error:_Unexpected_packet
push 0x45ad34
push ebx
call fcn.00413f30
add esp, 0xc
push ebx
call fcn.00434c60
add esp, 4
test eax, eax
je 0x41f841
mov ecx, 5
mov eax, esi
call fcn.0041f720
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x2a
call fcn.0044c7a4
add esp, 0x88
ret
Function at 0x41fda0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov cl, byte [esp + 8]
mov eax, dword [edi + 0xc]
push 0
push 3
lea edx, [esp + 8]
mov byte [esp + 8], 0xff
mov byte [esp + 9], cl
mov byte [esp + 0xa], bl
mov eax, dword [eax + 0x120]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x41fde4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00413f30
add esp, 0xc
push esi
mov esi, dword [esp + 0xc]
push str.SENT
mov eax, ebx
mov ecx, edi
call fcn.0041fca0
add esp, 4
pop esi
pop ecx
ret
Function at 0x420b60
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [eax + 0x124]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jne 0x420cb5
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], ebx
cmp ebx, edi
jae 0x420b98
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420ba3
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420bae
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x420be0
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420bee
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420bf8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420c02
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420c0d
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420c18
mov byte [eax], pe_nt_image_headers32
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x18]
mov dword [ebp + 0x1eb8], eax
sub eax, ebx
sub eax, 2
push eax
lea ecx, [ebp + 0x1cb6]
mov eax, 0x3e
mov dword [edi], ebx
call fcn.0041fff0
mov edi, dword [sym.imp.WS2_32.dll_send]
add esp, 4
push 0
push 3
push ebx
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x120]
push edx
call edi
test eax, eax
jns 0x420c70
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00413f30
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push eax
push esi
mov eax, 4
call fcn.00420910
mov ecx, dword [ebx + 0x120]
add esp, 8
push 0
push 2
add ebp, 0x1cbb
push ebp
push ecx
call edi
test eax, eax
jns 0x420cb2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00413f30
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x426500
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push edi
mov edi, dword [esi + 0xc]
mov ebx, dword [edi + 0x124]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x426561
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0xffffffff
jne 0x426592
push str.Error_accept__ing_server_connect
push esi
call fcn.00413f30
add esp, 8
pop edi
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push esi
call fcn.00414070
mov dword [edi + 0x20c], 0
mov ecx, dword [esp + 0x10]
push 1
push ecx
call fcn.00442300
lea edx, [esp + 0x18]
push edx
push 1
push edi
push esi
call fcn.0043dd60
add esp, 0x20
test eax, eax
jne 0x426631
cmp dword [esi + 0x1cc], eax
je 0x42662f
push 1
push esi
call fcn.00414eb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1d0]
mov edx, dword [esi + 0x1cc]
push 1
push eax
push ecx
call edx
push 0
push esi
mov ebx, eax
call fcn.00414eb0
add esp, 0x1c
test ebx, ebx
je 0x42662f
push 1
push esi
call fcn.004162a0
push 1
push edi
push esi
call fcn.00416280
add esp, 0x14
pop edi
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop ebx
xor ecx, esp
call fcn.0044c7a4
add esp, 0x8c
ret
Function at 0x429e40
Capabilities:
Check http status code

Disassembly:
push ebx
mov bl, al
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebp
mov ebp, dword [esi + 0xc]
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
cmp eax, 2
je 0x429e75
push str.Couldnt_set_desired_mode
push esi
call fcn.00413f30
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x429e8c
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00414070
add esp, 0xc
cmp bl, 0x13
jne 0x429ea1
push ebp
push esi
call fcn.00429dc0
add esp, 8
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x14
jne 0x429eb3
mov ebx, esi
call fcn.004270b0
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x15
jne 0x429ecc
mov bl, 0xd
push 1
mov eax, esi
call fcn.004292d0
add esp, 4
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x16
jne 0x429ee1
mov bl, 0xe
push 1
mov eax, esi
call fcn.004292d0
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop ebp
pop ebx
ret

Function at 0x432e30
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x432e72
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xf8], 0
jne 0x432e5f
push 0
call fcn.00432e30
mov edx, dword [esi + 0x70]
add esp, 4
test eax, eax
setne cl
inc cl
mov byte [edx + 0xf8], cl
mov eax, dword [esi + 0x70]
xor ecx, ecx
cmp byte [eax + 0xf8], 2
pop esi
sete cl
mov eax, ecx
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x432e8e
xor esi, esi
xor eax, eax
test esi, esi
setg al
pop esi
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
setg al
pop esi
ret

Function at 0x433910
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x45e008]
mov edi, eax
add esp, 8
test edi, edi
je 0x4338d8
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4338f0
cmp esi, ebx
je 0x4338f0
cmp esi, 0x8000
ja 0x4338f0
cmp esi, ebx
jb 0x4338e9
push esi
push edi
call dword [0x45e008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4338a0
push ebp
call dword [0x45e004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x45e004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x433880
Function at 0x433950
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x433b09
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x433ae6
push ebx
push ebp
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4339be
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4339b0
sub eax, edx
lea ebx, [eax + 1]
jmp 0x4339c0
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4339cd
lea ebp, [eax + 0xe]
jmp 0x4339d9
cmp eax, 0x17
jne 0x433a73
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x433a73
mov eax, dword [edi + 0x10]
test eax, eax
je 0x433a73
cmp eax, ebp
jb 0x433a73
lea edx, [ebx + ebp + 0x20]
push edx
call dword [section..data]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x433a80
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
push ebp
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
test ebx, ebx
je 0x433a59
mov eax, dword [esi + 0x18]
add eax, ebp
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x14]
push ebx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x433a64
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x433a6f
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4339a3
jmp 0x433a88
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x433a99
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], 0
je 0x433adf
mov eax, dword [esp + 8]
test eax, eax
je 0x433ac3
jmp 0x433ab0
mov esi, dword [eax + 0x1c]
push eax
call dword [0x45e004]
add esp, 4
mov eax, esi
test esi, esi
jne 0x433ab0
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
cmp dword [esp + 8], 0
jne 0x433af9
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
Function at 0x436220
Capabilities:
Move file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00418320
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
push edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCR100.dll__strdup]
mov esi, eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 0xc
push 1
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4362d8
lea ecx, [ecx]
lea ecx, [esp + 0x24]
push ecx
call fcn.00418320
mov edx, dword [esp + 0x24]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.004183c0
add esp, 0x20
test edx, edx
ja 0x436300
jb 0x4362be
cmp eax, 0x3e8
ja 0x436300
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x436270
mov edi, dword [sym.imp.MSVCR100.dll_free]
test esi, esi
je 0x4362e8
push esi
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4362f6
push eax
call edi
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [sym.imp.MSVCR100.dll_free]
test esi, esi
je 0x436310
push esi
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43631e
push eax
call edi
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret

Function at 0x436480
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4364d7
mov ecx, dword [esp + 8]
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x4364e0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, 2
pop esi
pop ecx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x436500
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
xor ebp, ebp
push esi
push edi
mov ecx, 0x2b
cmp ebx, ebp
je 0x4365bc
mov edi, dword [esp + 0x1c]
lea esp, [esp]
mov esi, ebx
cmp ebx, 4
jb 0x43652c
mov esi, 4
mov ecx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.0040f7c0
add esp, 0xc
cmp eax, 4
jne 0x436598
cmp dword [0x45ea00], ebp
jne 0x4365d3
push 0xf0000040
push 1
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x436593
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push ebp
test eax, eax
jne 0x4365c4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov ecx, eax
cmp eax, ebp
jne 0x4365be
mov eax, dword [esp + 0x20]
cmp esi, ebp
je 0x4365b4
mov byte [edi], al
inc edi
shr eax, 8
dec ebx
dec esi
jne 0x4365a6
mov dword [esp + 0x20], eax
cmp ebx, ebp
jne 0x436520
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x436598
mov eax, dword [0x45e9fc]
imul eax, eax, 0x41c64e6d
add eax, 0x3039
mov dword [0x45e9fc], eax
rol eax, 0x10
mov dword [esp + 0x20], eax
xor ecx, ecx
jmp 0x4365a2
Function at 0x438500
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000040
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4385e0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4385c1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4385c1
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x4385c0
cmp esi, dword [esp + 0xc]
jb 0x4385c0
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x4385cf
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4385e0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret
Function at 0x43a380
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x43a3a4
cmp eax, 0xffffffff
jne 0x43a3a6
xor eax, eax
ret

Function at 0x43ad00
Capabilities:
Get socket status

Disassembly:
sub esp, 8
push esi
mov esi, eax
test ebx, ebx
je 0x43ad0f
cmp dword [ebx], 0
jne 0x43ad21
test edi, edi
je 0x43ad18
cmp dword [edi], 0
jne 0x43ad21
test esi, esi
je 0x43ad89
cmp dword [esi], 0
je 0x43ad89
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00449160
add esp, 0xc
test esi, esi
je 0x43ad41
cmp dword [esi], 0
jne 0x43ad43
xor esi, esi
test edi, edi
je 0x43ad50
cmp dword [edi], 0
je 0x43ad50
mov edx, edi
jmp 0x43ad52
xor edx, edx
test ebx, ebx
je 0x43ad72
cmp dword [ebx], 0
je 0x43ad72
push eax
mov eax, dword [esp + 0x14]
push esi
push edx
mov ecx, ebx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
add esp, 8
ret
push eax
mov eax, dword [esp + 0x14]
push esi
push edx
xor ecx, ecx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0043acb0
add esp, 8
pop esi
add esp, 8
ret

Function at 0x43bec0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x104], eax
push 4
lea eax, [esp + 4]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43bf17
push 0x100
lea edx, [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040ae50
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.00414070
add esp, 0x18
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x108
ret
Function at 0x43bf30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x7c0], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43bf84
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00414070
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x18
ret
mov edx, dword [esi + 0x6e0]
push edx
mov dword [esp + 0xc], 1
call fcn.00413500
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x6e4]
push eax
call fcn.00413500
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x43bffd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.00414070
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x18
ret

Function at 0x43c200
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x45ea10]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x43c251
push 3
push 2
push eax
push eax
push 6
call fcn.0043a620
add esp, 0x14
test eax, eax
je 0x43c245
mov dword [0x45ea10], 2
add esp, 0xc
ret
mov dword [0x45ea10], 1
jmp 0x43c256
cmp eax, 2
je 0x43c29d
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43c284
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x43c29c
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret