joyce8/EMBER2024-capa huggingface dataset:
Function at 0x92d366
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ebx, ebx
push edi
cmp eax, ebx
jne 0x93b2c7
mov edi, dword [fcn.00921288]
cmp dword [ebp + 8], ebx
je 0x92d39b
push dword [ebp + 8]
call edi
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x93b2d6
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x93b2e0
cmp dword [ebp + 0xc], ebx
je 0x92d3bb
push dword [ebp + 0xc]
call edi
mov dword [esi + 0x28], eax
cmp eax, ebx
je 0x93b2d6
push dword [ebp + 8]
lea eax, [ebp - 4]
push dword [0x95b46c]
mov dword [ebp - 4], ebx
push eax
push 2
call fcn.0092d2a1
add esp, 0x10
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x92d488
push 0x20
pop ebx
push dword [ebp - 4]
lea edi, [esi + 0x644]
mov ecx, esi
mov dword [edi], ebx
call fcn.0092d1ca
xor ecx, ecx
cmp dword [edi], ebx
mov dword [ebp + 8], eax
setne cl
mov eax, 0x100
xor ebx, ebx
dec ecx
and ecx, eax
add eax, ecx
lea ecx, [ebp + 0xc]
push ecx
or eax, 0x20019
push eax
push ebx
push dword [ebp - 4]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
inc edi
test eax, eax
jne 0x92d477
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x43c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x95b4e4]
mov dword [ebp - 0xc], edi
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0092d497
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x92d46e
cmp dword [esi + 0x10], edi
jne 0x93b2ef
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [fcn.00921284]
cmp dword [ebp + 8], ebx
jl 0x92d488
mov dword [esi + 0x1c], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x92d497
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x95a02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x210]
push ecx
xor edi, edi
push edi
push dword [0x95b480]
mov dword [ebp - 0x210], 1
push eax
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x93b297
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.009286a6
leave
ret 4
Function at 0x930b01
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [0x95b5d4]
xor ebx, ebx
push ebx
push 6
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov edi, 0x148
cmp esi, ebx
je 0x937339
push edi
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x9373af
cmp dword [ebp - 4], ebx
jl 0x930b7a
mov dword [0x95a058], esi
mov dword [0x95a05c], eax
cmp dword [ebp - 4], ebx
jl 0x9373c7
mov eax, dword [section..data]
pop edi
pop esi
pop ebx
cmp eax, section..data
je 0x930b75
test byte [eax + 0x1c], 4
jne 0x9373db
mov eax, dword [ebp - 4]
leave
ret
cmp esi, ebx
jne 0x9373bb
jmp 0x930b53

Function at 0x931435
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push 0x9314d0
push 0x80000002
mov dword [0x95a034], 0x40000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x931495
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x95a034
lea eax, [ebp - 0xc]
push eax
push 0
push 0x93149c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x95a034]
leave
ret

Function at 0x931b55
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, edi
je 0x931bf8
push ebx
mov ebx, dword [0x9211e8]
push esi
mov esi, 0x931c34
push esi
push eax
call ebx
push esi
push edi
call ebx
mov edi, eax
add esp, 0x10
test edi, edi
je 0x931bf6
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0xffffffffffffffff
push 0x931c1c
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x93669a
push 0xffffffffffffffff
push 0x931c00
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x9366ab
push 0xffffffffffffffff
push 0x931c3c
push 0xffffffffffffffff
push edi
xor edi, edi
inc edi
push edi
push 0x7f
call esi
cmp eax, 2
je 0x932434
push 0x931c34
push 0
call ebx
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x931b98
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x931be5
Function at 0x931fed
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20119
push 0
push 0x932088
push 0x80000002
mov dword [0x95a0d8], 0x8000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x932059
and dword [ebp - 8], eax
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x932060
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x93ae1f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [0x95a0d8]
leave
ret

Function at 0x9323c1
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x932418
call fcn.00921eb0
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x932410
cmp ecx, 0xffffffff
je 0x932410
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x932409
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x932409
cmp edx, 0x10000000
jae 0x932409
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x93acd6
mov dword [ebp - 4], 0xfffffffe
call fcn.00921f00
ret 4

Function at 0x9331c6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
lea ebx, [esi + 0x50]
push ebx
push 0
push esi
push 0x927526
push dword [esi + 0x58]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c], eax
test eax, eax
je 0x93717e
push edi
push 1
mov edi, 0x95a10c
push edi
call fcn.00922af0
mov ecx, dword [0x95a050]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.0093291b
push edi
mov esi, eax
call fcn.00922ab0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x406b08
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
sub eax, 3
mov edx, dword es:[ecx]
push edx
imul ax, word [esp]
pop edx
movzx eax, al
cmp eax, 0x7c
je 0x406b64
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
cmp eax, dword [edx + ebp]
je 0x406ba4
mov eax, 0x406b5f
lea eax, [edx + eax]
push ebp
sub esp, 4
mov dword [esp], eax
push 0
call 0x406b9e
test eax, eax
jne 0x406b7d
jmp 0x406ba4
push ecx
retf
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword [esp + 0xc], edx
lea eax, cs:[eax + 0x789692]
xchg edx, eax
xchg esi, eax
js 0x406b81
lea eax, [eax - 0x783648]
sub edx, 0x1b4
add dword [edx], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
add byte [ecx], al
add cl, byte [ebx - 0x137cdbf4]
in al, dx
sub eax, eax
push cs
pop dx
push dx
je 0x406b62
jmp dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
add byte [eax], al
add byte [eax], al
dec edx
cmp edi, dword [edi]
lock add byte [ecx], bh
idiv eax
outsb dx, byte [esi]
inc ecx
jl 0x406b8c
xor al, 0
cmp dword [ebx], edi
clc
daa
cmp al, 0x43
sub al, 0x3f
pop eax
xor byte [eax], al
out dx, eax
xchg edi, eax
pop ebx
jg 0x406b7a
add byte [esi], dl
add byte [esi - 0x7d154b00], al
add byte [ebp + 0x49], ch
popfd
movsd dword es:[edi], dword [esi]
pop ebp
push ebp
les eax, [eax]
out dx, al
mov al, byte [0x4400c600]
add byte [ebx + edi*4 - 5], cl
cmp eax, 0x7dbf00a6
dec eax
stc
stosd dword es:[edi], eax
stosb byte es:[edi], al
inc ebp
add byte [eax], 0x6f
inc ebx
jnp 0x406c3c
mov bl, 0x40
add byte [ebx - 0x25007713], cl
dec esi
adc dword [ecx - 0x31], esp
test byte [eax], 0xf1
and eax, dword [eax]
add byte [ebx + 0x3be2e9a], cl
bound eax, qword [eax]
mov esp, dword [0xd081ee07]
add byte [edx], dl
adc eax, 0x7600d0
push ds
or eax, 0xf0498d
sbb bl, bh
and eax, dword [esi]
stosd dword es:[edi], eax
bound eax, qword [eax]
mov ecx, dword [ebp + 0x1d]
stosb byte es:[edi], al
movsb byte es:[edi], byte [esi]
add byte [0x320e03], dh
sub edx, edi
sub eax, 0x5bfec35d
bound eax, qword [eax]
mov ecx, dword [ebx - 0x5191978f]
adc eax, 0xed2c0004
pop ecx
mov dword [esi - 0x30fffa00], esi
test eax, 0x1d499300
adc dword [esi + 0x7400f04f], ecx
add byte [ebx*8 - 0x466c534b], bh
mov edx, 0x10be9dcb
add byte [esi], dl
add dl, ch
cmpsb byte [esi], byte es:[edi]
add cl, cl
sahf
jmp 0x2fcf6ca9
Function at 0x40420e
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea edx, [ebp - 0x10]
push ebx
push edx
lea edx, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
xor eax, eax
push edx
lea edx, [ebp - 8]
push eax
push edx
push eax
push ecx
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call ebx
test eax, eax
jne 0x4042a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4042a3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push dword [ebp - 8]
push 8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
lea eax, [eax + eax + 2]
push eax
push 8
call esi
push eax
call edi
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push 0
call ebx
mov ebx, eax
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
pop edi
pop esi
je 0x4042a3
mov eax, dword [ebp - 0xc]
jmp 0x4042a5
xor eax, eax
pop ebx
leave
ret

Function at 0x404328
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov edi, edx
lea ecx, [ebp - 4]
push 0x2002
call fcn.004081e3
test al, al
jne 0x40434f
xor bl, bl
jmp 0x404385
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40434b
push dword [ebp + 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40434b
and dword [ebp - 4], 0
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00408204
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4048d4
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x4048e2
and edx, 0x3fff
jmp fcn.00404846

Function at 0x4048e7
Capabilities:
Delete directory

Disassembly:
mov eax, 0x45e8f8
call fcn.0045e340
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040792d
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x404916
push edi
call esi
test eax, eax
je 0x404916
mov al, 1
jmp 0x40495a
test ebx, ebx
je 0x404958
lea ecx, [ebp - 0x18]
call fcn.004022d0
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407a36
test al, al
push dword [ebp - 0x18]
je 0x404952
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00402b73
test esi, esi
pop ecx
setne al
jmp 0x40495a
call fcn.00402b73
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 0x404969
Capabilities:
Move file

Disassembly:
mov eax, 0x45e914
call fcn.0045e340
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.0040792d
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.0040792d
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x4049b2
cmp eax, ebx
je 0x4049b2
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4049b2
mov al, bl
jmp 0x404a29
test esi, esi
jne 0x4049bb
cmp dword [ebp - 0x14], esi
je 0x404a27
lea ecx, [ebp - 0x30]
call fcn.004022d0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004022d0
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x4049db
cmp dword [ebp - 0x14], ebx
jne 0x4049dd
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00407fa9
test al, al
push dword [ebp - 0x24]
je 0x404a18
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00402b73
push dword [ebp - 0x30]
call fcn.00402b73
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x404a29
call fcn.00402b73
push dword [ebp - 0x30]
call fcn.00402b73
pop ecx
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 0x404b34
Capabilities:
Create directory

Disassembly:
mov eax, 0x45e944
call fcn.0045e340
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040792d
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x404b72
push 0
push edi
call esi
test eax, eax
je 0x404b65
mov al, 1
jmp 0x404bbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404bb9
test ebx, ebx
je 0x404bb9
lea ecx, [ebp - 0x18]
call fcn.004022d0
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407a36
test al, al
je 0x404bb0
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00402b73
test esi, esi
pop ecx
setne al
jmp 0x404bbb
push dword [ebp - 0x18]
call fcn.00402b73
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 0x404d0b
Capabilities:
Create directory

Disassembly:
mov eax, 0x45e987
call fcn.0045e340
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040792d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x404d50
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404d43
mov al, 1
jmp 0x404e37
call ebx
cmp eax, 0xb7
je 0x404de6
test edi, edi
je 0x404de6
lea ecx, [ebp - 0x18]
call fcn.004022d0
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00407a36
test al, al
je 0x404dd9
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404d8c
mov bl, 1
jmp 0x404dd4
call ebx
cmp eax, 0xb7
je 0x404d99
xor bl, bl
jmp 0x404dd4
lea ecx, [ebp - 0x50]
call fcn.00405416
lea ecx, [ebp - 0x28]
call fcn.004022d0
push 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00405898
test al, al
jne 0x404dc2
xor bl, bl
jmp 0x404dcb
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00402b73
pop ecx
push dword [ebp - 0x18]
jmp 0x404e2f
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00402b73
pop ecx
call ebx
cmp eax, 0xb7
je 0x404df3
xor al, al
jmp 0x404e37
lea ecx, [ebp - 0x88]
call fcn.00405416
lea ecx, [ebp - 0x60]
call fcn.004022d0
push 0
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.00405898
test al, al
jne 0x404e23
xor bl, bl
jmp 0x404e2c
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.00402b73
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 0x404e46
Capabilities:
Delete file

Disassembly:
mov eax, 0x45e99c
call fcn.0045e340
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040581b
cmp eax, 0xffffffff
je 0x404e7a
test al, 0x10
jne 0x404e7a
test al, 1
je 0x404e7a
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.00404846
test al, al
je 0x404edb
mov ecx, edi
call fcn.0040792d
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x404e99
push edi
call esi
test eax, eax
je 0x404e99
mov al, 1
jmp 0x404edd
test ebx, ebx
je 0x404edb
lea ecx, [ebp - 0x18]
call fcn.004022d0
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407a36
test al, al
push dword [ebp - 0x18]
je 0x404ed5
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00402b73
test esi, esi
pop ecx
setne al
jmp 0x404edd
call fcn.00402b73
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 0x40581b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x45ea54
call fcn.0045e340
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040792d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405847
push edi
call esi
cmp eax, 0xffffffff
jne 0x405889
test ebx, ebx
je 0x405886
lea ecx, [ebp - 0x18]
call fcn.004022d0
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407a36
test al, al
push dword [ebp - 0x18]
je 0x405880
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00402b73
pop ecx
mov eax, esi
jmp 0x405889
call fcn.00402b73
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 0x406171
Capabilities:
Get disk information

Disassembly:
mov eax, 0x45eb34
call fcn.0045e340
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00418f03
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x406247
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4061ad
mov eax, ebx
add eax, eax
push eax
call fcn.00402b4c
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x406240
cmp ebx, dword [ebp - 0x18]
ja 0x406240
lea ecx, [ebp - 0x2c]
call fcn.004022d0
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x406228
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x40621d
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402473
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.00403b61
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00403c1b
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x4061eb
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00402b73
push esi
call fcn.00402b73
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x406249
push esi
call fcn.00402b73
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 0x406347
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ecx + 5], bl
push esi
je 0x406369
cmp byte [ecx + 6], bl
je 0x406369
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 0x4063a9
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40638d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40638d
xor al, al
jmp 0x4063ab
push 1
push ebx
push ebx
push dword [ebp - 4]
call fcn.0045e3a0
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
pop ebx
leave
ret 4