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

Disassembly:
push ebx
mov ebx, dword [eax + ecx*4 + 0x130]
mov edx, ecx
add edx, edx
push esi
lea esi, [eax + edx*8 + 0x158]
mov edx, dword [eax + 0x308]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x44], 3
je 0x42d0d0
cmp dword [eax + ecx*4 + 0x148], 0x42ccd0
jne 0x42d0d0
cmp dword [esi], 0
je 0x42d061
test edi, edi
je 0x42d0d0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0044c560
add esp, 0x14
cmp eax, 0xffffffff
je 0x42d0d0
test al, 1
je 0x42d0d0
cmp dword [esi], 0
jne 0x42d0b9
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x524]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x7d0020]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x42d0a8
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x42d0d0
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x7d3574]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
mov esi, dword [esp + 0x114]
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + ecx*4 + 0x130]
push edi
mov edi, dword [esp + 0x128]
push esi
call fcn.0042d020
add esp, 4
test eax, eax
je 0x42d136
mov dword [edi], 0x1b
or eax, 0xffffffff
jmp 0x42d19c
mov eax, dword [esp + 0x124]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.WSOCK32.dll_send]
mov ebx, eax
mov dword [edi], 0
cmp ebx, 0xffffffff
jne 0x42d19a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x42d16f
xor ebx, ebx
mov dword [edi], 0x51
jmp 0x42d19a
push 0x100
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.00419b30
push eax
push str.Send_failure:__s
push esi
call fcn.0042cb90
mov dword [esi + 0xa48], ebp
add esp, 0x18
mov dword [edi], 0x37
mov eax, ebx
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d482d
add esp, 0x104
ret
Function at 0x42e170
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x7d3574]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x7cc], 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.WSOCK32.dll_setsockopt]
test eax, eax
jns 0x42e1c4
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.0042cb10
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004d482d
add esp, 0x18
ret
mov edx, dword [esi + 0x6f0]
push edx
mov dword [esp + 0xc], 1
call fcn.004279e0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x6f4]
push eax
call fcn.004279e0
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 0x42e23d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.0042cb10
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004d482d
add esp, 0x18
ret
Function at 0x42ec30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x7d3574]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x19c]
push esi
mov esi, dword [esp + 0x194]
push edi
mov edi, dword [esp + 0x1a0]
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.004d4a00
mov eax, dword [esp + 0x1a8]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x42ecb8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push 0x100
lea ecx, [esp + 0x94]
mov edi, eax
push ecx
push edi
call fcn.00419b30
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x42ecfc
mov edx, dword [esp + 0xc]
push ebx
push edi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0042ea30
add esp, 0x10
test eax, eax
jne 0x42ed05
call fcn.004d5483
mov edi, eax
call fcn.004d5483
mov edx, dword [edi]
push 0x100
lea ecx, [esp + 0x94]
push ecx
push edx
mov ebx, eax
call fcn.00419b30
push eax
mov eax, dword [ebx]
push eax
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.0042cb90
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d482d
add esp, 0x188
ret

Function at 0x42ef20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x7d3574]
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.WSOCK32.dll_setsockopt]
test eax, eax
jns 0x42ef77
push 0x100
lea edx, [esp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.00419b30
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0042cb10
add esp, 0x18
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d482d
add esp, 0x108
ret

Function at 0x42ef90
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x7d6aa4]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x42efe1
push 3
push 2
push eax
push eax
push 6
call fcn.0045a890
add esp, 0x14
test eax, eax
je 0x42efd5
mov dword [0x7d6aa4], 2
add esp, 0xc
ret
mov dword [0x7d6aa4], 1
jmp 0x42efe6
cmp eax, 2
je 0x42f02d
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.WSOCK32.dll_getsockopt]
test eax, eax
jne 0x42f014
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x42f02c
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x437c50
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x7c3ec4
push eax
call fcn.0042cb10
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00436bb0
test eax, eax
jne 0x437c7e
mov ecx, esi
jmp fcn.00437050
ret
Function at 0x438720
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 + 0x130]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jns 0x438764
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0042cb90
add esp, 0xc
push esi
mov esi, dword [esp + 0xc]
push str.SENT
mov eax, ebx
mov ecx, edi
call fcn.00438620
add esp, 4
pop esi
pop ecx
ret
Function at 0x4395d0
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 + 0x134]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jne 0x439725
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], ebx
cmp ebx, edi
jae 0x439608
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x439613
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43961e
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WSOCK32.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 0x439650
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43965e
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x439668
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x439672
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43967d
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x439688
mov byte [eax], 0xf0
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.00438aa0
mov edi, dword [sym.imp.WSOCK32.dll_send]
add esp, 4
push 0
push 3
push ebx
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x130]
push edx
call edi
test eax, eax
jns 0x4396e0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042cb90
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push eax
push esi
mov eax, 4
call fcn.00439360
mov ecx, dword [ebx + 0x130]
add esp, 8
push 0
push 2
add ebp, 0x1cbb
push ebp
push ecx
call edi
test eax, eax
jns 0x439722
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042cb90
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x43f7b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x7d3574]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, dword [edi + 0xc]
mov ebp, dword [esi + 0x134]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x43f80b
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WSOCK32.dll_accept]
mov ebx, eax
push ebp
push esi
push edi
call fcn.0042f140
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x43f846
push str.Error_accept__ing_server_connect
push edi
call fcn.0042cb90
add esp, 8
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004d482d
add esp, 0x88
ret
push str.Connection_accepted_from_server
push edi
call fcn.0042cb10
push 1
push ebx
mov dword [esi + 0x298], 0
mov dword [esi + 0x134], ebx
call fcn.0045ec30
add esp, 0x10
mov dword [esi + 0x2dc], 1
cmp dword [edi + 0x1d0], 0
je 0x43f8d0
push 1
push edi
call fcn.00429f40
mov ecx, dword [edi + 0x1d4]
mov edx, dword [edi + 0x1d0]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.00429f40
add esp, 0x1c
test ebx, ebx
je 0x43f8d0
push edi
call fcn.0043f710
add esp, 4
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004d482d
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004d482d
add esp, 0x88
ret
Function at 0x443350
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx + 0xc]
cmp eax, 2
je 0x44338b
push str.Couldnt_set_desired_mode
push ebx
call fcn.0042cb90
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4433a2
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push ebx
call fcn.0042cb10
add esp, 0xc
cmp ebp, 0x13
jne 0x4433b8
push edi
push ebx
call fcn.00443250
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4433c9
call fcn.00440410
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4433e3
push 0xd
push 1
mov eax, ebx
call fcn.00442690
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4433f1
mov eax, ebx
call fcn.004432e0
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x44c1c0
Capabilities:
Get socket status

Disassembly:
sub esp, 8
push esi
mov esi, eax
test ebx, ebx
je 0x44c1cf
cmp dword [ebx], 0
jne 0x44c1e1
test edi, edi
je 0x44c1d8
cmp dword [edi], 0
jne 0x44c1e1
test esi, esi
je 0x44c249
cmp dword [esi], 0
je 0x44c249
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00463e50
add esp, 0xc
test esi, esi
je 0x44c201
cmp dword [esi], 0
jne 0x44c203
xor esi, esi
test edi, edi
je 0x44c210
cmp dword [edi], 0
je 0x44c210
mov edx, edi
jmp 0x44c212
xor edx, edx
test ebx, ebx
je 0x44c232
cmp dword [ebx], 0
je 0x44c232
push eax
mov eax, dword [esp + 0x14]
push esi
push edx
mov ecx, ebx
push ecx
inc eax
push eax
call dword [sym.imp.WSOCK32.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.WSOCK32.dll_select]
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0044c170
add esp, 8
pop esi
add esp, 8
ret

