joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e76
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1464
call fcn.0040d7d0
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
je 0x402f9b
push 0x4265cc
push 0x4265dc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1464], eax
test eax, eax
je 0x402f9b
lea eax, [ebp - 0x1458]
push eax
push 0xf013f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x1458], 0
je 0x402fa3
xor ecx, ecx
mov dword [ebp - 0x145c], 0xa28
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x145c]
mov dword [ebp - 0x1460], ecx
push eax
lea eax, [ebp - 0xa2c]
push eax
push ecx
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402f7e
mov byte [ebp + 0x10], bl
mov ebx, dword [ebp - 0x1460]
lea eax, [ebp - 0xa2c]
inc ebx
push eax
push edi
push 0x4265ec
lea eax, [ebp - 0x1454]
push 0xa28
push eax
call fcn.00403cbc
push dword [ebp + 0x10]
lea eax, [ebp - 0x1454]
push eax
push esi
call fcn.00402e76
add esp, 0x20
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x145c]
push eax
lea eax, [ebp - 0xa2c]
push eax
push ebx
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402f27
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x100
push edi
push esi
call dword [ebp - 0x1464]
jmp 0x402fa3
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
Function at 0x403d4d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 1
call fcn.0040809b
push esi
push 0x4267e4
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x108]
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
cmp eax, 0xffffffff
push eax
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0040809b
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret

Function at 0x403dd7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [ebp + 0x10]
call fcn.00408542
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x403e54
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathA]
test eax, eax
jne 0x403e54
push 0x10
push 0x40f
push dword [ebp + 8]
call fcn.00405b6c
add esp, 0xc
push 0xffffffffffffffff
push 0
push 0xb1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x405bc2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x20c]
push eax
call fcn.004086f5
pop ecx
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0xfffffffffffffff4
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, dword [ebp + 0xc]
jne 0x405c26
push 0
push dword [0x433c10]
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0040d603
leave
ret 8

Function at 0x405dd7
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405e14
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x405e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
pop ecx
push 0x1f
cmp eax, 0x20
pop edx
cmove ecx, edx
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret
xor eax, eax
push eax
push eax
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405eed
add esp, 0x18
pop ebp
ret
Function at 0x405eed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x13c], ecx
xor edi, edi
mov ecx, dword [ebp + 0x14]
push 0xa
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp + 0x18]
push eax
push dword [0x433a68]
mov dword [ebp - 0x140], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x144], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x405f8a
push ebx
push dword [0x433a68]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405f8a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x433a68]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x4269f0
push eax
push esi
call fcn.00409d7b
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405f9c
push edi
call fcn.00409544
pop ecx
push 0x11
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push dword [ebp - 0x138]
push esi
call fcn.0040974b
add esp, 0x14
test eax, eax
je 0x405fc3
push 0x11
jmp 0x405ff2
cmp dword [ebp + 0x10], 1
jne 0x405ff5
push dword [ebp - 0x13c]
push dword [ebp - 0x134]
push esi
call fcn.0040a1b1
add esp, 0xc
test eax, eax
je 0x406031
push 8
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x406031
push 0x1f
pop edi
jmp 0x406031
mov ecx, dword [ebp - 0x140]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
add eax, dword [ebp - 0x144]
push eax
push 1
call fcn.00418e1c
push dword [ebp - 8]
mov ecx, dword [ebp - 0x148]
push eax
push dword [ebp - 0x134]
push esi
mov dword [ecx], eax
call fcn.0040a196
add esp, 0x18
test eax, eax
push 0x23
pop ecx
cmovne edi, ecx
push esi
call fcn.00409544
pop ecx
mov eax, edi
jmp 0x405f8d
Function at 0x4079ee
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push 0x426c30
push 0x104
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x108]
mov ebx, SysReAllocString
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push edi
push 0x426c78
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret

