joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004fd60
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x1004fdae
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1004fd9e
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1004fd95
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x1004fd72
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x100d926c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x1004fdb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100d7010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x100d9370]
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 0x1004fe11
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1004fe32
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 0x1004fe53
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1004fe53
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1004fe4d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1004fe53
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 al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
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 edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10064b15
mov esp, ebp
pop ebp
ret
Function at 0x1004feb0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x100d9378]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x1004fee4
mov eax, dword [0x100d9370]
add eax, 0x14
nop
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1004feec
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x1004fed0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x1004ffa2
test ebx, ebx
lea ecx, [ebp - 0x10]
setne al
or edx, 0xffffffff
push eax
call fcn.1004fbb0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004ffa2
mov ecx, dword [0x100d9378]
push edi
cmp esi, ecx
jae 0x1004ff5a
imul edi, esi, 0x2c
mov eax, dword [0x100d9370]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1004ff4f
mov edx, ebx
mov ecx, esi
call fcn.1004fdb0
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004ff5a
mov ecx, dword [0x100d9378]
jmp 0x1004ff52
mov eax, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1004ff24
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1004ffa1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1004ff8f
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1004ff89
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1004ff68
push ebx
push 0
push dword [0x100d926c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10051cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x10051d97
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x10051d86
jg 0x10051cf0
test edx, edx
je 0x10051d86
nop dword [eax]
call fcn.100533c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10051d43
jg 0x10051d07
test esi, esi
je 0x10051d43
cmp ebx, eax
jg 0x10051d17
jl 0x10051d11
cmp edi, esi
jae 0x10051d17
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.10067c30
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x10051d6a
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x10051d80
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10051cf0
jl 0x10051d80
test edi, edi
jne 0x10051cf0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x10051db9
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x10051dbb
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10051e39
jg 0x10051dce
test esi, esi
je 0x10051e39
test eax, eax
jl 0x10051e1d
jg 0x10051dd8
test ebx, ebx
je 0x10051e1d
cmp edi, eax
jg 0x10051de8
jl 0x10051de2
cmp esi, ebx
jae 0x10051de8
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.10067c30
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x10051e39
jg 0x10051e20
test esi, esi
je 0x10051e39
jmp 0x10051e20
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10051e39
push eax
push esi
push 1
push edx
call fcn.1006d9b7
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10051e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10051e82
jl 0x10051e75
test ecx, ecx
jne 0x10051e82
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10051f42
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100533e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10051eee
jg 0x10051ead
test esi, esi
je 0x10051eee
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10051ec5
mov eax, dword [esp + 0x10]
jl 0x10051ebf
cmp eax, esi
jae 0x10051ec5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10067c30
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10051f0f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10051f2b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10051e94
jl 0x10051f2b
test ecx, ecx
jne 0x10051e94
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10051f7b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10051f7b
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.10067c30
mov eax, dword [ebx + 0x2c]
add esp, 0xc
add dword [esp + 0xc], esi
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x10051feb
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x10051fa1
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x10051fd4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1006ddaa
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10051fff
cmp edi, eax
ja 0x10051fb0
test ecx, ecx
je 0x10051feb
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1006ddaa
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10052370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100d7010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100523a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100523dc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100523dc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100524c6
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10052404
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10052437
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1007305d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10052499
sub eax, 1
je 0x10052499
sub eax, 2
jne 0x100524c6
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.1007305d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100524b6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1006d9b7
add esp, 0x10
cmp edi, eax
jne 0x100524c6
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100523c7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10064b15
mov esp, ebp
pop ebp
ret 4
Function at 0x10052f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100d7010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10052fdc
cmp byte [esi + 0x3d], 0
je 0x10052fdc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10052fca
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10052f92
sub eax, 1
je 0x10052f96
sub eax, 2
jne 0x10052fca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10052fb3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1006d9b7
add esp, 0x10
cmp edi, eax
jne 0x10052fca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10064b15
mov esp, ebp
pop ebp
ret

Function at 0x100532b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ba50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100d7010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100653bb
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10065f66
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea esi, [eax + 0x24]
mov byte [ebx + 0x48], 0
add eax, 0x28
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x18]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x18]
mov dword [edx], 0
mov edx, dword [0x100d92c4]
mov dword [ecx], 0
mov ecx, dword [0x100d92c0]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100541b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100d7010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x10054280
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x108]
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x100541f0
sub edx, ecx
mov ecx, str.LFS.exe
lea eax, [ebp + edx - 0x10f]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10054225
test dl, dl
je 0x10054221
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10054225
add eax, 2
add ecx, 2
test dl, dl
jne 0x10054205
xor eax, eax
jmp 0x1005422a
sbb eax, eax
or eax, 1
test eax, eax
je 0x10054255
push 0
push 0x100af7fc
push str.RevLimiter_has_been_loaded_into_a_process_that_is_not_LFS.exe
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret 0xc
call fcn.100513e0
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push esi
push 0x10054090
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10054280
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10064b15
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10054b50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bc40
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100d7010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
call fcn.1004ffb0
cmp dword [0x100d926c], esi
jne 0x10054cc3
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [0x100d926c], eax
mov ecx, 9
mov edi, 0x100d9268
cmove esi, ecx
xor eax, eax
xchg dword [edi], eax
test esi, esi
jne 0x10054ccc
mov eax, dword [0x100d92d8]
mov edx, 0x10054f10
push 0x100d930c
mov eax, dword [eax]
mov ecx, dword [eax + 0xa8]
call fcn.10050000
test eax, eax
jne 0x10054cd3
mov eax, dword [0x100d92d8]
mov edx, 0x10055020
push 0x100d9310
mov eax, dword [eax]
mov ecx, dword [eax + 0x40]
call fcn.10050000
test eax, eax
je 0x10054c01
push str.Unable_to_hook_Reset__
jmp 0x10054cd8
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push 0x41eed0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x100d9318
mov edx, 0x10055b60
mov ecx, 0x41eed0
call fcn.10050000
test eax, eax
je 0x10054c36
push str.Unable_to_hook_DoVehicleCalculations__
jmp 0x10054cd8
call fcn.1004ffb0
cmp dword [0x100d926c], 0
je 0x10054ca8
mov ecx, 1
call fcn.1004feb0
xor ecx, ecx
xchg dword [edi], ecx
test eax, eax
jne 0x10054cac
mov dword [ebp - 4], eax
mov ecx, dword [0x100d92d8]
test ecx, ecx
je 0x10054c73
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x100d92d8], 0
mov ecx, dword [0x100d92c8]
test ecx, ecx
je 0x10054c8d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x100d92c8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret
xor eax, eax
xchg dword [edi], eax
push str.MH_EnableHook_failed
lea ecx, [ebp - 0x2c]
call fcn.10054420
push 0x100d593c
lea eax, [ebp - 0x2c]
jmp 0x10054ce8
xor eax, eax
mov ecx, 0x100d9268
xchg dword [ecx], eax
push 0x100af978
jmp 0x10054cd8
push str.Unable_to_hook_EndScene__
lea ecx, [ebp - 0x20]
call fcn.10054420
push 0x100d593c
lea eax, [ebp - 0x20]
push eax
call fcn.10067b4a
int3
Function at 0x10055080
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100d7010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0
push 0
mov ebx, ecx
mov edi, edx
lea ecx, [ebp - 0xc]
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
je 0x100550c0
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push eax
push edx
call ecx
test eax, eax
js 0x10055110
mov ecx, dword [ebp - 8]
add ecx, ebx
mov byte [ecx + esi], 0
add esi, dword [ebp - 8]
cmp eax, 1
je 0x100550f4
cmp esi, edi
jne 0x100550c3
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.10064b15
mov esp, ebp
pop ebp
ret
push str.Read_failed
lea ecx, [ebp - 0x18]
call fcn.10054420
push 0x100d593c
lea eax, [ebp - 0x18]
push eax
call fcn.10067b4a
int3
Function at 0x100559c0
Capabilities:
Create directory
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bd6b
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x100d7010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push str.revlimiter
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10055a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x10055af5
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 0x14], 0x49a973b7
lea eax, [ebp - 0xcc]
push 0xb8
push 0
push eax
sete byte [0x100d931c]
call fcn.100679f0
add esp, 4
lea ecx, [ebp - 0xcc]
push 1
push str.d3d9.dll
call fcn.10055df0
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xd0], eax
lea ecx, [ebp - 0xbc]
call fcn.10052500
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xd0], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.100661ae
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10064b15
mov esp, ebp
pop ebp
ret
push str.Cant_create_directory_revlimiter
lea ecx, [ebp - 0xf0]
call fcn.10052b10
push str._nError_code:
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.100529e0
mov edx, edi
lea ecx, [ebp - 0x108]
mov esi, eax
call fcn.10050850
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10052a50
push eax
lea ecx, [ebp - 0xd8]
call fcn.100507b0
push 0x100d593c
lea eax, [ebp - 0xd8]
push eax
call fcn.10067b4a
int3
Function at 0x1007c2c8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007c13e