joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40acc0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x40aea6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.004025c4
lea eax, [ebp - 0x107]
xor ecx, ecx
mov edx, 0xfa
call fcn.00401aa8
mov dword [ebp - 0xc], 0xfa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x107]
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 8]
lea edx, [ebp - 0x107]
mov ecx, 0xfa
call fcn.00402828
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x107]
mov ecx, 0xfa
call fcn.00402828
mov edx, dword [ebp - 0x10c]
mov eax, 0x40aebc
call fcn.00402b9c
mov ebx, eax
test bl, bl
jbe 0x40ad89
xor edx, edx
mov dl, bl
lea eax, [ebp - 8]
call fcn.00402be4
mov eax, dword [ebp - 8]
call fcn.00402864
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jb 0x40add2
cmp dword [ebp - 0xc], 0x14
ja 0x40add2
lea edx, [ebp - 0x110]
mov eax, dword [ebp - 8]
call fcn.00403cd8
mov eax, dword [ebp - 0x110]
push eax
lea edx, [ebp - 0x114]
mov ax, 0x5b
call fcn.00404cb0
mov edx, dword [ebp - 0x114]
pop eax
call fcn.004029a8
jne 0x40ae17
mov bl, 6
lea edx, [ebp - 0x11c]
mov ax, 3
call fcn.00404cb0
mov eax, dword [ebp - 0x11c]
push eax
mov eax, 0x1a
call fcn.00401ac8
pop edx
mov dl, byte [edx + eax]
lea eax, [ebp - 0x118]
call fcn.004027a0
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 4]
call fcn.0040286c
dec bl
jne 0x40add4
jmp 0x40ae71
mov al, byte [ebp - 0xc]
test al, al
jbe 0x40ae4d
mov byte [ebp - 0xd], al
mov bl, 1
lea eax, [ebp - 0x120]
xor edx, edx
mov dl, bl
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + edx - 1]
call fcn.004027a0
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 4]
call fcn.0040286c
inc ebx
dec byte [ebp - 0xd]
jne 0x40ae23
mov eax, 0x63
call fcn.00401ac8
inc eax
lea edx, [ebp - 0x124]
call fcn.00403d50
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 4]
call fcn.0040286c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00402618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aead
lea eax, [ebp - 0x124]
mov edx, 7
call fcn.004025e8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004025e8
ret
Function at 0x40b064
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00402a4c
mov eax, dword [ebp - 0xc]
call fcn.00402a4c
mov esi, dword [0x41291c]
mov edi, 0x413e7c
xor eax, eax
push ebp
push 0x40b231
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x40b216
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [ebp - 0xc]
call fcn.00402618
mov edx, dword [ebp - 8]
mov eax, 0x40b24c
call fcn.00402b9c
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov cl, bl
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00402ab8
mov eax, dword [ebp - 0x10]
call fcn.00403d78
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
xor ecx, ecx
mov cl, bl
lea eax, [ebp - 8]
mov edx, 1
call fcn.00402af8
mov edx, dword [ebp - 8]
mov eax, 0x40b24c
call fcn.00402b9c
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov cl, bl
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00402ab8
mov eax, dword [ebp - 0x14]
call fcn.00403d78
mov edx, dword [ebp - 4]
mov byte [edx + 5], al
xor ecx, ecx
mov cl, bl
lea eax, [ebp - 8]
mov edx, 1
call fcn.00402af8
mov edx, dword [ebp - 8]
mov eax, 0x40b24c
call fcn.00402b9c
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
xor ecx, ecx
mov cl, bl
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00402ab8
mov eax, dword [ebp - 0x18]
call fcn.00403d78
mov edx, dword [ebp - 4]
mov byte [edx + 6], al
xor ecx, ecx
mov cl, bl
lea eax, [ebp - 8]
mov edx, 1
call fcn.00402af8
mov eax, dword [ebp - 8]
call fcn.00403d78
mov edx, dword [ebp - 4]
mov byte [edx + 7], al
lea edx, [ebp - 0x1c]
mov ax, 7
call fcn.004098a0
mov bx, 0xc8
mov eax, dword [esi]
call fcn.00409240
mov word [edi], ax
movzx eax, word [edi]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax - 0x20], ecx
movzx eax, word [edi]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [edx + eax - 0x1c], ecx
movzx eax, word [edi]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [esi]
mov byte [edx + eax - 0x29], 7
mov eax, dword [0x41297c]
push eax
push 0
push 0
push 0x40afa4
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
movzx edx, word [edi]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
mov ecx, dword [esi]
mov dword [ecx + edx - 0x28], eax
dec bx
jne 0x40b1ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b238
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004025e8
ret
Function at 0x40b290
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b353
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40b30e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea ecx, [ebp - 8]
mov eax, dword [ebx + 0x44]
mov edx, 2
call fcn.00403bc0
mov eax, dword [ebp - 8]
call fcn.00402a5c
push eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebx + 0x44]
mov edx, 1
call fcn.00403bc0
mov eax, dword [ebp - 0xc]
call fcn.00402a5c
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
jne 0x40b302
mov bl, 1
jmp 0x40b304
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40b31a
test bl, bl
je 0x40b32c
mov edx, dword [ebp - 4]
mov ax, 0x64
call fcn.00404cb0
jmp 0x40b338
mov edx, dword [ebp - 4]
mov ax, 0x65
call fcn.00404cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b35a
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004025e8
ret

