joyce8/EMBER2024-capa huggingface dataset:
Function at 0x989120
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x9892b5
push edi
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x989297
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x98918e
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x989180
sub eax, edx
lea ebx, [eax + 1]
jmp 0x989190
xor ebx, ebx
cmp dword [edi + 4], 2
jne 0x989244
cmp dword [edi + 0x18], 0
je 0x989244
mov eax, dword [edi + 0x10]
test eax, eax
je 0x989244
cmp eax, 0x10
jb 0x989244
lea edx, [ebx + 0x30]
push edx
call dword [0x9ff33c]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x989251
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
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
lea eax, [esi + 0x20]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
test ebx, ebx
je 0x98922e
mov eax, dword [esi + 0x18]
add eax, 0x10
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x14]
push ebx
push edx
push eax
call fcn.0095f140
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x989237
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x989241
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x989170
jmp 0x989258
mov dword [ebp - 8], 8
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
test eax, eax
je 0x989268
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], 0
je 0x989291
mov eax, dword [ebp - 4]
push eax
call fcn.009890f0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [edx], ecx
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
jne 0x9892a9
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x989580
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x9fe230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_socket]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 6
push 1
push 2
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x34], 1
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x989755
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push 0x7f000001
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 4
lea edx, [ebp - 0x34]
push edx
push 4
push 0xffff
xor ecx, ecx
push edi
mov dword [ebp - 0x10], eax
mov word [ebp - 0x12], cx
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x989741
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x989741
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x989741
cmp dword [ebp - 0x28], 0x10
jl 0x989741
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x989741
push 0
push 1
push 2
call ebx
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x989741
mov ebx, 0x10
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x989741
push 1
push edi
call fcn.009b2d30
add esp, 8
test eax, eax
js 0x989741
push 0
push 0x2710
lea ecx, [ebp - 0x30]
push 1
push ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 1
call fcn.009a98c0
add esp, 0x10
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x989741
mov ecx, dword [esi]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x989741
cmp dword [ebp - 0x28], ebx
jl 0x989741
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push ecx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x989741
cmp dword [ebp - 0x28], ebx
jl 0x989741
mov dx, word [ebp - 0x14]
cmp dx, word [ebp - 0x24]
jne 0x989741
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x989741
mov cx, word [ebp - 0x12]
cmp cx, word [ebp - 0x22]
jne 0x989741
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009640f1
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
call edi
mov edx, dword [esi]
push edx
call edi
mov eax, dword [esi + 4]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.009640f1
mov esp, ebp
pop ebp
ret
Function at 0x98ac60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0095f791
add esp, 0x18
test eax, eax
je 0x98ac84
cmp eax, 0xffffffff
jne 0x98ac86
xor eax, eax
pop ebp
ret
Function at 0x98f220
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push ebx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call fcn.0095f620
mov eax, dword [ebp + 0x10]
add esp, 0xc
push 0xf0000040
push eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x98f2f2
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x98f2d4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x98f2d4
mov ecx, dword [ebp - 4]
push 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x98f2d4
cmp esi, dword [ebp - 0xc]
jb 0x98f2d4
mov eax, dword [ebp - 4]
push 0
lea edx, [ebp - 0x14]
push edx
push ebx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x98f2e2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x98f2f2
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret

