joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013e50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x1012a2c8
mov dword [0x1013c124], 0
call edi
test eax, eax
mov dword [0x1013c124], eax
jne 0x10013e78
mov eax, 0x16
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNetworkParams
push eax
call esi
test eax, eax
mov dword [0x1013c134], eax
jne 0x10013ea4
mov eax, dword [0x1013c124]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, 0x17
pop edi
ret
mov ecx, dword [0x1013c124]
push str.GetAdaptersAddresses
push ecx
call esi
mov edx, dword [0x1013c124]
push str.GetBestRoute2
push edx
mov dword [0x1013c13c], eax
call esi
push str.advapi32.dll
mov dword [0x1013c140], eax
mov dword [0x1013c11c], 0
call edi
test eax, eax
mov dword [0x1013c11c], eax
je 0x10013ef1
push str.SystemFunction036
push eax
call esi
mov dword [0x1013c138], eax
pop esi
xor eax, eax
pop edi
ret

Function at 0x100140f0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x240
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x24c]
push esi
push edi
xor esi, esi
push esi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push eax
mov dword [ebp + 0x58], eax
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jl 0x10014262
cmp dword [ebp + 0x14], esi
je 0x10014262
movzx edx, word [ebp + 0x1c]
push edx
mov word [esp + 0x240], 2
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x18], 0x10
mov word [esp + 0x23e], ax
jb 0x10014175
mov eax, dword [ebp + 4]
mov dword [esp + 0x14], eax
jmp 0x1001417c
lea ecx, [ebp + 4]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x240]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.10009d40
mov ecx, dword [ebp + 0x58]
add esp, 4
push 0x10
lea eax, [esp + 0x240]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x100141b3
mov al, 1
jmp 0x10014264
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10014262
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x14], esi
mov edi, edi
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 1
mov ecx, 0x41
lea esi, [esp + 0x28]
lea edi, [esp + 0x130]
lea edx, [esp + 0x20]
push edx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
add eax, 1
push eax
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 0
call ebx
test eax, eax
jl 0x10014262
jne 0x10014233
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x14], eax
jle 0x100141d0
jmp 0x10014262
mov ecx, dword [ebp + 0x58]
lea eax, [esp + 0x28]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x100141ac
mov eax, dword [ebp + 0x58]
lea edx, [esp + 0x130]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100141d0
xor al, al
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001d3e9
add esp, 0x240
ret 4
Function at 0x10014280
Capabilities:
Get socket status
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0x220
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [esi + 0x34], 0
push ebx
push ebp
push edi
jne 0x100142b7
xor al, al
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x220
ret
mov eax, 0x10
cmp dword [esi + 0x18], eax
jb 0x100142c6
mov ecx, dword [esi + 4]
jmp 0x100142c9
lea ecx, [esi + 4]
cmp dword [esi + 0x38], eax
jb 0x100142d3
mov eax, dword [esi + 0x24]
jmp 0x100142d6
lea eax, [esi + 0x24]
push ecx
push eax
push str.GET__s_HTTP_1.1_r_nHost:__s_r_nConnection:_close_r_n_r_n
lea edx, [esp + 0x12c]
call fcn.10014630
mov ebx, dword [sym.imp.WS2_32.dll_select]
add esp, 0xc
mov ebp, eax
xor edi, edi
mov eax, dword [esi + 0x58]
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x28], eax
push 0
add eax, 1
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 0
call ebx
test eax, eax
jl 0x1001429d
je 0x100142f6
mov ecx, dword [esi + 0x58]
push 0
push ebp
lea eax, [esp + edi + 0x128]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1001435f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1001429d
xor eax, eax
add edi, eax
sub ebp, eax
jne 0x100142f6
mov ecx, dword [esp + 0x224]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.1001d3e9
add esp, 0x220
ret
Function at 0x10014650
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x18]
xor eax, eax
cmp ebp, eax
push esi
push edi
je 0x100147c7
cmp dword [ebx + 0x78], eax
mov dword [esp + 0x20], eax
jle 0x100147c7
mov dword [esp + 0xc], eax
mov edi, dword [ebx + 0x74]
add edi, dword [esp + 0xc]
cmp dword [edi + 0x38], 0
je 0x100147ae
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x100147ae
cmp dword [edi + 0x54], 0
jne 0x100147ae
push ebp
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100147ae
mov esi, dword [ebp]
xor eax, eax
test esi, esi
jbe 0x100146ee
mov edx, dword [edi + 0x20]
lea ecx, [ebp + 4]
cmp dword [ecx], edx
je 0x100146ca
add eax, 1
add ecx, 4
cmp eax, esi
jb 0x100146ba
jmp 0x100146ee
add esi, 0xffffffff
cmp eax, esi
jae 0x100146ea
lea ecx, [ebp + eax*4 + 4]
mov edx, dword [ecx + 4]
mov dword [ecx], edx
mov edx, dword [ebp]
add eax, 1
sub edx, 1
add ecx, 4
cmp eax, edx
jb 0x100146d5
add dword [ebp], 0xffffffff
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, eax
je 0x10014701
mov eax, dword [eax + 0x10]
add ecx, 1
test eax, eax
jne 0x100146f7
lea eax, [ecx*8]
push eax
call dword [0x10138fd4]
mov esi, eax
mov eax, dword [edi + 0x38]
add esp, 4
test esi, esi
je 0x100147ce
xor ecx, ecx
test eax, eax
je 0x1001473b
mov edx, dword [eax]
mov dword [esi + ecx*8], edx
mov edx, dword [eax + 4]
mov dword [esi + ecx*8 + 4], edx
mov eax, dword [eax + 0x10]
add ecx, 1
test eax, eax
jne 0x10014725
mov eax, dword [ebx + 0x91b8]
test eax, eax
mov edi, dword [edi + 0x20]
je 0x1001475c
mov edx, dword [ebx + 0x91bc]
mov eax, dword [eax + 0x10]
push edx
push ecx
push esi
push edi
call eax
add esp, 0x10
jmp 0x10014767
push ecx
push esi
push edi
call fcn.1001b9d0
add esp, 0xc
push esi
mov edi, eax
call dword [0x10138fdc]
add esp, 4
test edi, edi
jge 0x1001479f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x100147ae
cmp eax, 0x2733
je 0x100147ae
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov eax, ebx
call fcn.10015060
add esp, 8
jmp 0x100147ae
mov eax, edi
mov ecx, dword [esp + 0x20]
push ebx
call fcn.10014840
add esp, 4
mov eax, dword [esp + 0x20]
add dword [esp + 0xc], 0x58
add eax, 1
cmp eax, dword [ebx + 0x78]
mov dword [esp + 0x20], eax
jl 0x10014675
pop edi
pop esi
pop ebp
add esp, 0x10
ret
mov ecx, dword [ebx + 0x91b8]
test ecx, ecx
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [edi + 0x20]
je 0x10014801
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x91bc]
push eax
mov dword [esp + 0x18], edx
mov eax, dword [ecx + 0x10]
push 1
lea edx, [esp + 0x18]
push edx
push edi
call eax
add esp, 0x10
jmp 0x1001480c
push 0
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x100147a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x100147ae
cmp eax, 0x2733
je 0x100147ae
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov eax, ebx
call fcn.10015060
add esp, 8
jmp 0x100147ae
Function at 0x10014b20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x1040
call fcn.10033890
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x103c], eax
mov eax, dword [esp + 0x1048]
push ebp
mov ebp, dword [esp + 0x1048]
mov dword [esp + 0x14], eax
xor eax, eax
cmp ebp, eax
push esi
push edi
je 0x10014ccc
cmp dword [ebx + 0x78], eax
mov dword [esp + 0x10], eax
jle 0x10014ccc
mov dword [esp + 0x14], eax
mov edi, dword [ebx + 0x74]
add edi, dword [esp + 0x14]
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x10014cb3
cmp dword [edi + 0x54], 0
jne 0x10014cb3
push ebp
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10014cb3
mov esi, dword [ebp]
xor eax, eax
test esi, esi
jbe 0x10014bd9
mov edx, dword [edi + 0x1c]
lea ecx, [ebp + 4]
cmp dword [ecx], edx
je 0x10014bb3
add eax, 1
add ecx, 4
cmp eax, esi
jb 0x10014ba3
jmp 0x10014bd9
add esi, 0xffffffff
cmp eax, esi
jae 0x10014bd5
lea ecx, [ebp + eax*4 + 4]
mov edi, edi
mov edx, dword [ecx + 4]
mov dword [ecx], edx
mov edx, dword [ebp]
add eax, 1
sub edx, 1
add ecx, 4
cmp eax, edx
jb 0x10014bc0
add dword [ebp], 0xffffffff
cmp dword [edi + 0x1c], 0xffffffff
jne 0x10014be6
xor esi, esi
jmp 0x10014c6a
mov eax, dword [edi]
sub eax, 2
neg eax
sbb eax, eax
and eax, 0xc
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x91b8]
test eax, eax
mov ecx, dword [edi + 0x1c]
je 0x10014c2e
mov edx, dword [ebx + 0x91bc]
mov eax, dword [eax + 0xc]
push edx
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x28]
push edx
push 0
push 0x1001
lea edx, [esp + 0x50]
push edx
push ecx
call eax
add esp, 0x1c
jmp 0x10014c4b
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0x1001
lea edx, [esp + 0x4c]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10014c66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x10014cb3
cmp eax, 0x2733
je 0x10014cb3
jmp 0x10014c6a
test esi, esi
jg 0x10014c80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov eax, ebx
call fcn.10015060
add esp, 8
jmp 0x10014cab
mov ecx, edi
lea eax, [esp + 0x20]
call fcn.10015d60
test eax, eax
je 0x10014cb3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edx
push 0
push eax
lea ecx, [esp + 0x48]
push esi
push ecx
mov eax, ebx
call fcn.10014de0
add esp, 0x14
test esi, esi
jg 0x10014bd9
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], 0x58
add eax, 1
cmp eax, dword [ebx + 0x78]
mov dword [esp + 0x10], eax
jl 0x10014b68
mov ecx, dword [esp + 0x1048]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1001d3e9
add esp, 0x1040
ret
Function at 0x10014de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x18], 0xc
push ebx
push ebp
push esi
push edi
mov edi, eax
jl 0x10014fb8
mov ecx, dword [esp + 0x24]
xor eax, eax
mov ah, byte [ecx]
mov al, byte [ecx + 1]
movzx edx, ax
movzx eax, byte [ecx + 2]
shr eax, 1
and eax, 1
mov dword [esp + 0x1c], eax
movzx eax, byte [ecx + 3]
and eax, 0xf
mov dword [esp + 0x14], eax
movzx eax, dx
and eax, 0x800007ff
mov dword [esp + 0x18], edx
jns 0x10014e2f
dec eax
or eax, 0xfffff800
inc eax
lea eax, [eax + eax*2]
mov ebx, dword [edi + eax*4 + 0x1a4]
lea ebp, [edi + eax*4 + 0x1a0]
cmp ebx, ebp
je 0x10014fb8
mov esi, dword [ebx + 8]
cmp word [esi], dx
jne 0x10014e72
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x48]
push edx
push ecx
mov ecx, dword [esi + 0x44]
push eax
push ecx
call fcn.10015b40
add esp, 0x10
test eax, eax
jne 0x10014e81
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ebx, dword [ebx + 4]
cmp ebx, ebp
jne 0x10014e48
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [edi]
test ecx, 0x100
mov edx, dword [esp + 0x14]
mov eax, 0x200
je 0x10014f0b
cmp edx, 4
mov eax, dword [edi + 0x38]
je 0x10014ea6
cmp edx, 1
je 0x10014ea6
cmp edx, 2
jne 0x10014f0b
mov eax, dword [esi + 0x40]
xor ecx, 0x100
mov dword [edi], ecx
sub eax, 0xd
mov ecx, 0xfffffff5
add dword [esi + 0x40], ecx
add dword [esi + 0x48], ecx
mov ecx, dword [esi + 0x3c]
mov edx, eax
sar edx, 8
mov byte [ecx], dl
mov edx, dword [esi + 0x3c]
mov byte [edx + 1], al
mov eax, dword [esi + 0x3c]
mov byte [eax + 0xc], 0
mov ecx, dword [esi + 0x3c]
mov byte [ecx + 0xd], 0
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
push edx
push eax
call dword [0x10138fd8]
mov ecx, dword [esp + 0x3c]
push ecx
mov dword [esi + 0x3c], eax
add eax, 2
push esi
push edi
mov dword [esi + 0x44], eax
call fcn.100151b0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esp + 0x1c], 0
jne 0x10014f18
cmp dword [esp + 0x28], eax
jle 0x10014f5a
mov ebx, dword [esp + 0x30]
test ebx, ebx
jne 0x10014f4c
test cl, 4
jne 0x10014f4c
cmp dword [esi + 0x60], ebx
jne 0x10014fb8
mov edx, dword [esp + 0x34]
push edx
push esi
push edi
mov dword [esi + 0x60], 1
call fcn.100151b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esp + 0x28], eax
jle 0x10014f5a
test ebx, ebx
jne 0x10014f5a
mov dword [esp + 0x28], eax
test cl, cl
js 0x10014fa1
cmp edx, 2
je 0x10014f6d
cmp edx, 4
je 0x10014f6d
cmp edx, 5
jne 0x10014fa1
cmp dword [edi + 0x78], 1
jle 0x10014f81
mov eax, dword [esi + 0x5c]
mov ecx, dword [esp + 0x2c]
mov dword [eax + ecx*8], 1
mov edx, dword [esp + 0x2c]
cmp dword [esi + 0x58], edx
jne 0x10014fb8
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.10015120
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
push 0
push esi
mov eax, edi
call fcn.10015eb0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10015420
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, ecx
cmp dword [esi + 0x91b8], 0
je 0x10015452
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x24
ret
push edi
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esi + 0x1c]
jle 0x10015494
push 4
push eax
push 0x1001
push 0xffff
push ebx
call edi
cmp eax, 0xffffffff
je 0x100155d2
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x100154b6
push 4
push eax
push 0x1002
push 0xffff
push ebx
call edi
cmp eax, 0xffffffff
je 0x100155d2
cmp ebp, 2
jne 0x100154ef
mov esi, dword [esi + 0x5c]
test esi, esi
je 0x100155e7
xor eax, eax
mov dword [esp + 0x10], eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x14], bp
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x14], eax
push 0x10
jmp 0x100155c2
cmp ebp, 0x17
jne 0x100155e7
lea edi, [esi + 0x60]
lea eax, [ebp - 7]
mov ecx, 0x10127ef0
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1001551d
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10015505
test eax, eax
je 0x1001557a
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1001556c
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1001557a
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1001556c
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1001557a
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1001556c
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1001557a
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x1001557a
test esi, esi
mov eax, 1
jg 0x1001557c
or eax, 0xffffffff
jmp 0x1001557c
xor eax, eax
test eax, eax
je 0x100155e7
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xc]
mov word [esp + 0x10], 0x17
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
push 0x1c
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x100155e7
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.1001d3e9
add esp, 0x24
ret
Function at 0x10016910
Capabilities:
Delete directory
Delete file
Move file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100e6808
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1012f5f0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x10016964
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x7c], 0x10
jb 0x10016b32
mov eax, dword [esp + 0x68]
push eax
jmp 0x10016b2a
lea esi, [eax - 1]
cmp esi, eax
jbe 0x10016970
call fcn.100201de
mov eax, dword [esp + 0x68]
mov ebp, 0x10
cmp dword [esp + 0x7c], ebp
jae 0x10016983
lea eax, [esp + 0x68]
cmp byte [eax + esi], 0x5c
je 0x10016999
push 1
push 0x10129994
lea eax, [esp + 0x6c]
call fcn.1000afc0
cmp dword [esp + 0x7c], ebp
mov edi, dword [esp + 0x68]
jae 0x100169a7
lea edi, [esp + 0x68]
call fcn.10016390
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x10016b02
mov edi, ebx
call fcn.10016440
test eax, eax
je 0x10016ae4
lea esp, [esp]
lea ebp, [eax + 0x10]
mov edi, 0x1012a4ac
mov esi, ebp
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10016ad2
mov edi, 0x1012a4b0
mov esi, ebp
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10016ad2
test dword [eax + 0xc], 0x4000
mov edi, ebp
je 0x10016a31
sub esp, 0x1c
mov eax, esp
lea ecx, [esp + 0x80]
mov dword [esp + 0x34], esp
push ecx
push eax
call fcn.10011ae0
add esp, 8
call fcn.10016910
add esp, 0x1c
jmp 0x10016ad2
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.10011ae0
add esp, 8
cmp dword [eax + 0x18], 0x10
jb 0x10016a4e
mov eax, dword [eax + 4]
jmp 0x10016a51
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
sete bl
cmp dword [esp + 0x50], 0x10
jb 0x10016a71
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1001d705
add esp, 4
test bl, bl
je 0x10016ace
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x20]
push eax
mov edi, ebp
call fcn.10011ae0
mov esi, 0x10
add esp, 8
cmp dword [eax + 0x18], esi
jb 0x10016a98
mov eax, dword [eax + 4]
jmp 0x10016a9b
add eax, 4
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp dword [esp + 0x34], esi
jb 0x10016ab9
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1001d705
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov ebx, dword [esp + 0x14]
mov edi, ebx
call fcn.10016440
test eax, eax
jne 0x100169d0
lea ebp, [eax + 0x10]
mov esi, dword [ebx + 0x114]
call fcn.10016280
push ebx
mov dword [ebx + 0x114], 0
call fcn.1001d70a
add esp, 4
cmp dword [esp + 0x7c], ebp
mov eax, dword [esp + 0x68]
jae 0x10016b10
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x7c], ebp
jb 0x10016b32
mov edx, dword [esp + 0x68]
push edx
call fcn.1001d705
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x10017040
Capabilities:
Get socket status

