joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014b694
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1014b610
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1014b803
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1014b803
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1014b7b8
jg 0x1014b6f0
test eax, eax
je 0x1014b7ae
push 1
push 0x1000
call fcn.1013c75f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1014b713
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1014b7a5
push 0x8000
push ebx
call fcn.1014b541
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1014b73c
jg 0x1014b737
cmp ecx, 0x1000
jb 0x1014b73c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1013d3c2
add esp, 0x10
cmp eax, 0xffffffff
je 0x1014b781
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1014b737
jl 0x1014b768
test ecx, ecx
jne 0x1014b729
push dword [ebp - 0xc]
push ebx
call fcn.1014b541
push esi
call fcn.1013d5de
add esp, 0xc
xor ebx, ebx
jmp 0x1014b811
cmp byte [edi + 0x24], 0
je 0x1014b798
cmp dword [edi + 0x20], 5
jne 0x1014b798
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1014b7a3
mov ebx, dword [edi + 0x18]
jmp 0x1014b7a5
xor ebx, ebx
push esi
call fcn.1013d5de
pop ecx
jmp 0x1014b811
test ecx, ecx
jg 0x1014b77a
jl 0x1014b7b8
test eax, eax
jae 0x1014b77a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10140b41
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1014b7d8
cmp byte [edi + 0x1c], 0
je 0x1014b77a
jmp 0x1014b809
push ebx
call fcn.10141932
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1014b77a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1014b811
cmp byte [edi + 0x1c], 0
je 0x1014b80e
mov ebx, dword [edi + 0x18]
jmp 0x1014b811
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10140b41
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1014cd80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1014cdad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014cdad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x57a30ce9
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x56b65b34
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5b471b80
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x76633d71
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10001440
Capabilities:
Create thread

Disassembly:
cmp byte [0x1001d434], 1
je 0x1000146c
push 0
push 0
push 1
push 0x100011e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000146c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
ret
xor al, al
ret

Function at 0x10001470
Capabilities:
Create thread

Disassembly:
cmp byte [0x1001d434], 1
je 0x1000149c
push 0
push 0
push 2
push 0x100011e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000149c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
ret
xor al, al
ret
Function at 0x100080fc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000813b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000813b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000813b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000813b
cmp dword [ecx + 0x74], 0xe
jbe 0x1000813b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000beb7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000bf54
push ebx
push esi
call fcn.1000be80
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000be14
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000bf01
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000bf53
push edi
push eax
call fcn.10008e0c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000bf21
call fcn.10008dd2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000bf52
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000be14
add esp, 0x20
test eax, eax
jne 0x1000bf40
push edi
call fcn.10008dd2
jmp 0x1000bf48
push ebx
call fcn.10008dd2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000c157
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015c68
push 0x10015c60
push str.FlsAlloc
push 0x1f
call fcn.1000c073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c18b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014148]
call esi
jmp 0x1000c191
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000c1d5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015c78
push 0x10015c70
push str.FlsGetValue
push 0x21
call fcn.1000c073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c20c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000c214
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015c80
push 0x10015c78
push str.FlsSetValue
push 0x22
call fcn.1000c073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c24e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10014148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10013810
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001383d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001383d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x48cd4b18
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..text
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x14913810
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
call fcn.004023c0
add esp, 0xc
test al, al
push ebp
jne 0x40253d
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4032b4
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 0x4032d4
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4032e6
mov dword [ebp - 0xc], 0x422a20
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032fb
mov ecx, dword [0x434f58]
add ecx, eax
push ecx
call fcn.004034e5
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034cf
test eax, eax
je 0x4034bd
test byte [ebp + 0x17], 0x80
je 0x403468
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebx
and dword [0x40d384], 0
and dword [0x40d380], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40ea08
mov dword [0x40ce68], 8
mov dword [0x416a10], eax
mov dword [0x416a0c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x416a08], 0x416a08
mov dword [ebp + 8], eax
jle 0x4034c5
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403374
mov esi, dword [ebp + 0x14]
mov edi, 0x41ea20
push esi
push edi
call fcn.004034cf
test eax, eax
je 0x4034bd
sub dword [ebp + 0x14], esi
mov dword [0x40ce58], edi
mov dword [0x40ce5c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce58
mov dword [0x40ce60], edi
mov dword [0x40ce64], eax
call fcn.00406a65
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403460
mov esi, dword [0x40ce60]
sub esi, edi
call ebx
test byte [0x434fb4], 1
mov edi, eax
je 0x40341b
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4033e2
cmp dword [ebp + 0x14], 0
jne 0x40341b
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.0040559f
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403454
cmp dword [ebp + 0x10], 0
jne 0x40343a
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004060df
test eax, eax
je 0x403464
add dword [ebp - 4], esi
jmp 0x403448
mov eax, dword [0x40ce60]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403397
jmp 0x4034c5
cmp dword [ebp + 0x14], 0
jg 0x403367
jmp 0x4034c5
push 0xfffffffffffffffc
jmp 0x4034bf
push 0xfffffffffffffffe
jmp 0x4034bf
test edi, edi
jne 0x4034aa
cmp dword [ebp + 0x14], edi
jle 0x4034c5
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x40347e
mov esi, ebx
mov edi, 0x41ea20
push esi
push edi
call fcn.004034cf
test eax, eax
je 0x4034bd
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060df
test eax, eax
je 0x403464
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403474
jmp 0x4034c5
cmp dword [ebp + 0x14], esi
jge 0x4034b2
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034cf
test eax, eax
jne 0x4034c2
push 0xfffffffffffffffd
pop eax
jmp 0x4034c8
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a6e
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 0x405abf
xor eax, eax
jmp 0x405ae6
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405ae6
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405abb
call esi
pop esi
leave
ret 4

Function at 0x405b20
Capabilities:
Create process on windows

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

Function at 0x405b63
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_ShellExecuteExW]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406008
mov edi, eax
cmp edi, 0xffffffff
je 0x405c42
test byte [esp + 0x10], 1
push esi
je 0x405c24
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x405c2a
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x405c33
xor eax, eax
inc eax
jmp 0x405c44
test byte [esp + 0x10], 4
jne 0x405c42
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c49
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.00405f14
test bl, 8
mov dword [ebp - 8], eax
je 0x405c88
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434f88], eax
jmp 0x405e05
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405ca2
test eax, eax
je 0x405db3
test bl, 2
je 0x405db3
mov esi, 0x42f270
push edi
push esi
call fcn.0040653d
cmp dword [ebp + 8], 0
je 0x405cc1
push str..
push esi
call sub.KERNEL32.DLL_lstrcatW
jmp 0x405cc7
push edi
call fcn.00405e58
cmp word [edi], 0
jne 0x405cd7
cmp word [0x42f270], 0x5c
jne 0x405ce2
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 0x405da8
cmp word [ebp - 0x22c], 0x2e
jne 0x405d2c
cmp word [ebp - 0x22a], 0
je 0x405d8b
cmp word [ebp - 0x22a], 0x2e
jne 0x405d2c
cmp word [ebp - 0x228], 0
je 0x405d8b
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040653d
test byte [ebp - 0x258], 0x10
je 0x405d57
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d8b
push dword [ebp + 0xc]
push edi
call fcn.00405c49
jmp 0x405d8b
push dword [ebp - 4]
push edi
call fcn.00405c01
test eax, eax
jne 0x405d83
cmp dword [ebp - 4], eax
je 0x405d7b
push edi
push 0xfffffffffffffff1
call fcn.0040559f
push 0
push edi
call fcn.004062fd
jmp 0x405d8b
inc dword [0x434f88]
jmp 0x405d8b
push edi
push 0xfffffffffffffff2
call fcn.0040559f
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x405d04
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp + 8], 0
je 0x405db3
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e05
cmp dword [ebp - 8], esi
jne 0x405dc7
inc dword [0x434f88]
jmp 0x405e05
push edi
call fcn.00406873
test eax, eax
je 0x405e05
push edi
call fcn.00405e0c
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405c01
test eax, eax
jne 0x405dfd
cmp dword [ebp - 4], esi
je 0x405dbf
push edi
push 0xfffffffffffffff1
call fcn.0040559f
push esi
push edi
call fcn.004062fd
jmp 0x405e05
push edi
push 0xffffffffffffffe5
call fcn.0040559f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405f14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.0040653d
push esi
call fcn.00405eb7
mov edi, eax
test edi, edi
jne 0x405f35
xor eax, eax
jmp 0x405f8d
push edi
call fcn.004067c4
test byte [0x434f18], 0x80
je 0x405f52
mov ax, word [edi]
test ax, ax
je 0x405f31
cmp ax, 0x5c
je 0x405f31
sub edi, esi
sar edi, 1
jmp 0x405f6c
call fcn.00406873
test eax, eax
je 0x405f66
test byte [eax], 0x10
je 0x405f31
push esi
call fcn.00405e58
push esi
call sub.KERNEL32.DLL_lstrlenW
cmp eax, edi
push esi
jg 0x405f58
call fcn.00405e0c
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 0x406008
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 0x406027
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 0x40602d
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 0x40605c
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 [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
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 0x4060ac
test edi, edi
jne 0x406069
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060a6