joyce8/EMBER2024-capa huggingface dataset:
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x64e6068b
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x741c5fb4
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x1002a3e0
Capabilities:
Delete file

Disassembly:
jmp 0x1003c320
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
je 0x1003c362
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bed0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c3b0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c3b0
cmp dword [esp + 4], 0xffffffff
je 0x1003c3b0
push eax
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 4

Function at 0x1002a430
Capabilities:
Move file

Disassembly:
jmp 0x1003c8b0
sub esp, 0x42c
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x428], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x430]
push esi
mov esi, dword [esp + 0x438]
je 0x1003c8fc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.1005268d
add esp, 0x42c
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x220]
mov dword [esp + 0x220], 0
mov dword [esp + 0x224], 0
call fcn.1003bed0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bed0
push dword [esp + 8]
push dword [esp + 0x220]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c975
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c975
cmp dword [esp + 4], 0xffffffff
je 0x1003c975
push eax
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0x220]
mov dword [esp + 8], 0
cmp ecx, eax
je 0x1003c9ab
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1003c9ab
cmp dword [esp + 0x218], 0xffffffff
je 0x1003c9ab
push ecx
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x42c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x42c
ret 8
Function at 0x1003c160
Capabilities:
Create directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
push esi
mov esi, dword [esp + 0x224]
je 0x1003c1ac
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bed0
cmp dword [esp + 0x214], 0x104
jl 0x1003c1e4
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1003c1f1
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003c216
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003c216
cmp dword [esp + 4], 0xffffffff
je 0x1003c216
push edx
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 8

Function at 0x1003c320
Capabilities:
Delete file

Disassembly:
jmp 0x1003c320
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
je 0x1003c362
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bed0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c3b0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c3b0
cmp dword [esp + 4], 0xffffffff
je 0x1003c3b0
push eax
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 4

Function at 0x1003c590
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x1003c5da
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1005268d
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.1003bcc0
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 4]
mov esi, eax
call fcn.1003be60
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003c62c
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003c62c
cmp dword [esp + 4], 0xffffffff
je 0x1003c62c
push edx
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x21c
ret 8
Function at 0x1003c650
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
je 0x1003c692
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bed0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c6e0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c6e0
cmp dword [esp + 4], 0xffffffff
je 0x1003c6e0
push eax
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 4

Function at 0x1003c700
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x1003c74a
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1005268d
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.1003bcc0
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
call fcn.1003be60
mov esi, eax
test esi, esi
jle 0x1003c77c
dec esi
lea ecx, [esp + 4]
call fcn.1003be60
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x1003c7aa
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c7aa
cmp dword [esp + 4], 0xffffffff
je 0x1003c7aa
push eax
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x21c
ret 8
Function at 0x1003c8b0
Capabilities:
Move file

Disassembly:
jmp 0x1003c8b0
sub esp, 0x42c
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x428], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x430]
push esi
mov esi, dword [esp + 0x438]
je 0x1003c8fc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.1005268d
add esp, 0x42c
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x220]
mov dword [esp + 0x220], 0
mov dword [esp + 0x224], 0
call fcn.1003bed0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bed0
push dword [esp + 8]
push dword [esp + 0x220]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c975
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c975
cmp dword [esp + 4], 0xffffffff
je 0x1003c975
push eax
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0x220]
mov dword [esp + 8], 0
cmp ecx, eax
je 0x1003c9ab
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1003c9ab
cmp dword [esp + 0x218], 0xffffffff
je 0x1003c9ab
push ecx
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x42c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x42c
ret 8

