joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e880
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e1898]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
push eax
mov dword [0x4e47c8], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x45e8db
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [ebp - 0xc]
cvtdq2pd xmm0, xmm0
movsd qword [0x4e47b8], xmm0
movd xmm0, dword [ebp - 8]
cvtdq2pd xmm0, xmm0
movsd qword [0x4e47c0], xmm0
cmp dword [ebx + 0x68], 0x34001
jne 0x45e900
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x45e8f0
push dword [eax + 4]
jmp 0x45e902
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
jmp 0x45e902
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
call fcn.00460100
add esp, 4
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
cmp dword [ebx + 0x1e8], 0
je 0x45e98f
mov eax, dword [ebx + 0x2ac]
push 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push 1
push eax
mov dword [ebp - 0x10], 0x20001
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x45e98f
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.00461e20
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004672b4
mov esp, ebp
pop ebp
ret

Function at 0x45e9a0
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1e8], 0
je 0x45e9ec
push 0xc
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x20001
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x45e9ec
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.00461e20
add esp, 8
push 0
mov dword [0x4e47c8], 0
call dword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si eax, qword [0x4e47c0]
cvttsd2si ecx, qword [0x4e47b8]
mov dword [ebp - 4], eax
mov dword [esi + 0x2dc], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x2ac]
mov dword [ebp - 8], ecx
mov dword [esi + 0x2d8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [esi + 0x68], 0x34001
jne 0x45ea73
mov eax, dword [esi + 0x40]
test eax, eax
je 0x45ea5a
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov esp, ebp
pop ebp
ret
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45ea80
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push 0xc
push 1
mov dword [ebp - 0xc], 0x20001
mov eax, dword [eax + 0x2ac]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x45eac4
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.00461e20
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x45ebe0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebx
movzx esi, ax
push 0x11
shr esi, 0xf
call ebx
mov edi, esi
or edi, 2
bt ax, 0xf
push 0x12
cmovae edi, esi
call ebx
mov ebx, edi
or ebx, 4
bt ax, 0xf
push 0x5c
cmovae ebx, edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
push 0x5b
mov si, ax
call edi
mov edi, ebx
or edi, 8
or si, ax
push 0x14
cmovns edi, ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
call ebx
mov esi, edi
or esi, 0x10
test al, 1
push 0x90
cmove esi, edi
call ebx
mov ecx, esi
or ecx, 0x20
test al, 1
pop edi
cmove ecx, esi
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x461bf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
cmp eax, 0xffffffff
jne 0x461c1a
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.00461e20
add esp, 8
xor eax, eax
pop ebp
ret
mov dword [ecx], 1
mov eax, 1
pop ebp
ret
Function at 0x462480
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4e1898]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00468c40
push 0x6d1
push 0
push 0x4e40e2
call fcn.00468c40
mov eax, 0x4e4182
lea ebx, [ebp - 0x160]
add esp, 0x18
mov dword [ebp - 0x164], eax
mov esi, 0x20
sub ebx, 0x480
nop dword [eax]
movsx edi, word [esi*2 + 0x4e3e28]
cmp edi, 0xffffffff
je 0x462614
cmp esi, 0x140
jb 0x4625a3
cmp esi, 0x14e
ja 0x4625a3
mov dword [ebp - 0x160], 0x60
mov dword [ebp - 0x15c], 0x61
mov dword [ebp - 0x158], 0x62
mov dword [ebp - 0x154], 0x63
mov dword [ebp - 0x150], 0x64
mov dword [ebp - 0x14c], 0x65
mov dword [ebp - 0x148], 0x66
mov dword [ebp - 0x144], 0x67
mov dword [ebp - 0x140], 0x68
mov dword [ebp - 0x13c], 0x69
mov dword [ebp - 0x138], 0x6e
mov dword [ebp - 0x134], 0x6f
mov dword [ebp - 0x130], 0x6a
mov dword [ebp - 0x12c], 0x6d
mov dword [ebp - 0x128], 0x6b
mov eax, dword [ebx]
jmp 0x4625ac
push 1
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0x10
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x168], eax
push ecx
lea ecx, [ebp - 0x124]
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x4625ea
push 0
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x124]
push eax
push edi
push dword [ebp - 0x168]
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x46260e
push 0
push 0
push 5
push dword [ebp - 0x164]
lea eax, [ebp - 0x24]
push 1
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x164]
inc esi
add eax, 5
add ebx, 4
mov dword [ebp - 0x164], eax
cmp esi, 0x15c
jle 0x4624e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004672b4
mov esp, ebp
pop ebp
ret
Function at 0x4628f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e1898]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4e3a10
push 0x4e2710
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x462938
push 0x4a1344
push 0x10008
call fcn.00461e20
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004672b4
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32.dll
call ebx
mov dword [0x4e47f0], eax
test eax, eax
jne 0x462972
push str.Win32:_Failed_to_load_user32.dll
push 0x10008
call fcn.00461e20
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004672b4
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessDPIAware
push eax
call edi
push str.ChangeWindowMessageFilterEx
push dword [0x4e47f0]
mov dword [0x4e47f4], eax
call edi
push str.EnableNonClientDpiScaling
push dword [0x4e47f0]
mov dword [0x4e47f8], eax
call edi
push str.SetProcessDpiAwarenessContext
push dword [0x4e47f0]
mov dword [0x4e47fc], eax
call edi
push str.GetDpiForWindow
push dword [0x4e47f0]
mov dword [0x4e4800], eax
call edi
push str.AdjustWindowRectExForDpi
push dword [0x4e47f0]
mov dword [0x4e4804], eax
call edi
push str.GetSystemMetricsForDpi
push dword [0x4e47f0]
mov dword [0x4e4808], eax
call edi
push str.dinput8.dll
mov dword [0x4e480c], eax
call ebx
mov dword [0x4e47d8], eax
test eax, eax
je 0x462a0f
push str.DirectInput8Create
push eax
call edi
mov dword [0x4e47dc], eax
push esi
mov dword [ebp - 0x1c], str.xinput1_4.dll
xor esi, esi
mov dword [ebp - 0x18], str.xinput1_3.dll
mov eax, str.xinput1_4.dll
mov dword [ebp - 0x14], str.xinput9_1_0.dll
mov dword [ebp - 0x10], str.xinput1_2.dll
mov dword [ebp - 0xc], str.xinput1_1.dll
mov dword [ebp - 8], 0
push eax
call ebx
mov dword [0x4e47e4], eax
test eax, eax
jne 0x462a58
mov eax, dword [ebp + esi*4 - 0x18]
inc esi
test eax, eax
jne 0x462a41
jmp 0x462a77
push str.XInputGetCapabilities
push eax
call edi
push str.XInputGetState
push dword [0x4e47e4]
mov dword [0x4e47e8], eax
call edi
mov dword [0x4e47ec], eax
push str.dwmapi.dll
call ebx
mov dword [0x4e4810], eax
pop esi
test eax, eax
je 0x462acb
push str.DwmIsCompositionEnabled
push eax
call edi
push str.DwmFlush
push dword [0x4e4810]
mov dword [0x4e4814], eax
call edi
push str.DwmEnableBlurBehindWindow
push dword [0x4e4810]
mov dword [0x4e4818], eax
call edi
push str.DwmGetColorizationColor
push dword [0x4e4810]
mov dword [0x4e481c], eax
call edi
mov dword [0x4e4820], eax
push str.shcore.dll
call ebx
mov dword [0x4e4824], eax
test eax, eax
je 0x462afa
push str.SetProcessDpiAwareness
push eax
call edi
push str.GetDpiForMonitor
push dword [0x4e4824]
mov dword [0x4e4828], eax
call edi
mov dword [0x4e482c], eax
push str.ntdll.dll
call ebx
mov dword [0x4e4830], eax
test eax, eax
je 0x462b17
push str.RtlVerifyVersionInfo
push eax
call edi
mov dword [0x4e4834], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.004672b4
mov esp, ebp
pop ebp
ret
Function at 0x466be0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e1898]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4e490c], 0
mov dword [ebp - 0x10], str.libOSMesa.dll
mov dword [ebp - 0xc], str.OSMesa.dll
mov dword [ebp - 8], 0
je 0x466c21
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004672b4
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov eax, str.libOSMesa.dll
push eax
call edi
mov dword [0x4e490c], eax
test eax, eax
jne 0x466c69
mov eax, dword [ebp + esi*4 - 0xc]
inc esi
test eax, eax
jne 0x466c30
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.0045cbf0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004672b4
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OSMesaCreateContextExt
push eax
call esi
push str.OSMesaCreateContextAttribs
push dword [0x4e490c]
mov dword [0x4e4910], eax
call esi
push str.OSMesaDestroyContext
push dword [0x4e490c]
mov dword [0x4e4914], eax
call esi
push str.OSMesaMakeCurrent
push dword [0x4e490c]
mov dword [0x4e4918], eax
call esi
push str.OSMesaGetColorBuffer
push dword [0x4e490c]
mov dword [0x4e491c], eax
call esi
push str.OSMesaGetDepthBuffer
push dword [0x4e490c]
mov dword [0x4e4920], eax
call esi
push str.OSMesaGetProcAddress
push dword [0x4e490c]
mov dword [0x4e4924], eax
call esi
cmp dword [0x4e4910], 0
mov dword [0x4e4928], eax
je 0x466d2e
cmp dword [0x4e4918], 0
je 0x466d2e
cmp dword [0x4e491c], 0
je 0x466d2e
cmp dword [0x4e4920], 0
je 0x466d2e
cmp dword [0x4e4924], 0
je 0x466d2e
test eax, eax
je 0x466d2e
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004672b4
mov esp, ebp
pop ebp
ret
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.0045cbf0
mov eax, dword [0x4e490c]
add esp, 8
test eax, eax
je 0x466d5a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4e490c], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004672b4
mov esp, ebp
pop ebp
ret

