joyce8/EMBER2024-capa huggingface dataset:
Function at 0x15af20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x199726
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x1b2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00188b63
push eax
call fcn.00186660
add esp, 8
call fcn.0018663f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0018663f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0018663f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.001545b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x15afd0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x15afe6
push 0x40
push 0
push 0x1b8560
sub esi, ecx
call fcn.001840f0
add esp, 0xc
mov dword [0x1b8554], 0
mov edx, esi
mov dword [0x1b8550], 0
lea ecx, [ebp - 0x410]
mov dword [0x1b8540], 0x67452301
mov dword [0x1b8544], 0xefcdab89
mov dword [0x1b8548], 0x98badcfe
mov dword [0x1b854c], 0x10325476
call fcn.00155530
call fcn.001555f0
mov ecx, 0x1b65a0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x15b071
sub ecx, edx
push ecx
push 0x1b65a0
lea ecx, [ebp - 0x42c]
call fcn.001680c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x15b0cc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x15b0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x15b18c
push edx
push ecx
call fcn.0016d663
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x15b187
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.001680c0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x15b169
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x15b15f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x15b18c
push edx
push ecx
call fcn.0016d663
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0016cff1
mov esp, ebp
pop ebp
ret
call fcn.00168200
call fcn.00186c6a
int3
Function at 0x16dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x20e03eb
nop
test eax, eax
je 0x16dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x16dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x16dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x16dd07
cmp dword [ecx + 0x74], 0xe
jbe 0x16dd07
cmp dword [ecx + 0xe8], 0
je 0x16dd07
mov al, 1
ret
xor al, al
ret
Function at 0x401130
Capabilities:
Delete directory
Inspect load icon resource
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
push 0
push 0x13
push 4
push 0x15
push 0
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x401199
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x143
jge 0x4011ad
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x401190
cmp dword [ebp - 4], 0
jbe 0x4011fc
push 0x40
mov eax, 0x1000
push eax
mov ecx, 0x1400
push ecx
push 0
push 0x4010e0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x28]
push 0
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x4011f5
push 0
call fcn.004015d1
add esp, 4
jmp 0x4e326c
mov dword [ebp + 8], 0x27
mov eax, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40153c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x4012a8
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0
push 0
call dword [sym.imp.USER32.dll_EnableWindow]
test eax, eax
jne 0x401599
push 0
call fcn.004019c5
add esp, 4
push 0
push 0
push 0x14
push 0xa
push 0xa
push 0
push 0
call dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
jne 0x4015bb
mov ebx, 0
jmp 0x4e2442
call eax
push 0
push 0
call sub.WinSCard.dll_SCardForgetReaderW
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4015d1
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0x1000
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xa
jne 0x401601
movsx eax, byte [0x417c38]
cmp eax, 0x16
je 0x401601
jmp loc.004e2120
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call fcn.004015d1
add esp, 4
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401d2c
Capabilities:
Packed with generic packer
Terminate process

Disassembly:
push edi
push 1
pop edi
cmp dword [0x4db190], edi
jne fcn.00401d49
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
jmp loc.004e32a4

Function at 0x401e46
Capabilities:
Packed with generic packer

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, dword [0x417920]
ja 0x401e5e
push esi
jmp loc.004e3565
test esi, esi
jne 0x401e65
push 1
pop esi
add esi, 0xf
and esi, 0xfffffff0
push esi
push 0
push dword [0x4db520]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
pop esi
ret
Function at 0x402678
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ebp
push 0
push 0
push loc.00402690
push dword [ebp + 8]
jmp loc.004e2e68

Function at 0x4026ba
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
push edi
mov eax, dword [esp + 0x10]
push eax
push 0xfffffffffffffffe
push 0x402698
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 8]
mov esi, dword [eax + 0xc]
cmp esi, 0xffffffff
je 0x402714
cmp esi, dword [esp + 0x24]
je 0x402714
lea esi, [esi + esi*2]
mov ecx, dword [ebx + esi*4]
mov dword [esp + 8], ecx
mov dword [eax + 0xc], ecx
cmp dword [ebx + esi*4 + 4], 0
jne 0x402712
push 0x101
mov eax, dword [ebx + esi*4 + 8]
jmp loc.004e34a2
jmp 0x4026d7
pop dword fs:[0]
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x402881
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
jmp loc.004e2808

Function at 0x40308c
Capabilities:
Packed with generic packer

