joyce8/EMBER2024-capa huggingface dataset:
Function at 0x601204
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6013b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x601393
mov dl, 1
mov eax, dword [0x444864]
call fcn.0046eca0
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00409f18
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x601382
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0055d3e0
test al, al
je 0x601375
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x6013c4
lea eax, [ebp - 0x394]
call fcn.00425ad8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x601375
xor eax, eax
push ebp
push 0x60136e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x601434
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x601355
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a9b4
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x601355
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a9b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x601375
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x601275
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.0046ebc8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6013bb
lea eax, [ebp - 0x3a0]
call fcn.00409f18
pop eax
jmp eax

Function at 0x601fcc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x626bf0]
cmp byte [eax + 0xc5], 0
jne 0x60203e
cmp dword [0x626c14], 0
jne 0x601ffe
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x61eae0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x626c14], eax
cmp dword [0x626c10], 0
jne 0x602019
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x626c10], eax
cmp dword [0x626c18], 0
jne 0x60203e
push esp
push 0
push 0
mov eax, dword [0x61eadc]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x626c18], eax
pop edx
ret
Function at 0x602460
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x602477
add esp, 0xfffffff0
call fcn.00408758
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047eeac
mov eax, dword [0x61eb5c]
cmp byte [eax], 0
jne 0x6024a4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x61eea8]
cmp word [eax + 2], 0
jne 0x6024be
mov eax, dword [0x61eea8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0060484c
mov eax, dword [0x61efe8]
cmp word [eax + 2], 0
jne 0x6024d8
mov eax, dword [0x61efe8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00604a50
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x520860]
call fcn.00527350
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x604fd8
mov dl, 1
mov eax, dword [0x440dec]
call fcn.00408100
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x440dec]
call fcn.00408100
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x5259cc]
call fcn.005318cc
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x6026c8
mov eax, dword [0x61ed54]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00531de8
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x6052c4
mov dl, 1
mov eax, dword [0x440dec]
call fcn.00408100
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x61ed54]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004258d8
test eax, eax
je 0x6025f2
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00425730
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004258bc
test eax, eax
je 0x60260a
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a9b4
push ebx
push 0x604228
call fcn.005f709c
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x61eb5c]
cmp byte [eax], 0
jne 0x60265b
mov eax, ebx
call fcn.00602890
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.00605500
mov eax, ebx
call fcn.006061b4
mov byte [ebx + 0x196], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x6026bf
call fcn.004087b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x602bc0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x602c62
cmp dword [ebx + 0xac], 0
jne 0x602c5c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x602b00
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x602c5c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x602c22
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x602c5c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.00469a8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x602c31
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x602f08
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x626bf0]
cmp dword [eax + 0x188], 0
je 0x603071
test bl, bl
jne 0x602fc4
cmp dword [esi + 0xb4], 0
jne 0x602fb9
mov eax, esi
call fcn.00606004
push eax
push 0x602e08
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x602f8a
mov eax, dword [0x626bf0]
cmp byte [eax + 0xeb], 0
je 0x602f8a
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x602f6b
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x602f8a
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x602f73
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x602fb9
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.00469a8c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x602f99
inc dword [esi + 0xb4]
jmp 0x603071
cmp dword [esi + 0xb4], 0
jle 0x603071
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x603071
cmp dword [esi + 0x58], 0
je 0x603026
mov eax, dword [0x626bf0]
cmp byte [eax + 0xeb], 0
je 0x603026
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x603007
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x603026
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x60300f
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x603055
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.00469a8c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x603035
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5f3ca8]
call fcn.0040caa8
pop edi
pop esi
pop ebx
ret
Function at 0x603e34
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x603e91
cmp byte [ebx + 0xeb], 0
jne 0x603e91
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040a0a0
mov eax, dword [esi]
test eax, eax
je 0x603e7e
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x603e9e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a2f8
jmp 0x603e9e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a2f8
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x605714
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x605785
mov eax, esi
call fcn.00556a68
test al, al
je 0x605785
mov eax, dword [ebx + 0x98]
call fcn.00556690
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x605785
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x150]
test al, al
je 0x605776
push 0
mov eax, dword [ebx + 0x98]
call fcn.00556690
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.0054ca04
jmp 0x605785
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.00605520
pop esi
pop ebx
ret
Function at 0x60b574
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x90], 0
jne 0x60b5fa
mov eax, dword [ebx + 8]
call fcn.00556690
mov ecx, eax
mov dl, 1
mov eax, dword [0x56368c]
call fcn.0055034c
mov dword [ebx + 0x90], eax
mov esi, dword [ebx + 0x90]
xor edx, edx
mov eax, esi
call fcn.00568cb0
mov dword [esi + 0x2d4], ebx
mov dword [esi + 0x2d0], 0x60ae44
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xdc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x90]
call fcn.00556690
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x90]
call fcn.00556690
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa0], 0
jne 0x60b67c
mov eax, dword [ebx + 8]
call fcn.00556690
mov ecx, eax
mov dl, 1
mov eax, dword [0x56368c]
call fcn.0055034c
mov dword [ebx + 0xa0], eax
mov esi, dword [ebx + 0xa0]
mov dl, 1
mov eax, esi
call fcn.00568cb0
mov dword [esi + 0x2d4], ebx
mov dword [esi + 0x2d0], 0x60ae90
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xdc]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa0]
call fcn.00556690
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa0]
call fcn.00556690
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x98], 0
jne 0x60b6fa
mov eax, dword [ebx + 8]
call fcn.00556690
mov ecx, eax
mov dl, 1
mov eax, dword [0x564170]
call fcn.0055034c
mov dword [ebx + 0x98], eax
mov esi, dword [ebx + 0x98]
mov byte [esi + 0x2a8], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xdc]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xdc]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x98]
call fcn.00556690
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x98]
call fcn.00556690
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x60fb5c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x32
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040aa8c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a914
push eax
call sub.advapi32.dll_GetUserNameW
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a914
call fcn.0040a3fc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040aa8c
mov esp, ebp
pop ebp
ret
Function at 0x402754
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.004034e4
test esi, esi
jne 0x40278a
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.004035d4
jmp 0x4027a8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402668
mov edi, eax
test esi, esi
je 0x4027a8
cmp dword [ebx], 0
je 0x4027a8
dec esi
jmp 0x402791
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x402ac4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41b018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b3c
xor eax, eax
push ebp
push 0x402b35
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 0x402b78
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 0x402b3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41b018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41b018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403368
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c034], 0
je 0x4033c9
cmp word [0x41c208], 0xd7b2
jne 0x403391
cmp dword [0x41c210], 0
jbe 0x403391
mov eax, 0x41c204
call dword [0x41c220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41b060
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 0x4033f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41b024], 0
jne 0x4033e5
push 0
push 0x41b058
push 0x41b060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ba8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404c0e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403748
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402988
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404bf8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c15
lea eax, [ebp - 0x10]
call fcn.004034e4
ret
Function at 0x406204
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403980
xor eax, eax
push ebp
push 0x40626e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00403790
test eax, eax
jle 0x406258
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
xor ecx, 0x6521458a
add ebx, ecx
mov ecx, ebx
shl ecx, 0xd
mov esi, ebx
shr esi, 0x13
or ecx, esi
sub ebx, ecx
inc edx
dec eax
jne 0x406236
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406275
lea eax, [ebp - 4]
call fcn.004034e4
ret

