joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403da0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
lea eax, [esp + 4]
push eax
mov esi, 1
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403e34
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x403e34
sub eax, esi
je 0x403e34
sub eax, esi
jne 0x403e36
mov eax, dword [esp + 8]
cmp eax, 3
je 0x403e36
cmp eax, 4
je 0x403e36
cmp eax, 5
jne 0x403e11
mov eax, dword [esp + 0xc]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040d036
add esp, 0x118
ret
mov ecx, 5
cmp ecx, eax
sbb esi, esi
neg esi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040d036
add esp, 0x118
ret
xor esi, esi
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040d036
add esp, 0x118
ret

Function at 0x403e50
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push esi
mov esi, eax
xor eax, eax
cmp dword [ecx + 4], eax
push edi
jle 0x403e70
lea edx, [ecx + 0x10]
nop
mov edi, dword [esi + eax*4]
mov dword [edx], edi
add eax, 1
add edx, 4
cmp eax, dword [ecx + 4]
jl 0x403e60
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 4]
lea edx, [eax*4 + 4]
cmp esi, edx
jge 0x403f63
push ebx
push ebp
lea ebx, [ecx + esi*4 + 0x10]
jmp 0x403e90
mov eax, dword [ebx - 4]
mov edi, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, esi
cdq
idiv edi
test edx, edx
mov ebp, eax
jne 0x403ef1
movzx edx, byte [esp + 0x10]
mov al, byte [edx + str.cw]
mov edx, dword [esp + 0x10]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor dl, byte [ebp + 0x42ab10]
mov byte [esp + 0x10], dl
movzx edx, byte [esp + 0x12]
movzx edx, byte [edx + str.cw]
mov byte [esp + 0x11], dl
movzx edx, byte [esp + 0x13]
movzx edx, byte [edx + str.cw]
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], al
jmp 0x403f3b
cmp edi, 6
jle 0x403f3b
cmp edx, 4
jne 0x403f3b
movzx eax, byte [esp + 0x10]
movzx edx, byte [eax + str.cw]
movzx eax, byte [esp + 0x11]
mov byte [esp + 0x10], dl
movzx edx, byte [eax + str.cw]
movzx eax, byte [esp + 0x12]
mov byte [esp + 0x11], dl
movzx edx, byte [eax + str.cw]
movzx eax, byte [esp + 0x13]
mov byte [esp + 0x12], dl
movzx edx, byte [eax + str.cw]
mov byte [esp + 0x13], dl
mov eax, esi
sub eax, edi
mov edx, dword [ecx + eax*4 + 0x10]
xor edx, dword [esp + 0x10]
add esi, 1
mov dword [ebx], edx
mov eax, dword [ecx + 0xc]
lea edx, [eax*4 + 4]
add ebx, 4
cmp esi, edx
jl 0x403e90
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x4041a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x104], edx
mov edx, dword [ecx + 0x1c]
mov dword [ecx + 0x10c], edx
mov dword [ecx + 0x100], eax
mov eax, dword [ecx + 0x18]
mov edx, 1
cmp dword [ecx + 0xc], edx
push esi
mov dword [ecx + 0x108], eax
jle 0x4042b7
lea eax, [ecx + 0x22]
push edi
jmp 0x4041e0
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x42d730]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x42cf30]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x42cb30]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x42d330]
movzx edi, byte [eax + 4]
mov dword [eax + 0xee], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x42d730]
xor esi, dword [edi*4 + 0x42d330]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x42cf30]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x42cb30]
movzx edi, byte [eax + 8]
mov dword [eax + 0xf2], esi
movzx esi, byte [eax + 9]
mov esi, dword [esi*4 + 0x42d730]
xor esi, dword [edi*4 + 0x42d330]
movzx edi, byte [eax + 7]
xor esi, dword [edi*4 + 0x42cf30]
movzx edi, byte [eax + 6]
xor esi, dword [edi*4 + 0x42cb30]
movzx edi, byte [eax + 0xc]
mov dword [eax + 0xf6], esi
movzx esi, byte [eax + 0xd]
mov esi, dword [esi*4 + 0x42d730]
xor esi, dword [edi*4 + 0x42d330]
movzx edi, byte [eax + 0xb]
xor esi, dword [edi*4 + 0x42cf30]
movzx edi, byte [eax + 0xa]
xor esi, dword [edi*4 + 0x42cb30]
add edx, 1
mov dword [eax + 0xfa], esi
add eax, 0x10
cmp edx, dword [ecx + 0xc]
jl 0x4041e0
pop edi
mov eax, edx
shl eax, 4
mov esi, dword [eax + ecx + 0x10]
add eax, ecx
add edx, 0x10
shl edx, 4
mov dword [edx + ecx], esi
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov dword [eax + 0x104], ecx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 0x108], edx
mov dword [eax + 0x10c], ecx
pop esi
ret
Function at 0x404c20
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 4]
push ebp
push esi
push eax
call fcn.0040db2e
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x404cd8
mov ecx, dword [ebx + 4]
push edi
push ecx
push esi
push ebp
call fcn.004130d0
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edx
push eax
push ebp
call fcn.00413150
mov ecx, dword [esp + 0x98]
add esp, 0x18
add dword [ebp], ecx
mov eax, dword [ebx + 4]
push ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], 0x67452301
mov dword [esp + 0x58], 0xefcdab89
mov dword [esp + 0x5c], 0x98badcfe
mov dword [esp + 0x60], 0x10325476
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call fcn.00404d60
lea edi, [esp + 0x68]
lea esi, [esp + 0xc]
call fcn.00404e70
mov eax, dword [ebx]
add eax, 0xfffffffe
cmp eax, 2
pop edi
ja 0x404ccf
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x64]
call fcn.004045c0
push ebp
call fcn.0040da51
add esp, 4
mov ecx, dword [esp + 0x74]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0040d036
add esp, 0x70
ret 4

