joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45df45
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x9d936c]
call fcn.0047e97c
mov ebx, eax
test ebx, ebx
je 0x45dfa9
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x45df6e
push dword [esp + 0xc]
push ebx
call eax
jmp 0x45dfa9
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.0047f520
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 sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0047f8a0
pop edi
pop esi
pop ebx
ret 8

Function at 0x45ed4f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x45edc1
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x45ed78
mov ebx, eax
push dword [ebp]
call fcn.0045e4d1
push ebx
push dword [ebp]
mov edi, eax
call fcn.0045e4a8
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.0045ede1
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x460912
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x9d9758]
call fcn.0047e76e
xor ebp, ebp
mov esi, eax
cmp dword [0x9d86b0], ebp
jne 0x4609ee
xor ebx, ebx
inc ebx
mov dword [0x9d86b0], ebx
call fcn.0046502a
mov edi, 0xa4
push edi
push ebp
push 0x9d86b8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x9d86b8], 0x13
lea eax, [esp + 0x10]
mov dword [0x9d86bc], edi
mov dword [0x9d86c8], 0x46085d
mov dword [0x9d86cc], 0x460ba8
push eax
mov dword [0x9d8720], 0x460838
mov dword [0x9d8724], 0x460af3
mov dword [0x9d86c4], 0x460813
mov dword [0x9d8748], 0x460878
mov dword [0x9d875c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4609ee
cmp dword [esp + 0x20], ebx
je 0x4609d6
cmp dword [esp + 0x20], 2
jne 0x4609ee
cmp dword [esp + 0x14], 5
jae 0x4609de
mov dword [0x9d875c], ebp
jmp 0x4609ee
jne 0x4609ee
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x9d875c], eax
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.00469dc6
mov eax, dword [esp + 0x140]
push ebp
push dword [0x9d78b8]
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 ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x460ac4
push dword [esp + 0x128]
push dword [0x9d936c]
call fcn.0047e9bb
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x460a93
push edi
call fcn.004778a3
test eax, eax
je 0x460a93
push ebp
push ebp
push edi
call fcn.00477461
mov dword [esi + 0x18], eax
jmp 0x460a96
mov dword [esi + 0x18], ebp
push 0x460562
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x9d86b8
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x9d86b4], eax
call fcn.00465205
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x4621e8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x9d9758]
call fcn.0047e76e
xor ebx, ebx
mov ebp, eax
cmp dword [0x9d8990], ebx
jne 0x46227c
mov esi, 0xa4
push esi
push ebx
push 0x9d8998
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x9d899c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x9d8998], 0xa
mov dword [0x9d89a0], 0x461d7d
push 0x7f89
push ebx
mov dword [0x9d8a10], 0x4652f2
mov dword [0x9d8a14], 0x4652cc
mov dword [0x9d89a4], 0x461d9c
mov dword [0x9d8a28], 0x461dbc
call esi
mov dword [0x9d8990], eax
test eax, eax
jne 0x46227c
push 0x7f00
push ebx
call esi
mov dword [0x9d8990], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00469dc6
push ebx
push dword [0x9d78b8]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x462348
push edi
push dword [esp + 0x14]
push dword [0x9d936c]
call fcn.0047e9bb
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x9d8998
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.00465205
push 0x461ea2
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20