Function at 0x407a7f
Capabilities:
Create process on windows
Move file
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
xor ebx, ebx
push edi
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0040edb0
pop ecx
pop ecx
test eax, eax
je 0x407ace
mov byte [eax], bl
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x108]
push 4
push ebx
push eax
call esi
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x426bcc
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x108]
push edi
push eax
push 0x426be8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x407b43
push ebx
push ebx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x407b52
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
push ebx
call fcn.004195ee
int3
Function at 0x407be0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x638]
push edi
mov edi, dword [ebp + 8]
push 0x530
push 0
push eax
call fcn.0040eb20
lea eax, [ebp - 0x638]
push eax
push edi
call fcn.00407ea6
add esp, 0x14
test al, al
je 0x407cde
xor eax, eax
inc eax
push ebx
push eax
call fcn.0040809b
mov ax, word [ebp - 0x628]
mov ebx, 0x104
pop ecx
test ax, ax
jne 0x407c75
push esi
push 0x1a
call fcn.00407f5f
push edi
push 0x426b24
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00403cbc
lea eax, [ebp - 0x108]
push eax
push ebx
push esi
call fcn.0041149d
mov ax, word [ebp - 0x628]
add esp, 0x24
xor ecx, ecx
inc ecx
cmp ax, cx
jne 0x407cd2
lea eax, [ebp - 0x520]
push eax
push ebx
push esi
call fcn.00411293
add esp, 0xc
cmp word [ebp - 0x626], 0
je 0x407cd2
push 0x426af0
push ebx
push esi
call fcn.0041149d
add esp, 0xc
mov dword [ebp - 0x63c], ebx
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x108]
push eax
push ebx
push esi
call fcn.0041149d
add esp, 0xc
push 0
call fcn.0040809b
pop ecx
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d603
leave
ret

Function at 0x407cec
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push 0x426b94
push 0x426ba8
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407d43
push 0
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push esi
call eax
test eax, eax
jne 0x407d3b
or edx, 0xffffffff
mov eax, edx
jmp 0x407d9a
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x407d98
xor eax, eax
xorps xmm0, xmm0
push 3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push esi
push eax
movlpd qword [ebp - 0xc], xmm0
call fcn.0040f510
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x14]
mul dword [ebp - 0x18]
mov ecx, eax
mov eax, edx
mul dword [ebp - 0x10]
mov esi, eax
mov eax, ecx
mul dword [ebp - 0x10]
add esi, edx
mov edx, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d603
leave
ret
Function at 0x407da7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push 0x4266c8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407dd1
xor al, al
jmp 0x407dff
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
leave
ret

Function at 0x407ea6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x4266c8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ef4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
jne 0x407efb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
xor eax, eax
inc eax
push eax
call fcn.00418e1c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407eeb
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x407f2b
push edi
call fcn.00418d70
pop ecx
jmp 0x407eeb
mov esi, dword [ebp + 0xc]
mov eax, 0x530
cmp dword [ebp - 4], eax
cmovb eax, dword [ebp - 4]
push eax
push edi
push esi
call fcn.0040f510
push edi
call fcn.00418d70
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
cmp word [esi], ax
sete al
jmp 0x407ef6

Function at 0x407fb3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push ebx
push esi
push 0x426bc4
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x408022
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x408021
lea eax, [edi + 1]
push eax
push 1
call fcn.00418e1c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x408021
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408018
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x408018
push edi
push eax
push esi
call fcn.0040f510
add esp, 0xc
jmp 0x408021
push esi
call fcn.00418d70
xor esi, esi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x408135
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x433d28
push 8
push edi
call fcn.0040756f
pop ecx
pop ecx
mov edx, eax
push 8
shl edx, 0x18
pop ebx
mov ecx, edx
lea eax, [edx + edx]
sar ecx, 0x1f
and ecx, 0x4c11db7
mov edx, ecx
xor edx, eax
sub ebx, 1
jne 0x408151
push 0x20
push edx
call fcn.0040756f
mov dword [esi], eax
inc edi
add esi, 4
pop ecx
pop ecx
cmp esi, 0x434124
jle 0x40813f
pop edi
pop esi
pop ebx
ret