Function at 0x404cf0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x60
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
push eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], 0x67452301
mov dword [esp + 0x54], 0xefcdab89
mov dword [esp + 0x58], 0x98badcfe
mov dword [esp + 0x5c], 0x10325476
call fcn.00404d60
lea esi, [esp + 8]
call fcn.00404e70
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.0040d036
add esp, 0x60
ret 8
Function at 0x405740
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [0x42f9b8]
mov cx, word [0x42f9bc]
push esi
push edi
lea edx, [esp + 8]
xor esi, esi
push edx
mov edi, 1
mov dword [esp + 0xc], eax
mov word [esp + 0x10], cx
mov word [esp + 0x12], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x40587e
sub eax, 3
je 0x405811
lea eax, [esp + 8]
push esi
push eax
call fcn.0040ee0c
add esp, 8
test eax, eax
je 0x4058fd
push 0x104
push 0x42f9b8
push 0x42fe68
mov dword [0x42fde0], 0xffffef32
mov word [0x42fe68], si
mov dword [0x42fde4], esi
call fcn.0040d045
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x43006e], si
call fcn.0040d045
add esp, 0x18
pop edi
mov word [0x430276], si
mov dword [0x430278], 0x1b7
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040d036
add esp, 0xc
ret
push 0x104
push 0x42f9b8
push 0x42fe68
mov dword [0x42fde0], 0xffffef33
mov word [0x42fe68], si
mov dword [0x42fde4], esi
call fcn.0040d045
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x43006e], si
call fcn.0040d045
add esp, 0x18
pop edi
mov word [0x430276], si
mov dword [0x430278], 0x1a1
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040d036
add esp, 0xc
ret
lea ecx, [esp + 8]
push esi
push ecx
call fcn.0040ee0c
add esp, 8
test eax, eax
je 0x4058fd
push 0x104
push 0x42f9b8
push 0x42fe68
mov dword [0x42fde0], 0xffffef32
mov word [0x42fe68], si
mov dword [0x42fde4], esi
call fcn.0040d045
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x43006e], si
call fcn.0040d045
add esp, 0x18
pop edi
mov word [0x430276], si
mov dword [0x430278], 0x19b
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040d036
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040d036
add esp, 0xc
ret
Function at 0x405910
Capabilities:
Create directory

