joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447c72
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 0x447d08
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x447d05
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x447d05
lea eax, [esi - 1]
push eax
push dword [0x5a19e0]
call fcn.00452497
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x447d07
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x447cf5
mov edx, 0xfa01
cmp word [ecx], dx
je 0x447d00
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x447ce5
jmp 0x447d05
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x447dae
push eax
call esi
test al, al
jns 0x447dae
push 0x11
call esi
test al, al
js 0x447dae
push 0x10
call esi
test al, al
js 0x447dae
push 0x12
call esi
test al, al
js 0x447dae
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x447dae
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0042f53d
add esp, 0xc
test eax, eax
je 0x447d82
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0042f53d
add esp, 0xc
test eax, eax
jne 0x447d99
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x447def
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004bfc2b
pop ecx
pop ecx
test eax, eax
je 0x447def
test ebp, ebp
je 0x447dd2
push 0x11
call esi
test al, al
js 0x447dca
push 0x10
call esi
test al, al
js 0x447dca
push 0x12
call esi
test al, al
jns 0x447dd2
push 1
push ebp
call fcn.00447dfb
test ebx, ebx
je 0x447de6
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x447def
test edi, edi
je 0x447def
mov eax, dword [edi + 8]
jmp 0x447df1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x448163
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x5a0d98]
push esi
test eax, eax
jne 0x448174
push fcn.0044827c
push 0x10
push 0x258
call fcn.0045256a
mov dword [0x5a0d98], eax
push dword [esp + 0xc]
push eax
call fcn.004524d6
mov esi, eax
test esi, esi
je 0x448275
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x448196
mov edi, 0x4e47b0
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4481a6
xor eax, eax
cmp word [ebx], ax
jne 0x4481ab
mov ebx, 0x4e6d24
push edi
call fcn.0042f265
push ebx
mov dword [esp + 0x24], eax
call fcn.0042f265
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x59cd20]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x44825c
push edi
push eax
call fcn.004bfb98
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x44820c
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x448210
push 0x4e1a20
push edi
call fcn.004bfbba
pop ecx
pop ecx
jmp 0x448210
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.004bfbba
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 0x448234
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x44824a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x448248
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x59cd20]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x448273
cmp dword [esp + 0x14], 0xffffffff
je 0x448267
mov esi, dword [esp + 0x14]
push esi
push dword [0x5a0d98]
call fcn.00452448
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x4482f2
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 0x44843a
xor ecx, ecx
cmp word [eax], cx
je 0x44843a
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004bfbeb
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0042f265
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x44834b
cmp eax, 3
jne 0x448385
cmp word [esp + 0xa], 0x3a
jne 0x448385
cmp eax, 2
jne 0x448369
lea eax, [esp + 8]
push 0x4e1a20
push eax
call fcn.004bfbba
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x44843a
push 0xfffffffffffffffe
pop edi
jmp 0x44843a
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x44839a
cmp ax, bx
jne 0x4483a4
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x44838d
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4483e3
test byte [esp + 0x21c], 0x10
je 0x4483ca
push 0xfffffffffffffffe
pop edi
jmp 0x4483da
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x448438
cmp word [esp + 0x10], bp
jne 0x4483f1
cmp word [esp + 0x12], bp
je 0x448410
cmp word [esp + 0x10], bx
jne 0x4483ff
cmp word [esp + 0x12], bx
je 0x448410
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x448438
cmp word [esp + 0x12], ax
jne 0x448438
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x448425
test al, 0x10
je 0x448438
jmp 0x448435
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x448438
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 0x448770
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x448789
push dword [0x5a1a04]
call fcn.00452613
pop edi
ret 4
push esi
push edi
push dword [0x5a1a04]
call fcn.00452497
mov esi, eax
test esi, esi
je 0x4487f3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4487df
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4487ce
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 [0x59cd20]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x5a1a04]
call fcn.00452448
pop esi
pop edi
ret 4
Function at 0x448800
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 0x44883c
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 0x448c10
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x5a1a04]
call fcn.00452497
mov esi, eax
test esi, esi
je 0x448c8f
cmp dword [esi + 4], 0
je 0x448c60
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00449460
test eax, eax
je 0x448c54
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 0x448c9a
cmp dword [esp + 8], 0
je 0x448c9a
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 0x4490b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x449115
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x44910d
push dword [esp + 0x10]
push dword [0x5a1a04]
call fcn.00452497
test eax, eax
je 0x449103
cmp dword [eax + 4], 0
je 0x4490f2
push edi
push esi
push eax
call fcn.00449ad0
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 0x449120
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x44921f
cmp word [edx], 0
je 0x44921f
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x44914e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4491a4
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x449160
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x449186
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00449ad0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
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
lea eax, [esp + 0x14]
push eax
xor eax, eax
cmp ecx, 2
push edx
setne al
dec eax
and eax, 0xfde9
push eax
call fcn.00449bf0
mov edi, eax
test edi, edi
je 0x44919a
cmp dword [esi + 4], 0
je 0x4491f2
push dword [esp + 0x14]
push edi
push esi
call fcn.00449ad0
push edi
push 0
push dword [0x59cd20]
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 [0x59cd20]
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 0x4492c5
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x5a1a04]
call fcn.00452497
test eax, eax
je case.0x4492be.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x4492be.3
movzx ecx, byte [ecx + 0x4493c8]
jmp dword [ecx*4 + 0x4493b0]
cmp dword [eax + 4], 0
je 0x4492db
push 2
push 0x4e70d0
push eax
call fcn.00449ad0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x4e70d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x44930a
push 3
push 0x4e6a50
push eax
call fcn.00449ad0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x4e6a50
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x449339
push 2
push 0x4e70d4
push eax
call fcn.00449ad0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x4e70d4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x449368
push 4
push 0x4e70d8
push eax
call fcn.00449ad0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x4e70d8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x449397
push 4
push 0x4e70e0
push eax
call fcn.00449ad0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x4e70e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
Function at 0x449323
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x5a1a04]
call fcn.00452497
test eax, eax
je case.0x4492be.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x4492be.3
movzx ecx, byte [ecx + 0x4493c8]
jmp dword [ecx*4 + 0x4493b0]
cmp dword [eax + 4], 0
je 0x4492db
push 2
push 0x4e70d0
push eax
call fcn.00449ad0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x4e70d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x44930a
push 3
push 0x4e6a50
push eax
call fcn.00449ad0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x4e6a50
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x449339
push 2
push 0x4e70d4
push eax
call fcn.00449ad0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x4e70d4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x449368
push 4
push 0x4e70d8
push eax
call fcn.00449ad0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x4e70d8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x449397
push 4
push 0x4e70e0
push eax
call fcn.00449ad0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x4e70e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
Function at 0x449460
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x449482
push ebx
call fcn.00448800
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
sub ecx, ebp
add ecx, dword [ebx + 0x10]
cmp ebp, esi
jl 0x4494fe
mov eax, esi
sub eax, 1
je 0x4494ea
sub eax, 1
je 0x4494d4
sub eax, 2
je 0x4494c0
push esi
push ecx
push dword [esp + 0x20]
call fcn.00439170
add esp, 0xc
mov eax, esi
sub dword [ebx + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx]
pop edi
mov dword [eax], ecx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov cx, word [ecx]
pop edi
mov word [eax], cx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov dl, byte [ecx]
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [ecx], dl
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
push ecx
push eax
call fcn.00439170
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, ebp
mov ecx, dword [ebx]
sub esi, ebp
mov dword [esp + 0x18], eax
push 0
cmp esi, edx
jl 0x449546
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add eax, ebp
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jle 0x449566
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.00439170
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x449590
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x59cd20]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x449720
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x4495de
test ebp, ebp
je 0x449686
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x4495fa
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00449460
mov dword [esp + 0x10], eax
jmp 0x449614
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x449689
test cl, cl
je 0x449628
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x449663
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x59cd20]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x449686
cmp dword [esp + 0x28], 0
jne 0x4495d0
cmp cl, 0xd
je 0x449692
cmp cl, 0xa
jne 0x4495d0
dec esi
jmp 0x449703
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x449703
jmp 0x449695
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x44969d
dec esi
jmp 0x449703
cmp cl, 0xd
jne 0x449703
dec esi
cmp dword [edi], 0
je 0x4496bb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00449460
mov dword [esp + 0x10], eax
jmp 0x4496d1
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x449703
cmp dword [edi], 0
je 0x4496e2
inc dword [ebx + 0xc]
jmp 0x449703
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x449730
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x59cd20]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x4498ef
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x449789
test ecx, ecx
je 0x44984c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x4497a5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00449460
mov dword [esp + 0x10], eax
jmp 0x4497bf
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x44984f
test ax, ax
je 0x4497dd
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x449824
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x59cd20]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x44984f
cmp dword [esp + 0x2c], 0
jne 0x449773
cmp ax, 0xd
je 0x449856
cmp ax, 0xa
jne 0x449773
sub edi, 2
jmp 0x4498ce
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x4498ce
cmp ax, 0xa
jne 0x449861
sub edi, 2
jmp 0x4498ce
cmp ax, 0xd
jne 0x4498ce
sub edi, 2
cmp dword [ebp], 0
je 0x449883
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00449460
mov dword [esp + 0x10], eax
jmp 0x449899
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x4498ce
cmp dword [ebp], 0
je 0x4498ad
add dword [ebx + 0xc], 2
jmp 0x4498ce
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x449900
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x59cd20]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x449a50
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x44994c
test edi, edi
je 0x4499bd
dec edi
push esi
push ebp
call fcn.00449c60
mov dword [esp + 0x20], eax
test eax, eax
jne 0x44995f
xor cl, cl
jmp 0x449961
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x4499a4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x59cd20]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x4499bd
test eax, eax
jne 0x449942
cmp cl, 0xd
je 0x4499c1
cmp cl, 0xa
jne 0x449942
dec esi
jmp 0x449a33
test eax, eax
jne 0x449a33
cmp cl, 0xa
jne 0x4499c9
dec esi
jmp 0x449a33
cmp cl, 0xd
jne 0x449a33
dec esi
cmp dword [ebp + 4], 0
je 0x4499e8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00449460
mov dword [esp + 0x20], eax
jmp 0x4499ff
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x449a33
cmp dword [ebp + 4], 0
je 0x449a11
inc dword [ebp + 0xc]
jmp 0x449a33
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x449ad0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x449be7
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x449b1d
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x449ba6
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x449b8f
sub eax, 1
je 0x449b76
sub eax, 2
je 0x449b5f
push esi
push dword [esp + 0x24]
push ecx
call fcn.00439170
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00448800
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x449bd5
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x449b47
xor eax, eax
pop edi
add esp, 8
ret 0xc