Function at 0x1003caa0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x220]
push esi
mov esi, dword [esp + 0x220]
je 0x1003caec
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bed0
push dword [esp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
mov esi, eax
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003cb3a
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003cb3a
cmp dword [esp + 4], 0xffffffff
je 0x1003cb3a
push edx
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 8
Function at 0x1003cc20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x440
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x43c], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x450]
mov ecx, dword [esp + 0x454]
mov edx, dword [esp + 0x448]
push ebx
mov ebx, dword [esp + 0x448]
push ebp
mov ebp, dword [esp + 0x454]
push esi
mov esi, dword [esp + 0x464]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x1003cc86
push esi
push ecx
push eax
push ebp
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
jmp 0x1003ce1f
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x240]
mov dword [esp + 0x240], 0
mov dword [esp + 0x244], 0
call fcn.1003bed0
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push dword [esp + 0x24c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x1003cdf1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1003cdd6
cmp eax, 2
jbe 0x1003cd58
cmp eax, 7
jne 0x1003cdd6
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.1003bcc0
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x1003cd45
lea ecx, [esp + 0x20]
call fcn.1003bd40
jmp 0x1003cdf1
cmp dword [esp + 0x24], 0
je 0x1003cdc6
push ecx
lea ecx, [esp + 0x24]
call fcn.1003be00
jmp 0x1003cdc0
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.1003bcc0
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x1003cdb0
lea ecx, [esp + 0x20]
call fcn.1003bd40
jmp 0x1003cdf1
cmp dword [esp + 0x24], 0
je 0x1003cdc6
lea ecx, [esp + 0x20]
call fcn.1003be60
mov ecx, eax
mov dword [esp + 0x10], ecx
lea eax, [ecx + ecx]
lea ecx, [esp + 0x20]
mov dword [esi], eax
call fcn.1003bd40
jmp 0x1003cdf1
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov edi, eax
mov ecx, dword [esp + 0x23c]
lea eax, [esp + 0x240]
cmp ecx, eax
je 0x1003ce1f
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1003ce1f
cmp dword [esp + 0x238], 0xffffffff
je 0x1003ce1f
push ecx
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x44c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005268d
add esp, 0x440
ret 0x18
Function at 0x1003ce40
Capabilities:
Set registry value

Disassembly:
sub esp, 0x42c
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x428], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x434]
push ebx
mov ebx, dword [esp + 0x434]
push ebp
mov ebp, dword [esp + 0x448]
push edi
mov edi, dword [esp + 0x450]
je 0x1003ce99
push edi
push ebp
push dword [esp + 0x450]
push dword [esp + 0x450]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1003cf89
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x22c]
mov dword [esp + 0x22c], 0
mov dword [esp + 0x230], 0
call fcn.1003bed0
mov esi, dword [esp + 0x44c]
cmp esi, 1
je 0x1003cef1
cmp esi, 2
je 0x1003cef1
cmp esi, 7
je 0x1003cef1
push edi
push ebp
push esi
push dword [esp + 0x454]
push dword [esp + 0x238]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x1003cf58
shr edi, 1
lea ecx, [esp + 0x10]
push edi
push ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.1003bed0
mov eax, dword [esp + 0x220]
inc eax
push eax
push dword [esp + 0x18]
push esi
push dword [esp + 0x454]
push dword [esp + 0x238]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x18]
cmp ecx, eax
je 0x1003cf58
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1003cf58
cmp dword [esp + 0x10], 0xffffffff
je 0x1003cf58
push ecx
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x228]
lea eax, [esp + 0x22c]
cmp ecx, eax
je 0x1003cf86
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1003cf86
cmp dword [esp + 0x224], 0xffffffff
je 0x1003cf86
push ecx
call fcn.100553e8
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x434]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005268d
add esp, 0x42c
ret 0x18

