joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009860
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029dc8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100370b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov esi, dword [ebp + 0x10]
push esi
mov dword [ebp + 0xc], edi
call fcn.10009900
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.10009900
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
movups xmm0, xmmword [esi + 0x50]
movups xmmword [edi + 0x50], xmm0
movups xmm0, xmmword [esi + 0x60]
movups xmmword [edi + 0x60], xmm0
movq xmm0, qword [esi + 0x70]
movq qword [edi + 0x70], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000c040
Capabilities:
Create service
Delete service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100370b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x1000c173
test eax, eax
je 0x1000c173
push 0xf003f
push 0
push 0
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x1000c173
movzx eax, word [ebp + 0x10]
push edi
mov edi, dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
sub eax, 1
je 0x1000c0fd
sub eax, 1
jne 0x1000c16c
push 0xf01ff
push esi
push ebx
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_OpenServiceA]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1000c0c3
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
push dword [ebp - 0x24]
call edi
push 0xf01ff
push esi
push ebx
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1000c0e0
push esi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
push esi
call edi
mov esi, 1
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100142a9
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x24]
push 1
push 3
push 1
push 0xf01ff
push esi
push esi
push ebx
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_CreateServiceA]
test eax, eax
jne 0x1000c133
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x431
je 0x1000c136
xor esi, esi
jmp 0x1000c0e5
push eax
call edi
push 0xf01ff
push esi
push ebx
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1000c16c
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_StartServiceA]
test eax, eax
jne 0x1000c0dd
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x420
je 0x1000c0e0
push esi
call edi
xor esi, esi
jmp 0x1000c0e5
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.100142a9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10012710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push edi
or edi, 0xffffffff
test eax, eax
je 0x1001276c
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegOpenKeyA]
test eax, eax
jne 0x1001276c
push esi
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
cmove edi, eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10012f30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10012fb8
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegOpenKeyA]
test eax, eax
lea eax, [ebp + 0x14]
jne 0x10012f79
push 4
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x10012fb8
xor eax, eax
pop esi
pop ebp
ret 0x10
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExA]
test eax, eax
jne 0x10012fb8
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
or eax, 0xffffffff
pop esi
pop ebp
ret 0x10

Function at 0x100130a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push ebx
push esi
push eax
push dword [ebp + 0xc]
or ebx, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegOpenKeyA]
test eax, eax
jne 0x10013172
mov esi, dword [ebp + 0x10]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100130d0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.10013ccd
mov edx, eax
add esp, 4
test edx, edx
jne 0x100130ff
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, edx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10013103
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
push edx
push 0
push 0
push dword [ebp - 4]
call fcn.10013180
mov esi, dword [ebp - 8]
mov edi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x1001316c
mov ebx, dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyA]
nop dword [eax]
push dword [esi + 4]
call edi
push dword [esi + 8]
push dword [esi]
call ebx
push 1
push dword [esi + 8]
call fcn.10013cbf
mov eax, esi
mov esi, dword [esi + 0xc]
push 0x10
push eax
call fcn.10013cbf
add esp, 0x10
test esi, esi
jne 0x10013140
xor ebx, ebx
push dword [ebp - 4]
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10013180
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x100131c1
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edi
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
je 0x100131bc
mov eax, dword [ebp + 0x18]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 4]
jmp 0x100131c4
mov dword [ebp - 4], eax
push esi
push 0x168
push 0x10037df8
push dword [ebp + 0x10]
push eax
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegEnumKeyA]
test eax, eax
jne 0x10013239
mov ecx, 0x10037df8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100131e5
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.10013ccd
mov edx, 0x10037df8
mov esi, eax
add esp, 4
sub esi, edx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x10013203
push dword [ebp + 0x18]
push eax
push 0
push 0
push dword [ebp - 4]
call fcn.10013180
push eax
mov eax, dword [ebp + 0x10]
push edi
inc eax
push eax
push dword [ebp - 4]
push ebx
call fcn.10013180
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0xc], 0
lea esi, [eax + 0xc]
jne 0x10013263
push 0x10
call fcn.10013ccd
mov dword [esi], eax
add esp, 4
mov dword [eax], ebx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1001906d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1001904b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10019069
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100190c7
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100190ae
invalid
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100190b7
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100190c1
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100190a3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1001902d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10019114
dec eax
je 0x1001910b
sub eax, 3
je 0x10019102
mov dword [ebp - 4], 0x40
jmp 0x10019131
mov dword [ebp - 4], 4
jmp 0x10019117
mov dword [ebp - 4], 0x20
jmp 0x10019117
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
invalid
test eax, eax
je 0x10019163
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x100190e3
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10018974
lea edi, [ebx - 0x67]
das
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1001916f
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100190a9
Capabilities:
Inspect section memory permissions