Disassembly:
mov eax, dword [0x4db518]
mov ecx, dword [0x4db508]
push esi
push edi
xor edi, edi
cmp eax, ecx
jne 0x4030cf
jmp loc.004e2a9b
mov ecx, dword [0x4db51c]
push 0x41c4
push 8
lea eax, [eax + eax*4]
push dword [0x4db520]
lea esi, [ecx + eax*4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x40311f
push 4
push 0x2000
push 0x100000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x403123
push dword [esi + 0x10]
push edi
push dword [0x4db520]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x40313a
or dword [esi + 8], 0xffffffff
mov dword [esi], edi
mov dword [esi + 4], edi
inc dword [0x4db518]
mov eax, dword [esi + 0x10]
or dword [eax], 0xffffffff
mov eax, esi
pop edi
pop esi
ret

Function at 0x403963
Capabilities:
Packed with generic packer

Disassembly:
cmp dword [0x4db648], 0
jne 0x40397e
push 0xfffffffffffffffd
jmp loc.004e2ea0
ret

Function at 0x404380
Capabilities:
Packed with generic packer

Disassembly:
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 4]
test edx, edx
je 0x4043d3
xor eax, eax
mov al, byte [esp + 8]
push edi
mov edi, ecx
cmp edx, 4
jb 0x4043c7
neg ecx
and ecx, 3
je 0x4043a9
sub edx, ecx
mov byte [edi], al
inc edi
dec ecx
jne 0x4043a3
mov ecx, eax
shl eax, 8
add eax, ecx
mov ecx, eax
shl eax, 0x10
add eax, ecx
mov ecx, edx
and edx, 3
shr ecx, 2
je 0x4043c7
rep stosd dword es:[edi], eax
test edx, edx
je 0x4043cd
mov byte [edi], al
inc edi
dec edx
jne 0x4043c7
jmp 0x4e2b4b
mov eax, dword [esp + 4]
ret
Function at 0x1ad5ea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x737000]
push edi
or ebp, 0xffffffff
jmp 0x1ad5ec2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1ad5ec9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ad5eb8
mov eax, 1
add ebx, ebx
jne 0x1ad5edb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1ad5ed0
jne 0x1ad5eec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1ad5ed0
xor ecx, ecx
sub eax, 3
jb 0x1ad5f00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1ad5f72
mov ebp, eax
add ebx, ebx
jne 0x1ad5f0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1ad5f18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1ad5f3c
inc ecx
add ebx, ebx
jne 0x1ad5f28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1ad5f1d
jne 0x1ad5f39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1ad5f1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1ad5f5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1ad5f4d
jmp 0x1ad5ebe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1ad5f5c
add edi, ecx
jmp 0x1ad5ebe
pop esi
mov edi, esi
mov ecx, 0x23350
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1ad5f7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1ad5f7f
lea edi, [esi + 0xbd1000]
mov eax, dword [edi]
or eax, eax
je 0x1ad5fe7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc51628]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc5177c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1ad5fa5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc51780]
or eax, eax
je 0x1ad5fe1
mov dword [ebx], eax
add ebx, 4
jmp 0x1ad5fc2
call dword [esi + 0xc51790]
mov ebp, dword [esi + 0xc51784]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1ad601b
sub esp, 0xffffff80
jmp 0x155b4b0
Function at 0x403160
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x200c
call fcn.0040a630
mov eax, dword [0x43bb14]
mov ecx, dword [0x43ba88]
shr eax, 3
test eax, eax
jbe 0x403292
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4031b0
cmp dword [0x43bb14], 0x959
jne 0x403274
push 0
lea eax, [esp + 0x420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0xc20]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1820]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x402b70
push 0x402b80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00402fb0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4031b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
Function at 0x407233
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ba30]
jne 0x40723d
repz ret
jmp fcn.00409fcf

Function at 0x409b5f
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.00405928
and dword [ebp - 4], 0
cmp dword [0x42c8e0], 0
mov ebx, eax
jne 0x409c10
push 0x402378
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409cc1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40236c
push edi
call esi
test eax, eax
je 0x409cc1
push eax
call fcn.004058b6
mov dword [esp], 0x40235c
push edi
mov dword [0x42c8e0], eax
call esi
push eax
call fcn.004058b6
mov dword [esp], 0x402348
push edi
mov dword [0x42c8e4], eax
call esi
push eax
call fcn.004058b6
mov dword [esp], 0x40232c
push edi
mov dword [0x42c8e8], eax
call esi
push eax
call fcn.004058b6
pop ecx
mov dword [0x42c8f0], eax
test eax, eax
je 0x409c10
push 0x402314
push edi
call esi
push eax
call fcn.004058b6
pop ecx
mov dword [0x42c8ec], eax
mov eax, dword [0x42c8ec]
cmp eax, ebx
je 0x409c68
cmp dword [0x42c8f0], ebx
je 0x409c68
push eax
call fcn.00405931
push dword [0x42c8f0]
mov esi, eax
call fcn.00405931
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409c68
test edi, edi
je 0x409c68
call esi
test eax, eax
je 0x409c5f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409c5f
test byte [ebp - 0xc], 1
jne 0x409c68
or dword [ebp + 0x10], 0x200000
jmp 0x409ca1
mov eax, dword [0x42c8e4]
cmp eax, ebx
je 0x409ca1
push eax
call fcn.00405931
pop ecx
test eax, eax
je 0x409ca1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409ca1
mov eax, dword [0x42c8e8]
cmp eax, ebx
je 0x409ca1
push eax
call fcn.00405931
pop ecx
test eax, eax
je 0x409ca1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c8e0]
call fcn.00405931
pop ecx
test eax, eax
je 0x409cc1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409cc3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4052a6
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x485e98
call fcn.00484f70
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov edi, ecx
call fcn.00407b45
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x4052db
push dword [ebp - 0x10]
push edi
call esi
test eax, eax
je 0x4052db
mov al, 1
jmp 0x405325
test ebx, ebx
je 0x405323
lea ecx, [ebp - 0x1c]
call fcn.00402b66
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.00407c4e
test al, al
je 0x40531a
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call esi
mov esi, eax
push dword [ebp - 0x1c]
call fcn.00401c77
test esi, esi
pop ecx
setne al
jmp 0x405325
push dword [ebp - 0x1c]
call fcn.00401c77
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405334
Capabilities:
Delete directory