Function at 0x44cc70
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 [0x7d0028]
mov edi, eax
add esp, 8
test edi, edi
je 0x44cc38
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 0x44cc50
cmp esi, ebx
je 0x44cc50
cmp esi, 0x8000
ja 0x44cc50
cmp esi, ebx
jb 0x44cc49
push esi
push edi
call dword [0x7d0028]
mov edi, eax
add esp, 8
test edi, edi
jne 0x44cc00
push ebp
call dword [0x7d0024]
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 [0x7d0024]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x44cbe0
Function at 0x44d610
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 0x44d7c9
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x44d7a6
push ebx
push ebp
mov eax, dword [edi + 0x14]
test eax, eax
je 0x44d67e
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44d670
sub eax, edx
lea ebx, [eax + 1]
jmp 0x44d680
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x44d68d
lea ebp, [eax + 0xe]
jmp 0x44d699
cmp eax, 0x17
jne 0x44d733
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x44d733
mov eax, dword [edi + 0x10]
test eax, eax
je 0x44d733
cmp eax, ebp
jb 0x44d733
lea edx, [ebx + ebp + 0x20]
push edx
call dword [0x7d0020]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x44d740
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 fcn.004d3550
add esp, 0xc
test ebx, ebx
je 0x44d719
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 fcn.004d3550
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x44d724
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44d72f
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x44d663
jmp 0x44d748
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x44d759
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], 0
je 0x44d79f
mov eax, dword [esp + 8]
test eax, eax
je 0x44d783
jmp 0x44d770
mov esi, dword [eax + 0x1c]
push eax
call dword [0x7d0024]
add esp, 4
mov eax, esi
test esi, esi
jne 0x44d770
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 0x44d7b9
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WSOCK32.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 0x44e3d0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x44e412
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe0], 0
jne 0x44e3ff
push 0
call fcn.0044e3d0
mov edx, dword [esi + 0x70]
add esp, 4
test eax, eax
setne cl
inc cl
mov byte [edx + 0xe0], cl
mov eax, dword [esi + 0x70]
xor ecx, ecx
cmp byte [eax + 0xe0], 2
pop esi
sete cl
mov eax, ecx
ret
push 0
push 2
push 0x17
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
jne 0x44e42e
xor esi, esi
xor eax, eax
test esi, esi
setg al
pop esi
ret
push eax
mov esi, 1
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
test esi, esi
setg al
pop esi
ret
Function at 0x453430
Capabilities:
Move file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.0044c690
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 fcn.004feceb
mov esi, eax
mov eax, dword [esp + 0x44]
push eax
call fcn.004feceb
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 0x4534e8
jmp 0x453480
lea ecx, [esp + 0x24]
push ecx
call fcn.0044c690
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.0044c730
add esp, 0x20
test edx, edx
ja 0x453510
jb 0x4534ce
cmp eax, 0x3e8
ja 0x453510
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 0x453480
test esi, esi
je 0x4534f5
push esi
call fcn.004d2a44
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x453506
push eax
call fcn.004d2a44
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
test esi, esi
je 0x45351d
push esi
call fcn.004d2a44
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45352e
push eax
call fcn.004d2a44
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret

Function at 0x4538b0
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 0x45396c
mov edi, dword [esp + 0x1c]
lea esp, [esp]
mov esi, ebx
cmp ebx, 4
jb 0x4538dc
mov esi, 4
mov ecx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00423c30
add esp, 0xc
cmp eax, 4
jne 0x453948
cmp dword [0x7d6aac], ebp
jne 0x453983
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 0x453943
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 0x453974
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov ecx, eax
cmp eax, ebp
jne 0x45396e
mov eax, dword [esp + 0x20]
cmp esi, ebp
je 0x453964
mov byte [edi], al
inc edi
shr eax, 8
dec ebx
dec esi
jne 0x453956
mov dword [esp + 0x20], eax
cmp ebx, ebp
jne 0x4538d0
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 0x453948
mov eax, dword [0x7d6aa8]
imul eax, eax, 0x41c64e6d
add eax, 0x3039
mov dword [0x7d6aa8], eax
rol eax, 0x10
mov dword [esp + 0x20], eax
xor ecx, ecx
jmp 0x453952
Function at 0x45a820
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 fcn.004d4040
add esp, 0x18
test eax, eax
je 0x45a843
cmp eax, 0xffffffff
jne 0x45a845
xor eax, eax
ret
Function at 0x465b70
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x465bb6
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.004279d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push ecx
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 4], 0x10
jne 0x465c13
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push eax
push 2
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x465c23
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x465c34
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x465c40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x7d0020]
mov edi, eax
add esp, 4
test edi, edi
jne 0x465c65
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x465cac
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x465cb0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x465d0c
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x465cd3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x465d48
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x738a74
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x738a75
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x465d17
mov eax, edi
pop edi
pop esi
pop ecx
ret