Disassembly:
sub esp, 0x110
push ebp
mov ebp, dword [esp + 0x118]
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], 0xa
mov dword [esp + 0x10], 0
call fcn.100b7a50
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push edx
add eax, 1
push eax
mov dword [esp + 0x24], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x100170af
mov eax, ebx
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edi
call fcn.100b5fa0
add esp, 0xc
test eax, eax
jle 0x100170af
add esi, eax
cmp esi, ebx
jl 0x10017051
mov eax, esi
pop esi
pop ebp
add esp, 0x110
ret

Function at 0x100170c0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x8120
call fcn.10033890
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x8118], eax
mov eax, dword [esp + 0x8124]
push ebp
mov ebp, dword [esp + 0x812c]
push esi
push edi
mov dword [esp + 0xc], eax
xor edi, edi
nop
push ebx
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x18], 0
call fcn.100b7a50
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
push edx
add eax, 1
push eax
mov dword [esp + 0x2c], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x10017172
mov eax, ebp
sub eax, edi
cmp eax, 0x8000
jb 0x10017140
mov eax, 0x8000
push eax
lea eax, [esp + 0x124]
push eax
push ebx
call fcn.100b5fa0
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x1001718a
mov eax, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x124]
push ecx
call fcn.1000afc0
add edi, esi
cmp edi, ebp
jl 0x100170f0
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8118]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x8120
ret
mov ecx, dword [esp + 0x8124]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.1001d3e9
add esp, 0x8120
ret
Function at 0x100171b0
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x100e622a
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
mov eax, dword [0x1012f5f0]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x13c], 0xf
mov dword [esp + 0x138], ebx
mov byte [esp + 0x128], bl
mov ebp, 1
mov dword [esp + 0x14c], ebp
push edi
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x1c], ebx
call fcn.100b7a50
add esp, 4
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], eax
push edx
add eax, ebp
push eax
mov dword [esp + 0x34], ebp
call sub.WS2_32.dll_select
cmp eax, ebx
jg 0x1001726e
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x12c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.1000d5f0
jmp 0x100172de
push ebp
lea edx, [esp + 0x13]
push edx
push edi
call fcn.100b5fa0
add esp, 0xc
cmp eax, ebp
jne 0x100172bf
movsx eax, byte [esp + 0xf]
push eax
call fcn.1001fe5b
add esp, 4
test eax, eax
je 0x100172bf
cmp byte [esp + 0xf], 0xa
je 0x100172bf
push ebp
lea ecx, [esp + 0x13]
push ecx
lea eax, [esp + 0x12c]
call fcn.1000afc0
push ebp
lea edx, [esp + 0x13]
push edx
push edi
call fcn.100b5fa0
add esp, 0xc
cmp eax, ebp
je 0x10017281
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x12c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.1000d5f0
mov byte [esp + 0x14c], bl
cmp dword [esp + 0x13c], 0x10
mov dword [esp + 0x10], ebp
jb 0x10017303
mov ecx, dword [esp + 0x128]
push ecx
call fcn.1001d705
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x144
ret

Function at 0x100173d0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x10017370
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
ret

Function at 0x100176e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push edi
push ebx
mov dword [esp + 0x1c], 0
mov dword [esi], 0
call ebp
test eax, eax
je 0x10017710
cmp eax, 0xea
jne 0x10017766
mov eax, dword [esp + 4]
test eax, eax
je 0x10017766
add eax, 1
push eax
call dword [0x10138fd4]
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x10017766
lea ecx, [esp + 4]
push ecx
push eax
push 0
push 0
push edi
push ebx
call ebp
test eax, eax
jne 0x10017754
mov eax, dword [esp + 4]
cmp eax, 1
je 0x10017754
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, 1
pop ebp
pop ecx
ret
mov eax, dword [esi]
push eax
call dword [0x10138fdc]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop ebp
pop ecx
ret