joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e512
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4434ac]
call fcn.00430940
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x41e612
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x41e568
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x41e560
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x41e5a8
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41e5ea
push 0x22
pop edx
cmp cx, dx
je 0x41e59a
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41e58a
xor ecx, ecx
cmp word [eax], cx
je 0x41e5ea
mov ecx, eax
add eax, 2
jmp 0x41e5ec
test dx, dx
je 0x41e5f2
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x41e59a
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x41e5e0
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41e5ea
cmp cx, dx
je 0x41e5dd
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41e5cd
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41e5b2
jmp 0x41e59a
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x41e5f4
xor edx, edx
cmp dword [ebp], ebx
jne 0x41e5fd
test edi, edi
jne 0x41e61a
test edx, edx
je 0x41e602
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41e556
test edi, edi
jne 0x41e62b
mov eax, ebx
jmp 0x41e62f
test esi, esi
je 0x41e62b
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x41e62f
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41e698
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 0x41e757
cmp dword [esp + 0x24], 2
je 0x41e757
push 0x2000
push ebp
push dword [0x441c10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x41e726
cmp dword [esp + 0x18], 2
jne 0x41e742
cmp dword [esp + 0x28], 0xffffffff
je 0x41e6ea
cmp ebp, dword [esp + 0x28]
jae 0x41e742
add ebp, 2
test ebx, ebx
jne 0x41e70f
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x441c10]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x41e742
cmp ax, 0xd
je 0x41e726
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 0x41e6d6
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00432620
jmp 0x41e7e9
push eax
push 0
push dword [0x441c10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x41e775
cmp ebp, dword [esp + 0x28]
jae 0x41e7cd
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 0x41e7cd
cmp dword [esp + 0x18], 1
jne 0x41e7cd
inc ebp
test ebx, ebx
jne 0x41e7ba
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x441c10]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x41e7cd
cmp al, 0xd
je 0x41e768
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x41e768
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x41e7e4
call fcn.00432670
jmp 0x41e7e9
call fcn.004326e0
push esi
push 0
push dword [0x441c10]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x41f474
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4434c0]
call fcn.00430ab1
mov ebx, eax
test ebx, ebx
je 0x41f4d8
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41f49d
push dword [esp + 0xc]
push ebx
call eax
jmp 0x41f4d8
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.00431d70
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.00431e50
pop edi
pop esi
pop ebx
ret 8
Function at 0x42663a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4
Function at 0x42693c
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x442df0], 0
jne 0x426a0d
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x4434cc
mov dword [0x442df0], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x441c10]
mov dword [0x4432b4], eax
mov dword [0x442df4], 0x1f4
call esi
mov dword [0x4432c4], eax
mov eax, dword [0x442df4]
add eax, eax
push eax
push 8
push dword [0x441c10]
call esi
xor ebx, ebx
mov dword [0x4432c0], eax
push 0x4432d0
mov dword [0x4432b8], ebx
mov dword [0x4432bc], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x4432e8], eax
call esi
mov dword [0x4432ec], eax
cmp dword [0x4432e8], ebx
je 0x426a04
test eax, eax
je 0x426a04
lea eax, [esp + 0xc]
mov dword [0x4432c8], ebx
push eax
push ebx
push ebx
push 0x42643f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4432cc], eax
jmp 0x426a0a
mov dword [0x4432c8], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4279f6
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 0x427b6c
mov eax, dword [esp + 0x24]
dec eax
je 0x427b4f
dec eax
jne 0x427b6c
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.004279af
pop ecx
test eax, eax
je 0x427aad
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x427a70
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x427b4b
dec ebx
je 0x427b47
dec ebx
je 0x427b26
dec ebx
je 0x427ae0
sub ebx, 4
jne 0x427b6c
test edi, edi
jne 0x427b6c
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x427b6c
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 0x427a70
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x427a6b
sub edi, 0
je 0x427b18
dec edi
je 0x427b0a
dec edi
je 0x427afc
dec edi
jne 0x427b6c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x427b6c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x427b6c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x427b6c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x427b6c
sub edi, 0
je 0x427b43
dec edi
je 0x427b3f
dec edi
jne 0x427b6c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x427b6c
push 0x3c
jmp 0x427b6b
push 0x32
jmp 0x427b6b
push 0x14
jmp 0x427b6b
push 5
jmp 0x427b6b
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x427b69
cmp eax, 0xa
je 0x427b65
cmp eax, 0x5a
jne 0x427b6c
push 0x28
jmp 0x427b6b
push 0x1e
jmp 0x427b6b
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x428456
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor esi, esi
push dword [0x443508]
call fcn.00430ab1
mov edi, eax
test edi, edi
je 0x428479
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
push dword [esp + 0x10]
push esi
call fcn.00431d70
test esi, esi
je 0x428496
lea ecx, [esi + 1]
push ecx
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42849b
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
ret 8

Function at 0x4284a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x443508]
call fcn.00430ab1
mov esi, eax
test esi, esi
je 0x42857a
cmp dword [ebp + 0xc], 0
je 0x4284ec
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4284dd
cmp dword [esi + 0x1c], 0
jne 0x4284dd
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42857a
test byte [ebp + 0x10], 3
je 0x428507
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0042925b
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x42852c
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 0x428540
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 0x42855d
test ebx, ebx
je 0x428551
push 8
jmp 0x428563
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x428570
test ebx, ebx
je 0x428566
push 3
pop ecx
jmp 0x428570
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 0x428f67
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 0x428fff
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x428ffc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x428ffc
lea eax, [esi - 1]
push eax
push dword [0x443508]
call fcn.00430ab1
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x428ffe
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x428ff3
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4290e6
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x428fd9
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4290a5
push eax
call esi
test al, al
jns 0x4290a5
push 0x11
call esi
test al, al
js 0x4290a5
push 0x10
call esi
test al, al
js 0x4290a5
push 0x12
call esi
test al, al
js 0x4290a5
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4290a5
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x429079
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x429090
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4290f0
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4290f0
test ebp, ebp
je 0x4290c9
push 0x11
call esi
test al, al
js 0x4290c1
push 0x10
call esi
test al, al
js 0x4290c1
push 0x12
call esi
test al, al
jns 0x4290c9
push 1
push ebp
call fcn.004290fc
test ebx, ebx
je 0x4290dd
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4290f0
test edi, edi
je 0x4290f0
mov eax, dword [edi + 8]
jmp 0x4290f2
and dword [esp + 0x14], 0
jmp 0x428ffe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4294d0
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 0x429618
xor ecx, ecx
cmp word [eax], cx
je 0x429618
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 0x429529
cmp eax, 3
jne 0x429563
cmp word [esp + 0xa], 0x3a
jne 0x429563
cmp eax, 2
jne 0x429547
lea eax, [esp + 8]
push 0x4344b0
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 0x429618
push 0xfffffffffffffffe
pop edi
jmp 0x429618
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x429578
cmp ax, bx
jne 0x429582
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x42956b
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4295c1
test byte [esp + 0x21c], 0x10
je 0x4295a8
push 0xfffffffffffffffe
pop edi
jmp 0x4295b8
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x429616
cmp word [esp + 0x10], bp
jne 0x4295cf
cmp word [esp + 0x12], bp
je 0x4295ee
cmp word [esp + 0x10], bx
jne 0x4295dd
cmp word [esp + 0x12], bx
je 0x4295ee
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x429616
cmp word [esp + 0x12], ax
jne 0x429616
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x429603
test al, 0x10
je 0x429616
jmp 0x429613
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x429616
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 0x42978c
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x443334]
push esi
test eax, eax
jne 0x4297b1
push fcn.004298b9
push 0x10
push 0x258
call fcn.00430b84
mov dword [0x443334], eax
push dword [esp + 0xc]
push eax
call fcn.00430af0
mov esi, eax
test esi, esi
je 0x4298b2
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4297d3
mov edi, 0x434424
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4297e3
xor eax, eax
cmp word [ebx], ax
jne 0x4297e8
mov ebx, 0x4344bc
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 [0x441c10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x429899
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x429849
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x42984d
push 0x4344b0
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x42984d
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 0x429871
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x429887
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x429885
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x441c10]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x4298b0
cmp dword [esp + 0x14], 0xffffffff
je 0x4298a4
mov esi, dword [esp + 0x14]
push esi
push dword [0x443334]
call fcn.00430a62
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x42992f
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x429958
test byte [esp + 8], 2
je 0x42994c
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 0x42995a
xor eax, eax
ret 8

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

Disassembly:
cmp dword [esp + 4], 0
je 0x429a00
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x429a03
or eax, 0xffffffff
ret 4
Function at 0x429ce0
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x443520]
call fcn.00430ab1
test eax, eax
je case.0x429d0e.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x429d0e.3
movzx ecx, byte [ecx + 0x429e18]
jmp dword [ecx*4 + 0x429e00]
cmp dword [eax + 4], 0
je 0x429d2b
push 2
push 0x434a18
push eax
call fcn.0042a060
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x434a18
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x429d5a
push 3
push 0x434494
push eax
call fcn.0042a060
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x434494
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x429d89
push 2
push 0x434a1c
push eax
call fcn.0042a060
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x434a1c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x429db8
push 4
push 0x434a20
push eax
call fcn.0042a060
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x434a20
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x429de7
push 4
push 0x434a28
push eax
call fcn.0042a060
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x434a28
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x429e30
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x429f38
cmp word [edx], 0
je 0x429f38
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x429e5e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x429ebd
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x429e90
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429e70
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0042a060
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429e90
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.0042a170
mov edi, eax
test edi, edi
je 0x429eb3
cmp dword [esi + 4], 0
je 0x429f0b
push dword [esp + 0x14]
push edi
push esi
call fcn.0042a060
push edi
push 0
push dword [0x441c10]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x441c10]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x429fe0
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 0x42a01c
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 0x42a060
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x42a167
cmp dword [esi + 0x14], 1
jne 0x42a0ab
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x42a128
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x42a113
dec eax
je 0x42a0fc
sub eax, 2
je 0x42a0e7
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00429fe0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x42a155
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x42a0d1
xor eax, eax
pop esi
add esp, 0xc
ret 0xc

Function at 0x42ce90
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x42cec2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42cebd
cmp dword [esp + 0xc], esi
je 0x42ced9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret