joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415a5b
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 0x415a92
cmp word [edi], dx
je 0x415a92
push edi
call fcn.00492990
mov ebp, dword [esp + 0x20]
mov edi, eax
push edi
push ebp
call fcn.00415e6f
pop ecx
pop ecx
mov esi, eax
xor edx, edx
jmp 0x415aa8
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 8], edx
je 0x415bbd
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x415bbd
cmp dword [esp + 0x30], 0
je 0x415acc
push dword [esi]
push edx
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [esi]
jmp 0x415ad4
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x415bc1
cdq
cmp edx, dword [esi + 4]
jl 0x415bc1
jg 0x415af4
cmp eax, dword [esi]
jb 0x415bc1
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 0x415b46
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x415b46
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 0x415bc1
cmp dword [esi + 4], edx
jne 0x415bc1
mov dword [esp + 0x10], ebp
jmp 0x415bc5
push dword [esi + 8]
push 0
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x415bc1
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 0x415ba5
cmp dword [esi + 0xc], edx
jne 0x415ba5
push dword [esp + 0x14]
push ebx
push dword [esp + 0x20]
call fcn.004160d0
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x415ba5
cmp edx, dword [esi + 4]
jne 0x415ba5
mov ebp, dword [esi]
mov dword [esp + 0x10], ebp
jmp 0x415ba9
mov ebp, dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x415bc5
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x415bf1
cmp ebp, 0xffffffff
jne 0x415beb
test ebx, ebx
je 0x415be5
push ebx
push 0
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ebx, eax
jmp 0x415bf7
mov eax, dword [esi]
mov dword [ecx], eax
jmp 0x415bf5
mov ebx, dword [esp + 0x10]
xor eax, eax
test edi, edi
je 0x415c06
cmp word [edi], ax
je 0x415c06
push edi
call fcn.00492980
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x415eaf
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 0x416032
push edi
push 0x100
push ebx
push dword [0x4c4fd4]
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 0x415f44
push 0x18
lea eax, [esp + 0x3c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x18
jne 0x416031
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 0x415f5e
push 0x12
lea eax, [esp + 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x12
jne 0x416031
cmp dword [esi + 0xc], ebp
jl 0x415f80
add ebp, 0x40
mov eax, ebp
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x4c4fd4]
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 [0x4c4fd4]
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 0x415ff3
add eax, 0x18
jmp 0x415ff6
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 0x415ee6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x41844b
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4c6948]
call fcn.00429078
mov ebx, eax
test ebx, ebx
je 0x4184af
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x418474
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4184af
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.00429e20
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.00429f00
pop edi
pop esi
pop ebx
ret 8
Function at 0x41c83f
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41c997
mov eax, dword [esp + 0x20]
dec eax
je 0x41c97a
dec eax
jne 0x41c997
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.0041c7f8
pop ecx
test eax, eax
je 0x41c8ab
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x41c8d8
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41c8dd
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x41c8dd
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41c976
dec ebx
je 0x41c972
dec ebx
je 0x41c951
dec ebx
je 0x41c90b
sub ebx, 4
jne 0x41c997
test edi, edi
jne 0x41c997
push 0x6e
jmp 0x41c996
sub edi, 0
je 0x41c943
dec edi
je 0x41c935
dec edi
je 0x41c927
dec edi
jne 0x41c997
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x41c997
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x41c997
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x41c997
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x41c997
sub edi, 0
je 0x41c96e
dec edi
je 0x41c96a
dec edi
jne 0x41c997
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x41c997
push 0x3c
jmp 0x41c996
push 0x32
jmp 0x41c996
push 0x14
jmp 0x41c996
push 5
jmp 0x41c996
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41c994
cmp eax, 0xa
je 0x41c990
cmp eax, 0x5a
jne 0x41c997
push 0x28
jmp 0x41c996
push 0x1e
jmp 0x41c996
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x41db6c
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 0x41dbe6
push 9
call esi
test al, al
jns 0x41dbe6
push 0x11
call esi
test al, al
js 0x41dbe6
push 0x10
call esi
test al, al
js 0x41dbe6
push 0x12
call esi
test al, al
js 0x41dbe6
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 0x41dbe6
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x41dbe6
xor eax, eax
jmp 0x41dc67
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41dc0e
push 0x11
call esi
test al, al
js 0x41dc06
push 0x10
call esi
test al, al
js 0x41dc06
push 0x12
call esi
test al, al
jns 0x41dc0e
push 1
push edi
call fcn.0041dc6f
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x41dc24
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x41dc64
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x41dc64
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x41dc64
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x41dc64
lea eax, [esi - 1]
push eax
push dword [0x4c6958]
call fcn.00429078
test eax, eax
je 0x41dc64
mov eax, dword [eax + 8]
jmp 0x41dc66
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41e2f4
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 0x41e43c
xor ecx, ecx
cmp word [eax], cx
je 0x41e43c
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 0x41e34d
cmp eax, 3
jne 0x41e387
cmp word [esp + 0xa], 0x3a
jne 0x41e387
cmp eax, 2
jne 0x41e36b
lea eax, [esp + 8]
push 0x4a3580
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 0x41e43c
push 0xfffffffffffffffe
pop edi
jmp 0x41e43c
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x41e39c
cmp ax, bx
jne 0x41e3a6
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x41e38f
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x41e3e5
test byte [esp + 0x21c], 0x10
je 0x41e3cc
push 0xfffffffffffffffe
pop edi
jmp 0x41e3dc
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41e43a
cmp word [esp + 0x10], bp
jne 0x41e3f3
cmp word [esp + 0x12], bp
je 0x41e412
cmp word [esp + 0x10], bx
jne 0x41e401
cmp word [esp + 0x12], bx
je 0x41e412
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x41e43a
cmp word [esp + 0x12], ax
jne 0x41e43a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x41e427
test al, 0x10
je 0x41e43a
jmp 0x41e437
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41e43a
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 0x41e520
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 0x41e55c
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 0x41ea00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x41ea65
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41ea5d
push dword [esp + 0x10]
push dword [0x4c696c]
call fcn.00429078
test eax, eax
je 0x41ea53
cmp dword [eax + 4], 0
je 0x41ea42
push edi
push esi
push eax
call fcn.0041ef50
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 0x41eb90
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x4c696c]
call fcn.00429078
mov esi, eax
test esi, esi
je 0x41ec0f
cmp dword [esi + 4], 0
je 0x41ebe0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0041f060
test eax, eax
je 0x41ebd4
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 0x41ec1a
cmp dword [esp + 8], 0
je 0x41ec1a
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 0x41ef50
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 0x41f057
cmp dword [esi + 0x14], 1
jne 0x41ef9b
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 0x41f018
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x41f003
dec eax
je 0x41efec
sub eax, 2
je 0x41efd7
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.0041e520
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x41f045
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 0x41efc1
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x41f060
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x41f081
push esi
call fcn.0041e520
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 0x41f0f5
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x41f0e2
dec ecx
je 0x41f0cd
sub ecx, 2
je 0x41f0ba
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 0x41f13a
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 0x41f15b
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 0x41f180
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4c4fd4]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x41f304
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 0x41f1ce
test ebp, ebp
je 0x41f270
dec ebp
cmp dword [ebx + 4], 0
je 0x41f1e7
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0041f060
mov dword [esp + 0x14], eax
jmp 0x41f201
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 0x41f270
test cl, cl
je 0x41f215
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 0x41f250
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4c4fd4]
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 0x41f270
cmp dword [esp + 0x2c], 0
jne 0x41f1c0
cmp cl, 0xd
je 0x41f277
cmp cl, 0xa
jne 0x41f1c0
dec esi
jmp 0x41f2e7
cmp dword [esp + 0x2c], 0
jne 0x41f2e7
cmp cl, 0xa
jne 0x41f27f
dec esi
jmp 0x41f2e7
cmp cl, 0xd
jne 0x41f2e7
dec esi
cmp dword [ebx + 4], 0
je 0x41f29e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0041f060
mov dword [esp + 0x14], eax
jmp 0x41f2b4
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 0x41f2e7
cmp dword [ebx + 4], 0
je 0x41f2c6
inc dword [ebx + 0xc]
jmp 0x41f2e7
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 0x41f310
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x41f4bd
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 0x41f364
test ebp, ebp
je 0x41f41d
dec ebp
cmp dword [ebx + 4], 0
je 0x41f37d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0041f060
mov dword [esp + 0x14], eax
jmp 0x41f397
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 0x41f41d
test ax, ax
je 0x41f3b1
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 0x41f3f8
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x4c4fd4]
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 0x41f41d
cmp dword [esp + 0x30], 0
jne 0x41f356
cmp ax, 0xd
je 0x41f424
cmp ax, 0xa
jne 0x41f356
sub edi, 2
jmp 0x41f49c
cmp dword [esp + 0x30], 0
jne 0x41f49c
cmp ax, 0xa
jne 0x41f42f
sub edi, 2
jmp 0x41f49c
cmp ax, 0xd
jne 0x41f49c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x41f451
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0041f060
mov dword [esp + 0x14], eax
jmp 0x41f467
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 0x41f49c
cmp dword [ebx + 4], 0
je 0x41f47b
add dword [ebx + 0xc], 2
jmp 0x41f49c
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
Function at 0x41f4d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4c4fd4]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x41f620
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 0x41f51c
test edi, edi
je 0x41f58d
dec edi
push esi
push ebp
call fcn.0041f630
mov dword [esp + 0x20], eax
test eax, eax
jne 0x41f52f
xor cl, cl
jmp 0x41f531
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 0x41f574
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4c4fd4]
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 0x41f58d
test eax, eax
jne 0x41f512
cmp cl, 0xd
je 0x41f591
cmp cl, 0xa
jne 0x41f512
dec esi
jmp 0x41f603
test eax, eax
jne 0x41f603
cmp cl, 0xa
jne 0x41f599
dec esi
jmp 0x41f603
cmp cl, 0xd
jne 0x41f603
dec esi
cmp dword [ebp + 4], 0
je 0x41f5b8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0041f060
mov dword [esp + 0x20], eax
jmp 0x41f5cf
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 0x41f603
cmp dword [ebp + 4], 0
je 0x41f5e1
inc dword [ebp + 0xc]
jmp 0x41f603
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