joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa71821
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 4]
push edi
mov edi, dword [esi + 0x20]
xor ebx, ebx
mov eax, edi
inc ebx
call fcn.00a712b0
mov ecx, dword [ebp + 0xc]
and dword [esi + 0xc], 0
test eax, eax
mov dword [esi + 0x18], ecx
jle 0xa71862
mov dword [ebp + 8], eax
movzx eax, word [edi]
push ebx
push esi
call fcn.00a7144e
inc edi
inc edi
xor ebx, 1
dec dword [ebp + 8]
jne 0xa7184e
cmp dword [esi + 0xc], 0
je 0xa7186b
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
sub eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x34237e64
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3b6d0286
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x4029c8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b40
test esi, esi
jne 0x4029fe
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404c30
jmp 0x402a1c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028dc
mov edi, eax
test esi, esi
je 0x402a1c
cmp dword [ebx], 0
je 0x402a1c
dec esi
jmp 0x402a05
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403134
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x43f008], 0x8088405
inc edx
mov dword [ebx + 0x43f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403150
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403166
sub ecx, 2
jne 0x403188
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x40318f
cmp edx, dword [ebx + 8]
je 0x403199
mov eax, 0x64
jmp 0x403194
mov eax, 0x67
jmp 0x403194
call sub.kernel32.dll_GetLastError
call fcn.00402860
pop ebx
ret

Function at 0x403590
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4035c3
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4035ca
cmp edx, dword [ebx + 8]
je 0x4035d4
mov eax, 0x65
jmp 0x4035cf
mov eax, 5
jmp 0x4035cf
call sub.kernel32.dll_GetLastError
call fcn.00402860
mov eax, ebx
pop ebx
ret

Function at 0x403a98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x43f010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b10
xor eax, eax
push ebp
push 0x403b09
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x43f010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x43f010], ax
mov esp, ebp
pop ebp
ret
Function at 0x404928
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44104c], 0
je 0x404989
cmp word [0x441220], 0xd7b2
jne 0x404951
cmp dword [0x441228], 0
jbe 0x404951
mov eax, 0x44121c
call dword [0x441238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43f078
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4049b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43f020], 0
jne 0x4049a5
push 0
push 0x43f098
push 0x43f078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404afc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x44104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ac4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4089bc
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404ff0
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4089de
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x409e00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409e39
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c30
jmp 0x409e42
mov eax, ebx
mov edx, esi
call fcn.00404b94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409e4c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409e6d
mov al, byte [esp]
jmp 0x409e6f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a4f4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a36c
mov eax, dword [0x440eac]
cmp byte [eax], 0
je 0x40a55c
mov eax, dword [0x440d64]
call fcn.00402e10
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408cbc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a5a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a592
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x440d30]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x441718]
call fcn.00406304
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40b050
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b0b4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404da8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408760
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b0bb
lea eax, [ebp - 0xc]
call fcn.00404b40
ret
Function at 0x40c71c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40c88c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x40c869
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, edi
call fcn.00404b40
lea eax, [ebp - 8]
push eax
push 1
push 0
mov eax, ebx
call fcn.00404ff0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x40c784
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c873
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403114
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40c7fd
xor eax, eax
push ebp
push 0x40c7f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c873
cmp dword [ebp - 0xc], 3
jne 0x40c856
xor edx, edx
push ebp
push 0x40c84c
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x40c842
inc esi
lea ebx, [ebp - 0x110]
cmp byte [ebx], 5
jbe 0x40c83e
lea eax, [ebp - 0x114]
mov dl, byte [ebx]
call fcn.00404d20
mov edx, dword [ebp - 0x114]
mov eax, edi
call fcn.00404e00
inc ebx
dec esi
jne 0x40c81f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c856
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c873
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c893
lea eax, [ebp - 0x114]
call fcn.00404b40
ret
Function at 0x40dff4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40e066
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404df8
mov esi, eax
test esi, esi
jle 0x40e046
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00405048
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor dx, 0x29a
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x40e029
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e06d
lea eax, [ebp - 4]
call fcn.00404b40
ret

Function at 0x40e120
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40e1d3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov ecx, ebx
mov edx, 8
mov eax, dword [ebp - 8]
call fcn.004086e8
mov eax, dword [0x440f58]
cmp dword [eax], 2
je 0x40e1b2
lea edx, [ebp - 0x21c]
mov eax, dword [ebx]
call fcn.0040e074
mov edx, dword [ebp - 0x21c]
mov eax, ebx
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1da
lea eax, [ebp - 0x21c]
call fcn.00404b40
lea eax, [ebp - 4]
call fcn.00404b40
ret

