joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ea0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42b698
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x438dd4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 2
push 0x4323e0
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0
call fcn.00402600
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, eax
push esi
call ebp
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x228], 0
je 0x405fa9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
test al, 1
jne 0x405f8d
mov ecx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebp
mov ebx, eax
push ebx
call fcn.00409987
mov edx, dword [esp + 0x30]
add esp, 4
push 0
push 0
push ebx
mov edi, eax
push edi
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ebp, dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0xfde9
mov ebx, eax
call ebp
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405f67
push 0
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call ebp
push edi
jmp 0x406009
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x18]
push edx
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
jmp 0x406011
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push 1
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov edx, dword [esp + 0x2c]
mov edi, dword [edx - 0xc]
lea eax, [edi + 1]
push eax
call fcn.00409987
push edi
mov ebx, eax
push 0
push ebx
call fcn.0041ae80
mov ecx, dword [esp + 0x3c]
add esp, 0x10
push edi
push ebx
push ecx
call dword [sym.imp.USER32.dll_CharToOemBuffW]
push 0
lea edx, [esp + 0x18]
push edx
push edi
push ebx
push esi
mov byte [ebx + edi], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push ebx
call fcn.00409992
add esp, 4
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406039
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x407380
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42bb58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x438dd4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.00401ee0
mov dword [esp + 0x24], 0
mov ecx, dword [ebp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ecx
call esi
cmp dword [ebp + 0x24], 0
je 0x4074a2
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
test al, 1
mov eax, dword [esp + 0x2c]
push 0
jne 0x407484
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov edi, eax
push edi
call fcn.00409987
push edi
mov esi, eax
push 0
push esi
call fcn.0041ae80
mov ecx, dword [esp + 0x3c]
add esp, 0x10
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebx
mov byte [esi + edi - 1], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0xfde9
mov edi, eax
call ebx
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407450
push 0
lea edx, [esp + 0x18]
push edx
sub eax, ecx
push eax
mov eax, dword [ebp + 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call ebx
push esi
call fcn.00409992
add esp, 4
jmp 0x4074f0
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x20]
add ecx, ecx
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x20]
push eax
call esi
jmp 0x4074f0
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00408f00
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x20]
push ecx
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4074f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407518
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4088c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088d0
sub eax, edx
mov dword [esp + 0x14], eax
lea edi, [ebp + 0x20]
mov eax, ebp
xor ecx, ecx
sub eax, edi
lea ebx, [eax + 0x120]
lea esp, [esp]
xor edx, edx
mov eax, ecx
div dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea esi, [edi + ecx]
mov dl, byte [edx + eax]
mov byte [esi], cl
inc ecx
cmp ecx, 0xff
mov byte [ebx + esi], dl
jle 0x4088f0
xor eax, eax
mov ecx, edi
mov esi, 0x100
lea esp, [esp]
mov dl, byte [ecx]
movzx edi, byte [ecx + 0x100]
movzx ebx, dl
add edi, eax
add ebx, edi
mov eax, ebx
and eax, 0x800000ff
jns 0x408940
dec eax
or eax, 0xffffff00
inc eax
movzx eax, al
mov bl, byte [eax + ebp + 0x20]
mov byte [ecx], bl
inc ecx
sub esi, 1
mov byte [eax + ebp + 0x20], dl
jne 0x408920
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x408960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
mov ebx, eax
push edi
lea ebp, [ebx + 1]
push ebp
call fcn.00409987
push ebp
mov edi, eax
push 0
push edi
mov dword [esp + 0x1c], edi
call fcn.0041ae80
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
push esi
call fcn.004088c0
test ebx, ebx
jbe 0x408a14
mov ebp, dword [esp + 0x14]
xor eax, eax
xor ecx, ecx
sub ebp, edi
mov dword [esp + 0x18], ebx
inc eax
and eax, 0x800000ff
jns 0x4089b1
dec eax
or eax, 0xffffff00
inc eax
movzx eax, al
mov dl, byte [eax + esi + 0x20]
movzx ebx, dl
add ecx, ebx
and ecx, 0x800000ff
jns 0x4089cd
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, cl
mov bl, byte [ecx + esi + 0x20]
mov byte [eax + esi + 0x20], bl
mov byte [ecx + esi + 0x20], dl
movzx ebx, byte [eax + esi + 0x20]
movzx edx, dl
add ebx, edx
and ebx, 0x800000ff
jns 0x4089f6
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edx, byte [ebx + esi + 0x20]
xor dl, byte [edi + ebp]
inc edi
sub dword [esp + 0x18], 1
mov byte [edi - 1], dl
jne 0x4089a2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x412262
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x438dd4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4122fa
push 0x42e8fc
push 4
push eax
call fcn.00419ff4
push eax
call fcn.00401a00
add esp, 0x10
push ebx
push edi
call fcn.0041adfe
mov edi, dword [eax]
call fcn.0041adfe
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0041ad9b
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0041adfe
cmp dword [eax], ebx
je 0x412311
call fcn.0041adfe
push dword [eax]
call fcn.0040a21d
pop ecx
jmp 0x412318
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4122a5
jmp 0x41239f
call fcn.0041adfe
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x41239b
cmp dword [ebp - 0x234], esi
jae 0x41239b
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0041ae80
add esp, 0xc
push 0x42e50c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41238a
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41238a
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41238a
push ebx
push ebx
push esi
jmp 0x412393
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41239d
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419730
leave
ret