Disassembly:
mov eax, 0x485eac
call fcn.00484f70
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407b45
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405363
push edi
call esi
test eax, eax
je 0x405363
mov al, 1
jmp 0x4053a7
test ebx, ebx
je 0x4053a5
lea ecx, [ebp - 0x18]
call fcn.00402b66
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407c4e
test al, al
push dword [ebp - 0x18]
je 0x40539f
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c77
test esi, esi
pop ecx
setne al
jmp 0x4053a7
call fcn.00401c77
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405581
Capabilities:
Create directory

Disassembly:
mov eax, 0x485ef8
call fcn.00484f70
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407b45
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x4055bf
push 0
push edi
call esi
test eax, eax
je 0x4055b2
mov al, 1
jmp 0x405608
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405606
test ebx, ebx
je 0x405606
lea ecx, [ebp - 0x18]
call fcn.00402b66
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407c4e
test al, al
je 0x4055fd
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c77
test esi, esi
pop ecx
setne al
jmp 0x405608
push dword [ebp - 0x18]
call fcn.00401c77
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405758
Capabilities:
Create directory

Disassembly:
mov eax, 0x485f3b
call fcn.00484f70
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407b45
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x40579d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405790
mov al, 1
jmp 0x405880
call ebx
cmp eax, 0xb7
je 0x405831
test edi, edi
je 0x405831
lea ecx, [ebp - 0x18]
call fcn.00402b66
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00407c4e
test al, al
je 0x405824
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4057d9
mov bl, 1
jmp 0x40581f
call ebx
cmp eax, 0xb7
je 0x4057e6
xor bl, bl
jmp 0x40581f
lea ecx, [ebp - 0x50]
call fcn.004062a0
lea ecx, [ebp - 0x28]
call fcn.00402b66
push dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00406340
test al, al
jne 0x40580d
xor bl, bl
jmp 0x405816
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00401c77
pop ecx
push dword [ebp - 0x18]
jmp 0x405878
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00401c77
pop ecx
call ebx
cmp eax, 0xb7
je 0x40583e
xor al, al
jmp 0x405880
lea ecx, [ebp - 0x88]
call fcn.004062a0
lea ecx, [ebp - 0x60]
call fcn.00402b66
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.00406340
test al, al
jne 0x40586c
xor bl, bl
jmp 0x405875
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.00401c77
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40588f
Capabilities:
Delete file

Disassembly:
mov eax, 0x485f50
call fcn.00484f70
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.004062c3
cmp eax, 0xffffffff
je 0x4058c3
test al, 0x10
jne 0x4058c3
test al, 1
je 0x4058c3
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.004052a6
test al, al
je 0x405924
mov ecx, edi
call fcn.00407b45
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x4058e2
push edi
call esi
test eax, eax
je 0x4058e2
mov al, 1
jmp 0x405926
test ebx, ebx
je 0x405924
lea ecx, [ebp - 0x18]
call fcn.00402b66
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407c4e
test al, al
push dword [ebp - 0x18]
je 0x40591e
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c77
test esi, esi
pop ecx
setne al
jmp 0x405926
call fcn.00401c77
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4062c3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x486024
call fcn.00484f70
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407b45
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x4062ef
push edi
call esi
cmp eax, 0xffffffff
jne 0x406331
test ebx, ebx
je 0x40632e
lea ecx, [ebp - 0x18]
call fcn.00402b66
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407c4e
test al, al
push dword [ebp - 0x18]
je 0x406328
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c77
pop ecx
mov eax, esi
jmp 0x406331
call fcn.00401c77
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406907
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4860c8
call fcn.00484f70
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00425d9d
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x4069c7
lea eax, [ebx + ebx]
push eax
call fcn.00401c50
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x4069c0
cmp edi, ebx
ja 0x4069c0
lea ecx, [ebp - 0x2c]
call fcn.00402b66
xor eax, eax
xor ebx, ebx
cmp edi, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
jbe 0x4069a8
push 2
pop edi
cmp word [esi + edi - 2], 0
jne 0x40699d
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402c5b
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], edi
call fcn.0040151a
mov eax, edi
inc ebx
inc edi
inc edi
cmp ebx, dword [ebp - 0x10]
jb 0x406973
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401c77
push esi
call fcn.00401c77
cmp dword [ebp - 0x14], edi
pop ecx
pop ecx
sete al
jmp 0x4069c9
push esi
call fcn.00401c77
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406aaa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
push esi
je 0x406acb
cmp byte [ecx + 5], 0
je 0x406acb
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x406b0a
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406aec
xor al, al
jmp 0x406b0c
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004852b0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4