Function at 0x407360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404150
mov eax, dword [ebp - 8]
call fcn.00403980
xor eax, eax
push ebp
push 0x4073f4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00403d98
push eax
mov eax, dword [0x41b3c8]
mov eax, dword [eax]
call eax
mov ebx, eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403790
push eax
lea eax, [ebp - 8]
call fcn.004039e8
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
mov eax, dword [0x41b1b4]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4073fb
lea eax, [ebp - 8]
call fcn.004034e4
lea eax, [ebp - 4]
call fcn.00403bdc
ret
Function at 0x40ce7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40cfa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, esi
call fcn.0040cd68
mov eax, dword [ebx]
call fcn.00403790
cmp eax, 4
jg 0x40cec7
mov eax, ebx
call fcn.004034e4
jmp 0x40cf8a
mov eax, dword [ebx]
call fcn.00403790
mov edi, eax
test edi, edi
jle 0x40cef1
mov esi, 1
mov eax, ebx
call fcn.004039e8
mov edx, dword [ebx]
mov dl, byte [edx + esi - 1]
xor dl, 0x5c
mov byte [eax + esi - 1], dl
inc esi
dec edi
jne 0x40ced9
mov eax, dword [ebx]
movzx esi, byte [eax + 2]
mov eax, dword [ebx]
movzx edi, byte [eax + 3]
mov eax, ebx
mov ecx, 4
mov edx, 1
call fcn.00403a30
mov eax, ebx
mov ecx, edi
mov edx, 1
call fcn.00403a30
push ebx
mov eax, dword [ebx]
mov ecx, esi
mov edx, 1
call fcn.004039f0
cmp dword [ebx], 0
je 0x40cf8a
mov eax, dword [ebp - 8]
call fcn.00403790
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403790
add esi, eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
mov ecx, esi
mov edx, 1
call fcn.004039f0
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004037dc
mov edx, dword [ebp - 0x10]
pop eax
call fcn.004038dc
je 0x40cf7c
mov eax, ebx
call fcn.004034e4
jmp 0x40cf8a
mov eax, ebx
mov ecx, esi
mov edx, 1
call fcn.00403a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfac
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403508
ret