Function at 0x467d9c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x467ddb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x467ddb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x467ddb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x467ddb
cmp dword [ecx + 0x74], 0xe
jbe 0x467ddb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x472895
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004845e0
mov eax, dword [0x4e1898]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00478067
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4728d7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x472a33
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00484530
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e56a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004797f9
mov ecx, dword [esi*4 + 0x4e56a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x472a2c
cmp eax, dword [ecx + edi + 0x24]
jne 0x472a2c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x472a2c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004797f9
add esp, 0x14
test edx, edx
jl 0x472a2c
jg 0x4729a2
test eax, eax
jb 0x472a2c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x472a2c
jl 0x4729bc
cmp dword [ebp - 0x1008], eax
ja 0x472a2c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4729da
test ebx, ebx
je 0x472a13
cmp ecx, edi
jae 0x472a13
mov al, byte [ecx]
cmp al, 0xd
jne 0x4729f4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x472a00
cmp byte [ecx + 1], 0xa
jne 0x472a00
inc ecx
jmp 0x472a00
movzx eax, al
movsx eax, byte [eax + 0x4e1a98]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4729da
cmp edx, ebx
jne 0x4729da
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x472a31
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004672b4
leave
ret

Function at 0x478501
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a68f0
push 0x4a68e8
push str.FlsAlloc
push 0x1f
call fcn.004783c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x478535
push dword [ebp + 8]
mov ecx, esi
call dword [0x4882f8]
call esi
jmp 0x47853b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x47857f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a6900
push 0x4a68f8
push str.FlsGetValue
push 0x21
call fcn.004783c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4785b6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4882f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4785be
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a6908
push 0x4a6900
push str.FlsSetValue
push 0x22
call fcn.004783c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4785f8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4882f8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x479875
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4e56a0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4798b5
cmp byte [ebx], 0xa
jne 0x4798b5
or byte [edi + eax + 0x28], 4
jmp 0x4798ba
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4799b9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47999c
inc eax
cmp dl, 0xd
je 0x4798e6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x47990c
cmp eax, ecx
jae 0x47991a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4798ce
jmp 0x4799b9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x479997
cmp dword [ebp - 0x10], 0
je 0x479997
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4e56a0]
test byte [eax + edi + 0x28], 0x48
je 0x479971
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47995c
mov byte [esi], dl
jmp 0x47996d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e56a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4799b9
cmp byte [ebp - 1], 0xa
jne 0x479980
cmp esi, ebx
jne 0x479980
mov byte [esi], 0xa
jmp 0x4799b8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00479817
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4799b9
mov byte [esi], 0xd
jmp 0x4799b8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4e56a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4799b6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4799b9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4799c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4e56a0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x479a08
cmp word [ebx], dx
jne 0x479a08
or byte [eax + edi + 0x28], 4
jmp 0x479a0d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x479b70
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x479b50
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x479a4e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x479a84
cmp eax, edx
jae 0x479a92
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x479a29
jmp 0x479b70
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x479b4b
cmp dword [ebp - 0x18], 0
je 0x479b4b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4e56a0]
test byte [eax + edi + 0x28], 0x48
je 0x479b21
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x479ae5
mov word [esi], cx
jmp 0x479b1c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4e56a0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4e56a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4e56a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x479b70
pop eax
cmp word [ebp - 4], ax
jne 0x479b31
cmp esi, ebx
jne 0x479b31
mov word [esi], ax
jmp 0x479b6d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00479817
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x479b70
push 0xd
pop eax
jmp 0x479b2c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4e56a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x479b6a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x479b70
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47d797
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x47d834
push ebx
push esi
call fcn.0047d760
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0047d6f4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x47d7e1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47d833
push edi
push eax
call fcn.00478843
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47d801
call fcn.004773a1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47d832
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0047d6f4
add esp, 0x20
test eax, eax
jne 0x47d820
push edi
call fcn.004773a1
jmp 0x47d828
push ebx
call fcn.004773a1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret