joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a070
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4cf5ec]
cmp byte [eax + 0xc], 0
je 0x45a1dd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a1d6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d0bc0], 0
jne 0x45a0c4
push 0x45a1e4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45a1ec
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0bc0], eax
cmp dword [0x4cceb4], 0
jne 0x45a1bf
push 0x45a1fc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4cceb4], eax
cmp dword [0x4cceb4], 0
je 0x45a1bf
push 0x45a208
mov eax, dword [0x4cceb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0bc4], eax
push 0x45a218
mov eax, dword [0x4cceb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0bc8], eax
push 0x45a22c
mov eax, dword [0x4cceb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0bcc], eax
push 0x45a244
mov eax, dword [0x4cceb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0bd0], eax
push 0x45a25c
mov eax, dword [0x4cceb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0bd4], eax
push 0x45a270
mov eax, dword [0x4cceb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0bd8], eax
push 0x45a288
mov eax, dword [0x4cceb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0bdc], eax
push 0x45a2a0
mov eax, dword [0x4cceb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0be0], eax
push 0x45a2bc
mov eax, dword [0x4cceb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0be4], eax
push 0x45a2c8
mov eax, dword [0x4cceb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d0be8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a1dd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45e520
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404170
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45e56f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004043e0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x466698
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4666e8]
test si, 4
je 0x4666ac
or bl, 1
test si, 8
je 0x4666b6
or bl, 4
test si, 1
je 0x4666c0
or bl, 8
test si, 2
je 0x4666ca
or bl, 0x10
test si, 0x10
je 0x4666d4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4666e3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4666ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x466724]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466705
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466714
or bl, 4
test esi, 0x20000000
je 0x46671f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46cec4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46ced6
add esp, 0xfffffff0
call fcn.00403724
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424c38
mov eax, dword [0x4cee58]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d268
mov eax, dword [0x4cee70]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d274
mov eax, ebx
call fcn.0046d280
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x419ea8]
call fcn.00403390
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x419ea8]
call fcn.00403390
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x419ea8]
call fcn.00403390
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x419ea8]
call fcn.00403390
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x419ea8]
call fcn.00403390
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46969c
push eax
push 0
push 0
mov eax, dword [0x4cf17c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4266f4]
call fcn.00427f08
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4266f4]
call fcn.00427f08
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4266f4]
call fcn.00427f08
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046d6e8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d5c4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d5c4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d5c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46d013
call fcn.0040377c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46d3a8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46d553
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46d534
mov dl, 1
mov eax, dword [0x41a50c]
call fcn.00403390
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404170
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46d523
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.0045a3d0
test al, al
je 0x46d516
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46d564
lea eax, [ebp - 0x254]
call fcn.0040993c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46d516
xor eax, eax
push ebp
push 0x46d50f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46d59c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46d4f8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043e0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46d4f8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d516
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46d419
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ecbc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d55a
lea eax, [ebp - 0x260]
call fcn.00404170
ret

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

