joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461768
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 0x461913
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4618f4
mov dl, 1
mov eax, dword [0x4142c4]
call fcn.004036d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404470
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4618e3
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.0044e6f4
test al, al
je 0x4618d6
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, 0x461924
lea eax, [ebp - 0x254]
call fcn.00409944
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4618d6
xor eax, eax
push ebp
push 0x4618cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46195c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4618b8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004046d8
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 0x4618b8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004046d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4618d6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4617d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418af0
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 0x46191a
lea eax, [ebp - 0x260]
call fcn.00404470
ret

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

Disassembly:
push ecx
mov eax, dword [0x4bac30]
cmp byte [eax + 0xa5], 0
jne 0x4622b9
cmp dword [0x4bac48], 0
jne 0x46227a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x462204
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4bac48], eax
cmp dword [0x4bac44], 0
jne 0x462295
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4bac44], eax
cmp dword [0x4bac4c], 0
jne 0x4622b9
push esp
push 0
push 0
push 0x4621a8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4bac4c], eax
pop edx
ret
Function at 0x4623e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4623f7
add esp, 0xfffffff0
call fcn.00403a68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e464
mov eax, dword [0x4b8dfc]
cmp word [eax + 2], 0
jne 0x46241f
mov eax, dword [0x4b8dfc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463aa4
mov eax, dword [0x4b8ec8]
cmp word [eax + 2], 0
jne 0x462439
mov eax, dword [0x4b8ec8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463c9c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x413c60]
call fcn.004036d4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413c60]
call fcn.004036d4
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], 0x80000018
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 [0x4209b8]
call fcn.00428704
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4625c0
mov eax, dword [0x4b8d04]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428ad4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46421c
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b8d04]
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.0040ce54
test eax, eax
je 0x46252e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040928c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ce7c
test eax, eax
je 0x462542
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, 0x100
call fcn.004046d8
mov eax, dword [0x4b8ba8]
cmp byte [eax], 0
jne 0x462576
mov eax, ebx
call fcn.004626e8
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.004643f8
mov eax, ebx
call fcn.00464d38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4625b6
call fcn.00403ac0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46295c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4bac30]
cmp dword [eax + 0x30], 0
je 0x462a06
cmp dword [ebx + 0x94], 0
jne 0x462a00
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4628ec
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x462a00
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 0x4629c6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x462a00
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.00416490
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4629d5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4634e4
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 0x463519
push 0x100
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.00404560
jmp 0x463526
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044c4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4645d4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x464615
mov eax, esi
call fcn.00449de8
test al, al
je 0x464615
mov eax, dword [ebx + 0x84]
call fcn.00449ae4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x464615
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449ae4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x469470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404920
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x469f98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404920
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x469ff0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b9078]
mov dl, 1
mov eax, dword [0x469b50]
call fcn.0040c204
call fcn.00403ed0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00469c58
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x473890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x473968
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bad30], 0
jne 0x47394c
lea eax, [ebp - 4]
mov edx, 0x473980
call fcn.00404508
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404920
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47394c
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x473945
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47392f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x473990
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47392f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4bad30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47394c
mov eax, dword [ebp - 0xc]
call fcn.00402764
ret
mov ebx, dword [0x4bad30]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47396f
lea eax, [ebp - 4]
call fcn.00404470
ret
Function at 0x496288
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4962b6
mov eax, ebx
call fcn.00496d40
cmp dword [ebx + 0x3c], 0
je 0x4962af
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x496327
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x496319
cmp dword [ebx + 8], 0
je 0x4962d8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4962ea
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x496319
cmp dword [ebx + 8], 0
je 0x4962cb
cmp eax, 3
je 0x4962fd
dec eax
jne 0x4962cb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4962cb
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4962cb
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x496345
cmp dword [ebx + 0x10], 0xcc
je 0x496345
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00496350
pop ebx
ret

Function at 0x4afa38
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
xor ebx, ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x164], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404910
mov eax, dword [ebp - 8]
call fcn.00404910
lea eax, [ebp - 0x160]
mov edx, dword [0x407a80]
call fcn.00404e98
xor eax, eax
push ebp
push 0x4afbab
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
mov ecx, 0x4afbc0
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, 0x3f
call fcn.00408fa8
xor edx, edx
push ebp
push 0x4afb60
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
jne 0x4afb47
test bl, bl
je 0x4afb19
push 0
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00404774
mov eax, dword [ebp - 0x168]
call fcn.00404920
push eax
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x16c]
call fcn.00404920
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x170]
call fcn.00409038
lea eax, [ebp - 0x160]
call fcn.00408ff8
test eax, eax
je 0x4aface
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afb67
lea eax, [ebp - 0x160]
call fcn.0040901c
ret
Function at 0x4b58dc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
xor ebx, ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x164], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404910
mov eax, dword [ebp - 8]
call fcn.00404910
lea eax, [ebp - 0x160]
mov edx, dword [0x407a80]
call fcn.00404e98
xor eax, eax
push ebp
push 0x4b5a4f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
mov ecx, 0x4b5a64
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, 0x3f
call fcn.00408fa8
xor edx, edx
push ebp
push 0x4b5a04
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
jne 0x4b59eb
test bl, bl
je 0x4b59bd
push 0
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00404774
mov eax, dword [ebp - 0x168]
call fcn.00404920
push eax
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x16c]
call fcn.00404920
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x170]
call fcn.00409038
lea eax, [ebp - 0x160]
call fcn.00408ff8
test eax, eax
je 0x4b5972
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5a0b
lea eax, [ebp - 0x160]
call fcn.0040901c
ret
Function at 0x41150f
Capabilities:
Execute command