Function at 0x40b364
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x40b425
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4129b0]
cmp dword [eax], 2
jne 0x40b3ff
lea eax, [ebp - 8]
push eax
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x40b3ff
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x2c]
mov ax, 0x66
call fcn.00404cb0
mov eax, dword [ebp - 0x2c]
call fcn.00402a5c
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
mov edx, 0x10
xor ecx, ecx
mov dword [ebp - 4], ecx
test al, al
je 0x40b3ff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push edx
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b42c
lea eax, [ebp - 0x2c]
call fcn.004025c4
ret
Function at 0x40b434
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00402a4c
xor eax, eax
push ebp
push 0x40b4d4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00401aa8
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x10
call fcn.00401aa8
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x220
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00402a5c
push eax
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x40b4b3
mov edx, ebx
mov ax, 0x67
call fcn.00404cb0
jmp 0x40b4be
mov edx, ebx
mov ax, 0x68
call fcn.00404cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b4db
lea eax, [ebp - 4]
call fcn.004025c4
ret
Function at 0x40babc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x40bc29
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x458], 0
jne 0x40bb68
lea eax, [ebp - 4]
push eax
mov eax, dword [0x412998]
mov edx, 0x11
call fcn.00404d2c
movzx eax, ax
call fcn.00401ac8
inc eax
mov edx, dword [0x412998]
mov ecx, 0x11
call fcn.00404cf8
mov edx, dword [ebp - 4]
mov eax, 0x40bc40
call fcn.00402b9c
mov esi, eax
lea eax, [ebx + 0x14]
push eax
movzx edi, si
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00402ab8
mov ecx, edi
lea eax, [ebp - 4]
mov edx, 1
call fcn.00402af8
lea eax, [ebx + 0x38]
mov edx, dword [ebp - 4]
call fcn.00402618
lea edx, [ebp - 8]
mov ax, 2
call fcn.00404cc8
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x18]
call fcn.00402618
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040acc0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x34]
call fcn.00402618
mov byte [ebx + 0x40], 1
mov eax, dword [0x41291c]
mov eax, dword [eax]
call fcn.00409240
mov word [0x413e7c], ax
movzx eax, word [0x413e7c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x41291c]
mov edx, dword [edx]
mov byte [edx + eax - 0x29], 0xd
movzx eax, word [0x413e7c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x41291c]
mov edx, dword [edx]
mov ecx, dword [0x413e80]
mov dword [edx + eax - 0x20], ecx
mov eax, dword [0x41297c]
push eax
push 0
push 0
push 0x40dfe8
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
movzx edx, word [0x413e7c]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
mov ecx, dword [0x41291c]
mov ecx, dword [ecx]
mov dword [ecx + edx - 0x28], eax
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x14]
call fcn.0040d8a4
mov dword [ebx + 0x454], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc30
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004025e8
ret
Function at 0x40e13c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00402a4c
xor eax, eax
push ebp
push 0x40e21d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [ebp - 8]
mov ax, 0xf9
call fcn.00404cb0
mov eax, dword [ebp - 8]
call fcn.00402a5c
push eax
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
jbe 0x40e202
lea edx, [ebp - 0xc]
mov ax, 0xf9
call fcn.00404cb0
mov eax, dword [ebp - 0xc]
call fcn.00402a5c
push eax
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
mov edi, eax
push 0
push 0
push 0
push 0xf001f
push edi
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00402864
push eax
lea eax, [ebp - 4]
call fcn.00402ab0
mov edx, esi
pop ecx
call fcn.00401368
push 0
push 1
push 0x4c8
push ebx
call sub.user32.dll_SendMessageA
push 0
push 1
push 0x4c9
push ebx
call sub.user32.dll_SendMessageA
push esi
call sub.KERNEL32.DLL_UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e224
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004025e8
ret
Function at 0x401ea0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0xdc02ac]
mov ah, cl
inc ebx
test dword [edx + 0x68da5174], edi
push esp
push es
inc eax
add bh, bh
adc eax, 0xc5c164
xor dh, dl
or byte [esi - 1], dl
adc eax, 0x3fc170
pop esi
test byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov edx, dword [ecx + 0x2d8b5708]
adc al, 0x89
inc ebp
or al, ch
sub ecx, dword [ebx]
add byte [ebx + 0x4187a0], ah
mov dword [0x410ba4], edx
mov ebx, eax
mov eax, dword [esi + 0x14]
test dword [eax - 0x75], ecx
cli
jne 0x401e71
mov ecx, dword [esi + 4]
push 0xffffffffffffffa6
push 0
outsd dx, dword [esi]
call fcn.00408c70
mov dword [esi + 0x827], ebx
mov dword [esi + 0x83c], edi
mov dword [esi + 0x18], 0
outsb dx, byte [esi]
adc eax, 0x4117b0
mov dword [esi + 0x2b9a114], ebp
inc ecx
lodsd eax, dword [esi]
sal byte [eax + ebp*2 + 0x3e], 0x70
add dword [ecx], 0xc8a9d58b
mov dword [esi + 0x14], ecx
in al, dx
ror byte [ebx + 0x83859], 0x2a
mov eax, dword [0x40ee28]
or eax, dword [ebp + 0x40d02c]
add esp, dword [ecx + 0x83c868b]
add byte [eax], al
adc eax, edx
cmp edx, dword [ecx + esi*4]
imul esp, ebp, 0
add byte [eax], al
jl 0x401f3a
cmp ebx, ecx
push ebp
xchg esp, eax
retf
adc dword [esi - 0x40], 0xffffff8b
sbb eax, 0x40d030
rol byte [eax], 1
dec ecx
inc esi
add al, 0x8d
dec ebp
js 0x401f4d
rcl dword [ecx + 0x52], cl
xchg dword [eax + 0x6d], edx
imul eax, dword [eax], 0
test eax, eax
je 0x401f8a
xchg ebp, eax
clc
or esi, dword [esi + ebp + 0x3d]
push 0x74380afd
daa
cmp eax, 0x59fcd9
je 0x401f82
mov esp, 0xafd38
je 0x401fd7
cmp eax, 0xafd24
retf
or eax, dword [eax]
jne 0x7d2030
mov eax, dword [ebp + 8]
jmp 0x41ca2812
mov edx, dword [esi - 0x56]
mov dword [esi - 0x78ff7ac0], eax
mov ecx, dword [0xe500a4]
mov bl, 1
add byte [eax], al
add byte [ecx - 0x7699ebbb], cl
inc ebp
hlt