Function at 0x462a06
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x462a20
inc esi
push 2
call edi
test bx, ax
je 0x462a2c
or esi, 2
push 4
call edi
test bx, ax
je 0x462a38
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x462fce
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x463006
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.0046536f
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x4630f7
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x4630f7
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x463125
test ebp, ebp
jle 0x463125
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x463125
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4630ee
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x463098
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x4630ad
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x463125
cmp dword [edi + 0x10], ebx
je 0x463111
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x463125
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.0046534d
cmp dword [esp + 0x10], 0
je 0x46313f
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x463147
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.004651d6
push eax
call fcn.00465946
push dword [0x9d8b04]
mov dword [esp + 0x24], eax
call fcn.0047eb26
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x4631bb
inc ebx
push 0x12
call esi
test di, ax
je 0x4631c7
or ebx, 2
push 0x11
call esi
test di, ax
je 0x4631d3
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00462a06
push 0x463228
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.00469150
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4656ce
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x465844
mov eax, dword [esp + 0x24]
dec eax
je 0x465827
dec eax
jne 0x465844
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00465687
pop ecx
test eax, eax
je 0x465785
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x465748
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x465823
dec ebx
je 0x46581f
dec ebx
je 0x4657fe
dec ebx
je 0x4657b8
sub ebx, 4
jne 0x465844
test edi, edi
jne 0x465844
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x465844
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x465748
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x465743
sub edi, 0
je 0x4657f0
dec edi
je 0x4657e2
dec edi
je 0x4657d4
dec edi
jne 0x465844
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x465844
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x465844
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x465844
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x465844
sub edi, 0
je 0x46581b
dec edi
je 0x465817
dec edi
jne 0x465844
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x465844
push 0x3c
jmp 0x465843
push 0x32
jmp 0x465843
push 0x14
jmp 0x465843
push 5
jmp 0x465843
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x465841
cmp eax, 0xa
je 0x46583d
cmp eax, 0x5a
jne 0x465844
push 0x28
jmp 0x465843
push 0x1e
jmp 0x465843
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x465c40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x9d9368]
call fcn.0047e97c
mov esi, eax
test esi, esi
je 0x465d1a
cmp dword [ebp + 0xc], 0
je 0x465c8c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x465c7d
cmp dword [esi + 0x1c], 0
jne 0x465c7d
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x465d1a
test byte [ebp + 0x10], 3
je 0x465ca7
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00467169
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x465ccc
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x465ce0
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x465cfd
test ebx, ebx
je 0x465cf1
push 8
jmp 0x465d03
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x465d10
test ebx, ebx
je 0x465d06
push 3
pop ecx
jmp 0x465d10
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x466d8e
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 0x466e26
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x466e23
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x466e23
lea eax, [esi - 1]
push eax
push dword [0x9d9368]
call fcn.0047e97c
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x466e25
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x466e1a
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x466f0d
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x466e00
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x466ecc
push eax
call esi
test al, al
jns 0x466ecc
push 0x11
call esi
test al, al
js 0x466ecc
push 0x10
call esi
test al, al
js 0x466ecc
push 0x12
call esi
test al, al
js 0x466ecc
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x466ecc
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x466ea0
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x466eb7
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x466f17
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x466f17
test ebp, ebp
je 0x466ef0
push 0x11
call esi
test al, al
js 0x466ee8
push 0x10
call esi
test al, al
js 0x466ee8
push 0x12
call esi
test al, al
jns 0x466ef0
push 1
push ebp
call fcn.00466f23
test ebx, ebx
je 0x466f04
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x466f17
test edi, edi
je 0x466f17
mov eax, dword [edi + 8]
jmp 0x466f19
and dword [esp + 0x14], 0
jmp 0x466e25
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x467374
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 0x4674bc
xor ecx, ecx
cmp word [eax], cx
je 0x4674bc
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4673cd
cmp eax, 3
jne 0x467407
cmp word [esp + 0xa], 0x3a
jne 0x467407
cmp eax, 2
jne 0x4673eb
lea eax, [esp + 8]
push 0x51f998
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4674bc
push 0xfffffffffffffffe
pop edi
jmp 0x4674bc
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x46741c
cmp ax, bx
jne 0x467426
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x46740f
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x467465
test byte [esp + 0x21c], 0x10
je 0x46744c
push 0xfffffffffffffffe
pop edi
jmp 0x46745c
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4674ba
cmp word [esp + 0x10], bp
jne 0x467473
cmp word [esp + 0x12], bp
je 0x467492
cmp word [esp + 0x10], bx
jne 0x467481
cmp word [esp + 0x12], bx
je 0x467492
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4674ba
cmp word [esp + 0x12], ax
jne 0x4674ba
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4674a7
test al, 0x10
je 0x4674ba
jmp 0x4674b7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4674ba
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 0x467922
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x46799a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x46797b
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x467978
cmp ecx, 0x5c
je 0x467978
cmp ecx, 0x2f
jne 0x467985
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x467965
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x46799c
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4679e7
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x467a10
test byte [esp + 8], 2
je 0x467a04
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x467a12
xor eax, eax
ret 8

Function at 0x467a87
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x9d8d64]
push esi
test eax, eax
jne 0x467aac
push fcn.00467bb4
push 0x10
push 0x258
call fcn.0047ea4f
mov dword [0x9d8d64], eax
push dword [esp + 0xc]
push eax
call fcn.0047e9bb
mov esi, eax
test esi, esi
je 0x467bad
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x467ace
mov edi, 0x50b074
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x467ade
xor eax, eax
cmp word [ebx], ax
jne 0x467ae3
mov ebx, 0x51f99c
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x467b94
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x467b44
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x467b48
push 0x51f998
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x467b48
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x467b6c
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x467b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x467b80
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x467bab
cmp dword [esp + 0x14], 0xffffffff
je 0x467b9f
mov esi, dword [esp + 0x14]
push esi
push dword [0x9d8d64]
call fcn.0047e92d
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x467c2a
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x467c4a
cmp dword [esp + 8], 0
je 0x467c4a
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x467c4c
xor eax, eax
ret 8
Function at 0x467c4f
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x467c5d
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

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

Disassembly:
cmp dword [esp + 4], 0
je 0x467c76
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x467c79
or eax, 0xffffffff
ret 4

Function at 0x467d30
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 0x467d6c
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 0x468160
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4681c5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4681bd
push dword [esp + 0x10]
push dword [0x9d9790]
call fcn.0047e97c
test eax, eax
je 0x4681b3
cmp dword [eax + 4], 0
je 0x4681a2
push edi
push esi
push eax
call fcn.004685f0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x4681d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x9d9790]
call fcn.0047e97c
mov esi, eax
test esi, esi
je 0x46824f
cmp dword [esi + 4], 0
je 0x468220
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00468700
test eax, eax
je 0x468214
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46825a
cmp dword [esp + 8], 0
je 0x46825a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x468270
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x9d9790]
call fcn.0047e97c
test eax, eax
je 0x4682bb
cmp dword [eax + 4], 0
je 0x4682a5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00468700
movsx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4