joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x100834f0]
cmp byte [esi + 0x2d94], 0
jne 0x1001ca8a
cmp dword [esi + 0x2db4], 0
je 0x1001c98a
push 0x221c
push str.D:MGRDW_6_SDK_srcimguiimgui.cpp
push str.g.SettingsWindows.empty__
call fcn.10043d91
add esp, 0xc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1001ca83
push edi
push 0x100699c4
push eax
call fcn.10011ad0
mov edi, eax
add esp, 8
test edi, edi
je 0x1001ca82
push ebx
push edi
call fcn.100447b3
add esp, 4
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x1001ca78
push 2
push 0
push edi
call fcn.10042fb1
add esp, 0xc
test eax, eax
jne 0x1001ca78
push edi
call fcn.100447b3
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x1001ca78
push 0
push dword [ebp - 8]
push edi
call fcn.10042fb1
add esp, 0xc
test eax, eax
jne 0x1001ca78
mov eax, dword [0x100834f0]
test eax, eax
je 0x1001ca11
inc dword [eax + 0x374]
push dword [0x100834f8]
push ebx
call dword [0x10082018]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1001ca78
push edi
push dword [ebp - 4]
push 1
push ebx
call fcn.10042b26
add esp, 0x10
push edi
cmp eax, dword [ebp - 4]
je 0x1001ca46
call fcn.10042267
add esp, 4
jmp 0x1001ca57
call fcn.10042267
push dword [ebp - 4]
push ebx
call fcn.100133c0
add esp, 0xc
mov eax, dword [0x100834f0]
test eax, eax
je 0x1001ca66
dec dword [eax + 0x374]
push dword [0x100834f8]
push ebx
call dword [0x1008201c]
add esp, 8
jmp 0x1001ca81
push edi
call fcn.10042267
add esp, 4
pop ebx
pop edi
mov byte [esi + 0x2d94], 1
movss xmm0, dword [esi + 0x2d98]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1001cadc
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x2d98], xmm0
jb 0x1001cadc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1001cacb
push eax
call fcn.1001a610
add esp, 4
mov dword [esi + 0x2d98], 0
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x35c], 1
mov dword [esi + 0x2d98], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002db20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10082450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.100113f0
mov edi, eax
mov ecx, dword [edi + 0x90]
cmp dword [ecx + 0x34], 0
jle 0x1002db51
cmp dword [ecx + 0x14], 0
jne 0x1002db68
cmp dword [ecx + 0x18], 0
jne 0x1002db68
push 0xc6
push str.D:MGRDW_6_SDK_srcimguiimgui_impl_win32.cpp
push str.io.Fonts__IsBuilt_____Font_atlas_not_built__It_is_generally_built_by_the_renderer_back_end._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__._
call fcn.10043d91
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [0x10083540]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
movd xmm1, eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x14]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 8], xmm1
movss dword [edi + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [0x10083548]
mov edx, dword [ebp - 0x10]
sbb edx, dword [0x1008354c]
call fcn.1003cd40
mov edx, dword [0x10083554]
mov ecx, dword [0x10083550]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 8], xmm0
call fcn.1003cd40
movss xmm1, dword [ebp - 8]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x10], xmm1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [0x10083548], eax
mov dword [0x1008354c], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xf9], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xfb], 0
mov byte [edi + 0xfa], al
call fcn.100113f0
cmp byte [eax + 0x353], 0
lea esi, [eax + 0xe0]
je 0x1002dc76
cvttss2si eax, dword [eax + 0xe4]
cvttss2si ecx, dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [0x10083540]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi], 0xff7fffff
mov dword [esi + 4], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x1002dcde
mov ecx, dword [0x10083540]
cmp eax, ecx
je 0x1002dca3
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1002dcde
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1002dcde
lea eax, [ebp - 0x1c]
push eax
push dword [0x10083540]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1002dcde
movd xmm0, dword [ebp - 0x1c]
movd xmm1, dword [ebp - 0x18]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
cmp byte [edi + 0xa8], 0
pop edi
pop esi
je 0x1002dcee
or eax, 0xffffffff
jmp 0x1002dcf3
call fcn.100114a0
cmp dword [0x100821d0], eax
je 0x1002dd05
mov dword [0x100821d0], eax
call fcn.1002dfd0
call fcn.1002dd30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003cad0
mov esp, ebp
pop ebp
ret
Function at 0x1003a3d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x100842ac]
test eax, eax
je 0x1003a3ec
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x1003a442
mov eax, dword [eax]
test eax, eax
jne 0x1003a3e0
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1003a43f
push esi
push edi
xor edi, edi
mov dword [eax + 8], 0
lea edx, [eax + 0x20]
lea esi, [edi + 0x20]
mov dword [edx], edi
mov ecx, edx
mov dword [eax + 4], edx
add esi, 0x20
add edx, 0x20
mov edi, ecx
cmp esi, 0xfe0
jbe 0x1003a415
mov ecx, dword [0x100842ac]
mov dword [eax], ecx
mov dword [0x100842ac], eax
pop edi
pop esi
test eax, eax
jne 0x1003a442
xor eax, eax
ret
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
Function at 0x1003adf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10082450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
imul esi, eax, 0x2c
push edi
add esi, dword [0x100842a0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003ae50
pop edi
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003cad0
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1003ae75
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1003ae96
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1003ae96
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1003ae90
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1003ae96
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
and cl, 0xfd
mov al, bl
add al, al
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
mov byte [esi + 0x14], cl
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1003cad0
mov esp, ebp
pop ebp
ret
Function at 0x1003af80
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10082450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1003b078
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1003b071
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1003b058
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1003b058
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1003b058
mov edx, dword [esi]
test edx, edx
jne 0x1003b021
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x10083568]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1003b071
jmp 0x1003b04c
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1003b04c
shl eax, 3
push eax
push edx
push 0
push dword [0x10083568]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1003b071
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1003afe0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1003b0bc
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x1003b0bc
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1003b0b6
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.1003b350
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x1003b084
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003cad0
mov esp, ebp
pop ebp
ret

