joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430e10
Capabilities:
Check http status code
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test edx, edx
je 0x430f19
test ecx, ecx
je 0x430f53
test eax, eax
je 0x430f36
cmp dword [eax + 0x20], 2
jne 0x430efc
mov ebx, dword [eax + 0x28]
cmp ebx, 1
je 0x430e53
cmp ebx, 4
jne 0x430edf
cmp byte [edx + 4], 0
jne 0x430e90
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x430ed8
movzx edx, byte [eax]
test dl, dl
je 0x430ea0
lea ecx, [edx - 1]
xor eax, eax
cmp cl, 1
ja 0x430e86
lea edx, [edx + edx*4]
shl edx, 4
movzx ecx, word [ebx + edx + 0x10]
cmp word [ebx + edx - 0x40], cx
je 0x430e86
movzx eax, cx
mov ebx, dword [ebp - 4]
leave
ret
movzx eax, word [eax + 0x10]
mov ebx, dword [ebp - 4]
leave
ret
mov edx, dword [ecx]
xor eax, eax
cmp byte [edx + 0x19], 1
jbe 0x430e86
mov ecx, dword [ebx + 0x70]
movzx edx, word [ebx + 0x10]
test ecx, 0xfffffffb
je 0x430ed0
cmp dx, word [ebx + 0x60]
jne 0x430ed0
cmp ecx, 1
jne 0x430e86
cmp dword [ebx + 0x54], 2
jne 0x430e86
cmp dword [ebx + 0x78], 2
jne 0x430e86
movzx eax, dx
jmp 0x430e86
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret
mov dword [esp + 8], 0x58
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_libs_zydis_src_FormatterBase.c
mov dword [esp], str._operand__mem.type__ZYDIS_MEMOP_TYPE_MEM____operand__mem.type__ZYDIS_MEMOP_TYPE_VSIB_
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [esp + 8], 0x57
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_libs_zydis_src_FormatterBase.c
mov dword [esp], str.operand__type__ZYDIS_OPERAND_TYPE_MEMORY
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [esp + 8], 0x53
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_libs_zydis_src_FormatterBase.c
mov dword [esp], 0x4623f7
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [esp + 8], 0x55
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_libs_zydis_src_FormatterBase.c
mov dword [esp], str.operand
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [esp + 8], 0x54
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_libs_zydis_src_FormatterBase.c
mov dword [esp], 0x462401
call dword [sym.imp.ucrtbase.dll__assert]
Function at 0x430f70
Capabilities:
Check http status code
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
test eax, eax
je 0x430fac
test ecx, ecx
je 0x430fe6
test edx, edx
je 0x430fc9
mov ebx, dword [edx + 8]
mov ebx, dword [ebx + 0x28]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [eax + 0x134]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp + 8], 0x98
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_libs_zydis_src_FormatterBase.c
mov dword [esp], 0x4623f7
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [esp + 8], 0x9a
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_libs_zydis_src_FormatterBase.c
mov dword [esp], 0x462401
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [esp + 8], 0x99
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_libs_zydis_src_FormatterBase.c
mov dword [esp], 0x46249c
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]
lea esi, [esi]

Function at 0x438420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x43847b
cmp byte [esi + ebx - 1], 0xa
je 0x43844f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4af764], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x438a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x4af774]
mov esi, dword [ebp + 8]
test edi, edi
je 0x438bc0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4af774]
movzx eax, al
bt eax, esi
jae 0x438c20
mov ecx, dword [0x4af764]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x438ac6
test byte [0x43a968], 8
jne 0x438b60
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x43a978], 8
jne 0x438b10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x438a95
cmp esi, 3
jbe 0x438ad0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4a3e08]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0_2
jmp 0x438a95
mov ecx, dword [0x4af774]
test ecx, ecx
je 0x438c00
mov dword [esp], 0x43a978
call dword [0x4af774]
test al, 8
je 0x438a6c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x438a6c
mov ebx, dword [0x4af774]
test ebx, ebx
je 0x438be0
mov dword [esp], 0x43a968
call dword [0x4af774]
test al, 8
je 0x438a59
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x438a5f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4af774
call sym._load_func.part.0
jmp 0x438a20
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4af774
call sym._load_func.part.0
jmp 0x438b6a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4af774
call sym._load_func.part.0
jmp 0x438b1e
mov eax, 0xffffffff
jmp 0x438ac6
Function at 0x439080
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit
Function at 0x40d7fb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4040d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x60
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401ed0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcCharValueBstr
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 4
mov edx, dword [0x425110]
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrCopy
mov dword [ebp - 4], 5
fldz
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcSqr
fstp qword [ebp - 0x64]
mov dword [ebp - 4], 6
mov eax, dword [ebp + 8]
movsx eax, word [eax]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x2c], 1
jmp 0x40d8cc
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x68]
jo 0x40d9f9
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x6c]
jg 0x40d99c
mov dword [ebp - 4], 7
push dword [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaLenBstr
mov ecx, eax
call sub.MSVBVM60.DLL___vbaI2I4
mov word [ebp - 0x58], ax
mov word [ebp - 0x54], 1
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00407054
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x40], 2
push dword [ebp - 0x24]
lea eax, [ebp - 0x40]
push eax
movsx eax, word [ebp - 0x5c]
push eax
push dword [ebp - 0x28]
call sub.MSVBVM60.DLL_rtcMidCharBstr
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 8
push 0
push 0
call fcn.004052e0
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 9
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcCharValueBstr
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 0xa
jmp 0x40d8bd
mov dword [ebp - 4], 0xb
push 0
push 0
call fcn.004052e0
call sub.MSVBVM60.DLL___vbaSetSystemError
wait
push 0x40d9e5
jmp 0x40d9dc
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a8ad0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402c93
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040649b
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x7a8ad0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a8ad0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x4030bb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4030db
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4030ed
mov dword [ebp - 0xc], 0x78f6d8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403102
mov ecx, dword [0x7a8a78]
add ecx, eax
push ecx
call fcn.004032c9
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004032b3
test eax, eax
je 0x4032a1
test byte [ebp + 0x17], 0x80
je 0x40324c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ce38], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40ce20], 0xb
mov dword [ebp + 8], eax
jle 0x4032a9
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403158
mov esi, dword [ebp + 0x14]
mov edi, 0x78b6d8
push esi
push edi
call fcn.004032b3
test eax, eax
je 0x4032a1
sub dword [ebp + 0x14], esi
mov dword [0x40ce10], edi
mov dword [0x40ce14], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce10
mov dword [0x40ce18], edi
mov dword [0x40ce1c], eax
call fcn.004065ba
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403244
mov esi, dword [0x40ce18]
sub esi, edi
call ebx
test byte [0x7a8ad4], 1
mov edi, eax
je 0x4031ff
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4031c6
cmp dword [ebp + 0x14], 0
jne 0x4031ff
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00405220
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403238
cmp dword [ebp + 0x10], 0
jne 0x40321e
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405d48
test eax, eax
je 0x403248
add dword [ebp - 4], esi
jmp 0x40322c
mov eax, dword [0x40ce18]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x40317b
jmp 0x4032a9
cmp dword [ebp + 0x14], 0
jg 0x40314b
jmp 0x4032a9
push 0xfffffffffffffffc
jmp 0x4032a3
push 0xfffffffffffffffe
jmp 0x4032a3
test edi, edi
jne 0x40328e
cmp dword [ebp + 0x14], edi
jle 0x4032a9
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403262
mov esi, ebx
mov edi, 0x78b6d8
push esi
push edi
call fcn.004032b3
test eax, eax
je 0x4032a1
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405d48
test eax, eax
je 0x403248
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403258
jmp 0x4032a9
cmp dword [ebp + 0x14], esi
jge 0x403296
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032b3
test eax, eax
jne 0x4032a6
push 0xfffffffffffffffd
pop eax
jmp 0x4032ac
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4056ef
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
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], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405740
xor eax, eax
jmp 0x405767
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405767
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40573c
call esi
pop esi
leave
ret 4

Function at 0x4057a1
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c71
mov edi, eax
cmp edi, 0xffffffff
je 0x4058ab
test byte [esp + 0x10], 1
push esi
je 0x40588d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405893
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40589c
xor eax, eax
inc eax
jmp 0x4058ad
test byte [esp + 0x10], 4
jne 0x4058ab
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4058b2
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
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.00405b7d
test bl, 8
mov dword [ebp - 8], eax
je 0x4058f1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8aa8], eax
jmp 0x405a6e
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40590b
test eax, eax
je 0x405a1c
test bl, 2
je 0x405a1c
mov esi, 0x7a3f28
push edi
push esi
call fcn.004060c1
cmp dword [ebp + 8], 0
je 0x40592a
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405930
push edi
call fcn.00405ac1
cmp word [edi], 0
jne 0x405940
cmp word [0x7a3f28], 0x5c
jne 0x40594b
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a11
cmp word [ebp - 0x22c], 0x2e
jne 0x405995
cmp word [ebp - 0x22a], 0
je 0x4059f4
cmp word [ebp - 0x22a], 0x2e
jne 0x405995
cmp word [ebp - 0x228], 0
je 0x4059f4
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004060c1
test byte [ebp - 0x258], 0x10
je 0x4059c0
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059f4
push dword [ebp + 0xc]
push edi
call fcn.004058b2
jmp 0x4059f4
push dword [ebp - 4]
push edi
call fcn.0040586a
test eax, eax
jne 0x4059ec
cmp dword [ebp - 4], eax
je 0x4059e4
push edi
push 0xfffffffffffffff1
call fcn.00405220
push 0
push edi
call fcn.00405f62
jmp 0x4059f4
inc dword [0x7a8aa8]
jmp 0x4059f4
push edi
push 0xfffffffffffffff2
call fcn.00405220
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40596d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405a1c
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405a6e
cmp dword [ebp - 8], esi
jne 0x405a30
inc dword [0x7a8aa8]
jmp 0x405a6e
push edi
call fcn.00406404
test eax, eax
je 0x405a6e
push edi
call fcn.00405a75
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040586a
test eax, eax
jne 0x405a66
cmp dword [ebp - 4], esi
je 0x405a28
push edi
push 0xfffffffffffffff1
call fcn.00405220
push esi
push edi
call fcn.00405f62
jmp 0x405a6e
push edi
push 0xffffffffffffffe5
call fcn.00405220
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405b7d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a4728
push esi
call fcn.004060c1
push esi
call fcn.00405b20
mov edi, eax
test edi, edi
jne 0x405b9e
xor eax, eax
jmp 0x405bf6
push edi
call fcn.00406355
test byte [0x7a8a38], 0x80
je 0x405bbb
mov ax, word [edi]
test ax, ax
je 0x405b9a
cmp ax, 0x5c
je 0x405b9a
sub edi, esi
sar edi, 1
jmp 0x405bd5
call fcn.00406404
test eax, eax
je 0x405bcf
test byte [eax], 0x10
je 0x405b9a
push esi
call fcn.00405ac1
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405bc1
call fcn.00405a75
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c71
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c90
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405c96
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405cc5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a550]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a554]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405d15
test edi, edi
jne 0x405cd2
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405d0f