Function at 0x40e1e0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x40e218
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov ebx, dword [ebp - 0x18]
shr ebx, 0x14
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e224
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e2c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e35c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x90
call fcn.00405120
push 0x90
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x40e335
mov eax, dword [ebp - 4]
call fcn.00404ff0
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404d30
mov eax, dword [ebp - 8]
call fcn.00404df8
mov edx, eax
lea eax, [ebp - 4]
call fcn.00405120
mov eax, ebx
mov ecx, 0x40e370
mov edx, dword [ebp - 4]
call fcn.00404e44
jmp 0x40e341
mov eax, ebx
mov edx, 0x40e37c
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e363
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b64
ret
Function at 0x40e3b8
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40e468
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40e43b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00405120
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ff0
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x40e424
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405050
jmp 0x40e431
mov eax, dword [ebp - 4]
mov edx, 0x40e480
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e452
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e46f
lea eax, [ebp - 8]
call fcn.00404b40
ret

Function at 0x40f760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40f845
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.0040f6fc
mov esi, eax
test esi, esi
jle 0x40f827
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405050
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ff0
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x40f827
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404df8
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00405050
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ff0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f84c
lea eax, [ebp - 0xc]
call fcn.00404b40
lea eax, [ebp - 4]
call fcn.00404b40
ret
Function at 0x40f858
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40f982
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.0040f6fc
mov esi, eax
test esi, esi
jle 0x40f964
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405050
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ff0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40f964
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404df8
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00405050
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ff0
mov edi, eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40f95b
mov eax, dword [ebp - 0x18]
call fcn.0040272c
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40f954
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x40f94b
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov bl, 1
jmp 0x40f95b
mov eax, esi
call fcn.0040274c
jmp 0x40f95b
mov eax, esi
call fcn.0040274c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f989
lea eax, [ebp - 0xc]
call fcn.00404b40
lea eax, [ebp - 4]
call fcn.00404b40
ret
Function at 0x40fc3c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40fd77
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00404b40
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40fd59
mov byte [ebp - 9], 1
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.0040272c
mov esi, eax
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], 0x400
cmp byte [ebp + 8], 0
je 0x40fcd7
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov ebx, eax
jmp 0x40fcf0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x40fd41
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00405120
lea eax, [ebp - 0x10]
call fcn.00405048
mov ecx, dword [ebp - 0x18]
mov edx, esi
call fcn.004074e4
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40fd26
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00404b94
jmp 0x40fd40
mov eax, dword [ebp - 8]
push dword [eax]
push 0x40fd94
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00404eb8
inc edi
test ebx, ebx
je 0x40fcaf
mov eax, esi
call fcn.0040274c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fd7e
lea eax, [ebp - 0x10]
call fcn.00404b40
lea eax, [ebp - 4]
call fcn.00404b40
ret
Function at 0x410724
Capabilities:
Acquire debug privileges

Disassembly:
mov edx, 0x410734
or eax, 0xffffffff
call fcn.00410690
ret

Function at 0x410748
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdc0
mov dword [esp], ecx
mov ebx, edx
mov esi, eax
mov byte [esp + 4], 0
lea eax, [esp + 0xd8]
mov edx, 0x44
call fcn.004074ec
mov dword [esp + 0xd8], 0x44
push ebx
lea eax, [esp + 0xdc]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push esi
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4108a7
push 0x40
push 0x1000
push 0x123
push 0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
test edi, edi
jne 0x4107ca
push 0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_TerminateProcess
jmp 0x4108a7
mov esi, edi
mov byte [esp + 0x11c], 0x68
lea eax, [esi + 0x1e]
mov dword [esp + 0x11d], eax
mov word [esp + 0x121], 0x15ff
lea eax, [esi + 0x16]
mov dword [esp + 0x123], eax
mov byte [esp + 0x127], 0x68
xor eax, eax
mov dword [esp + 0x128], eax
mov word [esp + 0x12c], 0x15ff
lea eax, [esi + 0x1a]
mov dword [esp + 0x12e], eax
push 0x4108b8
call sub.kernel32.dll_GetModuleHandleA_1
mov ebp, eax
push 0x4108c8
push ebp
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x132], eax
push 0x4108d8
push ebp
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x136], eax
mov eax, dword [esp]
push eax
lea eax, [esp + 0x13e]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [esp + 8]
push eax
push 0x123
lea eax, [esp + 0x124]
push eax
push edi
mov eax, dword [ebx]
push eax
call sub.ntdll.dll_ZwWriteVirtualMemory
mov dword [esp + 0xc], 0x10007
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_GetThreadContext
mov dword [esp + 0xc4], esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov al, byte [esp + 4]
add esp, 0x240
pop ebp
pop edi
pop esi
pop ebx
ret