joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479110
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6061a2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x7f206c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov edi, dword [eax + 0x8c]
mov ecx, edi
call fcn.00592460
mov edi, dword [edi + 0x1c]
mov esi, eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ce0d9
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.004a8d60
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x20]
cdq
add ecx, eax
lea eax, [ebp - 0x38]
push eax
adc dword [ebp - 0x40], edx
mov dword [ebp - 0x50], ecx
call fcn.004ce0d9
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.004a8d60
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x30]
cdq
add ecx, eax
mov eax, dword [0x800f98]
mov dword [ebp - 0x4c], ecx
adc dword [ebp - 0x3c], edx
test eax, eax
jne 0x4791f8
push 0xe8
call fcn.004a7e6f
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.005e6ad0
mov dword [0x800f98], eax
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x44]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
cvtps2pd xmm0, xmm2
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
movd xmm3, edi
addsd xmm0, qword [0x7b99f0]
cvtdq2ps xmm3, xmm3
movsd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x20]
cvtps2pd xmm0, xmm3
mov dword [edx + 8], eax
movss dword [edx], xmm2
addsd xmm0, qword [0x7b99f0]
movss dword [edx + 4], xmm3
movss dword [edx + 0x28], xmm2
movss dword [edx + 0x2c], xmm3
movsd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x4c]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x50]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x44], eax
mov eax, edx
mov dword [edx + 0x48], ecx
mov word [edx + 0x4c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a7e5e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x485450
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
push 0x10
call ebx
movzx esi, ax
shr esi, 0xf
push 0x11
and esi, 1
call ebx
shr eax, 0xf
mov edi, esi
or edi, 2
and al, 1
push 0x12
cmove edi, esi
call ebx
mov ebx, edi
shr eax, 0xf
or ebx, 4
and al, 1
push 0xa5
cmove ebx, edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, ebx
call edi
shr eax, 0xf
test al, 1
je 0x4854b2
push 0xa3
call edi
shr eax, 0xf
test al, 1
jne 0x4854b2
and esi, 0xfffffffd
or esi, 4
mov eax, dword [0x801140]
and eax, 0x70
pop edi
or eax, esi
pop esi
mov dword [0x801140], eax
pop ebx
ret

Function at 0x4854d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
mov edx, ebx
mov eax, ebx
and edx, 1
shl edx, 4
push esi
mov esi, edx
or esi, 0x20
and al, 2
mov eax, dword [0x801140]
cmove esi, edx
and eax, 0xffffff8f
mov ecx, esi
or ecx, 0x40
and bl, 0x10
cmove ecx, esi
or ecx, eax
pop esi
mov dword [0x801140], ecx
pop ebx
jmp fcn.00485450

Function at 0x488810
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x7f206c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00485450
mov ebx, dword [ebp + 8]
lea eax, [ebx - 0x10]
cmp eax, 0x95
ja case.0x488841.19
movzx eax, byte [eax + 0x4889b4]
jmp dword [eax*4 + 0x4889a8]
push 1
mov ecx, edi
call fcn.0058d5c0
mov ecx, edi
mov bl, al
call fcn.00488650
jmp 0x488970
push 1
mov ecx, edi
call fcn.0058d5c0
mov ecx, dword [0x801140]
and ecx, 0xffffff8f
mov byte [ebp - 0x12d], al
or ebx, 0x10000
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
call fcn.0058d6f0
test al, al
jne 0x488992
cmp byte [ebp - 0x12d], al
jmp 0x488972
push 1
mov ecx, edi
call fcn.0058d5c0
push 0
push 0x103
push 0x102
push dword [edi + 0x70]
mov byte [ebp - 0x12d], al
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x48896a
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 2
push ebx
call esi
push 0
push ebx
mov dword [ebp - 0x140], eax
call esi
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0
push 8
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x12c]
push eax
push esi
push ebx
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
je 0x48893b
xor edx, edx
mov word [ebp - 0x28], dx
jmp 0x48893f
mov dx, word [ebp - 0x28]
mov eax, dword [0x801140]
mov ecx, dword [ebp - 0x140]
and eax, 0xffffff8f
mov dword [ebp - 0x138], eax
movzx ecx, cx
movzx eax, dx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x134], eax
jmp 0x488893
mov bl, byte [ebp - 0x12d]
test bl, bl
jne 0x488992
call fcn.005ed440
test eax, eax
jne 0x488992
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a7e5e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e5e
mov esp, ebp
pop ebp
ret 4
Function at 0x4888b4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x7f206c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00485450
mov ebx, dword [ebp + 8]
lea eax, [ebx - 0x10]
cmp eax, 0x95
ja case.0x488841.19
movzx eax, byte [eax + 0x4889b4]
jmp dword [eax*4 + 0x4889a8]
push 1
mov ecx, edi
call fcn.0058d5c0
mov ecx, edi
mov bl, al
call fcn.00488650
jmp 0x488970
push 1
mov ecx, edi
call fcn.0058d5c0
mov ecx, dword [0x801140]
and ecx, 0xffffff8f
mov byte [ebp - 0x12d], al
or ebx, 0x10000
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
call fcn.0058d6f0
test al, al
jne 0x488992
cmp byte [ebp - 0x12d], al
jmp 0x488972
push 1
mov ecx, edi
call fcn.0058d5c0
push 0
push 0x103
push 0x102
push dword [edi + 0x70]
mov byte [ebp - 0x12d], al
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x48896a
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 2
push ebx
call esi
push 0
push ebx
mov dword [ebp - 0x140], eax
call esi
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0
push 8
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x12c]
push eax
push esi
push ebx
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
je 0x48893b
xor edx, edx
mov word [ebp - 0x28], dx
jmp 0x48893f
mov dx, word [ebp - 0x28]
mov eax, dword [0x801140]
mov ecx, dword [ebp - 0x140]
and eax, 0xffffff8f
mov dword [ebp - 0x138], eax
movzx ecx, cx
movzx eax, dx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x134], eax
jmp 0x488893
mov bl, byte [ebp - 0x12d]
test bl, bl
jne 0x488992
call fcn.005ed440
test eax, eax
jne 0x488992
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a7e5e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e5e
mov esp, ebp
pop ebp
ret 4
Function at 0x48b440
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607388
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov edi, eax
test edi, edi
jle 0x48b4d4
push 0
mov dword [ebp - 4], 0
call fcn.004c2bdc
mov eax, edi
shr eax, 1
inc eax
push 2
push eax
call fcn.004c3ab4
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x10], esi
push edi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov ecx, dword [ebp + 8]
push esi
call fcn.0041d400
push esi
call fcn.004c2bdc
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0x7a135c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48f7b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607a40
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [ebp - 4], 0
call fcn.005fbd20
mov esi, dword [ebx + 8]
mov byte [ebp - 4], 1
mov dword [edi + 0x88], vtable.juce::FileChooser::Pimpl.0
push 0x190
mov dword [edi], vtable.juce::FileChooser::Native.0
mov dword [edi + 0x88], vtable.juce::FileChooser::Native.1.0
mov dword [edi + 0x94], esi
call fcn.004a7e6f
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 2
push ecx
push esi
lea edx, [esi + 8]
mov ecx, eax
push edx
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push edi
call fcn.0048ce20
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
test esi, esi
je 0x48f8b7
push 0x10
call fcn.004a7e6f
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_resource_class_juce::Win32NativeFileChooser___struct_std::default_delete_class_juce::Win32NativeFileChooser__.0
mov dword [eax + 0xc], esi
mov dword [edi + 0x98], esi
xor esi, esi
mov dword [edi + 0x9c], eax
xor eax, eax
mov byte [ebp - 4], 5
test eax, eax
je 0x48f8c7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [0x800f98]
test eax, eax
jne 0x48f8f4
push 0xe8
call fcn.004a7e6f
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.005e6ad0
mov byte [ebp - 4], 5
mov dword [0x800f98], eax
mov ecx, dword [eax + 0x64]
mov eax, dword [ecx]
imul ecx, dword [ecx + 8], 0x70
add ecx, eax
cmp eax, ecx
je 0x48f90f
cmp byte [eax], 0
jne 0x48f90f
add eax, 0x70
cmp eax, ecx
jne 0x48f903
xor edx, edx
cmp eax, ecx
push edx
cmove eax, edx
push edx
movups xmm1, xmmword [eax + 0x14]
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd ecx, xmm0
movaps xmm0, xmm1
cdq
and edx, 3
psrldq xmm0, 8
add eax, edx
sar eax, 2
add eax, ecx
movd ecx, xmm1
push eax
movd eax, xmm0
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
mov ecx, edi
push eax
call fcn.005fb170
mov al, byte [edi + 0x80]
test al, 4
jne 0x48f997
or al, 4
mov byte [edi + 0x80], al
test al, 1
je 0x48f990
mov ecx, edi
call fcn.0058def0
test eax, eax
je 0x48f990
mov edx, dword [edi]
mov ecx, edi
push 0
push dword [eax + 8]
call dword [edx + 0x34]
mov ecx, edi
call fcn.005faeb0
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0
push eax
push 0x583670
call dword [sym.imp.USER32.dll_EnumWindows]
push dword [ebp - 0x14]
mov ecx, edi
call fcn.005f16b0
push 0
push 0
mov ecx, edi
call fcn.005fb370
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x499b90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x8011fc], 0
je 0x499bf8
push ebx
push esi
push edi
call fcn.00485450
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebx
movzx esi, ax
shr esi, 0xf
and esi, 1
push 2
shl esi, 4
call ebx
shr eax, 0xf
mov edi, esi
or edi, 0x20
and al, 1
push 4
cmove edi, esi
call ebx
shr eax, 0xf
mov ecx, edi
or ecx, 0x40
and al, 1
mov eax, dword [0x801140]
cmove ecx, edi
and eax, 0xffffff8f
or ecx, eax
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [0x801140], ecx
mov dword [eax], ecx
pop ebx
pop ebp
ret 4
call fcn.004a5245
int3