Function at 0x40e79c
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404150
mov eax, dword [ebp - 8]
call fcn.00403980
xor eax, eax
push ebp
push 0x40e89b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00403790
cdq
cmp edx, dword [0x41cac8]
jne 0x40e7ea
cmp eax, dword [0x41cac4]
jae 0x40e86b
jmp 0x40e7ec
jge 0x40e86b
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00407228
mov eax, dword [ebp - 0xc]
call fcn.00403790
test eax, eax
jne 0x40e845
push 0
lea edx, [ebp - 0x10]
mov eax, 0x40e8ac
call fcn.004062fc
mov eax, dword [ebp - 0x10]
call fcn.00403d98
push eax
mov eax, dword [ebp - 4]
call fcn.00403d98
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x40e845
lea edx, [ebp - 0x14]
mov eax, 0x40e8ac
call fcn.004062fc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
call fcn.00407228
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0040e6d4
lea edx, [ebp - 0x18]
mov eax, 0x40e8ac
call fcn.004062fc
mov eax, dword [ebp - 0x18]
call fcn.00403d98
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e8a2
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403bf4
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403508
lea eax, [ebp - 4]
call fcn.00403bdc
ret
Function at 0x4119ac
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd74
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404150
lea eax, [ebp - 8]
call fcn.00404150
lea eax, [ebp - 0xc]
call fcn.00404150
xor eax, eax
push ebp
push 0x411c11
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x268]
mov ecx, 0x411c28
mov edx, dword [ebp - 4]
call fcn.00403e14
mov eax, dword [ebp - 0x268]
call fcn.00403d98
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 0x14], eax
push dword [ebp - 4]
push 0x411c38
lea eax, [ebp - 0x270]
lea edx, [ebp - 0x238]
mov ecx, 0x104
call fcn.00403d6c
push dword [ebp - 0x270]
push 0x411c38
mov eax, dword [0x41b3bc]
push dword [eax]
lea eax, [ebp - 0x26c]
mov edx, 5
call fcn.00403e78
mov eax, dword [ebp - 0x26c]
call fcn.0040776c
test al, al
je 0x411b8f
xor eax, eax
push ebp
push 0x411b85
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
push 0x411c38
lea eax, [ebp - 0x280]
lea edx, [ebp - 0x238]
mov ecx, 0x104
call fcn.00403d6c
push dword [ebp - 0x280]
push 0x411c38
mov eax, dword [0x41b3bc]
push dword [eax]
lea eax, [ebp - 0x27c]
mov edx, 5
call fcn.00403e78
mov eax, dword [ebp - 0x27c]
lea edx, [ebp - 0x278]
call fcn.00410d88
mov edx, dword [ebp - 0x278]
lea eax, [ebp - 0x274]
call fcn.0040377c
mov eax, dword [ebp - 0x274]
push eax
push dword [ebp - 0xc]
push 0x411c38
push dword [ebp - 8]
push 0x411c40
lea eax, [ebp - 0x28c]
lea edx, [ebp - 0x238]
mov ecx, 0x104
call fcn.00403d6c
push dword [ebp - 0x28c]
push 0x411c48
lea eax, [ebp - 0x288]
mov edx, 6
call fcn.00403e78
mov edx, dword [ebp - 0x288]
lea eax, [ebp - 0x284]
call fcn.0040377c
mov edx, dword [ebp - 0x284]
pop eax
call fcn.0040e6d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x411b8f
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x411a53
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411c18
lea eax, [ebp - 0x28c]
mov edx, 2
call fcn.00403bf4
lea eax, [ebp - 0x284]
call fcn.004034e4
lea eax, [ebp - 0x280]
mov edx, 3
call fcn.00403bf4
lea eax, [ebp - 0x274]
call fcn.004034e4
lea eax, [ebp - 0x270]
mov edx, 3
call fcn.00403bf4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403bf4
ret