Disassembly:
add al, 0x80
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
Function at 0x4167af
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4167f6
cmp ebx, 0x20
je 0x4167f6
cmp ebx, 0xffffffe0
je 0x4167f6
jne 0x4167ff
add eax, 1
cmp esi, eax
je 0x41680c
jne 0x4167db
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x416810
jne 0x4167d7
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x416824
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x416869
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x41686f
add eax, 4
pop esi
dec esi
push esi
jne 0x416851
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x4703b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x512d30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.005070d6
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.004763a0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x470404
jmp dword [ecx*4 + 0x47056c]
mov al, byte [esi]
test al, al
je 0x470432
cmp al, 0x20
je 0x47041e
cmp al, 0xa1
jne 0x470432
cmp byte [esi + 1], al
jne 0x470432
test al, 0x80
je 0x47042a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x470432
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x470411
test ecx, ecx
je case.default.0x470404
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x470404
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x470478
cmp dl, 0xa1
jne 0x47046c
cmp byte [eax + 1], 0xa1
jne 0x47046c
test ecx, ecx
jne 0x470464
mov edi, eax
mov ecx, 1
inc eax
jmp 0x47048c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x4704a6
jmp 0x47048c
cmp dl, 0x20
jne 0x47048a
test ecx, ecx
jne 0x470483
mov edi, eax
mov ecx, 1
jmp 0x47048c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x47044c
cmp ecx, 1
jne case.default.0x470404
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x470404
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x470404
mov al, byte [esi]
test al, al
je 0x4704fe
test al, 0x80
mov byte [esp + 0x3c], al
je 0x4704e4
mov cl, byte [esi + 1]
test cl, cl
je 0x4704fe
cmp al, 0xa1
jne 0x4704d4
cmp cl, al
je 0x4704e1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00476670
inc esi
jmp 0x4704f6
cmp al, 0x20
je 0x4704f6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004766b0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4704bd
push 0
lea ecx, [esp + 0x14]
call fcn.004766b0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0047fe50
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x470531
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x7199c8
call fcn.004765a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00507068
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x471c90
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, 0x8b7118
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00471c50
add esp, 8
mov byte [esp + 8], al
or esi, 0xffffffff
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x471d3a
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x471d9b
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x471d1c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x471d24
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.004ee470
mov edx, dword [esp + 0x28]
pop edi
pop esi
mov dword [edx], eax
add esp, 0x1c
ret
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x471d8f
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x30]
je 0x471d6d
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0x400
imul edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x1c
ret
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
add esp, 0x1c
ret
Function at 0x472ea0
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x512e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x8cf448]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.00472970
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x472f42
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x472ffb
mov edx, dword [esi + 8]
push edx
call fcn.0047ea10
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x472f92
cmp eax, 0x80000301
jne 0x472f60
mov eax, dword [esi]
jmp 0x472f6d
push 0
push esi
push 0x7d1
call fcn.004842a0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x472ff0
jmp 0x472fea
cmp eax, 0x80000004
jne 0x472fc1
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x472ff0
jmp 0x472fea
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x472ff0
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x472ff0
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00507068
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47a410
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51322b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00506ddd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x47a492
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00504ccd
mov eax, dword [eax]
push 0x8babe8
push eax
call fcn.004ed8b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00507068
test bl, bl
je 0x47a492
push 0x8babe8
lea ecx, [esp + 0xc]
call fcn.005073f8
push 0x8babf4
lea ecx, [esp + 0xc]
call fcn.005073f8
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x47a4ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00507068
jmp 0x47a599
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x47a552
lea edx, [esp + 0x7c]
push 0x8babf0
push edx
call fcn.004ed8b4
add esp, 8
test eax, eax
je 0x47a552
lea eax, [esp + 0x7c]
push 0x8babec
push eax
call fcn.004ed8b4
add esp, 8
test eax, eax
je 0x47a552
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x47a4e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00507068
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x47ad90
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x47adf2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x47ae00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5132ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x8cf448]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x47af38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x47ae66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00507068
xor eax, eax
jmp 0x47afaf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005071a5
push esi
lea ecx, [esp + 0xc]
call fcn.00507434
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x47af8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0047ad90
test eax, eax
jne 0x47af8d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.0047ad90
test eax, eax
jne 0x47af8d
lea eax, [esp + 0x14]
push 0x8bac04
push eax
call fcn.004eef83
mov esi, eax
add esp, 8
test esi, esi
jne 0x47af6c
lea ecx, [esp + 0x14]
push 0x8bac00
push ecx
call fcn.004eed20
mov esi, eax
add esp, 8
test esi, esi
jne 0x47af6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x47af6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00507155
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x47ae7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00507068
xor eax, eax
jmp 0x47afaf
mov byte [esi], 0
push 0x8babfc
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00507068
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4