joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10215e86
Capabilities:
Set registry value

Disassembly:
push 0x130
mov eax, 0x10275124
call fcn.10237635
mov esi, ecx
mov dword [ebp - 0x13c], esi
xor ebx, ebx
lea eax, [ebp - 0x118]
inc ebx
xor edi, edi
push ebx
push ecx
push 0x64
push eax
lea ecx, [ebp - 0x12c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call fcn.100b5e5f
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x12c]
mov ecx, esi
call fcn.10215d99
cmp dword [0x102cdb4c], edi
jne 0x10216055
push edi
lea eax, [ebp - 0x130]
push eax
push edi
push 0xf003f
push ebx
push edi
push edi
push 0x10060378
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10215f2c
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x102cda50]
mov ecx, esi
push eax
push 0x100a956c
call dword [0x102dc578]
call esi
add esp, 0xc
jmp 0x10216055
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x100a9594
push 0x20
pop ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.1021072f
lea ecx, [ebp - 0x50]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10215f55
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
lea edx, [ebp - 0x50]
push 0
push 0x1005a6a8
lea ecx, [eax + ecx*2]
mov eax, ecx
mov dword [ebp - 0x138], ecx
sub eax, edx
sar eax, 1
sub ebx, eax
push ebx
push ecx
call fcn.1021072f
add esp, 0x10
lea eax, [ebp - 0x134]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x130]
call dword [0x102a9c4c]
test eax, eax
jne 0x10215fe9
mov esi, dword [ebp - 0x138]
inc edi
push edi
push 0x1005a6a8
push ebx
push esi
call fcn.1021072f
add esp, 0x10
lea eax, [ebp - 0x134]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x130]
call dword [0x102a9c4c]
test eax, eax
je 0x10215fb2
mov esi, dword [ebp - 0x13c]
push dword [ebp - 0x124]
lea eax, [ebp - 0x50]
push dword [ebp - 0x12c]
push 1
push 0
push eax
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10216034
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x102cda50]
mov ecx, esi
push eax
push 0x100a956c
call dword [0x102dc578]
call esi
add esp, 0xc
jmp 0x10216049
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.100b5ef7
call fcn.102375e9
ret
Function at 0x1021606f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x102160ea
push edi
lea eax, [ebp - 0x48]
push eax
push edi
push 0xf003f
push 1
push edi
push edi
push 0x10060378
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102160ea
push dword [esi + 0x18]
lea eax, [ebp - 0x44]
push dword [esi + 0x14]
push dword [esi + 0x10]
push 0x100a95ac
push 0x20
push eax
call fcn.1021072f
add esp, 0x18
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x48]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10236010
mov esp, ebp
pop ebp
ret