Function at 0x991570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.009914e0
Function at 0x996bc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x9e7a50
push eax
call fcn.00980530
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00995c20
test eax, eax
jne 0x996bf2
mov ecx, esi
pop ebp
jmp fcn.00996020
pop ebp
ret
Function at 0x9970f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x9fe230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov ebx, dword [eax + 0x4e8]
lea ecx, [ebp - 0x8c]
push ecx
mov dword [ebp - 0x8c], 0x80
mov eax, dword [ebx + 0x13c]
mov ecx, dword [ebx + 0x148]
lea edx, [ebp - 0x84]
push edx
mov edx, dword [ebx + 0x14]
push 0
add eax, 4
push eax
push ecx
push edx
mov dword [ebp - 0x88], esi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [ebx + 0x130], 0
mov dword [ebx + 0x134], eax
jne 0x997184
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebx + 0xb0]
push edx
call fcn.0095f140
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [ebx + 0x130], eax
mov edx, dword [ebx + 0x134]
cmp edx, 4
jge 0x9971b7
push str.Received_too_short_packet
push esi
call fcn.009805a0
add esp, 8
mov dword [ebx + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009640f1
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x148]
call fcn.00995d60
movzx eax, ax
mov dword [ebx + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x9971d4
jmp dword [eax*4 + 0x997324]
cmp edx, 4
jle case.0x9971d4.4
lea eax, [ebx + 0x148]
call fcn.00995d70
movzx ecx, word [ebx + 0x144]
inc ecx
cmp cx, ax
jne case.0x9971d4.4
add edx, 0xfffffffc
push edx
mov edx, dword [ebx + 0x148]
add edx, 4
push edx
push 1
push esi
call fcn.00980900
mov edi, eax
add esp, 0x10
test edi, edi
je 0x99723e
mov ecx, 5
mov eax, ebx
call fcn.00997070
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009640f1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x134]
sub eax, 4
cdq
add dword [esi + 0x90], eax
mov ecx, dword [esi + 0x90]
adc dword [esi + 0x94], edx
mov eax, dword [esi + 0x94]
push eax
push ecx
push esi
call fcn.009902d0
add esp, 0xc
jmp case.0x9971d4.4
mov esi, dword [ebx + 0x148]
lea eax, [ebx + 0x148]
add esi, 4
add edx, 0xfffffffc
call fcn.00995d70
movzx eax, ax
mov edi, edx
mov dword [ebx + 8], eax
call fcn.00995d80
cmp eax, edi
jae 0x9972aa
mov ecx, dword [ebp - 0x88]
push esi
push str.TFTP_error:__s
push ecx
call fcn.00980530
add esp, 0xc
mov esi, dword [ebp - 0x88]
push esi
call fcn.00990bf0
add esp, 4
test eax, eax
je 0x9971a4
mov ecx, 5
mov eax, ebx
call fcn.00997070
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009640f1
mov esp, ebp
pop ebp
ret
add edx, 0xfffffffe
push edx
mov edx, dword [ebx + 0x148]
add edx, 2
push edx
push ebx
call fcn.00995e00
add esp, 0xc
test eax, eax
je case.0x9971d4.4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009640f1
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x9e7a50
push esi
call fcn.009805a0
add esp, 0xc
jmp case.0x9971d4.4
Function at 0x9976c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [ebp + 8]
push ebx
push esi
push 0
mov ebx, eax
mov eax, dword [edi + 0xc]
push 3
lea edx, [ebp - 4]
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], cl
mov byte [ebp - 2], bl
mov eax, dword [eax + 0x148]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x997706
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.009805a0
add esp, 0xc
mov esi, dword [ebp + 8]
mov eax, ebx
mov ebx, str.SENT
mov ecx, edi
call fcn.009975c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9984a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x134]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
jne 0x9985ff
push esi
push edi
lea esi, [ebx + 0x1cb4]
lea edi, [ebx + 0x1eb4]
mov dword [edi], esi
cmp esi, edi
jae 0x9984d7
mov byte [esi], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x9984e2
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x9984ed
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebx + 0x1ca8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [ebp + 0xc], edx
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x99851f
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x99852c
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x998536
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x998540
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x99854b
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x998556
mov byte [eax], pe_nt_image_headers32
inc dword [edi]
mov eax, dword [edi]
mov dword [ebx + 0x1eb8], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov esi, dword [ebp + 8]
push eax
lea ecx, [ebx + 0x1cb6]
mov eax, 0x3e
call fcn.00997a30
mov edi, dword [ebp - 4]
mov edx, dword [edi + 0x148]
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 4
push 0
push 3
lea eax, [ebx + 0x1cb4]
push eax
push edx
call esi
test eax, eax
jns 0x9985b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push str.Sending_data_failed___d_
push eax
call fcn.009805a0
add esp, 0xc
mov edx, dword [ebp + 8]
lea ecx, [ebx + 0x1cb7]
push ecx
push edx
mov eax, 4
call fcn.009982f0
mov eax, dword [edi + 0x148]
add esp, 8
push 0
push 2
add ebx, 0x1cbb
push ebx
push eax
call esi
pop edi
pop esi
test eax, eax
jns 0x9985ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 8]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.009805a0
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x99de50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x9fe230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [edi + 0xc]
mov eax, dword [esi + 0x14c]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x99dea6
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push eax
push esi
push edi
call fcn.009871e0
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x99dedc
push str.Error_accept__ing_server_connect
push edi
call fcn.009805a0
add esp, 8
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009640f1
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.00980530
push 1
push ebx
mov dword [esi + 0x2c0], 0
mov dword [esi + 0x14c], ebx
call fcn.009b2d30
add esp, 0x10
mov dword [esi + 0x30c], 1
cmp dword [edi + 0x1d8], 0
je 0x99df5e
push 1
push edi
call fcn.0097e0d0
mov ecx, dword [edi + 0x1dc]
mov edx, dword [edi + 0x1d8]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.0097e0d0
add esp, 0x1c
test ebx, ebx
je 0x99df5e
push edi
call fcn.0099ddb0
add esp, 4
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009640f1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.009640f1
mov esp, ebp
pop ebp
ret
Function at 0x9a16e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
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 0x9a1719
push str.Couldnt_set_desired_mode
push ebx
call fcn.009805a0
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x9a1730
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push ebx
call fcn.00980530
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x9a1749
push edi
push ebx
call fcn.009a1660
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x9a175a
call fcn.0099eae0
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x9a176d
mov eax, ebx
call fcn.009a16c0
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x9a177b
mov eax, ebx
call fcn.009a16d0
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x9a9820
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
test ebx, ebx
je 0x9a9832
cmp dword [ebx], 0
jne 0x9a9844
test edi, edi
je 0x9a983b
cmp dword [edi], 0
jne 0x9a9844
test esi, esi
je 0x9a98a7
cmp dword [esi], 0
je 0x9a98a7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 8]
push edx
call fcn.009bb240
add esp, 0xc
test esi, esi
je 0x9a9861
cmp dword [esi], 0
jne 0x9a9863
xor esi, esi
test edi, edi
je 0x9a9870
cmp dword [edi], 0
je 0x9a9870
mov edx, edi
jmp 0x9a9872
xor edx, edx
test ebx, ebx
je 0x9a9891
cmp dword [ebx], 0
je 0x9a9891
push eax
mov eax, dword [ebp + 8]
push esi
push edx
mov ecx, ebx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
mov esp, ebp
pop ebp
ret
push eax
mov eax, dword [ebp + 8]
push esi
push edx
xor ecx, ecx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call fcn.009a97d0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x9b1870
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0098bc90
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
call fcn.00991290
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, eax
call fcn.00991290
add esp, 0xc
push 1
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x9b1928
jmp 0x9b18c0
lea edx, [ebp - 0x24]
push edx
call fcn.0098bc90
mov edx, dword [ebp - 0xc]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov edx, dword [ebp - 8]
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.0098bd30
add esp, 0x20
test edx, edx
ja 0x9b194e
jb 0x9b190f
cmp eax, 0x3e8
ja 0x9b194e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x9b18c0
test esi, esi
je 0x9b1935
push esi
call fcn.0095f535
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x9b1945
push eax
call fcn.0095f535
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x9b195b
push esi
call fcn.0095f535
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x9b196b
push eax
call fcn.0095f535
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9b60e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x9fe230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
push edi
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x108], ecx
xor ebx, ebx
xor esi, esi
call fcn.00991290
add esp, 4
mov dword [ebp - 0x118], eax
test eax, eax
jne 0x9b615a
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.009b08d0
push eax
mov eax, dword [ebp - 0x108]
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push eax
call fcn.009805a0
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x9b62c3
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10c], eax
cmp eax, 0xffffffff
jne 0x9b61b6
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.009b08d0
mov edx, dword [ebp - 0x108]
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push edx
call fcn.009805a0
add esp, 0x1c
mov esi, 0x4d
jmp 0x9b62c3
lea ecx, [ebp - 0x124]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x9b6200
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.009b08d0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov eax, dword [ebp - 0x108]
push eax
call fcn.009805a0
add esp, 0x1c
mov esi, 0x4d
jmp 0x9b62b6
mov edi, dword [ebp - 0x124]
cmp dword [ebp - 0x120], ebx
jl 0x9b6238
jg 0x9b6218
cmp edi, 0x100000
jbe 0x9b6238
mov ecx, dword [ebp - 0x108]
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ecx
call fcn.009805a0
mov esi, 0x4d
jmp 0x9b62b3
lea edx, [edi + 1]
push edx
call dword [0x9ff33c]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x9b6250
lea esi, [eax + 0x1b]
jmp 0x9b62b6
test edi, edi
je 0x9b6291
push 0
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x10c]
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
mov dword [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x9b62f7
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x9b62f3
add esi, eax
cmp esi, edi
jb 0x9b6254
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x11c]
push ecx
push ebx
push edx
mov edx, dword [ebp - 0x110]
mov ecx, edi
mov byte [edi + ebx], 0
call fcn.009b5e70
mov esi, eax
add esp, 0xc
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x9ff340]
mov eax, dword [ebp - 0x118]
add esp, 4
test eax, eax
je 0x9b62e0
push eax
call fcn.0095f535
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.009640f1
mov esp, ebp
pop ebp
ret
mov edi, esi
jmp 0x9b6291
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.009b08d0
mov edx, dword [ebp - 0x110]
push eax
push edx
push str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x9b61e7