Disassembly:
push ecx
mov eax, dword [0x4d0c0c]
cmp byte [eax + 0xa5], 0
jne 0x46def9
cmp dword [0x4d0c24], 0
jne 0x46deba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46de44
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4d0c24], eax
cmp dword [0x4d0c20], 0
jne 0x46ded5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d0c20], eax
cmp dword [0x4d0c28], 0
jne 0x46def9
push esp
push 0
push 0
push 0x46dde8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4d0c28], eax
pop edx
ret
Function at 0x46e020
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46e037
add esp, 0xfffffff0
call fcn.00403724
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424c38
mov eax, dword [0x4cf15c]
cmp word [eax + 2], 0
jne 0x46e05f
mov eax, dword [0x4cf15c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046f710
mov eax, dword [0x4cf2e4]
cmp word [eax + 2], 0
jne 0x46e079
mov eax, dword [0x4cf2e4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046f908
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419ea8]
call fcn.00403390
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419ea8]
call fcn.00403390
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x427274]
call fcn.0042ed18
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46e200
mov eax, dword [0x4cef30]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f0e8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46fea8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4cef30]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d928
test eax, eax
je 0x46e16e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409300
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d950
test eax, eax
je 0x46e182
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004043e0
mov eax, dword [0x4cec50]
cmp byte [eax], 0
jne 0x46e1b6
mov eax, ebx
call fcn.0046e328
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00470084
mov eax, ebx
call fcn.00470a48
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e1f6
call fcn.0040377c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e5a8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4d0c0c]
cmp dword [eax + 0x30], 0
je 0x46e652
cmp dword [ebx + 0x94], 0
jne 0x46e64c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46e538
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46e64c
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_GetWindowLongA
test al, 8
je 0x46e612
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46e64c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c710
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46e621
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46f1b4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46f1e9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404260
jmp 0x46f1f6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041c4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x470260
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4702a1
mov eax, esi
call fcn.00455998
test al, al
je 0x4702a1
mov eax, dword [ebx + 0x84]
call fcn.00455694
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4702a1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00455694
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x49ac1f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4ce676
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x49ac77
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4ce697
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x49ac6d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x49ac7b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4bc528
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x4bc56c
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.004094cc
add esp, 0x200
pop ebx
ret
Function at 0x4c2800
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x40]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4c283b
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.0041c710
mov al, byte [eax + 0x2a8]
xor al, 1
push eax
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.0041c710
pop edx
mov byte [eax + 0x2a8], dl
inc ebx
dec edi
jne 0x4c2813
pop edi
pop esi
pop ebx
ret
Function at 0x4014eb
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x40155a
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x401588
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403040
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015a2
pop esi
ret
push edi
push 2
push 0xffffffffffffffd0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015d4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4015e1
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401632
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40163e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401640
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x264], ecx
call fcn.00404b50
mov edi, eax
pop ecx
lea ecx, [edi - 1]
cmp ecx, 0x100
ja 0x4011ea
push 0x5c
pop eax
cmp word [esi + edi*2 - 2], ax
je 0x40104f
mov word [esi + edi*2], ax
inc edi
push 0x2a
pop ecx
lea eax, [esi + edi*2]
mov word [eax], cx
xor ecx, ecx
mov dword [ebp - 0x268], eax
mov word [eax + 2], cx
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x401111
test byte [ebp - 0x258], 0x10
je 0x4010ee
lea eax, [ebp - 0x22c]
push 0x41a698
push eax
call fcn.00404b6b
pop ecx
pop ecx
test eax, eax
je 0x4010e8
lea eax, [ebp - 0x22c]
push 0x41a69c
push eax
call fcn.00404b6b
pop ecx
pop ecx
test eax, eax
je 0x4010e8
lea eax, [ebp - 0x22c]
push eax
mov eax, 0x104
sub eax, edi
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00404a77
mov edx, dword [ebp - 0x260]
add esp, 0xc
mov ecx, dword [ebp - 0x264]
push ebx
push esi
call section..text
pop ecx
pop ecx
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x25c]
jne 0x401081
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x2a
pop ecx
lea eax, [esi + edi*2]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x4011c1
test byte [ebp - 0x258], 0x10
jne 0x4011a2
lea eax, [ebp - 0x22c]
push eax
mov eax, 0x104
sub eax, edi
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00404a77
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401186
cmp dword [ebp - 0x264], eax
jne 0x401186
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x40119c
test eax, eax
jne 0x40119c
cmp dword [ebp - 0x260], eax
je 0x40119c
push 4
push eax
push esi
call ebx
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x25c]
jne 0x40113d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
xor ecx, ecx
push esi
mov word [eax - 2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4011ea
test ebx, ebx
je 0x4011ea
cmp dword [ebp - 0x260], eax
je 0x4011ea
push 4
push eax
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032a6
mov esp, ebp
pop ebp
ret
Function at 0x401265
Capabilities:
Delete file

Disassembly:
push esi
push edi
push str.MoveFileExW
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4012ad
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4012ad
test edi, edi
je 0x4012ad
push 4
push eax
push esi
call edi
pop edi
pop esi
ret

Function at 0x4012b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8a40
call fcn.004135a0
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, edx
mov ebx, ecx
call fcn.00404300
add esp, 0xc
mov dword [ebp - 0x8a1c], 0x104
lea eax, [ebp - 0x8a40]
mov dword [ebp - 0x8a18], esi
mov dword [ebp - 0x8a10], esi
mov dword [ebp - 0x8a14], 0x3fff
push eax
lea eax, [ebp - 0x8a28]
push eax
lea eax, [ebp - 0x8a2c]
push eax
lea eax, [ebp - 0x8a30]
push eax
lea eax, [ebp - 0x8a10]
push eax
lea eax, [ebp - 0x8a34]
push eax
lea eax, [ebp - 0x8a38]
push eax
lea eax, [ebp - 0x8a18]
push eax
push esi
lea eax, [ebp - 0x8a1c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8a10]
test eax, eax
je 0x40141b
xor eax, eax
mov dword [ebp - 0x8a14], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8a0c], ax
lea eax, [ebp - 0x8a14]
push eax
lea eax, [ebp - 0x8a0c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40140e
lea eax, [ebp - 0x8a0c]
push edi
push eax
call fcn.00403e81
pop ecx
pop ecx
test eax, eax
jne 0x40142e
push 0x800
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0x8a24], 1
push eax
call fcn.00404300
add esp, 0xc
mov dword [ebp - 0x8a20], 0x400
lea eax, [ebp - 0x8a20]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0x8a24]
push eax
push 0
lea eax, [ebp - 0x8a0c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40140e
lea eax, [ebp - 0xa0c]
push edi
push eax
call fcn.00403e81
pop ecx
pop ecx
test eax, eax
jne 0x40142e
inc esi
cmp esi, dword [ebp - 0x8a10]
jb 0x401361
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032a6
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
jmp 0x40141d