Function at 0x1003b4c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x1003b510
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1003b4ff
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1003b4f8
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1003b4d5
pop ebx
push dword [edi]
push 0
push dword [0x10083568]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret
Function at 0x10044576
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1003cb10
mov eax, dword [0x10082450]
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.100550b1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100445b8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10044714
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1003cdc0
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 + 0x10083f40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1005717b
mov ecx, dword [esi*4 + 0x10083f40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1004470d
cmp eax, dword [edi + ecx + 0x24]
jne 0x1004470d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004470d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005717b
add esp, 0x14
test edx, edx
jl 0x1004470d
jg 0x10044683
test eax, eax
jb 0x1004470d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004470d
jl 0x1004469d
cmp dword [ebp - 0x1008], eax
ja 0x1004470d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100446bb
test ebx, ebx
je 0x100446f4
cmp ecx, edi
jae 0x100446f4
mov al, byte [ecx]
cmp al, 0xd
jne 0x100446d5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100446e1
cmp byte [ecx + 1], 0xa
jne 0x100446e1
inc ecx
jmp 0x100446e1
movzx eax, al
movsx eax, byte [eax + 0x100826d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100446bb
cmp edx, ebx
jne 0x100446bb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10044712
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003cad0
leave
ret

Function at 0x1005491e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10074a90
push 0x10074a88
push str.FlsAlloc
push 0x1e
call fcn.10054768
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10054952
push dword [ebp + 8]
mov ecx, esi
call dword [0x10066234]
call esi
jmp 0x10054958
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1005499c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10074aa0
push 0x10074a98
push str.FlsGetValue
push 0x20
call fcn.10054768
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100549d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10066234]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100561dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005604e

Function at 0x10056619
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x10083f40]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10056659
cmp byte [ebx], 0xa
jne 0x10056659
or byte [eax + edi + 0x28], 4
jmp 0x1005665e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1005675c
mov al, byte [edx]
cmp al, 0x1a
je 0x1005673e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1005668d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100566b2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100566bc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1005666f
jmp 0x1005675c
push 0
lea eax, [ebp - 0xc]
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 0x10056739
cmp dword [ebp - 0xc], 0
je 0x10056739
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10083f40]
test byte [eax + edi + 0x28], 0x48
je 0x10056713
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100566fe
mov byte [esi], dl
jmp 0x1005670f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10083f40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005675c
cmp byte [ebp - 1], 0xa
jne 0x10056722
cmp esi, ebx
jne 0x10056722
mov byte [esi], 0xa
jmp 0x1005675b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10057199
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005675c
mov byte [esi], 0xd
jmp 0x1005675b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10083f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10056758
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005675c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10056765
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10083f40]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100567a8
cmp word [esi], dx
jne 0x100567a8
or byte [edi + eax + 0x28], 4
jmp 0x100567ad
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10056900
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100568e0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100567ef
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10056825
cmp eax, edx
jae 0x10056831
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100567c7
jmp 0x10056900
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100568dc
cmp dword [ebp - 0x14], 0
je 0x100568dc
mov eax, dword [ebx*4 + 0x10083f40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100568b4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1005687d
mov word [esi], cx
jmp 0x100568b0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10083f40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10083f40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10083f40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10056900
pop ebx
cmp word [ebp - 4], bx
jne 0x100568c5
cmp esi, dword [ebp + 0xc]
jne 0x100568c5
mov word [esi], bx
jmp 0x100568fd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10057199
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10056900
push 0xd
jmp 0x100568f9
mov ecx, dword [ebx*4 + 0x10083f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100568f7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10056900
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10057852
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100577d4
Function at 0x1005d06b
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 0x1005d108
push ebx
push esi
call fcn.1005d034
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.1005be0b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005d0b5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005d107
push edi
push eax
call fcn.10058228
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005d0d5
call fcn.100543fc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005d106
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005be0b
add esp, 0x20
test eax, eax
jne 0x1005d0f4
push edi
call fcn.100543fc
jmp 0x1005d0fc
push ebx
call fcn.100543fc
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
Function at 0x10063951
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100638cd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10063ac9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10063ac9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10063a78
jg 0x100639aa
test eax, eax
je 0x10063a6e
push 1
push 0x1000
call fcn.10054436
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100639d0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10063a65
push 0x8000
push ebx
call fcn.100637fe
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100639fc
jg 0x100639f7
cmp ecx, 0x1000
jb 0x100639fc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10055e4e
add esp, 0x10
cmp eax, 0xffffffff
je 0x10063a41
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100639f7
jl 0x10063a28
test ecx, ecx
jne 0x100639e9
push dword [ebp - 0xc]
push ebx
call fcn.100637fe
push esi
call fcn.100543fc
add esp, 0xc
xor edi, edi
jmp 0x10063ada
cmp byte [edi + 0x24], 0
je 0x10063a58
cmp dword [edi + 0x20], 5
jne 0x10063a58
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10063a63
mov edi, dword [edi + 0x18]
jmp 0x10063a65
xor edi, edi
push esi
call fcn.100543fc
pop ecx
jmp 0x10063ada
test ecx, ecx
jg 0x10063a3a
jl 0x10063a78
test eax, eax
jae 0x10063a3a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10057199
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10063a9b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10063a3a
jmp 0x10063ad2
push ebx
call fcn.1005fa12
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10063a3a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x10063ada
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10063ad7
mov edi, dword [edi + 0x18]
jmp 0x10063ada
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10057199
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10064720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006474d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006474d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret