joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4228f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x63b3f8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x422939
cmp word [ebx], dx
jne 0x422939
or byte [eax + edi + 0x28], 4
jmp 0x42293e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x422aa1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x422a81
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42297f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4229b5
cmp eax, edx
jae 0x4229c3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42295a
jmp 0x422aa1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422a7c
cmp dword [ebp - 0x18], 0
je 0x422a7c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x63b3f8]
test byte [eax + edi + 0x28], 0x48
je 0x422a52
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x422a16
mov word [esi], cx
jmp 0x422a4d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x63b3f8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x63b3f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x63b3f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x422aa1
pop eax
cmp word [ebp - 4], ax
jne 0x422a62
cmp esi, ebx
jne 0x422a62
mov word [esi], ax
jmp 0x422a9e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042389f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x422aa1
push 0xd
pop eax
jmp 0x422a5d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x63b3f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x422a9b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x422aa1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x431519
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x43156e
push dword [esp + 0x10]
push 0x431498
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x63b98c]
test edi, edi
je 0x4315c7
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x431566
cmp byte [edi + 0x10], 0
je 0x431566
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x431542
jmp 0x4315c7
mov edi, dword [0x63b98c]
test edi, edi
je 0x4315c7
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4315c0
cmp byte [edi + 0x11], 0
je 0x431599
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x4315b0
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x63b98c
call fcn.00447a3d
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x43157b
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x43277c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebp
push edi
xor edi, edi
mov ebp, edi
test eax, eax
je 0x432817
cmp word [eax], di
je 0x432817
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x432812
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x63a35c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x43280a
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x4327fb
push dword [esp + 0x1c]
push ebx
push edi
push dword [esp + 0x20]
call fcn.0043346e
mov ebp, eax
push edi
push 0
push dword [0x63a35c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, ebp
pop esi
jmp 0x432819
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x434efe
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x63d45c]
call fcn.0044728e
mov ebx, eax
test ebx, ebx
je 0x434f62
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x434f27
push dword [esp + 0xc]
push ebx
call eax
jmp 0x434f62
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00447db0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.004191ec
pop ecx
sub edi, eax
push edi
call fcn.00447e40
pop edi
pop esi
pop ebx
ret 8
Function at 0x4356c1
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x63d440]
call fcn.004470ee
xor ebx, ebx
mov esi, eax
cmp dword [0x63bc74], ebx
jne 0x435793
xor ebp, ebp
inc ebp
mov dword [0x63bc74], ebp
call fcn.004399cc
mov edi, 0xa8
push edi
push ebx
push 0x63bbc8
call fcn.00423ff0
add esp, 0xc
mov dword [0x63bbc8], 0x13
lea eax, [esp + 0x10]
mov dword [0x63bbcc], edi
mov dword [0x63bbd8], 0x43560c
mov dword [0x63bbdc], 0x435951
push eax
mov dword [0x63bc30], 0x4355e4
mov dword [0x63bc34], 0x435896
mov dword [0x63bbd4], 0x4355bf
mov dword [0x63bc58], 0x435629
mov dword [0x63bc78], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x435793
cmp dword [esp + 0x20], ebp
je 0x43578d
cmp dword [esp + 0x20], 2
jne 0x435793
cmp dword [esp + 0x14], 5
jb 0x43578d
jne 0x435793
cmp dword [esp + 0x18], ebx
jne 0x435793
mov dword [0x63bc78], ebx
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0043e4e2
mov eax, dword [esp + 0x140]
push ebx
push dword [0x63a360]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebx
push str.BUTTON
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x435867
mov ebp, dword [esp + 0x128]
push ebp
push dword [0x63d45c]
call fcn.004472cc
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x435838
push esi
call fcn.0044234a
test eax, eax
je 0x435838
push 0
push 0
push esi
call fcn.00441fab
jmp 0x43583a
xor eax, eax
push 0x435316
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x63bbc8
push edi
push ebx
push ebp
mov dword [0x63bc70], eax
call fcn.0043991a
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x437a39
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
push edi
push edi
push 0x147
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x437ac8
push 0xfffffffffffffff0
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
jne 0x437ac8
push esi
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push edi
push dword [0x63a35c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea ecx, [esi + 1]
push ecx
xor eax, eax
push edi
mov word [edi], ax
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
or esi, 0xffffffff
push esi
push 0x158
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push dword [0x63a35c]
cmp eax, esi
cmove ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
mov eax, ebx
pop ebp
cdq
pop ebx
ret 4
Function at 0x43aada
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43ac43
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x43ac26
sub eax, 1
jne 0x43ac43
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.0043aa93
pop ecx
test eax, eax
je 0x43ab51
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x43ab87
inc edi
jmp 0x43ab87
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43ac43
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x43ac22
sub ecx, 1
je 0x43ac1e
sub ecx, 1
je 0x43ac00
sub ecx, 1
je 0x43abc4
sub ecx, 4
jne 0x43ac43
test eax, eax
jne 0x43ac43
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x43ac43
sub eax, 0
je 0x43abf3
sub eax, 1
je 0x43abe6
sub eax, 1
je 0x43abdf
sub eax, 1
jne 0x43ac43
push 0x69
pop esi
push 0x64
jmp 0x43abf8
push 0x5a
pop esi
push 0x5f
jmp 0x43abeb
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x43ac43
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x43ac43
sub eax, 0
je 0x43ac1a
sub eax, 1
je 0x43ac16
sub eax, 1
jne 0x43ac43
push 0x41
pop esi
push 0x3c
jmp 0x43abf8
push 0x3c
jmp 0x43ac42
push 0x32
jmp 0x43ac42
push 0x14
jmp 0x43ac42
push 5
jmp 0x43ac42
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43ac40
cmp eax, 0xa
je 0x43ac3c
cmp eax, 0x5a
jne 0x43ac43
push 0x28
jmp 0x43ac42
push 0x1e
jmp 0x43ac42
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x43b3a1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x63d470]
call fcn.0044728e
mov esi, eax
test esi, esi
je 0x43b47d
cmp dword [ebp + 0xc], 0
je 0x43b3ed
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x43b3de
cmp dword [esi + 0x1c], 0
jne 0x43b3de
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43b47d
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x43b40b
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0043c46e
cmp dword [esi + 0x3c], 0xffffffff
je 0x43b42f
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x43b447
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x43b462
test eax, eax
je 0x43b458
push 8
jmp 0x43b468
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x43b473
test eax, eax
je 0x43b46b
push 3
pop ebx
jmp 0x43b473
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x43c175
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x43c20b
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x43c208
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x43c208
lea eax, [esi - 1]
push eax
push dword [0x63d470]
call fcn.0044728e
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x43c20a
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x43c1f8
mov edx, 0xfa01
cmp word [ecx], dx
je 0x43c203
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x43c1e8
jmp 0x43c208
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x43c2b1
push eax
call esi
test al, al
jns 0x43c2b1
push 0x11
call esi
test al, al
js 0x43c2b1
push 0x10
call esi
test al, al
js 0x43c2b1
push 0x12
call esi
test al, al
js 0x43c2b1
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x43c2b1
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0041a8f0
add esp, 0xc
test eax, eax
je 0x43c285
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0041a8f0
add esp, 0xc
test eax, eax
jne 0x43c29c
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x43c2f2
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.005bf49c
pop ecx
pop ecx
test eax, eax
je 0x43c2f2
test ebp, ebp
je 0x43c2d5
push 0x11
call esi
test al, al
js 0x43c2cd
push 0x10
call esi
test al, al
js 0x43c2cd
push 0x12
call esi
test al, al
jns 0x43c2d5
push 1
push ebp
call fcn.0043c2fe
test ebx, ebx
je 0x43c2e9
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x43c2f2
test edi, edi
je 0x43c2f2
mov eax, dword [edi + 8]
jmp 0x43c2f4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x43c7b0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x43c7c9
push dword [0x63d4a4]
call fcn.00447211
pop edi
ret 4
push esi
push edi
push dword [0x63d4a4]
call fcn.0044728e
mov esi, eax
test esi, esi
je 0x43c833
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43c81f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x43c80e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x63a35c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x63d4a4]
call fcn.0044723f
pop esi
pop edi
ret 4
Function at 0x43c840
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x43c87c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x43ce70
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x43ce93
push ebx
call fcn.0043c840
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x43cf17
mov ecx, ebp
sub ecx, 1
je 0x43cf02
sub ecx, 1
je 0x43ceeb
sub ecx, 2
je 0x43ced6
push ebp
push eax
push dword [esp + 0x24]
call fcn.00427770
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00427770
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x43cf60
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + 0xc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.00427770
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x43d480
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x43d4a7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0043ce70
mov dword [esp + 4], eax
jmp 0x43d4c1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x43d574
mov cl, byte [esp + 0xc]
test cl, cl
js 0x43d4e6
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x43d4f6
mov esi, 2
jmp 0x43d512
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x43d505
mov esi, 3
jmp 0x43d512
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x43d560
mov esi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [esi - 1]
mov byte [eax], cl
inc eax
cmp dword [edi + 4], 0
je 0x43d53b
push ebx
push eax
push edi
call fcn.0043ce70
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop edi
pop ecx
ret 8
Function at 0x43f201
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x63c2c4]
push esi
push edi
test eax, eax
jne 0x43f227
push 0x43f330
push 0x10
push 0x258
call fcn.00447360
mov dword [0x63c2c4], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.004472cc
mov esi, eax
test esi, esi
je 0x43f328
cmp dword [esp + 0x14], ebx
mov eax, 0x5ed268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x43f25f
xor ecx, ecx
cmp word [ebp], cx
jne 0x43f268
mov ebp, 0x5f0658
mov dword [esp + 0x1c], ebp
push eax
call fcn.004191ec
push ebp
mov dword [esp + 0x20], eax
call fcn.004191ec
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x63a35c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x43f315
push dword [esp + 0x14]
push ebp
call fcn.005bcc46
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x43f2c8
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x43f2c8
push 0x5ea398
push ebp
call fcn.005bcc68
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.005bcc68
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x43f2ed
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x43f301
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x43f303
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x63a35c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x43f327
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x63c2c4]
call fcn.0044723f
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc

Function at 0x43f3a6
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x43f3c6
cmp dword [esp + 8], 0
je 0x43f3c6
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x43f3c8
xor eax, eax
ret 8
Function at 0x43f3cb
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x43f513
xor ecx, ecx
cmp word [eax], cx
je 0x43f513
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005bcc99
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.004191ec
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x43f424
cmp eax, 3
jne 0x43f45e
cmp word [esp + 0xa], 0x3a
jne 0x43f45e
cmp eax, 2
jne 0x43f442
lea eax, [esp + 8]
push 0x5ea398
push eax
call fcn.005bcc68
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43f513
push 0xfffffffffffffffe
pop edi
jmp 0x43f513
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x43f473
cmp ax, bx
jne 0x43f47d
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x43f466
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x43f4bc
test byte [esp + 0x21c], 0x10
je 0x43f4a3
push 0xfffffffffffffffe
pop edi
jmp 0x43f4b3
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x43f511
cmp word [esp + 0x10], bp
jne 0x43f4ca
cmp word [esp + 0x12], bp
je 0x43f4e9
cmp word [esp + 0x10], bx
jne 0x43f4d8
cmp word [esp + 0x12], bx
je 0x43f4e9
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x43f511
cmp word [esp + 0x12], ax
jne 0x43f511
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x43f4fe
test al, 0x10
je 0x43f511
jmp 0x43f50e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43f511
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x43f5ab
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x43f623
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.005bcc99
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.004191ec
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x43f604
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x43f601
cmp ecx, 0x5c
je 0x43f601
cmp ecx, 0x2f
jne 0x43f60e
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x43f5ee
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x43f625
xor eax, eax
leave
ret 4