joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp dword [esi + 0x5fa8], 0
lea ecx, [esi + 0x5fac]
je 0x1001b99c
push 0
call fcn.10027d40
push dword [ebp + 8]
lea ecx, [esi + 0x5fac]
push ebx
call fcn.10004bb0
mov edx, dword [esi + 0x5fac]
mov ecx, 0x100aff2c
push dword [esi + 0x5fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x5fb4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push ebx
call fcn.10004bb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001bc80
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x100aff30]
test bl, bl
je 0x1001bcc6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1001bca7
cmp byte [esi], bl
jne 0x1001bca7
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10074270]
test bl, bl
jne 0x1001bc98
mov edi, dword [0x100aff30]
mov ecx, dword [edi + 0x5f40]
not eax
mov edx, dword [edi + 0x5f48]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x1001bced
cmp dword [edx + 4], eax
je 0x1001bcf0
add edx, 0x24
cmp edx, ecx
jne 0x1001bce1
xor eax, eax
ret
mov eax, edx
ret

Function at 0x1001bee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x100aff30]
sub esp, 8
push esi
mov esi, ecx
mov dword [eax + 0x5f30], 0
push edi
test esi, esi
je 0x1001bf3d
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.1001bf50
mov edx, 0x100735fc
mov ecx, esi
mov edi, eax
call fcn.10004280
mov esi, eax
test esi, esi
je 0x1001bf3d
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10030360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10030383
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.10008350
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100303a4
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.10008350
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100303c5
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.10008350
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10030402
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.10008350
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10030423
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.10008350
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10030444
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.10008350
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100326c0
Function at 0x100330a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
cmp byte [ecx + 0x3c], 0
jne 0x10033142
push dword [0x100aff28]
lea edi, [ebx + 0x3c]
push 0x60
call fcn.100037d0
mov esi, dword [0x100aff30]
add esp, 8
mov ecx, eax
test esi, esi
je 0x10033127
movsx edx, word [esi + 0x6058]
lea eax, [esi + 0x605c]
mov edi, dword [esi + 0x3fe0]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x1003311a
lea eax, [edx + 1]
mov dword [ebp - 8], 6
cdq
idiv dword [ebp - 8]
movzx eax, dx
mov word [esi + 0x6058], ax
cwde
lea eax, [eax*8 + 0x605c]
add eax, esi
xor edx, edx
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 4]
lea edi, [ebx + 0x3c]
inc dword [esi + 0x6050]
test ecx, ecx
je 0x10033132
call fcn.100350e0
jmp 0x10033134
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, edi
lea eax, [ebp - 8]
push eax
call fcn.10027db0
mov ecx, dword [ebx + 0x54]
mov edi, dword [ebx + 0x58]
cmp ecx, edi
jne 0x1003319d
lea esi, [ecx + 1]
test edi, edi
je 0x1003315e
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x10033163
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, edi
jle 0x1003319d
imul ecx, esi, 0x7c
call fcn.100082b0
mov edi, eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x10033194
imul ecx, dword [ebx + 0x54], 0x7c
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx + 0x5c]
add esp, 0xc
call fcn.10008350
mov ecx, dword [ebx + 0x54]
mov dword [ebx + 0x5c], edi
mov dword [ebx + 0x58], esi
mov edi, dword [ebx + 0x5c]
mov edx, dword [ebp + 8]
mov esi, edx
imul eax, ecx, 0x7c
mov ecx, 0x1f
add edi, eax
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x54]
imul edi, dword [ebx + 0x54], 0x7c
add edi, dword [ebx + 0x5c]
mov ecx, dword [edi - 4]
test ecx, ecx
jne 0x100331cf
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + ecx*4 - 4]
mov dword [edi - 4], ecx
cmp byte [edi - 0x74], 0
jne 0x100331fb
mov ecx, dword [edi - 0x78]
call fcn.100082b0
mov ecx, dword [ebp + 8]
push dword [edi - 0x78]
mov dword [edi - 0x7c], eax
mov byte [edi - 0x74], 1
push dword [ecx]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0xffff
cmp word [ecx + 0x3c], ax
jne 0x1003320e
mov ax, word [edx + 0x4c]
mov word [ecx + 0x3c], ax
imul esi, dword [ebx + 0x54], 0x7c
mov ecx, dword [ebx + 0x5c]
add esi, ecx
cmp ecx, esi
je 0x10033240
nop dword [eax + eax]
cmp byte [ecx + 0x3c], 0
mov edx, dword [ecx + 0x78]
jne 0x10033230
mov dword [edx + 0x34], ecx
xor eax, eax
jmp 0x10033234
movzx eax, word [edx + 0x38]
inc eax
add ecx, 0x7c
mov word [edx + 0x38], ax
cmp ecx, esi
jne 0x10033220
mov ecx, dword [ebx + 0x1c]
mov byte [ebx + 0x18], 0
test ecx, ecx
je 0x10033250
call fcn.10008350
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1003325c
call fcn.10008350
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x19], 0
mov eax, dword [edi - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10034fa0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
call fcn.10034ca0
mov ecx, ebx
call fcn.10034dd0
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x48], eax
jle 0x100350af
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop
mov edi, dword [ebx + 0x50]
add edi, ecx
cmp dword [edi + 0x18], 0
je 0x1003509a
cmp dword [edi + 8], 0
je 0x1003509a
movzx eax, word [edi + 4]
sub esp, 0x20
movzx esi, word [edi]
movzx ecx, word [edi + 6]
movzx edx, word [edi + 2]
movss xmm0, dword [edi + 0xc]
movss xmm4, dword [edi + 0x14]
movss dword [esp + 0x1c], xmm0
movd xmm6, eax
add eax, esi
movd xmm3, ecx
cvtdq2ps xmm3, xmm3
movd xmm2, eax
lea eax, [edx + ecx]
mulss xmm3, dword [ebx + 0x30]
mov ecx, dword [edi + 0x18]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
mulss xmm1, dword [ebx + 0x30]
mulss xmm2, dword [ebx + 0x2c]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm6, xmm6
movss dword [esp + 0x18], xmm1
addss xmm0, xmm4
mulss xmm6, dword [ebx + 0x2c]
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x10], xmm3
movss xmm3, dword [edi + 0x10]
movss dword [esp + 0xc], xmm6
movss dword [esp + 8], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
addss xmm0, dword [edi + 0x10]
movss dword [esp + 4], xmm0
movss dword [esp], xmm4
push dword [edi + 8]
push 0
call fcn.100358d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ecx, 0x1c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [ebx + 0x48]
jl 0x10034fd0
mov esi, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100350d4
nop dword [eax]
mov ecx, dword [esi]
cmp byte [ecx + 0x48], 0
je 0x100350cd
call fcn.10035290
add esi, 4
cmp esi, edi
jne 0x100350c0
pop edi
pop esi
mov byte [ebx + 0x18], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10053400
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100af010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], edx
push edi
xor ebx, ebx
push ebx
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10053529
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10053542
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x100534e5
call ebx
cmp dword [ebp - 0x14], eax
jne 0x100534e5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100534e5
mov edx, dword [esi]
test edx, edx
jne 0x100534b1
push 0x200
push edx
push dword [0x100aff3c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1005350a
jmp 0x100534d9
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100534d9
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100aff3c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1005350a
mov dword [esi], edx
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 dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10053470
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1005353f
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10053542
push eax
push ebx
push dword [0x100aff3c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006db86
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10053529
cmp dword [esi], 0
je 0x10053599
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10053599
nop dword [eax]
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 0x10053593
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.10053290
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10053560
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006db86
mov esp, ebp
pop ebp
ret
Function at 0x100535b0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x100535fe
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x100535ee
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 0x100535e5
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 0x100535c2
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x100aff3c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x10053600
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100af010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x100b2810]
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 0x10053661
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006db86
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10053682
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 0x100536a3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100536a3
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1005369d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100536a3
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.1006db86
mov esp, ebp
pop ebp
ret
Function at 0x10053700
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x100b2818]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x10053734
mov eax, dword [0x100b2810]
add eax, 0x14
nop
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1005373c
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10053720
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x100537f2
test ebx, ebx
lea ecx, [ebp - 0x10]
setne al
or edx, 0xffffffff
push eax
call fcn.10053400
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x100537f2
mov ecx, dword [0x100b2818]
push edi
cmp esi, ecx
jae 0x100537aa
imul edi, esi, 0x2c
mov eax, dword [0x100b2810]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1005379f
mov edx, ebx
mov ecx, esi
call fcn.10053600
mov dword [ebp - 4], eax
test eax, eax
jne 0x100537aa
mov ecx, dword [0x100b2818]
jmp 0x100537a2
mov eax, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10053774
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100537f1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x100537df
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100537d9
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 0x100537b8
push ebx
push 0
push dword [0x100aff3c]
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 0x10055d70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100af010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x10055e40
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 0x10055db0
sub edx, ecx
mov ecx, str.LFS.exe
lea eax, [ebp + edx - 0x10f]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10055de5
test dl, dl
je 0x10055de1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10055de5
add eax, 2
add ecx, 2
test dl, dl
jne 0x10055dc5
xor eax, eax
jmp 0x10055dea
sbb eax, eax
or eax, 1
test eax, eax
je 0x10055e15
push 0
push str.FreedomFactory_Tools
push str.FreedomFactory_Tools_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.1006db86
mov esp, ebp
pop ebp
ret 0xc
call fcn.10054b00
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push esi
push 0x10055c10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10055e40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1006db86
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100569e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070450
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100af010]
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.10053800
cmp dword [0x100aff3c], esi
jne 0x10056b53
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [0x100aff3c], eax
mov ecx, 9
mov edi, 0x100aff38
cmove esi, ecx
xor eax, eax
xchg dword [edi], eax
test esi, esi
jne 0x10056b5c
mov eax, dword [0x100afff4]
mov edx, 0x10056da0
push 0x100b0030
mov eax, dword [eax]
mov ecx, dword [eax + 0xa8]
call fcn.10053850
test eax, eax
jne 0x10056b63
mov eax, dword [0x100afff4]
mov edx, 0x10056ed0
push 0x100b0034
mov eax, dword [eax]
mov ecx, dword [eax + 0x40]
call fcn.10053850
test eax, eax
je 0x10056a91
push str.Unable_to_hook_Reset__
jmp 0x10056b68
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push 0x41f350
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x100b03dc
mov edx, 0x1005a450
mov ecx, 0x41f350
call fcn.10053850
test eax, eax
je 0x10056ac6
push str.Unable_to_hook_DoVehicleCalculations__
jmp 0x10056b68
call fcn.10053800
cmp dword [0x100aff3c], 0
je 0x10056b38
mov ecx, 1
call fcn.10053700
xor ecx, ecx
xchg dword [edi], ecx
test eax, eax
jne 0x10056b3c
mov dword [ebp - 4], eax
mov ecx, dword [0x100afff4]
test ecx, ecx
je 0x10056b03
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x100afff4], 0
mov ecx, dword [0x100affe4]
test ecx, ecx
je 0x10056b1d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x100affe4], 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.1006db86
mov esp, ebp
pop ebp
ret
xor eax, eax
xchg dword [edi], eax
push str.MH_EnableHook_failed
lea ecx, [ebp - 0x2c]
call fcn.10056180
push 0x100acce4
lea eax, [ebp - 0x2c]
jmp 0x10056b78
xor eax, eax
mov ecx, 0x100aff38
xchg dword [ecx], eax
push str.MH_Initialize_failed
jmp 0x10056b68
push str.Unable_to_hook_EndScene__
lea ecx, [ebp - 0x20]
call fcn.10056180
push 0x100acce4
lea eax, [ebp - 0x20]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x10059b90
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x100af010]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push 0
push 0
lea eax, [esp + 0x18]
push eax
push str.https:__raw.githubusercontent.com_casulguy_rl_main_nx2
push 0
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
jne 0x10059c73
xor esi, esi
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x14]
push eax
mov eax, 2
sub eax, esi
push eax
lea eax, [esp + 0x20]
add eax, esi
push eax
push edx
call ecx
test eax, eax
js 0x10059c85
add esi, dword [esp + 0x14]
mov byte [esp + esi + 0x18], 0
cmp eax, 1
je 0x10059c00
cmp esi, 2
jne 0x10059bc5
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, 0x10089da0
lea eax, [esp + 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10059c33
test dl, dl
je 0x10059c2f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10059c33
add eax, 2
add ecx, 2
test dl, dl
jne 0x10059c13
xor eax, eax
jmp 0x10059c38
sbb eax, eax
or eax, 1
test eax, eax
je 0x10059c73
call fcn.1006cfb0
call fcn.1006d2b0
call fcn.1006cd60
test al, al
je 0x10059c73
call fcn.1006d5c0
test al, al
je 0x10059c73
call fcn.1006d810
test al, al
je 0x10059c73
mov al, 1
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1006db86
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
xor al, al
pop esi
xor ecx, esp
call fcn.1006db86
mov esp, ebp
pop ebp
ret
push str.Read_failed
lea ecx, [esp + 8]
call fcn.10056180
push 0x100acce4
lea eax, [esp + 8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1005ac50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1005ac7c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 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 + 0x14], eax
test eax, eax
je 0x1005ac9e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1005aca0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1005ad25
jg 0x1005acb5
test esi, esi
je 0x1005ad25
test ecx, ecx
jl 0x1005ad08
jg 0x1005acbf
test eax, eax
je 0x1005ad08
cmp edi, ecx
jg 0x1005acd3
jl 0x1005acc9
cmp esi, eax
jae 0x1005acd3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x1005ad25
jg 0x1005ad0b
test esi, esi
je 0x1005ad25
jmp 0x1005ad0b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1005ad25
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
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