Function at 0x419730
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438dd4]
jne 0x41973a
repz ret
jmp fcn.0041c0bf
Function at 0x425c40
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041f048
and dword [ebp - 4], 0
cmp dword [0x43ce7c], 0
mov ebx, eax
jne 0x425cf1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425da2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425da2
push eax
call fcn.0041efd6
mov dword [esp], 0x431188
push edi
mov dword [0x43ce7c], eax
call esi
push eax
call fcn.0041efd6
mov dword [esp], 0x431174
push edi
mov dword [0x43ce80], eax
call esi
push eax
call fcn.0041efd6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ce84], eax
call esi
push eax
call fcn.0041efd6
pop ecx
mov dword [0x43ce8c], eax
test eax, eax
je 0x425cf1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041efd6
pop ecx
mov dword [0x43ce88], eax
mov eax, dword [0x43ce88]
cmp eax, ebx
je 0x425d49
cmp dword [0x43ce8c], ebx
je 0x425d49
push eax
call fcn.0041f051
push dword [0x43ce8c]
mov esi, eax
call fcn.0041f051
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x425d49
test edi, edi
je 0x425d49
call esi
test eax, eax
je 0x425d40
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425d40
test byte [ebp - 0xc], 1
jne 0x425d49
or dword [ebp + 0x10], 0x200000
jmp 0x425d82
mov eax, dword [0x43ce80]
cmp eax, ebx
je 0x425d82
push eax
call fcn.0041f051
pop ecx
test eax, eax
je 0x425d82
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425d82
mov eax, dword [0x43ce84]
cmp eax, ebx
je 0x425d82
push eax
call fcn.0041f051
pop ecx
test eax, eax
je 0x425d82
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ce7c]
call fcn.0041f051
pop ecx
test eax, eax
je 0x425da2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425da4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b0e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4524b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ba2
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b5f
cmp dword [ebp + 0x10], ebx
jne 0x402b96
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b0e
test eax, eax
jne 0x402b71
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b46
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040615c
cmp eax, ebx
je 0x402ba9
push ebx
push dword [0x4524b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ba2
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 [0x4524b0], ebx
jne 0x402b9f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b9f
jmp 0x402ba2
Function at 0x402f33
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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 0x402f50
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402f62
mov dword [ebp - 0xc], 0x422020
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f77
mov ecx, dword [0x452458]
add ecx, eax
push ecx
call fcn.0040315b
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403145
test eax, eax
je 0x403133
test byte [ebp + 0x17], 0x80
je 0x4030de
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x414984], 0
and dword [0x414980], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x416008
mov dword [0x414468], 8
mov dword [0x41e010], eax
mov dword [0x41e00c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41e008], 0x41e008
mov dword [ebp + 8], eax
jle 0x40313b
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402ff0
mov esi, dword [ebp + 0x14]
mov edi, 0x41e020
push esi
push edi
call fcn.00403145
test eax, eax
je 0x403133
sub dword [ebp + 0x14], esi
mov dword [0x414458], edi
mov dword [0x41445c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x414458
mov dword [0x414460], edi
mov dword [0x414464], eax
call fcn.0040623f
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4030d6
mov esi, dword [0x414460]
sub esi, edi
call ebx
test byte [0x4524b4], 1
mov edi, eax
je 0x403091
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x40305e
cmp dword [ebp + 0x14], 0
jne 0x403091
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 - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404fdc
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4030ca
cmp dword [ebp + 0x10], 0
jne 0x4030b0
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405add
test eax, eax
je 0x4030da
add dword [ebp - 4], esi
jmp 0x4030be
mov eax, dword [0x414460]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403013
jmp 0x40313b
cmp dword [ebp + 0x14], 0
jg 0x402fe3
jmp 0x40313b
push 0xfffffffffffffffc
jmp 0x403135
push 0xfffffffffffffffe
jmp 0x403135
test edi, edi
jne 0x403120
cmp dword [ebp + 0x14], edi
jle 0x40313b
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4030f4
mov esi, ebx
mov edi, 0x41e020
push esi
push edi
call fcn.00403145
test eax, eax
je 0x403133
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405add
test eax, eax
je 0x4030da
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4030ea
jmp 0x40313b
cmp dword [ebp + 0x14], esi
jge 0x403128
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403145
test eax, eax
jne 0x403138
push 0xfffffffffffffffd
pop eax
jmp 0x40313e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4054a2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408374
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], 0x408364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4054f3
xor eax, eax
jmp 0x40551a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40551a
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4054ef
call esi
pop esi
leave
ret 4