Function at 0x405d20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
jl 0x405d3e
in al, dx
call 0x6f5f20
sub al, 0xc0
fadd qword [ebp + 0xfd]
mov bh, byte [0x1c4108dc]
adc al, 0x58
mov esi, gs
add byte [eax], al
add byte [edx - 0x7c], bl
add esi, dword [esi]
add byte [eax], al
pop edx
test byte [ebx], al
jbe 0x405d45
test eax, eax
jne 0x455df1
mov dword [0xd90387], 0x5f000001
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
invalid
Function at 0x401523
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x128]
push ebx
sub esp, 0x14c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.0040848b
sub esp, 0x10
test eax, eax
jne 0x40169b
test byte [ebp + 0x10], 2
je 0x4015cd
lea eax, [ebp - 0x124]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x11d]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x124], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
sub esp, 0x20
cmp eax, 0x103
jne 0x40163a
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x12c], eax
jmp 0x4015f5
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401523
sub esp, 0xc
test eax, eax
jne 0x401651
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x11d]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [ebp - 0x11d]
sub esp, 0x10
test eax, eax
jne 0x401651
cmp dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x128]
je 0x4015db
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x40169b
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.004095df
push edx
test eax, eax
jne 0x401683
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edx
push edx
jmp 0x40169b
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x404119
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x433160]
cmp dword [ebp + 8], 0
je 0x404144
test eax, eax
je 0x404138
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x433160], 0
jmp 0x4041ae
test eax, eax
je 0x404157
mov dword [esp], 0
call fcn.00409651
push edx
jmp 0x4041ae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x41f100]
jbe 0x4041ae
mov eax, dword [0x433228]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x404064
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x433160], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret
Function at 0x407d94
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0x40001
mov dword [ebp - 0x28], 0x40ceb0
mov dword [ebp - 0x24], 0x40ceb0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40cea0
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edx
push edx
test eax, eax
je 0x407df1
xor eax, eax
jmp 0x407e1e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x407e1e
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
sub esp, 0xc
test eax, eax
jne 0x407ded
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x407e56
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x452ca0], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x452ca0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x407ed4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x407ed8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExA]

Function at 0x408135
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
inc eax
push edx
je 0x408163
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x40816e
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00408135
push ecx
cmp eax, 0xffffffff
jne 0x40818f
xor edi, edi
jmp 0x4081cc
mov dword [esp], ebx
mov esi, eax
test edi, 1
je 0x4081c4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
test eax, eax
jne 0x4081bd
and edi, 4
jne 0x40818b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
jmp 0x4081cc
mov edi, 1
jmp 0x4081cc
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4081a2
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4081d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
cmp eax, 0xffffffff
jne 0x4081f3
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x408230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x65
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x408284
mov dword [ebp - 0xc], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov dword [esp + 8], 0
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add byte [ebp - 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x408240
jmp 0x408289
mov byte [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x408294
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4082d3
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x4082da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x408319
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x40854f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0x2000
test eax, eax
je 0x40856d
mov eax, 0x100
or eax, 0x20019
lea edx, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040848b
sub esp, 0x10
test eax, eax
je 0x40859b
mov byte [ebx], 0
jmp 0x4085ee
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov byte [ebx + 0x1fff], 0
test esi, esi
jne 0x408596
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x408596
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14