joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5aaf88
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x5ab059
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5ab06c
call sub.kernel32.dll_LoadLibraryA
test eax, eax
jbe 0x5aafb8
push 0x5ab078
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
test ebx, ebx
je 0x5aafdb
lea eax, [ebp - 4]
push eax
push 0x40
push 3
push ebx
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov ecx, 3
mov eax, 0x5ab094
call fcn.00402b38
push 0x5ab098
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
jbe 0x5aaff8
push 0x5ab0a4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
test esi, esi
je 0x5ab01b
lea eax, [ebp - 4]
push eax
push 0x40
push 3
push esi
call sub.kernel32.dll_VirtualProtect
mov edx, esi
mov ecx, 3
mov eax, 0x5ab0bc
call fcn.00402b38
test ebx, ebx
jbe 0x5ab02c
push 0x5ab0c0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
test edi, edi
je 0x5ab04f
lea eax, [ebp - 4]
push eax
push 0x40
push 3
push edi
call sub.kernel32.dll_VirtualProtect
mov edx, edi
mov ecx, 3
mov eax, 0x5ab094
call fcn.00402b38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ab063
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x5abb34
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x5abbc5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403390
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x30
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404e38
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x5abbaf
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5abbcc
lea eax, [ebp - 4]
call fcn.0040495c
ret
Function at 0x5ad110
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e28
mov eax, dword [ebp - 8]
call fcn.00404e28
xor eax, eax
push ebp
push 0x5ad1e2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5ad1b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x60]
mov edx, 0x44
call fcn.00407e40
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 4]
push 0x5ad1fc
push dword [ebp - 8]
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00404cf8
mov eax, dword [ebp - 0x64]
call fcn.00404e38
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ad1bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ad1e9
lea eax, [ebp - 0x64]
call fcn.0040495c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404980
ret

Function at 0x5ad878
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov esi, edx
mov ebx, eax
push 0x13
lea eax, [esp + 4]
push eax
push ebx
push 0x800
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jg 0x5ad89b
mov byte [esp], 0
mov eax, esi
mov edx, esp
mov ecx, 0x15
call fcn.00404bcc
add esp, 0x18
pop esi
pop ebx
ret

Function at 0x5b205c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x5b20da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404e38
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x5b20a5
mov eax, dword [ebx + 4]
call fcn.00404e38
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b20e1
lea eax, [ebp - 4]
call fcn.0040495c
ret
Function at 0x5b30ac
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5b3249
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402cc4
cmp word [ebx + 0xa2], 0
je 0x5b30f5
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x5b3109
lea esi, [ebp - 8]
jmp 0x5b310b
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x5b3118
xor edi, edi
jmp 0x5b3125
mov eax, dword [ebx + 0x80]
call fcn.00404e38
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00404e38
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.005b2814
mov eax, dword [ebp - 0x14]
call fcn.00404e38
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00404e38
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404e38
push eax
mov eax, ebx
call fcn.005b2948
push eax
mov eax, ebx
call fcn.005b291c
push eax
mov eax, ebx
call fcn.005b28d0
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.005b26e0
mov eax, dword [ebp - 0x18]
call fcn.00404e38
push eax
mov eax, dword [ebx + 8]
call fcn.00404e38
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x5b31ae
call fcn.0040eef4
xor edx, edx
push ebp
push 0x5b3227
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x5b31ec
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x5b31e2
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b3210
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b322e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x5b3258
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x5b3284
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404e38
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5b32a9
call fcn.0040eef4
xor eax, eax
push ebp
push 0x5b32e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x5b32c9
call fcn.0040eef4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b32e7
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x5b3b5c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5b3c20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
sub eax, 1
jb 0x5b3b8f
je 0x5b3ba2
dec eax
je 0x5b3bb5
jmp 0x5b3bc6
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp 0x5b3bc6
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x5b3bc6
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
cmp ebx, 2
jne 0x5b3bdf
mov eax, esi
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404bcc
jmp 0x5b3c07
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404bcc
mov edx, dword [ebp - 0x104]
mov eax, esi
mov ecx, 0x5b3c38
call fcn.00404c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b3c27
lea eax, [ebp - 0x104]
call fcn.0040495c
ret

Function at 0x5b3c3c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x5b3ccd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403390
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x30
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404e38
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x5b3cb7
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b3cd4
lea eax, [ebp - 4]
call fcn.0040495c
ret

Function at 0x5b41a0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x5b4215
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x5b420b
push 0xf01ff
mov eax, esi
call fcn.00404e38
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x5b4205
lea eax, [ebp - 8]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b4247
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x5b4258
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x5b4394
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x418c34]
call fcn.00403afc
mov ebx, eax
mov edx, 0x5b43a8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b43bc
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b4414
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b4424
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b4448
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b4460
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b4448
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b4460
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b447c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b4460
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b4448
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b4460
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b4490
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5b449c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 4]
mov eax, 2
call fcn.005b3b5c
lea eax, [ebp - 4]
mov edx, 0x5b44ac
call fcn.00404c40
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403b2c
push 0
lea edx, [ebp - 8]
mov eax, 2
call fcn.005b3b5c
lea eax, [ebp - 8]
mov edx, 0x5b44ac
call fcn.00404c40
mov eax, dword [ebp - 8]
call fcn.00404e38
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b439b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404980
ret
Function at 0x5b44b4
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x5b45ab
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404e38
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5b458e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
je 0x5b456a
push 0x3e8
call sub.kernel32.dll_Sleep_1
jmp 0x5b4547
mov eax, dword [0x5d09f4]
mov eax, dword [eax]
call fcn.00482ba0
cmp dword [ebp - 0x28], 3
jne 0x5b4558
push 0x3e8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x5b452b
cmp dword [ebp - 0x28], 1
jne 0x5b4564
mov byte [ebp - 5], 1
jmp 0x5b456e
mov byte [ebp - 5], 0
jmp 0x5b456e
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b4595
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x5b5160
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x5b530a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0x5b5318
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jne 0x5b51a9
mov eax, edi
mov edx, 0x5b5330
call fcn.004049b0
jmp 0x5b52f4
push 4
mov eax, dword [ebp - 4]
call fcn.00404e38
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jne 0x5b51e4
push ebx
call sub.advapi32.dll_CloseServiceHandle
push 0x5b5364
push dword [ebp - 4]
push 0x5b5388
mov eax, edi
mov edx, 3
call fcn.00404cf8
jmp 0x5b52f4
lea eax, [ebp - 0x20]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x5b5203
mov eax, edi
mov edx, 0x5b5394
call fcn.004049b0
jmp 0x5b52e8
mov eax, dword [ebp - 0x1c]
cmp eax, 7
ja case.0x5b520f.0
jmp dword [eax*4 + 0x5b5216]
push 0x5b53c0
push dword [ebp - 4]
push 0x5b53d8
mov eax, edi
mov edx, 3
call fcn.00404cf8
jmp 0x5b52e8
push 0x5b53c0
push dword [ebp - 4]
push 0x5b53f8
mov eax, edi
mov edx, 3
call fcn.00404cf8
jmp 0x5b52e8
push 0x5b53c0
push dword [ebp - 4]
push 0x5b5414
mov eax, edi
mov edx, 3
call fcn.00404cf8
jmp 0x5b52e8
mov eax, edi
mov edx, 0x5b542c
call fcn.004049b0
jmp 0x5b52e8
push 0x5b53c0
push dword [ebp - 4]
push 0x5b5438
mov eax, edi
mov edx, 3
call fcn.00404cf8
jmp 0x5b52e8
push 0x5b53c0
push dword [ebp - 4]
push 0x5b5450
mov eax, edi
mov edx, 3
call fcn.00404cf8
jmp 0x5b52e8
mov eax, edi
mov edx, 0x5b5468
call fcn.004049b0
jmp 0x5b52e8
mov eax, edi
mov edx, 0x5b5474
call fcn.004049b0
push ebx
call sub.advapi32.dll_CloseServiceHandle
push esi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b5311
lea eax, [ebp - 4]
call fcn.0040495c
ret

Function at 0x5b9280
Capabilities:
Create thread

Disassembly:
push ebx
add esp, 0xffffffe0
mov ebx, eax
lea eax, [esp + 0xc]
mov edx, 0x14
call fcn.00407e40
call sub.kernel32.dll_GetCurrentProcessId
mov dword [esp + 4], eax
test bl, bl
jne 0x5b92a7
xor eax, eax
mov dword [esp + 4], eax
cmp dword [0x5d5cac], 0xffffffff
je 0x5b92e9
push esp
push 0
push 0
push 0x5b908c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x5d5cb0]
push eax
mov eax, dword [0x5d5cac]
push eax
call sub.kernel32.dll_DeviceIoControl
mov eax, 1
add esp, 0x20
pop ebx
ret
Function at 0x1004a7b
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x10080d3
call fcn.01005de8
sub esp, 0x20c
mov eax, dword [0x100a19c]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
push 0x20019
push 0x1001208
push 0x80000002
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.01001916
cmp eax, esi
je 0x1004ac4
mov esi, eax
jmp 0x1004b2b
push edi
xor edi, edi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc edi
cmp eax, 0x103
je 0x1004b2a
cmp eax, esi
jne 0x1004b2a
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.01004574
test al, al
je 0x1004ac7
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
mov ecx, ebx
call fcn.01004841
jmp 0x1004ac7
pop edi
lea ecx, [ebp - 0x214]
call fcn.010018f8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01005aae
leave
ret