Function at 0x405554
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x448070], 0x44
push eax
xor eax, eax
push 0x448070
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 0x405593
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405a11
mov edi, eax
cmp edi, 0xffffffff
je 0x40565e
test byte [esp + 0x10], 1
push esi
je 0x405640
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405646
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40564f
xor eax, eax
inc eax
jmp 0x405660
test byte [esp + 0x10], 4
jne 0x40565e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405665
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.00405923
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4056a4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x452488], eax
jmp 0x40582e
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4056be
test eax, eax
je 0x4057dc
test bl, 2
je 0x4057dc
mov esi, 0x444070
push edi
push esi
call fcn.00405dc3
cmp dword [ebp + 8], 0
je 0x4056dd
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4056e3
push edi
call fcn.0040587c
cmp byte [edi], 0
jne 0x4056f1
cmp byte [0x444070], 0x5c
jne 0x4056fc
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 0x4057d2
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405860
cmp byte [eax], 0
je 0x405742
cmp byte [ebp - 0x1c], 0
je 0x405742
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405758
mov al, byte [esi + 1]
test al, al
je 0x4057b1
cmp al, 0x2e
jne 0x405758
cmp byte [esi + 2], 0
je 0x4057b1
push esi
push ebx
call fcn.00405dc3
test byte [ebp - 0x14c], 0x10
je 0x40577d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4057b1
push dword [ebp + 0xc]
push edi
call fcn.00405665
jmp 0x4057b1
push dword [ebp - 4]
push edi
call fcn.0040561d
test eax, eax
jne 0x4057a9
cmp dword [ebp - 4], eax
je 0x4057a1
push edi
push 0xfffffffffffffff1
call fcn.00404fdc
push 0
push edi
call fcn.00405c7e
jmp 0x4057b1
inc dword [0x452488]
jmp 0x4057b1
push edi
push 0xfffffffffffffff2
call fcn.00404fdc
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405720
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4057dc
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40582e
cmp dword [ebp - 0xc], esi
jne 0x4057f0
inc dword [0x452488]
jmp 0x40582e
push edi
call fcn.004060c7
test eax, eax
je 0x40582e
push edi
call fcn.00405835
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040561d
test eax, eax
jne 0x405826
cmp dword [ebp - 4], esi
je 0x4057e8
push edi
push 0xfffffffffffffff1
call fcn.00404fdc
push esi
push edi
call fcn.00405c7e
jmp 0x40582e
push edi
push 0xffffffffffffffe5
call fcn.00404fdc
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405923
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x446070
push esi
call fcn.00405dc3
push esi
call fcn.004058ce
mov edi, eax
test edi, edi
jne 0x405944
xor eax, eax
jmp 0x405996
push edi
call fcn.0040602e
test byte [0x452418], 0x80
je 0x40595d
mov al, byte [edi]
test al, al
je 0x405940
cmp al, 0x5c
je 0x405940
sub edi, esi
jmp 0x405975
call fcn.004060c7
test eax, eax
je 0x40596f
test byte [eax], 0x10
je 0x405940
push esi
call fcn.0040587c
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405961
call fcn.00405835
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

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

Function at 0x405a36
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x405a65
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3ac]
dec edi
mov dword [ebp + 8], 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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405aaa
test edi, edi
jne 0x405a70
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405aa4