Function at 0x1003cfb0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
je 0x1003cff2
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bed0
cmp dword [esp + 0x214], 0x104
jl 0x1003d02b
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1003d037
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003d05c
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003d05c
cmp dword [esp + 4], 0xffffffff
je 0x1003d05c
push edx
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 4
Function at 0x1003d080
Capabilities:
Set current directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
je 0x1003d0c2
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bed0
cmp dword [esp + 0x214], 0x104
jl 0x1003d0fb
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1003d107
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003d12c
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003d12c
cmp dword [esp + 4], 0xffffffff
je 0x1003d12c
push edx
call fcn.100553e8
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005268d
add esp, 0x218
ret 4
Function at 0x100464f0
Capabilities:
Move file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, 0x10076340
push esi
mov esi, ebp
mov edx, 0x104
sub esi, ecx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1004651e
mov al, byte [esi + ecx]
test al, al
je 0x1004651e
mov byte [ecx], al
inc ecx
dec edx
jne 0x10046505
jmp 0x10046522
test edx, edx
jne 0x10046523
dec ecx
mov ebx, dword [esp + 0x18]
mov edx, 0x104
mov byte [ecx], 0
mov esi, ebx
mov ecx, 0x10076220
sub esi, ecx
jmp 0x10046540
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10046559
mov al, byte [esi + ecx]
test al, al
je 0x10046559
mov byte [ecx], al
inc ecx
dec edx
jne 0x10046540
jmp 0x1004655d
test edx, edx
jne 0x1004655e
dec ecx
push 0x10076220
push 0x10076340
mov byte [ecx], 0
call fcn.10057bdc
add esp, 8
test eax, eax
jne 0x1004657d
pop esi
pop ebp
pop ebx
ret 0xc
call fcn.10057740
cmp dword [eax], 0x12
je 0x10046592
pop esi
pop ebp
mov eax, 0xffffffef
pop ebx
ret 0xc
push edi
mov esi, 0x1000
push esi
call fcn.10046330
mov edi, eax
test edi, edi
jne 0x100465ba
cmp esi, 0x100
jbe 0x100465eb
shr esi, 1
push esi
call fcn.10046330
mov edi, eax
test edi, edi
je 0x100465a4
push 0
push ebp
push dword [esp + 0x1c]
call fcn.10046230
mov ebp, eax
test ebp, ebp
jns 0x100465f7
call fcn.10057740
mov ecx, 0xfffffffb
push edi
cmp dword [eax], 2
cmove ebp, ecx
call fcn.10046380
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xfffffff2
pop ebx
ret 0xc
push 0xffffff7f
push ebx
call fcn.10048000
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jns 0x10046622
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
push edi
call fcn.10046380
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0xc
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ebx, eax
test ebx, ebx
jle 0x10046650
push ebx
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, ebx
jne 0x1004667d
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ebx, eax
test ebx, ebx
jg 0x10046631
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
push ebp
call esi
push dword [esp + 0x1c]
call esi
push edi
call fcn.10046380
test ebx, ebx
jne 0x10046674
push dword [esp + 0x18]
call fcn.100464a0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0xc
mov ebx, 0xffffffef
jmp 0x10046652
Function at 0x10049340
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push edi
push ecx
xor ebx, ebx
mov eax, dword [esi + 0x19a]
cmp dword [esi + 0x30], ebx
mov dword [esi + 0x19e], eax
setne bl
push dword [eax]
push eax
push dword [esp + 0x28]
lea ebx, [ebx*4 + 4]
push esi
push dword [esp + 0x28]
call fcn.1004ae30
test eax, eax
jne 0x1004955e
mov edi, dword [esp + 0x20]
push edi
push esi
call fcn.10049180
test eax, eax
jne 0x1004955e
mov ecx, dword [esi + 0x19e]
mov eax, dword [esi + 0x1c]
add dword [ecx + 6], eax
mov ebp, dword [esp + 0x18]
mov ecx, dword [esi + 0x19e]
movsx eax, word [ebp + 9]
imul eax, dword [esi + 0x1c]
mov edx, dword [ecx + 6]
cmp edx, eax
jl 0x10049512
lea ebp, [esi + 0x5a]
lea eax, [ecx - 0xa]
mov dword [esi + 0x19e], eax
cmp eax, ebp
jb 0x100494f4
lea ecx, [esp + 0x18]
push ecx
push dword [eax]
push eax
push dword [esp + 0x28]
push esi
push dword [esp + 0x28]
call fcn.1004ae30
test eax, eax
jne 0x1004955e
push edi
push esi
call fcn.10049180
test eax, eax
jne 0x1004955e
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
movsx edx, word [eax + 9]
mov eax, dword [esi + 0x19e]
imul edx, ecx
add dword [eax + 6], ecx
mov ecx, dword [esi + 0x19e]
cmp dword [ecx + 6], edx
jg 0x100493c0
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx + 6]
add ecx, dword [eax + 0xb]
add ecx, ebx
push ecx
call fcn.10045390
mov ebp, dword [esp + 0x14]
jmp 0x10049440
add dword [esi + 0x19e], 0xa
mov ecx, dword [esi + 0x19e]
mov dword [ecx], eax
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 0x19e]
push dword [esp + 0x28]
push esi
push ebp
call fcn.1004ae30
test eax, eax
jne 0x1004955e
push edi
push esi
call fcn.10049180
test eax, eax
jne 0x1004955e
mov eax, dword [esp + 0x18]
movsx ecx, word [eax + 9]
imul ecx, dword [esi + 0x1c]
mov eax, dword [eax + 0xb]
add eax, ecx
add eax, ebx
push eax
call fcn.10045390
mov edx, eax
test edx, edx
je 0x100494a0
xor ecx, ecx
jmp 0x100494a5
mov ecx, dword [esi + 0x1c]
neg ecx
mov eax, dword [esi + 0x19e]
mov dword [eax + 6], ecx
test edx, edx
je 0x100494c6
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xb]
add eax, ebx
push eax
call fcn.10045390
jmp 0x10049440
mov eax, dword [esi + 0x19e]
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0x19a], eax
push dword [eax]
push eax
push dword [esp + 0x28]
push esi
push ebp
call fcn.1004ae30
test eax, eax
je 0x10049385
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov eax, dword [esp + 0x14]
pop edi
mov dword [esi + 0x34], 0xfffe
pop esi
pop ebp
mov dword [eax + 4], 0x27d9
mov eax, 0xfffffff9
pop ebx
ret 0x18
mov edi, dword [ebp + 0xb]
push dword [esi + 0x4e]
add edi, 0xc
add edi, edx
push edi
push dword [esi + 0x1a6]
call fcn.100528d0
add esp, 0xc
lea eax, [edi - 4]
push eax
call fcn.10045390
push dword [esi + 0x4e]
mov dword [esi + 0x1a2], eax
push dword [esi + 0x1a6]
push dword [esp + 0x2c]
call fcn.100528d0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esi + 0x1a2]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x18