Function at 0x102161b8
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x102cdb4c], 0
jne 0x102162ac
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ebx
lea eax, [ebp - 0x48]
push eax
push 0xf013f
push ebx
test esi, esi
jne 0x102161f3
push 0x10060378
jmp 0x102161f8
push 0x100603c8
push 0x80000002
call dword [0x102a9c48]
test eax, eax
jne 0x1021629f
push ebx
push ebx
lea eax, [ebp - 0x50]
mov edi, ebx
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
jmp 0x10216282
cmp dword [ebp - 0x50], 1
jne 0x10216271
cmp dword [ebp - 0x4c], 0x1a
jb 0x10216271
push 0x10
lea eax, [ebp - 0x44]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
test eax, eax
je 0x10216271
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10216259
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10216271
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10216271
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
push ebx
lea eax, [ebp - 0x50]
inc edi
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0x20
call dword [0x102a9c44]
test eax, eax
je 0x1021621f
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 2
jb 0x102161de
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10236010
mov esp, ebp
pop ebp
ret
Function at 0x10216a49
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov esi, ecx
call fcn.102154a7
test eax, eax
jne 0x10216ab1
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.1021c644
test eax, eax
jne 0x10216ab1
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x102dc578]
mov ecx, ebx
call esi
mov esi, eax
test esi, esi
jne 0x10216aa8
push 0xc
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
pop ecx
test edi, edi
jne 0x10216ac4
mov esi, 0x8007000e
mov ecx, ebx
call fcn.10217156
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 8]
mov dword [edi + 4], eax
mov al, byte [ebp + 8]
mov byte [edi + 8], al
lea eax, [ebp - 0x10]
push eax
xor eax, eax
mov dword [edi], ebx
push eax
push edi
push 0x10216880
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10216b1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10216afc
mov esi, 0x80004005
jmp 0x10216b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10216b11
movzx esi, si
or esi, 0x80070000
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
jmp 0x10216aa8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 8], 0
je 0x10216b48
mov esi, 0xc8
jmp 0x10216b3e
mov eax, esi
dec esi
test eax, eax
je 0x10216b44
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [edi + 8], 0
jne 0x10216b2f
mov byte [edi + 8], 1
xor eax, eax
jmp 0x10216ab1
Function at 0x10216b54
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x10
pop edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], edi
push eax
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
call dword [0x102a9c80]
test eax, eax
jne 0x10216bbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100a98b4
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.1021072f
lea ecx, [ebp - 0x24]
add esp, 0x10
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10216bac
sub ecx, edx
sar ecx, 1
jmp 0x10216bda
mov ecx, dword [ebp - 0x230]
test ecx, ecx
jne 0x10216be0
push edi
push 0xffffffffffffffff
mov edx, 0x100a98c4
lea ecx, [ebp - 0x24]
call fcn.102105bd
push 6
pop ecx
mov dword [ebp - 0x230], ecx
lea eax, [ecx*2 + 2]
cmp eax, 0x20
jbe 0x10216bf5
push 0xf
pop ecx
mov dword [ebp - 0x230], ecx
add ecx, ecx
cmp ecx, 0x20
jae 0x10216cee
xor eax, eax
mov edi, 0x101
mov word [ebp + ecx - 0x24], ax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x10216c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100a98d4
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1021072f
lea ecx, [ebp - 0x228]
add esp, 0x10
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10216c51
sub ecx, edx
sar ecx, 1
jmp 0x10216c82
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jne 0x10216c88
push edi
push 0xffffffffffffffff
mov edx, 0x100a98e4
lea ecx, [ebp - 0x228]
call fcn.102105bd
push 6
pop ecx
mov dword [ebp - 0x22c], ecx
lea eax, [ecx*2 + 2]
cmp eax, 0x20
jbe 0x10216c9d
push 0xf
pop ecx
mov dword [ebp - 0x22c], ecx
add ecx, ecx
cmp ecx, 0x202
jae 0x10216cee
xor eax, eax
mov word [ebp + ecx - 0x228], ax
lea eax, [ebp - 0x234]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.100b5c1c
push 0x5c
mov ecx, esi
call fcn.100b59b1
push 0xffffffffffffffff
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.100b594f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10236010
mov esp, ebp
pop ebp
ret
call fcn.10236265
int3
Function at 0x102171a2
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ecx
push esi
mov esi, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x102171c0
sub ebx, ecx
xor edx, edx
sar ebx, 1
add ebx, ebx
push 3
pop ecx
lea eax, [ebx*4 + 2]
div ecx
cmp eax, 0x20
jbe 0x10217201
mov esi, dword [0x102cda50]
mov ecx, esi
push 0x100a9910
call dword [0x102dc578]
call esi
pop ecx
xor al, al
jmp 0x102172f7
push edi
push 8
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc]
push 3
pop ecx
cmp ebx, ecx
jb 0x1021727e
mov eax, ebx
xor edx, edx
div ecx
mov dword [ebp - 8], eax
movzx edx, byte [edi]
sub ebx, 3
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
add edi, 3
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
push 0x3f
pop ecx
and eax, ecx
mov al, byte [eax + 0x100aa7e0]
mov byte [esi], al
mov eax, edx
shr eax, 0xc
and eax, ecx
mov al, byte [eax + 0x100aa7e0]
mov byte [esi + 1], al
mov eax, edx
shr eax, 6
and edx, ecx
and eax, ecx
mov al, byte [eax + 0x100aa7e0]
mov byte [esi + 2], al
mov al, byte [edx + 0x100aa7e0]
mov byte [esi + 3], al
add esi, 4
dec dword [ebp - 8]
jne 0x1021721e
dec ebx
je 0x102172c9
dec ebx
jne 0x102172f4
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + 0x100aa7e0]
mov byte [esi], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
shr ecx, 6
and ecx, 0x3f
mov al, byte [eax + 0x100aa7e0]
mov byte [esi + 1], al
mov al, byte [ecx + 0x100aa7e0]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x102172f4
movzx ecx, byte [edi]
shl ecx, 0x10
mov eax, ecx
shr ecx, 0xc
shr eax, 0x12
and eax, 0x3f
and ecx, 0x3f
mov al, byte [eax + 0x100aa7e0]
mov byte [esi], al
mov al, byte [ecx + 0x100aa7e0]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret
Function at 0x1021880c
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x10285008]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
push 1
xor eax, eax
mov edi, ecx
push eax
push eax
push eax
lea ebx, [edi + 0x120]
movzx eax, word [ebx]
push 1
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [edi + 0x1a4], eax
cmp eax, 0xffffffff
jne 0x10218883
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x10218865
mov esi, 0x80004005
jmp 0x102189f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test esi, esi
jle 0x102189f1
movzx esi, si
or esi, 0x80070000
jmp 0x102189f1
push dword [edi + 0x1a0]
push ebx
push eax
jmp 0x102188fd
movzx eax, word [edi + 0x122]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x102189f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test esi, esi
jle 0x102188c5
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80072740
jne 0x102189de
mov eax, dword [esp + 0x14]
cmp dword [edi + 0x1d0], eax
jbe 0x102189de
inc eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0x122], ax
push dword [edi + 0x1a0]
push ebx
push dword [edi + 0x1a4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1021888d
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x80
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x102189bf
mov ax, word [esp + 0x1a]
push 4
mov word [edi + 0x122], ax
lea eax, [esp + 0x14]
push eax
push 0xffffff7f
push 0xffff
push dword [edi + 0x1a4]
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [edi + 0x34c], 0
je 0x102189a9
movzx eax, word [edi + 0x122]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
call fcn.1021dd13
test eax, eax
je 0x102189a9
mov ecx, eax
call fcn.10210755
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x102cda50]
mov ecx, esi
push eax
push 0x100aa29c
call dword [0x102dc578]
call esi
add esp, 0xc
push 0x7fffffff
push dword [edi + 0x1a4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x102189fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x102189f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test esi, esi
jle 0x102189de
movzx esi, si
or esi, 0x80070000
push dword [edi + 0x1a4]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [edi + 0x1a4], 0xffffffff
mov eax, esi
jmp 0x102189fe
mov esi, 0x80004005
jmp 0x102189de
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10236010
mov esp, ebp
pop ebp
ret
Function at 0x10218a18
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1a0]
push ebx
lea eax, [esi + 0x120]
mov dword [ebx], 0x80
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov dword [esi + 0x1a4], edi
cmp edi, 0xffffffff
jne 0x10218a68
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jle 0x10218aef
movzx eax, ax
or eax, 0x80070000
jmp 0x10218aef
mov ecx, dword [esi + 0x3d0]
test ecx, ecx
je 0x10218aae
mov ax, word [esi + 0x122]
mov word [esi + 0x352], ax
cmp dword [ebx], ecx
jne 0x10218aa0
push dword [ebx]
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0x350]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10218aae
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, 0x80070005
jmp 0x10218ac7
mov ecx, esi
call fcn.102186f2
mov edi, eax
test edi, edi
je 0x10218ad2
push dword [esi + 0x1a4]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x1a4], 0xffffffff
mov eax, edi
jmp 0x10218aef
push 4
xor ecx, ecx
lea eax, [ebp - 4]
push eax
inc ecx
push ecx
push 6
push dword [esi + 0x1a4]
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10218afd
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.102186f2
test eax, eax
jne 0x10218b94
push ebx
push edi
push 1
xor edi, edi
lea ebx, [esi + 0x120]
movzx eax, word [ebx]
push edi
push edi
push edi
push 1
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x1a4], eax
cmp eax, 0xffffffff
je 0x10218bac
push dword [esi + 0x1a0]
push ebx
push eax
jmp 0x10218b6a
inc edi
cmp edi, dword [esi + 0x114]
ja 0x10218b99
mov eax, dword [esi + 0x118]
test eax, eax
je 0x10218b5d
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0x1a0]
push ebx
push dword [esi + 0x1a4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10218b43
push 4
xor ecx, ecx
lea eax, [ebp - 4]
push eax
inc ecx
push ecx
push 6
push dword [esi + 0x1a4]
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x1a4]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x1a4], 0xffffffff
mov eax, 0x80010007
jmp 0x10218b92
Function at 0x1021c994
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, edx
mov dword [ebp - 0x14], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
cmp eax, 3
jne 0x1021ca54
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], esi
xor esi, esi
push esi
push ecx
push esi
push ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 1
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1021c9ed
xor eax, eax
jmp 0x1021caf0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1021ca29
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1021ca0e
mov eax, 0x80004005
jmp 0x1021caf0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jle 0x1021caf0
movzx eax, ax
or eax, 0x80070000
jmp 0x1021caf0
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
push dword [ebp - 0x18]
push edi
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x1021caee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1021cab7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1021cac4
push ecx
push ebx
push dword [ebp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1021caec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1021ca7a
mov esi, 0x80004005
jmp 0x1021ca8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1021ca8f
movzx esi, si
or esi, 0x80070000
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1021cad5
push 1
push ebx
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1021caec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1021cabe
mov esi, 0x80004005
jmp 0x1021caee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1021caee
movzx esi, si
or esi, 0x80070000
jmp 0x1021caee
cmp dword [ebp - 0x14], 2
je 0x1021caee
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
jmp 0x1021caee
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1021d20d
Capabilities:
Resolve dns

Disassembly:
push 0xa4
mov eax, 0x1027572e
call fcn.10237635
mov ebx, edx
mov esi, ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xb0], eax
test ebx, ebx
je 0x1021d242
push 0x80
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x1021d250
movzx eax, word [edi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ebx, ax
push 0x5c
pop eax
cmp word [esi], ax
jne 0x1021d261
cmp word [esi + 2], ax
jne 0x1021d261
add esi, 4
push 1
push ecx
push 0x40
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xa4]
call fcn.100b5e5f
mov dword [ebp - 4], 1
lea eax, [ebp - 0xac]
push eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0xa4]
call fcn.100b5c1c
neg eax
sbb eax, eax
not eax
and dword [ebp - 0xac], eax
jne 0x1021d2ac
mov esi, 0x8007000e
jmp 0x1021d35e
cmp dword [ebp - 0x9c], 2
lea ecx, [ebp - 0xa8]
push ecx
sbb eax, eax
push 0
not eax
and eax, dword [ebp - 0xa4]
push 0
push eax
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov esi, eax
test esi, esi
je 0x1021d2e6
jle 0x1021d35e
movzx esi, si
or esi, 0x80070000
jmp 0x1021d35e
mov esi, dword [ebp - 0xa8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1021d2fb
cmp dword [esi + 4], ecx
jne 0x1021d30d
test eax, eax
je 0x1021d304
cmp dword [esi + 0x10], eax
ja 0x1021d30d
cmp dword [esi + 0x10], 0x80
jbe 0x1021d314
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1021d2f2
test esi, esi
jne 0x1021d32b
push dword [ebp - 0xa8]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov esi, 0x80004002
jmp 0x1021d35e
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0xb0]
add esp, 0xc
mov eax, dword [esi + 0x10]
push dword [ebp - 0xa8]
mov dword [ecx], eax
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 2], ax
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.100b5ef7
mov eax, esi
call fcn.102375e9
ret 0x10
Function at 0x10222c11
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
test esi, esi
jne 0x10222cb9
test cl, 1
jne 0x10222c73
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10222c73
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10222c51
mov esi, 0x80004005
jmp 0x10222c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10222c66
movzx esi, si
or esi, 0x80070000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x10222cb6
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
add ecx, ecx
mov esi, dword [ebp + 0x10]
cdq
and dword [ebx + ecx*8 + 0xc], 0
mov dword [ebx + ecx*8], eax
xor eax, eax
mov dword [ebx + ecx*8 + 4], edx
mov edx, dword [ebp + 0x18]
mov dword [ebx + ecx*8 + 8], esi
test edx, edx
je 0x10222cf3
xor ecx, ecx
inc eax
cmp dword [ebp + 0x1c], ecx
jbe 0x10222cf3
add edx, 8
cmp dword [edx], esi
je 0x10222cb2
inc ecx
add edx, 0x10
cmp ecx, dword [ebp + 0x1c]
jb 0x10222ca3
jmp 0x10222cf3
xor eax, eax
jmp 0x10222cf3
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10222cf1
push edi
mov edi, ebx
shl edi, 4
add edi, dword [ebp - 8]
lea edi, [edi - 0x10]
dec ebx
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x10222ce9
test cl, 1
jne 0x10222ce1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test ebx, ebx
jne 0x10222cc9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10225d38
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, edx
push esi
test ecx, ecx
je 0x10225d87
movzx eax, word [ecx + 0x14]
lea esi, [ecx + 0x18]
push edi
movzx edi, word [ecx + 6]
add esi, eax
xor edx, edx
test edi, edi
je 0x10225d73
mov ecx, dword [esi + 0xc]
cmp dword [ebp + 8], ecx
jb 0x10225d6b
mov eax, dword [esi + 0x10]
add eax, ecx
cmp dword [ebp + 8], eax
jb 0x10225d75
add esi, 0x28
inc edx
cmp edx, edi
jb 0x10225d59
xor esi, esi
pop edi
test esi, esi
je 0x10225d87
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0xc]
add eax, ebx
add eax, dword [ebp + 8]
jmp 0x10225d89
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8