joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bd60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x467590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00429960
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x42bdb9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00426dc0
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00426db0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.0042b410
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x4693e8]
push 0
lea ecx, [esp + 0x4c]
call fcn.004611c2
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0043aa10
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.004293c0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x4690f4]
mov ecx, ebx
call fcn.00426d30
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x42be84
push edi
mov ecx, esi
call fcn.004294d0
push eax
push ebp
mov ecx, esi
call fcn.00429690
cmp eax, dword [esp + 0x40]
jg 0x42be80
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x42be5e
mov eax, ebx
jmp 0x42be8a
cmp edi, ebx
jl 0x42be88
mov eax, ebx
jmp 0x42be8a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x42be9b
mov dword [esp + 0x30], eax
jmp 0x42bea6
cmp edi, ebx
jl 0x42bea1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00426cf0
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x42beed
push edi
mov ecx, esi
call fcn.004293f0
push eax
push ebx
mov ecx, esi
call fcn.004297c0
cmp eax, dword [esp + 0x44]
jg 0x42bee5
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x42bebf
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x42bef7
cmp edi, ebp
jl 0x42bef1
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x42bef7
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x42bf00
mov ecx, eax
jmp 0x42bf09
cmp edi, ebp
jl 0x42bf06
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.004293e0
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00461234
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x431ed0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467a48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x431f09
inc eax
mov dword [esi + 0x10], eax
jmp 0x43201c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x431f1d
mov eax, 0xffffffc7
jmp 0x43201e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x431f2e
cmp dword [esi + 8], eax
jne 0x431f1d
cmp dword [esi + 8], eax
jne 0x431f47
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x431f47
mov eax, 0xffffffc7
jmp 0x43201e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x431f5b
push eax
mov ecx, ebx
call fcn.00431700
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00404ad0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x431f8c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00404af0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00430e70
test eax, eax
mov dword [esp + 0x38], eax
je 0x431fbf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc939e0
call fcn.00404cd0
mov eax, dword [esp + 0x38]
jmp 0x43201e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00431d30
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x432003
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00431d50
mov esi, eax
test esi, esi
jne 0x432033
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00431d30
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x431fd5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc939e0
call fcn.00404cd0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc939e0
call fcn.00404cd0
mov eax, esi
jmp 0x43201e
Function at 0x43b070
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4693e8]
push 0
lea ecx, [esp + 0x20]
call fcn.004611c2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043aa10
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004610f0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045d9b4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045d9b4
push 1
push 0
push 0
mov ecx, esi
call fcn.0045d95c
push 1
push 0
push 1
mov ecx, esi
call fcn.0045d95c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461234
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43b1f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004611c2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043aa10
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004610f0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4693e8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43b2b4
cmp dword [esp + 0x40], 1
jne 0x43b2b2
cmp ecx, eax
jge 0x43b2b4
mov eax, ecx
cmp eax, 0xc8
jge 0x43b2c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043b070
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4693ec]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461234
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43ba40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468103
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045bdd4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0xc97878
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0xc96940
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4690bc]
push eax
mov ecx, edi
call fcn.0046146a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00462986
test eax, eax
je 0x43bb5c
mov ecx, dword [esp + 0x3c]
call fcn.00461497
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4693c8]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43bb20
push edi
mov ecx, esi
call fcn.0045eafb
mov ecx, esi
call fcn.0043bcc0
cmp dword [esp + 0x38], 1
jne 0x43bb55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045ec36
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x43e580
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e5b3
push esi
call fcn.00441670
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e5ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e639
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e622
mov eax, dword [esi + 8]
test eax, eax
je 0x43e5d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e61e
cmp eax, 2
je 0x43e622
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e5ca
cmp eax, 3
je 0x43e5fd
cmp eax, 1
jne 0x43e5ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e5ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e5ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e660
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e648
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e660
add esp, 4
pop esi
ret
Function at 0x402f63
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f90
mov ecx, dword [0x42f4b8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x420c6c], eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040308e
cmp eax, edi
jl 0x403087
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409024]
call ebx
test eax, eax
je 0x403084
cmp dword [ebp - 4], esi
jne 0x403084
push dword [ebp + 8]
add dword [0x420c6c], esi
call fcn.0040308e
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403087
cmp dword [ebp + 0x10], edi
jne 0x403053
cmp dword [ebp + 8], edi
jle 0x40307f
mov esi, 0x41cc28
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403003
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409024]
call ebx
test eax, eax
je 0x403084
cmp edi, dword [ebp - 4]
jne 0x403084
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40304f
cmp dword [ebp + 0x14], edi
jne 0x40304f
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x420c6c], eax
cmp dword [ebp + 8], 0
jg 0x402ff6
jmp 0x40307f
push 0xfffffffffffffffe
jmp 0x403086
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40305e
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409024]
call ebx
test eax, eax
je 0x403084
mov eax, dword [ebp - 4]
add dword [0x420c6c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403087
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40308e
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x420c6c]
mov edi, eax
sub esi, dword [0x40b064]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403264
push dword [0x428c7c]
call fcn.004032a1
push ebp
push ebp
push dword [0x40b064]
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x428c78], esi
mov dword [0x420c68], ebp
mov eax, dword [0x420c70]
mov ebx, 0x4000
sub eax, dword [0x428c7c]
cmp eax, ebx
jg 0x403101
mov ebx, eax
mov esi, 0x41cc28
push ebx
push esi
call fcn.0040326f
test eax, eax
je 0x40322f
add dword [0x428c7c], ebx
mov dword [0x40b068], esi
mov dword [0x40b06c], ebx
cmp dword [0x42f468], ebp
je 0x403192
cmp dword [0x42f500], ebp
jne 0x403192
cmp dword [esp + 0x10], ebp
je 0x40315f
mov eax, dword [0x428c78]
push ebp
sub eax, dword [0x420c6c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b064]
mov dword [0x420c68], eax
call fcn.00405ebb
jmp 0x403192
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x403192
mov eax, dword [0x42f464]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402ba6
push ebp
push 0x6f
push dword [0x42f460]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40b068
mov dword [0x40b070], 0x414c28
mov dword [0x40b074], 0x8000
call fcn.00405f5c
test eax, eax
jl 0x403238
mov esi, dword [0x40b070]
mov eax, 0x414c28
sub esi, eax
je 0x4031f9
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403234
cmp esi, dword [esp + 0x14]
jne 0x403234
add dword [0x40b064], esi
cmp dword [0x40b06c], ebp
jne 0x403127
jmp 0x403205
cmp dword [0x40b06c], ebp
jne 0x403238
cmp ebx, ebp
je 0x403238
mov eax, dword [0x420c6c]
mov ecx, eax
sub ecx, dword [0x40b064]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030eb
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40323d
or eax, 0xffffffff
jmp 0x403266
push 0xfffffffffffffffe
jmp 0x40323a
push 0xfffffffffffffffd
pop eax
jmp 0x403266
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403264
mov eax, dword [0x428c78]
push ebp
push ebp
push 0x113
push esi
mov dword [0x420c68], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4053f6
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42c8d0], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40541a
test al, 0x10
jne 0x40541d
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42c8d0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405448
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4054b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405751
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4054e6
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4e8], eax
jmp 0x40566b
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x405501
test eax, eax
je 0x405616
test cl, 2
je 0x405616
mov esi, 0x42b8d0
push ebx
push esi
call fcn.00405b7e
cmp dword [ebp + 8], 0
je 0x405520
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405526
push ebx
call fcn.004056b8
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40560c
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040569c
cmp byte [eax], 0
je 0x405577
cmp byte [ebp - 0x18], 0
je 0x405577
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40558d
mov al, byte [esi + 1]
test al, al
je 0x4055eb
cmp al, 0x2e
jne 0x40558d
cmp byte [esi + 2], 0
je 0x4055eb
push esi
push edi
call fcn.00405b7e
test byte [ebp - 0x148], 0x10
je 0x4055b2
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055eb
push dword [ebp + 0xc]
push ebx
call fcn.004054b0
jmp 0x4055eb
push ebx
call fcn.00405835
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055e3
test byte [ebp + 0xc], 4
je 0x4055db
push ebx
push 0xfffffffffffffff1
call fcn.00404f12
push 0
push ebx
call fcn.004058cb
jmp 0x4055eb
inc dword [0x42f4e8]
jmp 0x4055eb
push ebx
push 0xfffffffffffffff2
call fcn.00404f12
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405555
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405616
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x40566b
cmp dword [ebp - 8], esi
jne 0x40562b
inc dword [0x42f4e8]
jmp 0x40566b
push ebx
call fcn.00405e53
test eax, eax
je 0x40566b
push ebx
call fcn.00405671
push ebx
call fcn.00405835
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405663
test byte [ebp + 0xc], 4
je 0x405623
push ebx
push 0xfffffffffffffff1
call fcn.00404f12
push esi
push ebx
call fcn.004058cb
jmp 0x40566b
push ebx
push 0xffffffffffffffe5
call fcn.00404f12
pop esi
pop ebx
leave
ret 8
Function at 0x405751
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bcd0
push esi
call fcn.00405b7e
push esi
call fcn.00405704
mov edi, eax
test edi, edi
jne 0x405772
xor eax, eax
jmp 0x4057c4
push edi
call fcn.00405dba
test byte [0x42f470], 0x80
je 0x40578b
mov al, byte [edi]
test al, al
je 0x40576e
cmp al, 0x5c
je 0x40576e
sub edi, esi
jmp 0x4057a3
call fcn.00405e53
test eax, eax
je 0x40579d
test byte [eax], 0x10
je 0x40576e
push esi
call fcn.004056b8
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40578f
call fcn.00405671
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 0x405835
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x405854
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 0x405883
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 0x4058c7
test edi, edi
jne 0x40588e
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058c1
Function at 0x4058cb
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405e91
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058f7
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a36
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42ca58], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42ca58
je 0x40593b
push 1
push 0
push esi
call fcn.00405854
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a3c
cmp eax, edi
jg 0x405a3c
mov esi, 0x42c4d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a3c
cmp eax, edi
jg 0x405a3c
push esi
push ebp
push str._s_s_r_n
push 0x42c0d0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
push 4
push 0xc0000000
push esi
call fcn.00405854
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a36
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a2f
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a2f
cmp edi, dword [esp + 0x18]
jne 0x405a2f
push str._Rename__r_n
push esi
call fcn.004057c9
test eax, eax
jne 0x405a43
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b7e
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42c0d0
push eax
call fcn.00405815
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42f4f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409320
push eax
call fcn.004057c9
test eax, eax
je 0x4059fa
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a6a
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a5f
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059fc