Function at 0x408184
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x433a78], 0
mov eax, dword [ebp + 8]
mov dword [0x433a68], eax
jne 0x4081ae
push 0x104
push 0x433a78
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x433a68]
push esi
push 0xa
mov esi, 0x426c9c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
neg eax
sbb eax, eax
inc eax
mov dword [0x433b84], eax
call fcn.00408135
push 0x433a70
call fcn.00407e02
push 0
mov dword [0x433a6c], eax
call fcn.004069b2
pop ecx
pop ecx
xor ecx, ecx
cmp dword [0x4312c4], ecx
jle 0x408221
push ebx
mov edx, 0x4313cc
push edi
xor ebx, ebx
cmp dword [ecx*4 + 0x4313ec], ebx
jle 0x408213
mov edi, edx
lea eax, [ebx + 0x64]
xor byte [edi], al
inc ebx
inc edi
cmp ebx, dword [ecx*4 + 0x4313ec]
jl 0x408203
inc ecx
add edx, 0xa
cmp ecx, dword [0x4312c4]
jl 0x4081f6
pop edi
pop ebx
cmp dword [0x433b84], 0
mov eax, 0x426ca8
push 1
cmovne esi, eax
push 0x433b80
push esi
call fcn.0040623a
add esp, 0xc
mov ecx, eax
mov dword [0x433b7c], ecx
pop esi
test ecx, ecx
jne 0x408250
inc eax
pop ebp
ret
mov eax, dword [0x433b80]
push 1
mov byte [ecx + eax], 0
call fcn.004069b2
pop ecx
pop ebp
ret
Function at 0x408575
Capabilities:
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x228], 2
push esi
xor esi, esi
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x220], eax
mov ebx, esi
mov eax, 0x8694
mov dword [ebp - 0x21a], esi
push edi
mov edi, esi
mov word [ebp - 0x21c], ax
mov dword [ebp - 0x216], esi
mov dword [ebp - 0x212], esi
cmp dword [0x431408], ebx
jle 0x4086c6
test ebx, ebx
jne 0x40861f
push 0x426538
push 0x426ce8
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
lea eax, [ebp - 0x108]
push eax
call fcn.004086f5
add esp, 0x14
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [0x43140c]
imul esi, ebx, 0x104
push 0x5c
add eax, esi
push eax
call fcn.0040edb0
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040eb20
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040eb20
mov eax, dword [0x43140c]
add eax, esi
mov esi, 0x104
push eax
push 0x426cf0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00403cbc
push 0x426538
push 0x426ce8
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00403cbc
add esp, 0x40
push dword [ebp - 0x220]
call fcn.004086f5
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
lea ecx, [edi + 1]
push 0
cmove ecx, edi
inc ebx
mov edi, ecx
pop esi
cmp ebx, dword [0x431408]
jl 0x4085e3
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
Function at 0x408ccd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push dword [ebp + 8]
push ebx
push 0x4266c8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408d00
xor al, al
jmp 0x408d2f
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push 0x530
push eax
push 3
push ebx
push dword [ebp + 8]
inc ecx
push dword [ebp - 4]
mov word [eax], cx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x408d24
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x408eb8
Capabilities:
Create process on windows
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x104
push esi
push eax
push 0x426b4c
push ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], ecx
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x110]
xor esi, esi
push eax
push 0x20019
push esi
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408f1d
or eax, 0xffffffff
jmp 0x409013
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push 0x426b84
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408f50
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408f15
push edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3c
lea eax, [ebp - 0x160]
mov dword [ebp - 0x168], 0x44
push esi
push eax
mov dword [ebp - 0x164], esi
call fcn.0040eb20
xor eax, eax
lea edi, [ebp - 0x124]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x168]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408fb7
push 0xfffffffffffffffe
pop eax
jmp 0x409012
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, 0x103
mov dword [ebp - 0x10c], edi
jmp 0x408fe2
cmp dword [ebp - 0x10c], edi
jne 0x408ff6
call fcn.00405ab0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x124]
call esi
cmp eax, 1
je 0x408fca
push dword [ebp - 0x124]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x120]
call esi
mov eax, dword [ebp - 0x10c]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d603
leave
ret
Function at 0x4090dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x5c
mov esi, 0x433a78
push esi
call fcn.0040edb0
pop ecx
pop ecx
test eax, eax
je 0x409107
inc eax
jmp 0x409109
mov eax, esi
cmp byte [0x433c20], 0
mov esi, 0x410
push eax
lea eax, [ebp - 0x414]
je 0x409134
push 0x433c20
push 0x4265ec
push esi
push eax
call fcn.00403cbc
add esp, 0x14
jmp 0x40913e
push esi
push eax
call fcn.00411293
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x426cf4
push eax
call fcn.00411620
pop ecx
mov ecx, 0x414
sub ecx, eax
lea eax, [ebp - 0x414]
push ecx
push eax
call fcn.00411620
pop ecx
lea ecx, [ebp - 0x414]
sub ecx, 4
add eax, ecx
push eax
call fcn.00411293
add esp, 0xc
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40927b
mov ecx, dword [0x4339f0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x409215
push ecx
push 0xffffffffffffffff
call fcn.00405c6b
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x414]
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x414]
push eax
call fcn.004086f5
pop ecx
push 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00411620
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 0x418]
push eax
push 2
push 0x426a18
push edi
call ebx
mov ecx, dword [0x4339f0]
push esi
lea eax, [ebp - 0x414]
test ecx, ecx
push eax
mov eax, 0x406
lea edx, [eax + 2]
cmovne eax, edx
xor esi, esi
push eax
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x414]
push eax
call fcn.004086f5
pop ecx
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00411620
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
push esi
lea eax, [ebp - 0x418]
push eax
push 2
push 0x426a18
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d603
leave
ret