Function at 0x1006093
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x30]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10060b1
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
or dword [esi], 0xffffffff
push 0x1001674
call dword [sym.imp.WSOCK32.dll_inet_addr]
push esi
push 0
push eax
call fcn.01006800
test eax, eax
mov dword [ebp - 4], eax
jne 0x10060ec
push ebx
lea ebx, [edi + 0x2c]
push ebx
add edi, 0x28
push edi
push dword [esi]
call fcn.010066ce
mov dword [ebp - 4], eax
xor eax, eax
mov ax, word [ebx]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x1006365
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp eax, 0xc0000120
push ebx
push esi
push edi
mov ebx, ecx
je 0x10064b4
cmp byte [0x100a2ac], 0
jne 0x10064b4
test eax, eax
mov edi, dword [ebp + 0x10]
mov esi, dword [edi + 8]
je 0x10063fb
cmp eax, 0x3e3
je 0x1006481
cmp eax, 0x2775
je 0x1006499
cmp eax, 0x2746
je 0x1006499
cmp eax, 0x274c
je 0x1006499
cmp eax, 0x2742
je 0x1006499
cmp eax, 0x2736
je 0x1006499
cmp eax, 0x274a
je 0x1006499
cmp eax, 0x2745
jne 0x1006481
jmp 0x1006499
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
add edi, 0x50
push edi
mov ecx, ebx
call fcn.01005f1d
test eax, eax
jl 0x100646f
xor edi, edi
cmp dword [ebp - 4], edi
je 0x100646f
push 4
lea eax, [ebx + 0x30]
push eax
push 0x700b
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
push 0x6c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x1006449
mov ecx, eax
call fcn.0100721e
mov edi, eax
test edi, edi
je 0x100646f
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call fcn.01007850
test eax, eax
jl 0x100647b
push edi
mov ecx, 0x100a2b0
call fcn.01007d8e
jmp 0x100647b
cmp esi, 0xffffffff
je 0x100647b
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov edi, dword [ebp + 0x10]
or esi, 0xffffffff
push 0
push ebx
push 0x1006fd5
push edi
push esi
push dword [ebx + 0x30]
push 0
call fcn.01006af4
test eax, eax
je 0x10064ca
cmp esi, 0xffffffff
je 0x10064a5
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, ebx
call fcn.010060f8
push edi
call fcn.01007a82
jmp 0x10064ca
push dword [ebp + 0x10]
call fcn.01007a82
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10064ca
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10066ce
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a19c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x100670b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x1006721
test esi, esi
je 0x1006714
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
test edi, edi
je 0x100671f
mov ax, word [ebp - 0x12]
mov word [edi], ax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005aae
leave
ret 0xc
Function at 0x1006800
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100a19c]
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
call dword [sym.imp.WSOCK32.dll_ntohs]
push 1
xor edi, edi
push edi
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
jne 0x1006847
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
jmp 0x10068c0
push ebx
push edi
push 0x100661e
push esi
call dword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
push 4
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
mov ebx, 0x1001
push ebx
mov edi, 0xffff
push edi
push esi
mov esi, dword [sym.imp.WSOCK32.dll_setsockopt]
call esi
and dword [ebp - 0x18], 0
push 4
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
mov edi, dword [ebp - 0x1c]
push edi
call esi
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
pop ebx
je 0x10068c4
mov cx, word [ebp + 0xc]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
mov word [ebp - 0x14], 2
mov word [ebp - 0x12], cx
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x10068c4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push edi
mov esi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, esi
jmp 0x10068cb
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005aae
leave
ret 0xc

Function at 0x1006975
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [0x100a2ac], bl
je 0x100698f
mov eax, 0x3eb
jmp 0x1006a48
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10069ab
push edi
call fcn.0100679a
test al, al
jne 0x10069ab
mov eax, 0x3eb
jmp 0x1006a47
mov ecx, dword [ebp + 0x10]
test ecx, ecx
push esi
jne 0x10069d4
push dword [ebp + 0x14]
xor esi, esi
call fcn.010079f5
mov ebx, eax
test ebx, ebx
mov ecx, ebx
jne 0x10069d7
test edi, edi
je 0x10069cf
push edi
call fcn.010067cb
push 8
pop eax
jmp 0x1006a46
mov esi, dword [ebp + 0x18]
lea edx, [ecx + 0x18]
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
and dword [ecx + 0x2c], 0
mov dword [ecx + 0xc], edi
mov edi, dword [ebp + 0x20]
push edx
mov dword [ecx + 0x10], edi
mov edi, dword [ebp + 0x24]
push 0x100a2d4
push dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0x14], edi
lea ecx, [ecx + esi + 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006a42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x1006a42
cmp dword [ebp + 8], 0
je 0x1006a36
push dword [ebp + 8]
call fcn.010067cb
test ebx, ebx
je 0x1006a44
push ebx
call fcn.01007a82
jmp 0x1006a44
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 0x20