Disassembly:
sub esp, 0xc3c
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0xc38], eax
push ebx
push ebp
push esi
push edi
push 0x410
xor ebp, ebp
lea eax, [esp + 0x14]
push ebp
push eax
mov esi, ecx
call fcn.004130d0
push 0x418
lea ecx, [esp + 0x840]
push ebp
push ecx
call fcn.004130d0
push 0x410
lea edx, [esp + 0x43c]
push ebp
push edx
call fcn.004130d0
lea edx, [esp + 0x34]
add esp, 0x24
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x405970
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405986
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x4059b7
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4059a4
mov eax, dword [0x424dcc]
mov dword [edi], eax
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00410ae5
lea edx, [esp + 0x18]
push 0x5c
push edx
mov word [eax + 2], bp
call fcn.00411e23
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4059df
add ebx, 2
cmp word [ebx], bp
je 0x405ac1
push 0x5c
push ebx
call fcn.00411e23
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x405ac1
lea eax, [esp + 0x10]
mov esi, ebx
sub esi, eax
sar esi, 1
push esi
mov ecx, eax
push ecx
lea edx, [esp + 0x428]
push edx
call fcn.0040d045
add esp, 0xc
mov word [esp + esi*2 + 0x420], 0
xor eax, eax
jmp 0x405a30
movzx ecx, word [eax + 0x424d18]
mov word [esp + eax + 0x830], cx
add eax, 2
test cx, cx
jne 0x405a30
lea eax, [esp + 0x420]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405a50
lea edi, [esp + 0x830]
sub eax, edx
add edi, 0xfffffffe
jmp 0x405a70
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405a70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [esp + 0x834]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x405aaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405ac5
add ebx, 2
cmp word [ebx], 0
mov ebp, 1
jne 0x4059e8
mov eax, ebp
jmp 0x405ac7
mov eax, esi
mov ecx, dword [esp + 0xc48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d036
add esp, 0xc3c
ret
Function at 0x405ae0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x173c
call fcn.0041ec80
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x1738], eax
push ebx
push esi
push edi
xor edi, edi
push 0x1000
lea eax, [esp + 0x744]
push edi
push eax
mov dword [esp + 0x1c], edi
call fcn.004130d0
push 0x208
lea ecx, [esp + 0x4c8]
push edi
push ecx
call fcn.004130d0
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x42f9b8]
mov word [esp + eax + 0x4b8], cx
add eax, 2
cmp cx, di
jne 0x405b40
push 0x80
lea edx, [esp + 0x6c4]
push edi
push edx
call fcn.004130d0
lea eax, [esp + 0x4c4]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405b77
sub eax, edx
sar eax, 1
cmp eax, 3
ja 0x405bbc
lea eax, [esp + 0x4b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add eax, 0xfffffffe
mov ecx, 2
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1738]
xor ecx, esp
call fcn.0040d036
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x4b8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esp + eax*2 + 0x4b6]
lea eax, [esp + 0x4b8]
push 0x5c
push eax
call fcn.00410ae5
add esp, 8
cmp eax, esi
jne 0x405c08
lea eax, [esp + 0x4b8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405bf1
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x4b6], di
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4bc]
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x405d19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x405c52
cmp eax, 2
je 0x405c52
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1738]
xor ecx, esp
call fcn.0040d036
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x42fdd0]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x800
lea eax, [esp + 0x744]
push eax
push 0x3c
push ecx
call esi
mov eax, dword [0x42fdd0]
push 0x40
lea edx, [esp + 0x6c4]
push edx
push 0x442
push eax
call esi
push 0x24
lea ecx, [esp + 0x6c4]
push ecx
lea edx, [esp + 0x748]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x405cc5
cmp eax, 1
je 0x405cc5
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1738]
xor ecx, esp
call fcn.0040d036
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x4b8]
call fcn.00405910
test eax, eax
jne 0x405cef
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1738]
xor ecx, esp
call fcn.0040d036
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x4bc]
push ecx
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x405c38
mov edx, dword [esp + 0x268]
mov dword [esp + 0x18], edx
test byte [esp + 0x18], 0x10
jne 0x405d28
mov dword [esp + 0x10], 1
cmp edi, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x405d36
push edi
call esi
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x405d42
push eax
call esi
mov ecx, dword [esp + 0x1744]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d036
mov esp, ebp
pop ebp
ret
Function at 0x405d60
Capabilities:
Check for time delay via gettickcount
Create directory
Delete directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
push 0x42f9b8
mov edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
push 0x42f9b8
lea esi, [eax*2 + 0x42f9b6]
call fcn.00410ae5
add esp, 8
cmp eax, esi
jne 0x405db8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x42f9b8
push 0x4250d8
lea eax, [esp + 0x14]
push eax
jmp 0x405dce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x42f9b8
push str._s_08x
lea ecx, [esp + 0x14]
push ecx
call fcn.0040dcca
add esp, 0x10
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jne 0x405e0c
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040d036
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040d036
add esp, 0x20c
ret
Function at 0x4068d0
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x224
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
mov esi, ecx
mov eax, esi
push edi
mov edi, dword [0x4302d4]
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4068f6
sub eax, edx
sar eax, 1
cmp eax, 2
jb 0x406916
cmp word [esi + 2], 0x3a
jne 0x406916
push 2
push esi
jmp 0x406935
lea ecx, [esp + 0x24]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4069eb
push 2
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0040d045
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov word [esp + 0x34], 0x5c
mov word [esp + 0x36], bx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x406a05
push 0x40
push str.GetDiskFreeSpace
push 0x42fde8
mov dword [0x42fde0], 0xcb
call fcn.0040d045
add esp, 0xc
mov word [0x42fe68], bx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
mov dword [0x42fde4], eax
je 0x4069bc
push 0x104
push esi
push 0x42fe68
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x4b8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040d036
add esp, 0x224
ret
xor ecx, ecx
xor esi, esi
cmp dword [edi], ebx
je 0x406aa5
mov eax, edi
mov eax, dword [eax]
mov eax, dword [eax + 4]
xor edx, edx
div dword [esp + 0x14]
cmp edx, ebx
je 0x406a25
add eax, 1
xor edx, edx
div dword [esp + 0x10]
cmp edx, ebx
je 0x406a32
add eax, 1
add ecx, 1
add esi, eax
cmp dword [edi + ecx*4], ebx
lea eax, [edi + ecx*4]
jne 0x406a13
cmp dword [esp + 0xc], esi
jae 0x406aa5
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 0xffffef30
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
pop edi
pop esi
mov word [0x430276], bx
mov dword [0x430278], 0x4d3
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040d036
add esp, 0x224
ret
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040d036
add esp, 0x224
ret
Function at 0x406ad0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x418
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
xor edi, edi
cmp dword [ebx], edi
je 0x406b0e
mov eax, ebx
mov edi, edi
mov eax, dword [eax]
cmp dword [eax], 0
je 0x406b02
lea esi, [eax + 0x418]
call fcn.00402ba0
add edi, 1
cmp dword [ebx + edi*4], 0
lea eax, [ebx + edi*4]
jne 0x406af0
cmp dword [ebx], 0
mov dword [esp + 8], 0
je 0x406bee
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, ebx
jmp 0x406b30
mov eax, dword [esi]
cmp dword [eax], 0
je 0x406bd6
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x406bd6
push 0x42f9b8
lea eax, [esp + 0x218]
push eax
call edi
push 0x42f9b8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
add ecx, 8
push ecx
lea edx, [esp + 0x10]
push edx
mov word [esp + eax*2 + 0x21a], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x218]
push ecx
call esi
test eax, eax
je 0x406bd6
jmp 0x406ba0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.00410ae5
add esp, 8
test eax, eax
je 0x406bc3
mov word [eax], 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x218]
push edx
call esi
test eax, eax
jne 0x406ba0
mov eax, dword [esp + 8]
add eax, 1
cmp dword [ebx + eax*4], 0
lea esi, [ebx + eax*4]
mov dword [esp + 8], eax
jne 0x406b30
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, esp
call fcn.0040d036
add esp, 0x418
ret
Function at 0x408f30
Capabilities:
Delete directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
push 0x208
lea eax, [esp + 0x214]
push 0
push eax
mov edi, ecx
call fcn.004130d0
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.004130d0
mov esi, dword [edi + 0x418]
add esp, 0x18
test esi, esi
je 0x409046
mov edi, edi
call fcn.00402ba0
mov esi, dword [esi + 0x820]
test esi, esi
jne 0x408f80
push ebp
mov ebp, dword [edi + 0x418]
test ebp, ebp
je 0x409045
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x408fb0
lea esi, [ebp + 0x410]
push esi
call edi
test eax, eax
je 0x409036
push 0x42f9b8
lea edx, [esp + 0x21c]
push edx
call ebx
push 0x42f9b8
call edi
mov word [esp + eax*2 + 0x216], 0
push esi
lea eax, [esp + 0x14]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x21c]
push edx
call esi
test eax, eax
je 0x409036
mov edi, edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00410ae5
add esp, 8
test eax, eax
je 0x409023
mov word [eax], 0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x21c]
push eax
call esi
test eax, eax
jne 0x409000
mov ebp, dword [ebp + 0x820]
test ebp, ebp
jne 0x408fb0
pop ebx
pop ebp
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
call fcn.0040d036
add esp, 0x414
ret
Function at 0x409bb0
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x224
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
mov eax, 0x42f9b8
push edi
mov edi, dword [0x430284]
mov ebx, 1
lea edx, [eax + 2]
xor esi, esi
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x409be0
sub eax, edx
sar eax, 1
cmp eax, 2
jb 0x409c07
cmp word [0x42f9ba], 0x3a
jne 0x409c07
push 2
push 0x42f9b8
jmp 0x409c26
lea ecx, [esp + 0x24]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x409cd9
push 2
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0040d045
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov word [esp + 0x34], 0x5c
mov word [esp + 0x36], si
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x409cf3
push 0x40
push str.GetDiskFreeSpace2
push 0x42fde8
mov dword [0x42fde0], 0xcb
call fcn.0040d045
add esp, 0xc
mov word [0x42fe68], si
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
push 0x42f9b8
push 0x42fe68
mov dword [0x42fde4], eax
call fcn.0040d045
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x43006e], si
call fcn.0040d045
add esp, 0x18
mov word [0x430276], si
mov dword [0x430278], 0xbc8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040d036
add esp, 0x224
ret
xor edx, edx
mov eax, edi
div dword [esp + 0x14]
cmp edx, esi
je 0x409d02
add eax, 1
xor edx, edx
div dword [esp + 0x10]
cmp edx, esi
je 0x409d0f
add eax, 1
cmp dword [esp + 0xc], eax
jae 0x409d75
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 0xffffef30
mov word [0x42fe68], si
mov dword [0x42fde4], esi
mov word [0x43006e], si
call fcn.0040d045
add esp, 0xc
pop edi
mov word [0x430276], si
pop esi
mov dword [0x430278], 0xbdf
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040d036
add esp, 0x224
ret
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040d036
add esp, 0x224
ret