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

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x42e1ff
cmp dword [esp + 0x24], 2
je 0x42e1ff
push 0x2000
push ebp
push dword [0x2196524]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x42e1ce
cmp dword [esp + 0x18], 2
jne 0x42e1ea
cmp dword [esp + 0x28], 0xffffffff
je 0x42e192
cmp ebp, dword [esp + 0x28]
jae 0x42e1ea
add ebp, 2
test ebx, ebx
jne 0x42e1b7
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x2196524]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x42e1ea
cmp ax, 0xd
je 0x42e1ce
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42e17e
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00482750
jmp 0x42e291
push eax
push 0
push dword [0x2196524]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x42e21d
cmp ebp, dword [esp + 0x28]
jae 0x42e275
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e275
cmp dword [esp + 0x18], 1
jne 0x42e275
inc ebp
test ebx, ebx
jne 0x42e262
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x2196524]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x42e275
cmp al, 0xd
je 0x42e210
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x42e210
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x42e28c
call fcn.004827a0
jmp 0x42e291
call fcn.004826f0
push esi
push 0
push dword [0x2196524]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x42f046
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push 0x42ef95
push 0x10
push 0x2c
call fcn.0044c5fd
xor esi, esi
mov dword [0x2196d10], eax
push esi
push esi
push 8
call fcn.0044c3f6
mov dword [0x2197d4c], eax
cmp word [0x2196d08], si
jne 0x42f12f
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x42f09e
mov word [0x2196d08], di
jmp 0x42f0a6
xor eax, eax
mov word [0x2196d08], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x2196d24], eax
test eax, eax
je 0x42f12e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x2196d24]
mov dword [0x2196d14], eax
call esi
push str.getnameinfo
push dword [0x2196d24]
mov dword [0x2196d18], eax
call esi
push str.WSAStringToAddressA
push dword [0x2196d24]
mov dword [0x2196d1c], eax
call esi
cmp dword [0x2196d14], 0
mov dword [0x2196d20], eax
je 0x42f12e
cmp dword [0x2196d18], 0
je 0x42f12e
cmp dword [0x2196d1c], 0
je 0x42f12e
test eax, eax
je 0x42f12e
mov dword [0x2196d0c], edi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x430f70
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x2196d30], 0
jne 0x430f7e
call fcn.00430ef0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x2196d34]
call esi
test eax, eax
jne 0x430fa1
call fcn.00430ef0
push dword [0x2196d34]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x430fb0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x431010
mov ebx, 0x10
test edi, edi
jns 0x431019
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x430fe2
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x432889
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 0x4328a3
inc esi
push 2
call edi
test bx, ax
je 0x4328af
or esi, 2
push 4
call edi
test bx, ax
je 0x4328bb
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x432e51
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 0x432e89
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.00436763
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x432f7a
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x432f7a
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 0x432fa8
test ebp, ebp
jle 0x432fa8
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x432fa8
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x432f71
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x432f1b
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 0x432f30
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 0x432fa8
cmp dword [edi + 0x10], ebx
je 0x432f94
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 0x432fa8
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.00436741
cmp dword [esp + 0x10], 0
je 0x432fc2
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 0x432fca
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.00436937
push eax
call fcn.00437153
push dword [0x2196da4]
mov dword [esp + 0x24], eax
call fcn.0044c744
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 0x43303e
inc ebx
push 0x12
call esi
test di, ax
je 0x43304a
or ebx, 2
push 0x11
call esi
test di, ax
je 0x433056
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00432889
push 0x4330ab
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.0043aae1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x434070
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x2197d6c]
call fcn.0044c38b
xor ebp, ebp
mov esi, eax
cmp dword [0x2196e80], ebp
jne 0x43414c
xor ebx, ebx
inc ebx
mov dword [0x2196e80], ebx
call fcn.00436a8b
mov edi, 0xa4
push edi
push ebp
push 0x2196e88
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x2196e88], 0x13
lea eax, [esp + 0x10]
mov dword [0x2196e8c], edi
mov dword [0x2196e98], 0x433fbb
mov dword [0x2196e9c], 0x434306
push eax
mov dword [0x2196ef0], 0x433f96
mov dword [0x2196ef4], 0x434251
mov dword [0x2196e94], 0x433f71
mov dword [0x2196f18], 0x433fd6
mov dword [0x2196f2c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43414c
cmp dword [esp + 0x20], ebx
je 0x434134
cmp dword [esp + 0x20], 2
jne 0x43414c
cmp dword [esp + 0x14], 5
jae 0x43413c
mov dword [0x2196f2c], ebp
jmp 0x43414c
jne 0x43414c
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x2196f2c], 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.0043b7a2
mov eax, dword [esp + 0x140]
push ebp
push dword [0x2196528]
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 0x434222
push dword [esp + 0x128]
push dword [0x2197d88]
call fcn.0044c569
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x4341f1
push edi
call fcn.00447246
test eax, eax
je 0x4341f1
push ebp
push ebp
push edi
call fcn.00446eb5
mov dword [esi + 0x18], eax
jmp 0x4341f4
mov dword [esi + 0x18], ebp
push 0x433cc0
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x2196e88
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x2196e84], eax
call fcn.00436966
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x436e3a
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 0x436fb0
mov eax, dword [esp + 0x24]
dec eax
je 0x436f93
dec eax
jne 0x436fb0
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00436df3
pop ecx
test eax, eax
je 0x436ef1
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x436eb4
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x436f8f
dec ebx
je 0x436f8b
dec ebx
je 0x436f6a
dec ebx
je 0x436f24
sub ebx, 4
jne 0x436fb0
test edi, edi
jne 0x436fb0
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x436fb0
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 0x436eb4
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x436eaf
sub edi, 0
je 0x436f5c
dec edi
je 0x436f4e
dec edi
je 0x436f40
dec edi
jne 0x436fb0
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x436fb0
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x436fb0
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x436fb0
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x436fb0
sub edi, 0
je 0x436f87
dec edi
je 0x436f83
dec edi
jne 0x436fb0
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x436fb0
push 0x3c
jmp 0x436faf
push 0x32
jmp 0x436faf
push 0x14
jmp 0x436faf
push 5
jmp 0x436faf
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x436fad
cmp eax, 0xa
je 0x436fa9
cmp eax, 0x5a
jne 0x436fb0
push 0x28
jmp 0x436faf
push 0x1e
jmp 0x436faf
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x4374c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x2197d98]
call fcn.0044c52a
mov esi, eax
test esi, esi
je 0x43759a
cmp dword [ebp + 0xc], 0
je 0x43750c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4374fd
cmp dword [esi + 0x1c], 0
jne 0x4374fd
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43759a
test byte [ebp + 0x10], 3
je 0x437527
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00438569
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x43754c
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 0x437560
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 0x43757d
test ebx, ebx
je 0x437571
push 8
jmp 0x437583
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x437590
test ebx, ebx
je 0x437586
push 3
pop ecx
jmp 0x437590
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 0x4386fc
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 0x438794
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x438791
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x438791
lea eax, [esi - 1]
push eax
push dword [0x2197d98]
call fcn.0044c52a
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x438793
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x438788
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x43887b
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x43876e
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x43883a
push eax
call esi
test al, al
jns 0x43883a
push 0x11
call esi
test al, al
js 0x43883a
push 0x10
call esi
test al, al
js 0x43883a
push 0x12
call esi
test al, al
js 0x43883a
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x43883a
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x43880e
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x438825
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x438885
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x438885
test ebp, ebp
je 0x43885e
push 0x11
call esi
test al, al
js 0x438856
push 0x10
call esi
test al, al
js 0x438856
push 0x12
call esi
test al, al
jns 0x43885e
push 1
push ebp
call fcn.00438891
test ebx, ebx
je 0x438872
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x438885
test edi, edi
je 0x438885
mov eax, dword [edi + 8]
jmp 0x438887
and dword [esp + 0x14], 0
jmp 0x438793
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x438b79
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 0x438cc1
xor ecx, ecx
cmp word [eax], cx
je 0x438cc1
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 0x438bd2
cmp eax, 3
jne 0x438c0c
cmp word [esp + 0xa], 0x3a
jne 0x438c0c
cmp eax, 2
jne 0x438bf0
lea eax, [esp + 8]
push 0x49c804
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 0x438cc1
push 0xfffffffffffffffe
pop edi
jmp 0x438cc1
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x438c21
cmp ax, bx
jne 0x438c2b
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x438c14
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x438c6a
test byte [esp + 0x21c], 0x10
je 0x438c51
push 0xfffffffffffffffe
pop edi
jmp 0x438c61
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x438cbf
cmp word [esp + 0x10], bp
jne 0x438c78
cmp word [esp + 0x12], bp
je 0x438c97
cmp word [esp + 0x10], bx
jne 0x438c86
cmp word [esp + 0x12], bx
je 0x438c97
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x438cbf
cmp word [esp + 0x12], ax
jne 0x438cbf
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x438cac
test al, 0x10
je 0x438cbf
jmp 0x438cbc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x438cbf
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 0x438cd0
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x438cf9
test byte [esp + 8], 2
je 0x438ced
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 0x438cfb
xor eax, eax
ret 8
Function at 0x438d8e
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x21973a8]
push esi
test eax, eax
jne 0x438db3
push fcn.00438ebb
push 0x10
push 0x258
call fcn.0044c5fd
mov dword [0x21973a8], eax
push dword [esp + 0xc]
push eax
call fcn.0044c569
mov esi, eax
test esi, esi
je 0x438eb4
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x438dd5
mov edi, 0x488074
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x438de5
xor eax, eax
cmp word [ebx], ax
jne 0x438dea
mov ebx, 0x49c808
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 [0x2196524]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x438e9b
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x438e4b
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x438e4f
push 0x49c804
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x438e4f
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 0x438e73
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x438e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x438e87
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x2196524]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x438eb2
cmp dword [esp + 0x14], 0xffffffff
je 0x438ea6
mov esi, dword [esp + 0x14]
push esi
push dword [0x21973a8]
call fcn.0044c4db
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x438f4a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x438fc2
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 0x438fa3
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x438fa0
cmp ecx, 0x5c
je 0x438fa0
cmp ecx, 0x2f
jne 0x438fad
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x438f8d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x438fc4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x439323
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4393f8
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4393f7
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.0043b836
push esi
mov word [ebp - 0x20], ax
call fcn.0043b85c
push esi
mov word [ebp - 0x1e], ax
call fcn.0043b87e
push esi
mov word [ebp - 0x1c], ax
call fcn.0043b89f
push esi
mov word [ebp - 0x1a], ax
call fcn.0043b8c0
push esi
mov word [ebp - 0x18], ax
call fcn.0043b8e1
push esi
mov word [ebp - 0x16], ax
call fcn.0043b902
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x4393d6
lea eax, [ebp - 8]
jmp 0x4393e4
cmp dword [ebp + 0xc], 2
jne 0x4393e1
lea ecx, [ebp - 8]
jmp 0x4393e4
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x439570
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 0x4395ac
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 0x439a40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x439aa5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x439a9d
push dword [esp + 0x10]
push dword [0x2197dac]
call fcn.0044c52a
test eax, eax
je 0x439a93
cmp dword [eax + 4], 0
je 0x439a82
push edi
push esi
push eax
call fcn.0043a020
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