Disassembly:
jmp 0x416f10
push 0x44
mov eax, 0x41b7d7
call fcn.004116fe
mov ecx, 0x4240f4
call fcn.004117df
push 0x41ee80
call dword [sym.imp.ucrtbased.dll_system]
pop ecx
mov esi, 0x41107d
push esi
push str.2._____
push dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.0041140b
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x48]
call fcn.00411546
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00411546
mov ecx, dword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP140D.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
push str.________________________:
push dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.0041140b
lea eax, [ebp - 0x48]
push eax
push dword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.00411005
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0x41ee5c
push eax
push str._______________________________
push dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.0041140b
pop ecx
pop ecx
push eax
call fcn.00411636
pop ecx
pop ecx
push eax
call fcn.0041140b
lea eax, [ebp - 0x2c]
push eax
push dword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.00411005
sub esp, 0xc
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.00411519
sub esp, 0x1c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00411519
mov byte [ebp - 4], 1
call fcn.0041144c
add esp, 0x38
push esi
test al, al
je 0x41700b
push str.______________________
jmp 0x417010
push str._____________________________________
push dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.0041140b
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x2c]
call fcn.004114ab
lea ecx, [ebp - 0x48]
call fcn.004114ab
call fcn.00411901
ret
Function at 0x4030da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403105
mov ecx, dword [0x42f498]
push esi
add eax, ecx
push esi
push eax
mov dword [0x429444], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004031e2
cmp eax, esi
jl 0x4031dc
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405d77
test eax, eax
je 0x4031cc
push dword [ebp + 8]
add dword [0x429444], 4
call fcn.004031e2
mov ebx, eax
cmp ebx, esi
jl 0x4031da
cmp dword [ebp + 0x10], esi
jne 0x4031a8
cmp dword [ebp + 8], esi
jle 0x4031da
mov esi, 0x41d440
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40316a
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405d77
test eax, eax
je 0x4031cc
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405da6
test eax, eax
je 0x4031a4
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x429444], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403159
jmp 0x4031da
push 0xfffffffffffffffe
jmp 0x4031ce
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031b3
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4031d1
push 0xfffffffffffffffd
pop eax
jmp 0x4031dc
mov ebx, dword [ebp - 4]
add dword [0x429444], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405753
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40837c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40836c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4057a4
xor eax, eax
jmp 0x4057cb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4057cb
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4057a0
call esi
pop esi
leave
ret 4

Function at 0x405805
Capabilities:
Create process on windows

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

Function at 0x405848
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405cda
mov edi, eax
cmp edi, 0xffffffff
je 0x405927
test byte [esp + 0x10], 1
push esi
je 0x405909
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40590f
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405918
xor eax, eax
inc eax
jmp 0x405929
test byte [esp + 0x10], 4
jne 0x405927
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40592e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405bec
test bl, 8
mov dword [ebp - 0xc], eax
je 0x40596d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4c8], eax
jmp 0x405af7
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405987
test eax, eax
je 0x405aa5
test bl, 2
je 0x405aa5
mov esi, 0x42b8a0
push edi
push esi
call fcn.00406166
cmp dword [ebp + 8], 0
je 0x4059a6
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4059ac
push edi
call fcn.00405b45
cmp byte [edi], 0
jne 0x4059ba
cmp byte [0x42b8a0], 0x5c
jne 0x4059c5
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405a9b
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405b29
cmp byte [eax], 0
je 0x405a0b
cmp byte [ebp - 0x1c], 0
je 0x405a0b
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405a21
mov al, byte [esi + 1]
test al, al
je 0x405a7a
cmp al, 0x2e
jne 0x405a21
cmp byte [esi + 2], 0
je 0x405a7a
push esi
push ebx
call fcn.00406166
test byte [ebp - 0x14c], 0x10
je 0x405a46
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405a7a
push dword [ebp + 0xc]
push edi
call fcn.0040592e
jmp 0x405a7a
push dword [ebp - 4]
push edi
call fcn.004058e6
test eax, eax
jne 0x405a72
cmp dword [ebp - 4], eax
je 0x405a6a
push edi
push 0xfffffffffffffff1
call fcn.0040528d
push 0
push edi
call fcn.00405f45
jmp 0x405a7a
inc dword [0x42f4c8]
jmp 0x405a7a
push edi
push 0xfffffffffffffff2
call fcn.0040528d
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4059e9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405aa5
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405af7
cmp dword [ebp - 0xc], esi
jne 0x405ab9
inc dword [0x42f4c8]
jmp 0x405af7
push edi
call fcn.00406469
test eax, eax
je 0x405af7
push edi
call fcn.00405afe
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004058e6
test eax, eax
jne 0x405aef
cmp dword [ebp - 4], esi
je 0x405ab1
push edi
push 0xfffffffffffffff1
call fcn.0040528d
push esi
push edi
call fcn.00405f45
jmp 0x405af7
push edi
push 0xffffffffffffffe5
call fcn.0040528d
pop edi
pop esi
pop ebx
leave
ret 8