joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e420
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4af4f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x44e459
inc eax
mov dword [esi + 0x10], eax
jmp 0x44e56c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x44e46d
mov eax, 0xffffffc7
jmp 0x44e56e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x44e47e
cmp dword [esi + 8], eax
jne 0x44e46d
cmp dword [esi + 8], eax
jne 0x44e497
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x44e497
mov eax, 0xffffffc7
jmp 0x44e56e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x44e4ab
push eax
mov ecx, ebx
call fcn.0044dc50
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00418220
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44e4dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00418240
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0044d3c0
test eax, eax
mov dword [esp + 0x38], eax
je 0x44e50f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4edaf8
call fcn.00418420
mov eax, dword [esp + 0x38]
jmp 0x44e56e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0044e280
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x44e553
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0044e2a0
mov esi, eax
test esi, esi
jne 0x44e583
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0044e280
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x44e525
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4edaf8
call fcn.00418420
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4edaf8
call fcn.00418420
mov eax, esi
jmp 0x44e56e

Function at 0x452f90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x452ff0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x452ff0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x452ff0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x452ff0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x453030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x45eb70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4afde8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a5e65
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0045e4c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a5d93
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a257d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a257d
push 1
push 0
push 0
mov ecx, esi
call fcn.004a2525
push 1
push 0
push 1
mov ecx, esi
call fcn.004a2525
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a5ed7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x45ecf0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4afe08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a5e65
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0045e4c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a5d93
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x45edb4
cmp dword [esp + 0x40], 1
jne 0x45edb2
cmp ecx, eax
jge 0x45edb4
mov eax, ecx
cmp eax, 0xc8
jge 0x45edc0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0045eb70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a5ed7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x45f5c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4afeb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a099e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a610d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a76a8
test eax, eax
je 0x45f6dc
mov ecx, dword [esp + 0x3c]
call fcn.004a613a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x45f6a0
push edi
mov ecx, esi
call fcn.004a36ff
mov ecx, esi
call fcn.0045f880
cmp dword [esp + 0x38], 1
jne 0x45f6d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a3869
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4618c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4618f3
push esi
call fcn.0046fc60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4618ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x461979
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x461962
mov eax, dword [esi + 8]
test eax, eax
je 0x461917
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46195e
cmp eax, 2
je 0x461962
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46190a
cmp eax, 3
je 0x46193d
cmp eax, 1
jne 0x46190a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46190a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46190a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004619a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x461988
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004619a0
add esp, 4
pop esi
ret

Function at 0x462210
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x462231
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x462231
mov eax, dword [eax + 0x44]
test eax, eax
je 0x462231
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x47d650
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47d6f3
test eax, eax
jbe 0x47d6f3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47d6f3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47d69e
xor esi, esi
jmp 0x47d6a4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47d6cf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00418c70
add esi, eax
push esi
mov ebx, esi
call fcn.00418c70
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47d6b0
pop ebp
test edi, edi
pop edi
jne 0x47d6f3
test ebx, ebx
je 0x47d6f3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0048f060
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47d855
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47d96d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47d96d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a0df0
mov esi, eax
test esi, esi
je 0x47d96d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47d96d
mov ecx, esi
call fcn.0047d7e0
cmp edi, eax
jge 0x47d96d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47d8f3
mov dword [esp + 0x34], 1
jmp 0x47d94e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47d96d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047cd50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4a1793
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a17cb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049f81d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049f7f5
jmp 0x4a17d7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a2e85
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a2ec7
call fcn.004a8baa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a2ec7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a2ebe
xor eax, eax
jmp 0x4a2ecf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a2ed5
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a90da
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a9108
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a9126
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a9040
jmp 0x4a9126
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a9126
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a9040
test edi, edi
mov eax, edi
jne 0x4a9110
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x300
push esi
mov esi, dword [esp + 0x318]
push edi
mov edi, dword [esp + 0x314]
push esi
push eax
push edi
call fcn.00401cd5
add esp, 0xc
cmp eax, esi
je 0x40106e
push edi
call fcn.00401c22
mov ecx, dword [esp + 0x314]
lea edx, [esp + 0xc]
push ecx
push str.Unable_to_read_from__s.
push edx
call fcn.00401bd0
mov ecx, dword [esp + 0x31c]
add esp, 0x10
lea eax, [esp + 8]
push 0x10
push str.Error
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x300
ret
pop edi
mov eax, 1
pop esi
add esp, 0x300
ret

Function at 0x4054c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a4f0
cmp edx, dword [eax]
je 0x4054eb
add eax, 8
inc ecx
cmp eax, 0x40a580
jl 0x4054dc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a4f0]
jne 0x405619
mov eax, dword [0x40ac80]
cmp eax, 1
je 0x4055f3
test eax, eax
jne 0x40551c
cmp dword [0x40a2c4], 1
je 0x4055f3
cmp edx, 0xfc
je 0x405619
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405553
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403bd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404840
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405596
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404840
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40949c
push edi
call fcn.00407a00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403bd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403be0
lea eax, [ebp - 0xa0]
push 0x40947c
push eax
call fcn.00403be0
push dword [esi + 0x40a4f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403be0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407975
add esp, 0x2c
pop edi
jmp 0x405619
lea eax, [ebp + 8]
lea esi, [esi + 0x40a4f4]
push 0
push eax
push dword [esi]
call fcn.00404840
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402a36
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e88
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x423f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [0x7370741c]
cmp ch, byte [edi]
das
ja 0x402b43
ja 0x402afc
jbe 0x402b35
jb 0x402b3b
imul esi, dword [ebx + 0x69], 0x632e6e67
outsd dx, dword [esi]
insd dword es:[edi], dx
jae 0x402b3d
outsb dx, byte [si]
arpl word cs:[edi + 0x6d], bp
das
arpl word [eax + 0x73], si
xor byte [0x1d550306], bl
push cs
add al, 0x16
add al, 0x14
jg 0x402abe
xor esi, dword [eax]
insd dword es:[edi], dx
push es
xchg byte [ebp + ecx*4 - 0x303c9472], ch
sub byte [edx - 0x2c], 0x48
iretd
push 0xffffffffffffffd4
dec eax
sbb byte [ebx + edi*2], ch
sbb dword [esi], ebp
xor byte [0x74682316], ah
je 0x402bbd
cmp ch, byte [edi]
das
insb byte es:[edi], dx
outsd dx, dword [esi]
outsd dx, dword [si]
jbe 0x402bbc
jb 0x402bc2
jae 0x402bc4
outsb dx, byte [si]
arpl word cs:[edi + 0x6d], bp
das
jbe 0x402bd7
insb byte es:[edi], dx
outsd dx, dword [esi]
outsd dx, dword [si]
imul esp, dword cs:[bp + 0x30], 0x2b080634
push es
add dword [0x1010705], eax
add al, 0x28
xor byte [esi], ah
xor byte [esi + eax], ah
or byte [ebx], ch
push es
add dword [0x1300705], eax
xchg byte [eax], bl
push 0x3a707474
das
das
outsd dx, dword [esi]
arpl word [ebx + 0x70], si
jbe 0x402bfd
jb 0x402c03
jae 0x402c05
outsb dx, byte [si]
arpl word cs:[edi + 0x6d], bp
xor byte [esi], bh
push es
add edx, dword [ebp + 0x1d]
and eax, 0x35303704
push es
or byte [ebx], ch
push es
add dword [0x1030705], eax
push es
or byte [ebx], ch
push es
add dword [0x2030705], eax
add eax, 0x2030705
add eax, 0x6020307
push es
or byte [ebx], ch
push es
add dword [0x3030705], eax
push es
or dword [eax - 0x7a], esp
dec eax
add dword [esi + 0x10442f8], eax
push es
or ah, byte [eax - 0x7a]
dec eax
add dword [esi + 0x80145f8], eax
add dword [eax], esi
or eax, 0x862a0906
dec eax
xchg bh, dh
or eax, 0x5050101
add byte [ebx], al
add dword [ecx - 0x22fded00], 0x86e8f8
pop edx
pop edx
clc
clc
and byte [ecx + ebx*2], cl
mov byte [edx + 7], ah
pop es
into
into
test dword [esi - 7], 0x98a159bb
in eax, 0xe1
cmp ch, bl
dec esi
mov esp, 0xadd31866
jmp 0x402c33
xlatb
pop es
mov dh, 0xb8
and dword [ebx - 0x3b], 0xe52e5ef9
sub ah, byte [edi - 0x32]
int 0x33
or al, 0x2a
xlatb
mov dword [esi + 3], edx
and ebx, dword [edi]
mov bl, 0xbe
call 0xb499348c
in al, dx
inc ebp
xor eax, 0xff5b8af7
iret
Function at 0x4053c6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4224a8], 0x44
push eax
xor eax, eax
push 0x4224a8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405401
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40548b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040573a
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054bf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f28], eax
jmp 0x405653
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054dd
test eax, eax
je 0x4055fe
test byte [ebp + 0xc], 2
je 0x4055fe
mov esi, 0x4214a8
push edi
push esi
call fcn.00405b66
test ebx, ebx
je 0x4054fa
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405500
push edi
call fcn.004056a0
cmp byte [edi], 0
jne 0x40550e
cmp byte [0x4214a8], 0x5c
jne 0x405519
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4055f4
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405684
cmp byte [eax], 0
je 0x40555f
cmp byte [ebp - 0x18], 0
je 0x40555f
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405575
mov al, byte [esi + 1]
test al, al
je 0x4055d3
cmp al, 0x2e
jne 0x405575
cmp byte [esi + 2], 0
je 0x4055d3
push esi
push ebx
call fcn.00405b66
test byte [ebp - 0x148], 0x10
je 0x40559a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055d3
push dword [ebp + 0xc]
push edi
call fcn.0040548b
jmp 0x4055d3
push edi
call fcn.0040581e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055cb
test byte [ebp + 0xc], 4
je 0x4055c3
push edi
push 0xfffffffffffffff1
call int.00404f04
push 0
push edi
call fcn.004058b4
jmp 0x4055d3
inc dword [0x423f28]
jmp 0x4055d3
push edi
push 0xfffffffffffffff2
call int.00404f04
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40553d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4055fe
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405653
cmp dword [ebp - 8], esi
jne 0x405613
inc dword [0x423f28]
jmp 0x405653
push edi
call fcn.00405e61
test eax, eax
je 0x405653
push edi
call fcn.00405659
push edi
call fcn.0040581e
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40564b
test byte [ebp + 0xc], 4
je 0x40560b
push edi
push 0xfffffffffffffff1
call int.00404f04
push esi
push edi
call fcn.004058b4
jmp 0x405653
push edi
push 0xffffffffffffffe5
call int.00404f04
pop edi
pop esi
leave
ret 8