Function at 0x4a1250
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00485450
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebx
movzx esi, ax
shr esi, 0xf
and esi, 1
push 2
shl esi, 4
call ebx
shr eax, 0xf
mov edi, esi
or edi, 0x20
and al, 1
push 4
cmove edi, esi
call ebx
shr eax, 0xf
mov ecx, edi
or ecx, 0x40
and al, 1
mov eax, dword [0x801140]
cmove ecx, edi
and eax, 0xffffff8f
or ecx, eax
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [0x801140], ecx
mov dword [eax], ecx
pop ebx
pop ebp
ret 4
Function at 0x4aad1a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4d7563
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x622740
push 0x622738
push str.FlsAlloc
push 0x1e
call fcn.004d7390
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d7597
push dword [ebp + 8]
mov ecx, esi
call dword [0x61b5dc]
call esi
jmp 0x4d759d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4d75e1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x622750
push 0x622748
push str.FlsGetValue
push 0x20
call fcn.004d7390
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d7618
push dword [ebp + 8]
mov ecx, esi
call dword [0x61b5dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4de064
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 + 0x800c10]
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 0x4de0a4
cmp byte [ebx], 0xa
jne 0x4de0a4
or byte [eax + edi + 0x28], 4
jmp 0x4de0a9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4de1a7
mov al, byte [edx]
cmp al, 0x1a
je 0x4de189
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4de0d8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4de0fd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4de107
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 0x4de0ba
jmp 0x4de1a7
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 0x4de184
cmp dword [ebp - 0xc], 0
je 0x4de184
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x800c10]
test byte [eax + edi + 0x28], 0x48
je 0x4de15e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4de149
mov byte [esi], dl
jmp 0x4de15a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x800c10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4de1a7
cmp byte [ebp - 1], 0xa
jne 0x4de16d
cmp esi, ebx
jne 0x4de16d
mov byte [esi], 0xa
jmp 0x4de1a6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004e00a3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4de1a7
mov byte [esi], 0xd
jmp 0x4de1a6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x800c10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4de1a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4de1a7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4de1b0
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 + 0x800c10]
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 0x4de1f3
cmp word [esi], dx
jne 0x4de1f3
or byte [edi + eax + 0x28], 4
jmp 0x4de1f8
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 0x4de34b
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 0x4de32b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4de23a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4de270
cmp eax, edx
jae 0x4de27c
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 0x4de212
jmp 0x4de34b
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 0x4de327
cmp dword [ebp - 0x14], 0
je 0x4de327
mov eax, dword [ebx*4 + 0x800c10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4de2ff
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4de2c8
mov word [esi], cx
jmp 0x4de2fb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x800c10]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x800c10]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x800c10]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4de34b
pop ebx
cmp word [ebp - 4], bx
jne 0x4de310
cmp esi, dword [ebp + 0xc]
jne 0x4de310
mov word [esi], bx
jmp 0x4de348
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004e00a3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4de34b
push 0xd
jmp 0x4de344
mov ecx, dword [ebx*4 + 0x800c10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4de342
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4de34b
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 0x4deb6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004de9dd

Function at 0x4dfc5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a9210
mov eax, dword [0x7f206c]
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.004cfdc8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4dfc9f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4dfdfb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004e8820
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 + 0x800c10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004e0085
mov ecx, dword [esi*4 + 0x800c10]
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 0x4dfdf4
cmp eax, dword [edi + ecx + 0x24]
jne 0x4dfdf4
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 0x4dfdf4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004e0085
add esp, 0x14
test edx, edx
jl 0x4dfdf4
jg 0x4dfd6a
test eax, eax
jb 0x4dfdf4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4dfdf4
jl 0x4dfd84
cmp dword [ebp - 0x1008], eax
ja 0x4dfdf4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4dfda2
test ebx, ebx
je 0x4dfddb
cmp ecx, edi
jae 0x4dfddb
mov al, byte [ecx]
cmp al, 0xd
jne 0x4dfdbc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4dfdc8
cmp byte [ecx + 1], 0xa
jne 0x4dfdc8
inc ecx
jmp 0x4dfdc8
movzx eax, al
movsx eax, byte [eax + 0x7f2a78]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4dfda2
cmp edx, ebx
jne 0x4dfda2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4dfdf9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a7e5e
leave
ret
Function at 0x4e27d0
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 0x4e286d
push ebx
push esi
call fcn.004e2799
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.004d7a8f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4e281a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e286c
push edi
push eax
call fcn.004d70a1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4e283a
call fcn.004d6a3e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e286b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004d7a8f
add esp, 0x20
test eax, eax
jne 0x4e2859
push edi
call fcn.004d6a3e
jmp 0x4e2861
push ebx
call fcn.004d6a3e
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 0x4e2870
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4e2881
pop esi
ret
push ebx
push edi
push esi
call fcn.004e2799
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d70a1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e28a9
push ebx
push esi
push edi
call fcn.004bf740
add esp, 0xc
push 0
call fcn.004d6a3e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4e2ff5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e2b1c