joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440520
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b283
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046cd75
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004724e4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473a3c
test eax, eax
je 0x44063c
mov ecx, dword [esp + 0x3c]
call fcn.00472511
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x440600
push edi
mov ecx, esi
call fcn.0046fad3
mov ecx, esi
call fcn.004407a0
cmp dword [esp + 0x38], 1
jne 0x440635
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046fc3d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x443060
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443093
push esi
call fcn.00446150
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44308c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x443119
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443102
mov eax, dword [esi + 8]
test eax, eax
je 0x4430b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4430fe
cmp eax, 2
je 0x443102
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4430aa
cmp eax, 3
je 0x4430dd
cmp eax, 1
jne 0x4430aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4430aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4430aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00443140
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443128
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00443140
add esp, 4
pop esi
ret

Function at 0x44f0e0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44f183
test eax, eax
jbe 0x44f183
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44f183
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44f12e
xor esi, esi
jmp 0x44f134
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44f15f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00450ff0
add esi, eax
push esi
mov ebx, esi
call fcn.00450ff0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44f140
pop ebp
test edi, edi
pop edi
jne 0x44f183
test ebx, ebx
je 0x44f183
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045c2f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44f2c5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44f3dd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44f3dd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046d1c7
mov esi, eax
test esi, esi
je 0x44f3dd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44f3dd
mov ecx, esi
call fcn.0044f230
cmp edi, eax
jge 0x44f3dd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44f363
mov dword [esp + 0x34], 1
jmp 0x44f3be
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44f3dd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044e7f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46db6a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46dba2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046bc1e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046bbf6
jmp 0x46dbae
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f25c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46f29e
call fcn.00474f43
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f29e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f295
xor eax, eax
jmp 0x46f2a6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f2ac
pop edi
pop esi
pop ebx
ret 4
Function at 0x475473
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4754a1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4754bf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004753d9
jmp 0x4754bf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4754bf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004753d9
test edi, edi
mov eax, edi
jne 0x4754a9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x401bd7
pop dword [ebp - 0x30]
mov eax, 0x401bd7
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x851d9ea1
sub dword [ebp - 0x40], 0x36cb5956
mov dword [ebp - 0x3c], 0xee19bc
add dword [ebp - 0x3c], 0x31453289
mov dword [ebp - 0x38], 0xa21aa973
add dword [ebp - 0x38], 0xaa319abb
mov dword [ebp - 0x34], 0xeeaf1f57
sub dword [ebp - 0x34], 0xeeaf1f57
lea eax, [ebp - 0x40]
push eax
mov eax, 0x524834bb
add eax, 0xadf83ba5
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xec19e459
sub dword [ebp - 0x40], 0x77a77b03
mov dword [ebp - 0x3c], 0x63755f98
add dword [ebp - 0x3c], 0xddf701dd
mov dword [ebp - 0x38], 0x960e4411
sub dword [ebp - 0x38], 0x329ed7a5
mov dword [ebp - 0x34], 0x5447463e
sub dword [ebp - 0x34], 0x5447463e
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x904a81a7
add eax, 0x6ff5ef59
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x388f3
push 0
call eax
mov ecx, 0xf3459708
add ecx, 0xcbab8e8
xor ebx, ebx
add ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x30]
mov edx, 0xf041776c
sub edx, 0x6495927e
xor dword [ebp - 0x18], 0xd9c35dcf
mov edi, dword [esi]
sub dword [ebp - 4], 0xc5b1a919
xor edi, edx
sub dword [ebp - 0x2c], 0x3822b821
mov dword [ebx], edi
sub dword [ebp - 0x14], edx
add ebx, 0xf3f02f0d
sub ebx, 0xf3f02f09
add esi, 0xca63a2f7
sub esi, 0xca63a2f3
loop 0x401cf0
add eax, 0x13293
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc4003fa7
add ecx, 0x3c3fc059
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401bb9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401bf4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401bf0
lea ebx, [ebx]
cmp esi, eax
jae 0x401bf4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401be0
cmp esi, eax
jb 0x401bfa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405b60
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f2d09
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x665ebc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov esi, dword [eax + 0x98]
mov ecx, esi
call fcn.00410930
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x64]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x68]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 8]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], ecx
push eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
call fcn.00419630
add esp, 8
test al, al
je 0x405c50
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call edx
mov dword [esp + 0x40], ebx
mov ebx, dword [eax]
mov eax, esi
mov dword [esp + 0x10], 1
call fcn.00411cd0
mov dword [esp + 0x14], eax
mov eax, ebx
lea esi, [esp + 0x1c]
call fcn.00418ad0
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405c47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov ebx, 1
jne 0x405c55
mov ebx, 0xfffffffe
mov dword [esp + 0x40], 0xffffffff
test byte [esp + 0x10], 1
je 0x405c84
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov esi, dword [ebp + 8]
push 0
call fcn.00405cc0
cmp eax, 1
jne 0x405c9e
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4104e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5f1a68
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x665ebc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], vtable.CZipFileHeader.0
lea esi, [edi + 0x94]
mov dword [esp + 0x18], 2
call fcn.00410220
lea esi, [edi + 0x84]
mov byte [esp + 0x18], 1
call fcn.00410220
lea eax, [edi + 0x44]
push eax
mov byte [esp + 0x1c], 0
call fcn.0040fb40
add edi, 0x30
push edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040fb40
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x411280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f2dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x665ebc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0x30]
mov eax, ebx
call fcn.0041db30
mov al, byte [edi + 0xc]
shr al, 3
xor esi, esi
test al, 1
je 0x4112d8
movzx eax, byte [edi + 0x76]
mov dword [edi + 0x24], esi
cmp eax, 1
je 0x4112d8
cmp eax, 2
je 0x4112d8
cmp eax, 3
je 0x4112d8
mov dword [edi + 0x28], esi
movzx ecx, word [edi + 0xe]
mov dword [esp + 0x14], ecx
call fcn.00403960
mov eax, dword [edi + 0x9c]
cmp eax, 0xffff
jg 0x411310
cmp dword [edi + 0x8c], 0xffff
jg 0x411310
push ebx
call fcn.0041da70
cmp eax, 0xffff
setle al
test al, al
jne 0x41131e
mov edx, dword [edi + 0x7c]
push 0xd3
push edx
call fcn.00413300
mov eax, dword [edi + 0x8c]
push ebx
mov word [edi + 0x74], ax
call fcn.0041da70
mov ebp, eax
movzx eax, word [edi + 0x74]
lea ebx, [eax + ebp + 0x1e]
mov dword [edi + 0x78], ebx
mov dword [esp + 0x18], vtable.CZipAutoBuffer.0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
test ebx, ebx
je 0x411368
jbe 0x411362
push ebx
call fcn.00564e4a
add esp, 4
mov esi, eax
mov dword [esp + 0x20], ebx
jmp 0x411364
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], 0
mov ecx, dword [0x667cbc]
mov dx, word [esp + 0x14]
mov dword [esi], ecx
movzx eax, word [edi + 0xa]
mov word [esi + 4], ax
movzx eax, word [edi + 0xc]
mov word [esi + 6], ax
mov word [esi + 8], dx
movzx eax, word [edi + 0x10]
mov word [esi + 0xa], ax
movzx eax, word [edi + 0x12]
mov word [esi + 0xc], ax
cmp byte [edi + 0x77], 0
je 0x4113ab
xor eax, eax
jmp 0x4113ae
mov eax, dword [edi + 0x14]
mov dword [esi + 0xe], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x12], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x16], eax
movzx eax, word [edi + 0x74]
mov word [esi + 0x1a], ax
mov word [esi + 0x1c], bp
movzx ecx, word [edi + 0x74]
mov eax, dword [edi + 0x88]
push ecx
push eax
lea edx, [esi + 0x1e]
push edx
call fcn.0059d730
add esp, 0xc
test ebp, ebp
je 0x4113f7
movzx eax, word [edi + 0x74]
lea ecx, [eax + esi + 0x1e]
push ecx
lea eax, [edi + 0x30]
push eax
call fcn.0041da00
mov ebp, dword [esp + 0x34]
mov ebx, dword [edi + 0x78]
push 1
push esi
mov eax, ebp
call fcn.0041be90
mov edx, dword [ebp + 0x3c]
and edx, 0x70
cmp dl, 0x70
jne 0x411417
xor eax, eax
jmp 0x41141b
movzx eax, word [ebp + 0x24]
mov word [edi + 0x20], ax
mov eax, ebp
call fcn.0040f7a0
sub eax, dword [edi + 0x78]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x30]
call fcn.0041db30
mov ebx, dword [edi + 0x90]
test ebx, ebx
je 0x41146f
mov eax, dword [ebx]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41145c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.00564e3f
add esp, 4
mov dword [edi + 0x90], 0
push esi
mov dword [esp + 0x30], 0xffffffff
call fcn.00564e55
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x418ed0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5f2700
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x665ebc]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [esp + 0x64]
xor ebx, ebx
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.004030f0
lea esi, [esp + 0x18]
lea eax, [esp + 0x38]
mov dword [esp + 0x5c], ebx
call fcn.00418eb0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x64], 1
mov esi, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
lea ecx, [esp + 0x34]
push ecx
push esi
call ebp
test eax, eax
jne 0x418fba
lea edi, [esp + 0x18]
call fcn.00403230
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
call ebp
test eax, eax
jne 0x418fba
lea eax, [esi - 0x10]
mov byte [esp + 0x5c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418f99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
call fcn.00418950
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
lea eax, [esi - 0x10]
mov byte [esp + 0x5c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418fe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
call fcn.00418950
mov eax, edi
mov edx, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x4192c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x4192d9
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.00564e4a
add esp, 4
mov edi, eax
push edi
push esi
mov bl, 1
call ebp
test eax, eax
jne 0x419302
push edi
xor bl, bl
call fcn.00564e55
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret
test edi, edi
jne 0x41930a
xor eax, eax
jmp 0x419319
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419310
sub eax, edx
mov ecx, dword [esp + 0x14]
push eax
push edi
call fcn.004021e0
push edi
call fcn.00564e55
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret

Function at 0x419340
Capabilities:
Set file attributes

Disassembly:
push ecx
push ebx
push esi
lea esi, [esp + 8]
call fcn.00418ad0
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
mov eax, dword [esp + 8]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41937f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
mov al, bl
pop ebx
pop ecx
ret

Function at 0x419390
Capabilities:
Get file attributes

Disassembly:
push ecx
push esi
lea esi, [esp + 4]
call fcn.00418ad0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4193c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x4193d0
xor al, al
pop esi
pop ecx
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], esi
mov al, 1
pop esi
pop ecx
ret

Function at 0x419760
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebx
push esi
lea esi, [esp + 8]
call fcn.00418ad0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419797
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 0xffffffff
jne 0x4197a2
pop esi
xor eax, eax
pop ebx
pop ecx
ret
test bl, 0x10
mov eax, 0
sete al
pop esi
pop ebx
lea eax, [eax + eax - 1]
pop ecx
ret
Function at 0x4197c0
Capabilities:
Access peb ldr_data
Get disk information
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f26c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x665ebc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004030f0
lea esi, [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x38], 0
call fcn.00418eb0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov eax, dword [esp + 0x10]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41983d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
call fcn.00418950
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419860
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5f26a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x665ebc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004030f0
lea esi, [esp + 0x14]
lea eax, [esp + 0x18]
mov dword [esp + 0x38], 0
call fcn.00418eb0
mov edi, esi
mov byte [esp + 0x38], 1
call fcn.00403230
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
lea eax, [esi - 0x10]
setne bl
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4198ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
call fcn.00418950
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret