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

Disassembly:
push 0xffffffffffffffff
push 0x468ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00461e32
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b6b0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00461d60
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045e624
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045e624
push 1
push 0
push 0
mov ecx, esi
call fcn.0045e5cc
push 1
push 0
push 1
mov ecx, esi
call fcn.0045e5cc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461ea4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43be90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00461e32
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b6b0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00461d60
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43bf54
cmp dword [esp + 0x40], 1
jne 0x43bf52
cmp ecx, eax
jge 0x43bf54
mov eax, ecx
cmp eax, 0xc8
jge 0x43bf60
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043bd10
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461ea4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c6e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468f63
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.0045ca44
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.004620da
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004635f6
test eax, eax
je 0x43c7fc
mov ecx, dword [esp + 0x3c]
call fcn.00462107
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 0x43c7c0
push edi
mov ecx, esi
call fcn.0045f76b
mov ecx, esi
call fcn.0043c960
cmp dword [esp + 0x38], 1
jne 0x43c7f5
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.0045f8a6
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 0x43f220
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f253
push esi
call fcn.00442310
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f24c
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 0x43f2d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f2c2
mov eax, dword [esi + 8]
test eax, eax
je 0x43f277
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 0x43f2be
cmp eax, 2
je 0x43f2c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f26a
cmp eax, 3
je 0x43f29d
cmp eax, 1
jne 0x43f26a
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 0x43f26a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f26a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f300
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f2e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f300
add esp, 4
pop esi
ret

Function at 0x45d83a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45d872
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.0045b8ee
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045b8c6
jmp 0x45d87e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45ef28
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 0x45ef6a
call fcn.004649e1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45ef6a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45ef61
xor eax, eax
jmp 0x45ef72
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045ef78
pop edi
pop esi
pop ebx
ret 4

Function at 0x464f11
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 0x464f3f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x464f5d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464e77
jmp 0x464f5d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x464f5d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464e77
test edi, edi
mov eax, edi
jne 0x464f47
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
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..rsrc
mov ebx, 0x408f6c
nop
mov ecx, 0x2c0e1fd0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x216455d7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4981a7]
shl eax, 2
mov dword [0x4981ab], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0048d2d0
pop edx
call fcn.0048c5d8
call fcn.0048d2d4
push 0
call fcn.0048e5d8
pop ecx
push 0x498150
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4981af], eax
push 0
jmp fcn.004952fc
Function at 0x406728
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [eax]
cmp edx, 0x11
jle 0x406748
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x44], ecx
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x38], ecx
xor ecx, ecx
mov dword [eax + edx*4], ecx
dec edx
cmp edx, 0x11
jg 0x40672f
cmp dword [eax], 0x11
jbe 0x406763
mov dword [eax], 0x11
jmp 0x406757
dec dword [eax]
mov edx, dword [eax]
test edx, edx
je 0x406763
cmp dword [eax + edx*4], 0
je 0x406755
ret

