joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eaf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x45d380]
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 0x41eb71
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 0x41ebab
push str.Received_too_short_packet
push ebx
call fcn.004132e0
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.0044bb74
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.0x41ebd0
jmp dword [ecx*4 + 0x41ed4c]
cmp eax, 4
jle case.0x41ebd0.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.0x41ebd0.4
mov edx, dword [esi + 0x148]
add eax, 0xfffffffc
push eax
add edx, 4
push edx
push 1
push ebx
call fcn.00415420
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41ec52
mov ecx, 5
mov eax, esi
call fcn.0041ea70
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0044bb74
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.004336d0
jmp 0x41ed0f
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.0x41ebd0.4
sub eax, edi
cmp eax, ebp
jae case.0x41ebd0.4
push edi
push str.TFTP_error:__s
push ebx
call fcn.00413420
jmp 0x41ed0f
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 0x148]
add eax, 2
push eax
push esi
call fcn.0041d7d0
add esp, 0xc
test eax, eax
je case.0x41ebd0.4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0044bb74
add esp, 0x88
ret
push str.Internal_error:_Unexpected_packet
push 0x459b00
push ebx
call fcn.004132e0
add esp, 0xc
push ebx
call fcn.00434010
add esp, 4
test eax, eax
je 0x41eb91
mov ecx, 5
mov eax, esi
call fcn.0041ea70
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x2a
call fcn.0044bb74
add esp, 0x88
ret
Function at 0x41f0f0
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 0x41f134
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004132e0
add esp, 0xc
push esi
mov esi, dword [esp + 0xc]
push str.SENT
mov eax, ebx
mov ecx, edi
call fcn.0041eff0
add esp, 4
pop esi
pop ecx
ret
Function at 0x41feb0
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 0x420005
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], ebx
cmp ebx, edi
jae 0x41fee8
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x41fef3
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x41fefe
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 0x41ff30
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x41ff3e
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x41ff48
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x41ff52
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x41ff5d
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x41ff68
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.0041f340
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 0x41ffc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004132e0
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push eax
push esi
mov eax, 4
call fcn.0041fc60
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 0x420002
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004132e0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x4258c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x45d380]
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 0x425921
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 0x425952
push str.Error_accept__ing_server_connect
push esi
call fcn.004132e0
add esp, 8
pop edi
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0044bb74
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push esi
call fcn.00413420
mov dword [edi + 0x20c], 0
mov ecx, dword [esp + 0x10]
push 1
push ecx
call fcn.004416e0
lea edx, [esp + 0x18]
push edx
push 1
push edi
push esi
call fcn.0043d110
add esp, 0x20
test eax, eax
jne 0x4259f1
cmp dword [esi + 0x1cc], eax
je 0x4259ef
push 1
push esi
call fcn.00414260
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.00414260
add esp, 0x1c
test ebx, ebx
je 0x4259ef
push 1
push esi
call fcn.00415640
push 1
push edi
push esi
call fcn.00415620
add esp, 0x14
pop edi
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0044bb74
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop ebx
xor ecx, esp
call fcn.0044bb74
add esp, 0x8c
ret
Function at 0x4291e0
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 0x429215
push str.Couldnt_set_desired_mode
push esi
call fcn.004132e0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x42922c
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00413420
add esp, 0xc
cmp bl, 0x13
jne 0x429241
push ebp
push esi
call fcn.00429160
add esp, 8
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x14
jne 0x429253
mov ebx, esi
call fcn.00426450
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x15
jne 0x42926c
mov bl, 0xd
push 1
mov eax, esi
call fcn.00428670
add esp, 4
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x16
jne 0x429281
mov bl, 0xe
push 1
mov eax, esi
call fcn.00428670
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop ebp
pop ebx
ret

Function at 0x4321d0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x432212
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xf8], 0
jne 0x4321ff
push 0
call fcn.004321d0
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 0x43222e
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 0x432cc0
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 [0x45d008]
mov edi, eax
add esp, 8
test edi, edi
je 0x432c88
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 0x432ca0
cmp esi, ebx
je 0x432ca0
cmp esi, 0x8000
ja 0x432ca0
cmp esi, ebx
jb 0x432c99
push esi
push edi
call dword [0x45d008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x432c50
push ebp
call dword [0x45d004]
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 [0x45d004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x432c30
Function at 0x432d00
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 0x432eb9
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x432e96
push ebx
push ebp
mov eax, dword [edi + 0x14]
test eax, eax
je 0x432d6e
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x432d60
sub eax, edx
lea ebx, [eax + 1]
jmp 0x432d70
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x432d7d
lea ebp, [eax + 0xe]
jmp 0x432d89
cmp eax, 0x17
jne 0x432e23
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x432e23
mov eax, dword [edi + 0x10]
test eax, eax
je 0x432e23
cmp eax, ebp
jb 0x432e23
lea edx, [ebx + ebp + 0x20]
push edx
call dword [section..data]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x432e30
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 0x432e09
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 0x432e14
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x432e1f
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x432d53
jmp 0x432e38
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x432e49
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], 0
je 0x432e8f
mov eax, dword [esp + 8]
test eax, eax
je 0x432e73
jmp 0x432e60
mov esi, dword [eax + 0x1c]
push eax
call dword [0x45d004]
add esp, 4
mov eax, esi
test esi, esi
jne 0x432e60
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 0x432ea9
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 0x4355d0
Capabilities:
Move file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.004176c0
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 0x435688
lea ecx, [ecx]
lea ecx, [esp + 0x24]
push ecx
call fcn.004176c0
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.00417760
add esp, 0x20
test edx, edx
ja 0x4356b0
jb 0x43566e
cmp eax, 0x3e8
ja 0x4356b0
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 0x435620
mov edi, dword [sym.imp.MSVCR100.dll_free]
test esi, esi
je 0x435698
push esi
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4356a6
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 0x4356c0
push esi
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4356ce
push eax
call edi
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret

Function at 0x435830
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 0x435887
mov ecx, dword [esp + 8]
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x435890
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 0x4358b0
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 0x43596c
mov edi, dword [esp + 0x1c]
lea esp, [esp]
mov esi, ebx
cmp ebx, 4
jb 0x4358dc
mov esi, 4
mov ecx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.0040eb80
add esp, 0xc
cmp eax, 4
jne 0x435948
cmp dword [0x45da00], ebp
jne 0x435983
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 0x435943
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 0x435974
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov ecx, eax
cmp eax, ebp
jne 0x43596e
mov eax, dword [esp + 0x20]
cmp esi, ebp
je 0x435964
mov byte [edi], al
inc edi
shr eax, 8
dec ebx
dec esi
jne 0x435956
mov dword [esp + 0x20], eax
cmp ebx, ebp
jne 0x4358d0
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 0x435948
mov eax, dword [0x45d9fc]
imul eax, eax, 0x41c64e6d
add eax, 0x3039
mov dword [0x45d9fc], eax
rol eax, 0x10
mov dword [esp + 0x20], eax
xor ecx, ecx
jmp 0x435952
Function at 0x4378a0
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 0x437980
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 0x437961
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 0x437961
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 0x437960
cmp esi, dword [esp + 0xc]
jb 0x437960
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 0x43796f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x437980
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret
Function at 0x439720
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 0x439744
cmp eax, 0xffffffff
jne 0x439746
xor eax, eax
ret

Function at 0x43a0a0
Capabilities:
Get socket status

Disassembly:
sub esp, 8
push esi
mov esi, eax
test ebx, ebx
je 0x43a0af
cmp dword [ebx], 0
jne 0x43a0c1
test edi, edi
je 0x43a0b8
cmp dword [edi], 0
jne 0x43a0c1
test esi, esi
je 0x43a129
cmp dword [esi], 0
je 0x43a129
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00448550
add esp, 0xc
test esi, esi
je 0x43a0e1
cmp dword [esi], 0
jne 0x43a0e3
xor esi, esi
test edi, edi
je 0x43a0f0
cmp dword [edi], 0
je 0x43a0f0
mov edx, edi
jmp 0x43a0f2
xor edx, edx
test ebx, ebx
je 0x43a112
cmp dword [ebx], 0
je 0x43a112
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.0043a050
add esp, 8
pop esi
add esp, 8
ret

Function at 0x43b270
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x45d380]
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 0x43b2c7
push 0x100
lea edx, [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040a220
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.00413420
add esp, 0x18
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044bb74
add esp, 0x108
ret
Function at 0x43b2e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x45d380]
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 0x43b334
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00413420
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044bb74
add esp, 0x18
ret
mov edx, dword [esi + 0x6e0]
push edx
mov dword [esp + 0xc], 1
call fcn.004128d0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x6e4]
push eax
call fcn.004128d0
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 0x43b3ad
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.00413420
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044bb74
add esp, 0x18
ret

Function at 0x43b5b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x45da10]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x43b601
push 3
push 2
push eax
push eax
push 6
call fcn.004399c0
add esp, 0x14
test eax, eax
je 0x43b5f5
mov dword [0x45da10], 2
add esp, 0xc
ret
mov dword [0x45da10], 1
jmp 0x43b606
cmp eax, 2
je 0x43b64d
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 0x43b634
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x43b64c
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