joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53bf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5509fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x53c002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0053fdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x53c002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005376e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0054020b
push 0x10
call fcn.005401d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x53bfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0052c1c0
jmp 0x53bfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0053bb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x53bff0
mov ecx, edi
call fcn.0052c2c0
push edi
call fcn.005401c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x53c021
inc ebx
cmp ebx, 0x20
jb 0x53bf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x53d250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551808
push 0x541288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x53d329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x53d329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005401d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x53d329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x53d329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x53d32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0053d351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53dd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x53dd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x53dd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x53dd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x53dd94
push eax
push esi
call fcn.0054020b
add esp, 8
pop esi
ret 0x10

Function at 0x53dda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x53de22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x53de15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x556320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0053fdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x53ddda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x53de30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x53dec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x53deb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x556320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0053fdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x53deab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x53de6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x53e000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x53e131
push esi
call fcn.00541145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00530080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x53e131
push 0
push ebp
call fcn.005303a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00530260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x53e08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005302f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x53e121
push 0x556918
push edi
call fcn.0053f3f0
push eax
push ebx
push esi
call fcn.0053df60
push 0x5568f8
push edi
call fcn.0053f3f0
push eax
push ebx
push esi
call fcn.0053df60
push 0x5568d8
push edi
call fcn.0053f3f0
push eax
push ebx
push esi
call fcn.0053df60
push 0x5568c0
push edi
call fcn.0053f3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0053df60
push 0x5568a0
push edi
call fcn.0053f3f0
push eax
push ebx
push esi
call fcn.0053df60
push 0x556888
push edi
call fcn.0053f3f0
push eax
push ebx
push esi
call fcn.0053df60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x53f1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0053f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0053f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0053f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0053f140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x53fbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x55187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x53fc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x8de284
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de28a
pop ebp
sub ebp, 6
sub ebp, 0x4de284
jmp 0x8de2e8
jmp 0x8de2f1
mov eax, 0x4de284
add eax, ebp
add eax, 0x93
mov ecx, 0x619
mov edx, 0xc2f93cc6
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de308
jmp 0x8de31b
lodsb al, byte [esi]
xchg byte [esi - 0x3939293a], ch
scasb al, byte es:[edi]
invalid
Function at 0x41d323
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d362
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d362
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d362
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41d362
cmp dword [ecx + 0x74], 0xe
jbe 0x41d362
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f4bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f4bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3a6c40fd
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x63a038bd
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x79d8c8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d8ce
pop ebp
sub ebp, 6
sub ebp, 0x39d8c8
jmp 0x79d92c
xchg esp, eax
pushfd
dec edi
jo 0x79d963
inc ebp
test al, 0xba
scasb al, byte es:[edi]
xchg edx, eax
pop edi
add dword [eax], eax
add byte [eax], al
jb 0x79d979
sub ah, byte [edx + 0x200f4e81]
fist dword [ebp + 0x6a56d85a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
enter 0xffffffffffffece2, 0xffffffffffffffb8
enter 0x39d8, 0
jmp 0x79d935
mov eax, 0x39d8c8
add eax, ebp
add eax, 0x93
mov ecx, 0x63a
mov edx, 0xf6212e14
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d94c
jmp 0x79d95f
jle 0x79d9b5
jl 0x79d977
add al, 0x14
adc al, 0x7c
adc al, 0xd8
cmp byte [edx*4 - 0x47fa9a1c], dl
and byte [ebp - 0x47fa9a1c], dl
and byte [edi], ah
daa
aam 0x44
inc esp
jmp 0x79d8fd
jl 0x79d9cb
adc al, 0x14
adc al, 0xfc
adc dword [esp + edx], edx
adc al, 0xfd
cmp al, 0x14
adc al, 0x14
inc ecx
lahf
clc
lahf
xchg ecx, eax
sbb al, 0x14
adc al, 0x14
lahf
sbb dword [eax], 0x9f141414
cdq
add al, 0x14
adc al, 0x14
aad 0xfd
push ss
and eax, 0x10d69716
pop ebp
sbb edx, dword [ecx - 0x14141420]
dec ecx
salc
sbb byte [edi + ebx*4], dl
cwde
xor byte [eax], dl
adc al, 0x14
adc al, 0x7c
pop ecx
and bl, byte [0xb66f7c14]
and al, 0x14
adc eax, 0xfc453038
adc dword [esp + edx], edx
adc al, 0xfd
push ebp
push ss
adc al, 0x14
inc ecx
cdq
js 0x79da3f
adc al, 0xeb
popal
sbb bl, ch
popal
sbb al, 0xfc
adc al, 0x14
adc al, 0x9f
test eax, 0x1414141c
daa
fst qword [ebp + 0x6667b1e6]
ret
adc al, 0x14
jb 0x79d9e2
or byte [0x1bfcef94], ch
nop
push cs
adc al, 0x14
adc al, 0x94
out dx, eax
std
sbb edx, dword [eax + 0x14141405]
jb 0x79d9ee
out dx, eax
jmp 0x79da8d
inc ecx
lahf
clc
inc edx
inc ebx
inc ecx
lahf
popal
sbb byte [edi - 0x5917e397], bl
xchg esp, eax
sahf
adc dl, byte [ebp + 0x141415d2]
adc al, 0x9c
adc edx, dword [ebp + 0x141415d3]
adc al, 0xaf
push ss
adc al, 0x14
adc al, 0x16
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401e2e
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0xb2da70]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401e6e
cmp dword [ebp - 0x364], 6
jne 0x401e6e
cmp dword [ebp - 0x360], 0
je 0x401e98
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401e98
push 0xc00
call eax
test eax, eax
jne 0x401f2d
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401f2d
cmp eax, 0x104
ja 0x401f2d
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x401ed8
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x401f2c
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x401ef3
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x401ef1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3bb9
leave
ret
Function at 0x4055b9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x405663
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x405644
push edi
call fcn.0040558e
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x405637
cmp dword [esi + 0x5c], ebx
je 0x40565e
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00405a92
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.00405550
mov edi, eax
test edi, edi
jne 0x4056df
lea eax, [ebx + 0x20]
push eax
call fcn.004065d7
mov edi, eax
test edi, edi
jne 0x4056df
lea eax, [ebx + 0x1c]
push eax
call fcn.004065d7
mov edi, eax
test edi, edi
jne 0x4056df
push ebx
call fcn.00406490
mov edi, eax
test edi, edi
je 0x4056df
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.004054d2
add ebx, 0x28
sub esi, 1
jne 0x4056ce
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x4056f3
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x405707
cmp dword [esi + 0x40], edx
jne 0x405707
cmp dword [esi + 0x3c], edx
jne 0x405707
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x4066e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.004d92a6
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x406710
call fcn.004065f6
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x407f6b
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x4e97b4
call fcn.004d3e5a
cmp byte [0xb2f654], 0
mov edi, dword [ebp + 8]
jne 0x407fa7
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00407564
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004d3e15
pop ecx
test esi, esi
jmp 0x407fb3
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407fb9
mov al, 1
jmp 0x407fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407fca
xor al, al
jmp 0x407fff
lea ecx, [ebp - 0x50]
call fcn.0040862d
lea ecx, [ebp - 0x28]
call fcn.00406bce
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004087f5
test al, al
je 0x407ff4
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004d3e15
pop ecx
mov al, bl
call fcn.004d3e28
ret 4

Function at 0x408007
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb2f654], 0
jne 0x40803d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d3e15
pop ecx
test esi, esi
pop esi
jmp 0x40804a
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408050
mov al, 1
jmp 0x408052
xor al, al
leave
ret 4

Function at 0x40819d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00408e2b
cmp eax, 0xffffffff
je 0x4081ca
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x4081ca
and eax, 0xfffffffe
push eax
push esi
call fcn.0040859f
test al, al
je 0x408202
cmp byte [0xb2f654], 0
push esi
jne 0x4081f4
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d3e15
pop ecx
test esi, esi
jmp 0x4081fc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408202
mov al, 1
jmp 0x408204
xor al, al
pop esi
leave
ret 4

Function at 0x40832e
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb2f654], 0
jne 0x408362
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d3e15
pop ecx
test esi, esi
pop esi
jmp 0x40836d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x408373
mov al, 1
jmp 0x408375
xor al, al
leave
ret 4
Function at 0x40859f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb2f654], 0
jne 0x4085d6
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d3e15
pop ecx
test esi, esi
pop esi
jmp 0x4085e4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4085ea
mov al, 1
jmp 0x4085ec
xor al, al
leave
ret 8

Function at 0x408e2b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb2f654], 0
jne 0x408e5f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d3e15
pop ecx
mov eax, esi
pop esi
jmp 0x408e72
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4

Function at 0x409068
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409092
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409092
xor al, al
jmp 0x4090a6
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4