Function at 0x406f9c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jae 0x406fe3
mov eax, 1
jmp 0x406fbc
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [esi]
jbe 0x406fb2
mov ecx, dword [ebx]
mov edx, eax
sub ecx, dword [esi]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, ebx
add edx, edi
push ecx
push edx
call fcn.0048d568
add esp, 0xc
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x407048
mov eax, dword [esi]
cmp eax, dword [ebx]
jbe 0x407021
mov eax, 1
jmp 0x406ffa
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [ebx]
jbe 0x406ff0
mov ecx, dword [esi]
mov edx, eax
sub ecx, dword [ebx]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, esi
add edx, edi
push ecx
push edx
call fcn.0048d568
add esp, 0xc
mov eax, dword [esi]
mov dword [edi], eax
jmp 0x407048
mov eax, dword [ebx]
test eax, eax
jbe 0x407034
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
jne 0x407034
dec eax
test eax, eax
ja 0x407027
mov dword [edi], eax
test eax, eax
jbe 0x407048
mov ecx, dword [esi + eax*4]
xor ecx, dword [ebx + eax*4]
mov dword [edi + eax*4], ecx
dec eax
test eax, eax
ja 0x40703a
pop edi
pop esi
pop ebx
ret
Function at 0x408814
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff790
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 0x35], dl
mov ebx, eax
mov eax, 0x498c70
call fcn.0048dbf8
cmp byte [ebx + 0x6e05], 0
mov eax, dword [ebx + 0x13cc]
je 0x408852
cmp byte [eax + 0x20e1], 0
jne 0x408852
cmp byte [ebx + 0x6e00], 0
je 0x408863
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov eax, edx
jmp 0x4089f7
mov word [ebp - 0x24], 8
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040e518
inc dword [ebp - 0x18]
xor edx, edx
mov word [ebp - 0x24], 0x14
movzx eax, word [ebx + 0x46e4]
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebx + 0x46e8]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, ebx
xor edx, edx
call fcn.00409808
mov eax, ebx
call fcn.00405014
cmp byte [ebp - 0x35], 0
je 0x4088e0
push pe_nt_image_headers32
lea edx, [ebp - 0x238]
push edx
push dword [0x4b982c]
call sub.USER32.DLL_GetWindowTextA
mov eax, 0x34a
call fcn.004116e0
call fcn.00477864
call fcn.00476dec
mov edx, dword [ebx + 0x46c0]
sub edx, 0x76
je 0x4088f8
sub edx, 3
je 0x408932
dec edx
je 0x408944
jmp 0x40897d
test byte [ebx + 0x46dc], 0x20
jne 0x408920
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040e584
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x4089f7
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00408120
jmp 0x40897d
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00408a00
jmp 0x40897d
push 0x498b64
lea eax, [ebx + 0x5448]
push eax
call fcn.0048d70c
add esp, 8
test eax, eax
sete dl
and edx, 1
test dl, dl
je 0x408976
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00408c58
jmp 0x40897d
mov byte [ebp - 0x23a], 1
cmp byte [ebp - 0x35], 0
je 0x408993
lea eax, [ebp - 0x238]
call fcn.00477864
call fcn.00476dec
test esi, esi
je 0x4089a8
push esi
mov edi, esi
lea esi, [ebp - 0x870]
mov ecx, 0x18e
rep movsd dword es:[edi], dword [esi]
pop esi
cmp byte [ebp - 0x23a], 0
je 0x4089dd
cmp byte [ebp - 0x35], 0
je 0x4089dd
mov eax, 0x2a9
call fcn.004116e0
push eax
add ebx, 0x17
push ebx
call fcn.00444878
add esp, 8
mov eax, 0x4a6984
mov edx, 1
call fcn.00429794
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040e584
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409118
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40913b
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40914c
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40915b
or dword [ebp - 8], 2
cmp byte [ebx + 0x15], 0
je 0x409165
xor eax, eax
jmp 0x40916a
mov eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.0040f818
test eax, eax
je 0x409197
test esi, esi
je 0x409197
cmp word [esi], 0
je 0x409197
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x4091ae
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x4091c7
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x4091c7
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x409235
mov dword [ebx + 4], edi
test esi, esi
je 0x4091fc
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040f920
jmp 0x409205
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40921c
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.0048d758
add esp, 8
jmp 0x40922b
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040f86c
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040934c
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4094e4
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40969c
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40951f
dec eax
je 0x409509
dec eax
je 0x409515
jmp 0x40951f
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40951f
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x409571
xor ebp, ebp
cmp esi, ebp
jle 0x40958d
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x409544
mov ecx, esi
sub ecx, ebp
jmp 0x409549
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40958d
add ebp, 0x4000
cmp esi, ebp
jg 0x40952b
jmp 0x40958d
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x409698
cmp byte [edi + 0x14], 0
je 0x409698
cmp dword [edi + 0xc], 0
jne 0x409698
call sub.KERNEL32.DLL_GetLastError
mov ebp, eax
mov eax, edi
call fcn.004098c0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [edi + 0x17]
call fcn.00409fa4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push ebp
call sub.KERNEL32.DLL_SetLastError
mov eax, esi
cdq
cmp edx, dword [esp + 0x14]
jne 0x4095e6
cmp eax, dword [esp + 0x10]
jae 0x409632
jmp 0x4095e8
jge 0x409632
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x40960a
cmp eax, 0xffffffff
ja 0x409632
jmp 0x40960c
jg 0x409632
mov eax, esi
cdq
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
cmp edx, 0
jne 0x409623
cmp eax, 0xffffffff
jbe 0x409632
jmp 0x409625
jle 0x409632
lea edx, [edi + 0x17]
mov eax, 0x4a6984
call fcn.00429538
lea edx, [edi + 0x17]
mov eax, 0x4a6984
call fcn.0042956c
test al, al
je 0x409682
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40951f
cmp dword [esp + 4], 0
jbe 0x40951f
mov eax, edi
call fcn.004098c0
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.00409808
jmp 0x40951f
lea ecx, [edi + 0x17]
mov eax, 0x4a6984
xor edx, edx
call fcn.00429520
jmp 0x409698
mov byte [edi + 8], 1
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409788
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x4097af
cmp esi, 0x4e20
jle 0x4097a5
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x409800
mov eax, ebx
call fcn.00409b2c
test al, al
je 0x4097e7
cmp esi, 0x4e20
jle 0x4097e7
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00409788
jmp 0x409803
cmp dword [ebx + 0xc], 1
jne 0x4097fb
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x4097fb
xor eax, eax
jmp 0x409803
or eax, 0xffffffff
jmp 0x409803
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409c34
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.0040f818
test eax, eax
je 0x409c5a
test ebx, ebx
je 0x409c5a
cmp word [ebx], 0
je 0x409c5a
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x409c62
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x409c75
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.0040a528
xor eax, eax
jmp 0x409c90
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x409c84
cmp eax, 3
jne 0x409c8b
mov eax, 2
jmp 0x409c90
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x409f68
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffc00
mov edx, esp
call fcn.0040bfc4
cmp byte [esp], 0
je 0x409f7f
mov eax, esp
jmp 0x409f81
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x409f95
cmp eax, 5
je 0x409f95
xor edx, edx
jmp 0x409f9a
mov edx, 1
mov eax, edx
add esp, 0x400
ret
Function at 0x409fa4
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
add esp, 0xfffffbd0
mov ebx, eax
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040bfc4
cmp dword [0x498d7c], 0
jne 0x409fe2
push 0x498d80
call sub.KERNEL32.DLL_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x409fe2
push str.GetDiskFreeSpaceExA
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x498d7c], eax
cmp dword [0x498d7c], 0
je 0x40a051
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040baa8
xor ecx, ecx
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
push eax
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
cmp byte [esp + 0x3c], 0
je 0x40a01c
lea edx, [esp + 0x3c]
jmp 0x40a01e
xor edx, edx
push edx
call dword [0x498d7c]
test eax, eax
je 0x40a051
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
ja 0x40a051
mov eax, dword [esp + 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
jmp 0x40a0be
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push ecx
cmp byte [esp + 0x40], 0
je 0x40a072
lea eax, [esp + 0x40]
jmp 0x40a074
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x40a087
mov eax, 0x163e00
xor edx, edx
jmp 0x40a0be
mov eax, dword [esp + 0x18]
imul dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.00491bd0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x430
pop esi
pop ebx
ret

Function at 0x40a0c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040f818
test eax, eax
je 0x40a0f3
test ebx, ebx
je 0x40a0f3
cmp word [ebx], 0
je 0x40a0f3
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x40a4fc
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040f818
test eax, eax
je 0x40a51e
test ebx, ebx
je 0x40a51e
cmp word [ebx], 0
je 0x40a51e
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x40a528
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.0040f818
test eax, eax
je 0x40a555
test ebx, ebx
je 0x40a555
cmp word [ebx], 0
je 0x40a555
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x40a564
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret