joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a1a4
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x10], esi
call fcn.00475f20
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
push esi
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40a2a3
push ebx
mov ebx, dword [esp + 0x30]
lea eax, [edi + 0x18]
push esi
push dword [ebx + 0x18]
push eax
push ebp
push edi
push dword [esp + 0x48]
call fcn.0040a693
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40a207
cmp esi, edi
jge 0x40a207
mov dword [esp + 0x34], ebp
jmp 0x40a209
mov esi, edi
push dword [esp + 0x14]
call sub.MSVCRT.dll_strlen
mov word [esp + 0x2c], ax
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [esp + 0x1c], eax
mov eax, esi
pop ecx
mov dword [esp + 0x1c], edx
cdq
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
push 0x12
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edx
push eax
push dword [ebx]
call edi
cmp dword [esp + 0x3c], 0x12
jne 0x40a288
push 0
lea eax, [esp + 0x40]
push eax
movsx eax, word [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [ebx]
call edi
movsx eax, word [esp + 0x28]
cmp eax, dword [esp + 0x3c]
jne 0x40a288
push 0
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x40]
push dword [ebx]
call edi
cmp esi, dword [esp + 0x3c]
jne 0x40a288
xor esi, esi
inc esi
jmp 0x40a28c
mov esi, dword [esp + 0x10]
push ebx
call fcn.0040a8ad
pop ecx
push ebp
push 0
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
push dword [esp + 0x10]
call fcn.00475f10
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
Function at 0x40a4de
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
or dword [esp], 0xffffffff
xor edx, edx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, edx
test edi, edi
je 0x40a515
cmp word [edi], dx
je 0x40a515
push edi
call fcn.00475f20
mov ebp, dword [esp + 0x20]
mov edi, eax
push edi
push ebp
call fcn.0040a8f2
pop ecx
pop ecx
mov esi, eax
xor edx, edx
jmp 0x40a52b
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 8], edx
je 0x40a640
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40a640
cmp dword [esp + 0x30], 0
je 0x40a54f
push dword [esi]
push edx
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [esi]
jmp 0x40a557
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x40a644
cdq
cmp edx, dword [esi + 4]
jl 0x40a644
jg 0x40a577
cmp eax, dword [esi]
jb 0x40a644
push 0
lea eax, [esi + 0x14]
push eax
push dword [esi + 0x10]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x40a5c9
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x40a5c9
push 0
lea eax, [esp + 0x30]
push eax
push dword [esi]
push ebx
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [esp + 0x2c]
mov eax, ebp
cdq
cmp dword [esi], eax
jne 0x40a644
cmp dword [esi + 4], edx
jne 0x40a644
mov dword [esp + 0x10], ebp
jmp 0x40a648
push dword [esi + 8]
push 0
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40a644
push 0
lea ecx, [esp + 0x30]
push ecx
push dword [esi + 8]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x2c]
cdq
cmp dword [esi + 8], eax
jne 0x40a628
cmp dword [esi + 0xc], edx
jne 0x40a628
push dword [esp + 0x14]
push ebx
push dword [esp + 0x20]
call fcn.0040ab53
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x40a628
cmp edx, dword [esi + 4]
jne 0x40a628
mov ebp, dword [esi]
mov dword [esp + 0x10], ebp
jmp 0x40a62c
mov ebp, dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40a648
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40a674
cmp ebp, 0xffffffff
jne 0x40a66e
test ebx, ebx
je 0x40a668
push ebx
push 0
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ebx, eax
jmp 0x40a67a
mov eax, dword [esi]
mov dword [ecx], eax
jmp 0x40a678
mov ebx, dword [esp + 0x10]
xor eax, eax
test edi, edi
je 0x40a689
cmp word [edi], ax
je 0x40a689
push edi
call fcn.00475f10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x40a932
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
xor ebx, ebx
push 0x40
pop ebp
cmp dword [esi + 4], ebx
jne 0x40aab5
push edi
push 0x100
push ebx
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebx
push 4
pop edi
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x14], 0x706c7a31
lea eax, [esp + 0x4c]
push 0
push eax
jne 0x40a9c7
push 0x18
lea eax, [esp + 0x3c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x18
jne 0x40aab4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov ax, word [esp + 0x40]
mov word [esp + 0x2c], ax
jmp 0x40a9e1
push 0x12
lea eax, [esp + 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x12
jne 0x40aab4
cmp dword [esi + 0xc], ebp
jl 0x40aa03
add ebp, 0x40
mov eax, ebp
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi + 4], eax
movsx eax, word [esp + 0x2c]
add eax, 0x19
push eax
push 0
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
lea eax, [esp + 0x50]
mov dword [esp + 0x14], edx
push eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0xc], ecx
movsx eax, word [esp + 0x34]
push eax
lea eax, [edx + 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [esp + 0x2c]
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov byte [eax + edx + 0x18], cl
cmp dword [esi + 0x14], 0x706c7a31
movsx eax, word [esp + 0x2c]
jne 0x40aa76
add eax, 0x18
jmp 0x40aa79
add eax, 0x12
add edi, eax
mov dword [edx + 0x10], edi
adc ebx, ecx
mov dword [edx + 0x14], ebx
mov ecx, dword [esi + 0xc]
add edi, dword [esp + 0x24]
mov eax, dword [esi + 4]
adc ebx, dword [esp + 0x28]
push 1
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc dword [esi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ecx
push ecx
jmp 0x40a969
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x40fdf9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x40fe73
push 9
call esi
test al, al
jns 0x40fe73
push 0x11
call esi
test al, al
js 0x40fe73
push 0x10
call esi
test al, al
js 0x40fe73
push 0x12
call esi
test al, al
js 0x40fe73
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40fe73
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x40fe73
xor eax, eax
jmp 0x40fef4
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40fe9b
push 0x11
call esi
test al, al
js 0x40fe93
push 0x10
call esi
test al, al
js 0x40fe93
push 0x12
call esi
test al, al
jns 0x40fe9b
push 1
push edi
call fcn.0040fefc
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x40feb1
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x40fef1
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x40fef1
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40fef1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x40fef1
lea eax, [esi - 1]
push eax
push dword [0x4a88b8]
call fcn.004194c3
test eax, eax
je 0x40fef1
mov eax, dword [eax + 8]
jmp 0x40fef3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4100ce
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x410146
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 0x410127
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x410124
cmp ecx, 0x5c
je 0x410124
cmp ecx, 0x2f
jne 0x410131
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x410111
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x410148
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x410530
Capabilities:
Delete file
Set file attributes

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

Function at 0x41056c
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 0x4106b4
xor ecx, ecx
cmp word [eax], cx
je 0x4106b4
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 0x4105c5
cmp eax, 3
jne 0x4105ff
cmp word [esp + 0xa], 0x3a
jne 0x4105ff
cmp eax, 2
jne 0x4105e3
lea eax, [esp + 8]
push 0x477380
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 0x4106b4
push 0xfffffffffffffffe
pop edi
jmp 0x4106b4
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x410614
cmp ax, bx
jne 0x41061e
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x410607
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x41065d
test byte [esp + 0x21c], 0x10
je 0x410644
push 0xfffffffffffffffe
pop edi
jmp 0x410654
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4106b2
cmp word [esp + 0x10], bp
jne 0x41066b
cmp word [esp + 0x12], bp
je 0x41068a
cmp word [esp + 0x10], bx
jne 0x410679
cmp word [esp + 0x12], bx
je 0x41068a
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4106b2
cmp word [esp + 0x12], ax
jne 0x4106b2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x41069f
test al, 0x10
je 0x4106b2
jmp 0x4106af
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4106b2
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 0x410810
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 0x41084c
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 0x410cd0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x410d35
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x410d2d
push dword [esp + 0x10]
push dword [0x4a88cc]
call fcn.004194c3
test eax, eax
je 0x410d23
cmp dword [eax + 4], 0
je 0x410d12
push edi
push esi
push eax
call fcn.00411320
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 0x411050
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x4a88cc]
call fcn.004194c3
test eax, eax
je 0x41109c
cmp dword [eax + 4], 0
je 0x411086
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00411430
mov eax, dword [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x4110b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x4a88cc]
call fcn.004194c3
test eax, eax
je 0x4110fb
cmp dword [eax + 4], 0
je 0x4110e5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00411430
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
Function at 0x411320
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 0x411427
cmp dword [esi + 0x14], 1
jne 0x41136b
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 0x4113e8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x4113d3
dec eax
je 0x4113bc
sub eax, 2
je 0x4113a7
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.00410810
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x411415
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 0x411391
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x411430
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x411451
push esi
call fcn.00410810
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x4114c5
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x4114b2
dec ecx
je 0x41149d
sub ecx, 2
je 0x41148a
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x41150a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x41152b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x411550
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x411644
cmp word [edx], 0
je 0x411644
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x4115dd
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x4115b0
jmp 0x411590
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411590
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00411320
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4115b0
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 + 0x10]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00411b70
mov esi, eax
test esi, esi
je 0x41163b
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x411618
push dword [esp + 0x10]
push esi
push eax
call fcn.00411320
mov dword [esp + 4], eax
jmp 0x41162c
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x18]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x411650
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4a7db0]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4117d4
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x41169e
test ebp, ebp
je 0x411740
dec ebp
cmp dword [ebx + 4], 0
je 0x4116b7
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00411430
mov dword [esp + 0x14], eax
jmp 0x4116d1
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x411740
test cl, cl
je 0x4116e5
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x411720
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4a7db0]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x411740
cmp dword [esp + 0x2c], 0
jne 0x411690
cmp cl, 0xd
je 0x411747
cmp cl, 0xa
jne 0x411690
dec esi
jmp 0x4117b7
cmp dword [esp + 0x2c], 0
jne 0x4117b7
cmp cl, 0xa
jne 0x41174f
dec esi
jmp 0x4117b7
cmp cl, 0xd
jne 0x4117b7
dec esi
cmp dword [ebx + 4], 0
je 0x41176e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00411430
mov dword [esp + 0x14], eax
jmp 0x411784
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4117b7
cmp dword [ebx + 4], 0
je 0x411796
inc dword [ebx + 0xc]
jmp 0x4117b7
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
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 0x4117e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x41198d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x411834
test ebp, ebp
je 0x4118ed
dec ebp
cmp dword [ebx + 4], 0
je 0x41184d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00411430
mov dword [esp + 0x14], eax
jmp 0x411867
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x4118ed
test ax, ax
je 0x411881
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x4118c8
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x4a7db0]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x4118ed
cmp dword [esp + 0x30], 0
jne 0x411826
cmp ax, 0xd
je 0x4118f4
cmp ax, 0xa
jne 0x411826
sub edi, 2
jmp 0x41196c
cmp dword [esp + 0x30], 0
jne 0x41196c
cmp ax, 0xa
jne 0x4118ff
sub edi, 2
jmp 0x41196c
cmp ax, 0xd
jne 0x41196c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x411921
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00411430
mov dword [esp + 0x14], eax
jmp 0x411937
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x41196c
cmp dword [ebx + 4], 0
je 0x41194b
add dword [ebx + 0xc], 2
jmp 0x41196c
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10