joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
fsubr qword [rax + 0x3d]
push bx
invalid
Function at 0x180002940
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000299d
lea rbx, [0x18003e940]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180002984
cmp r10, 2
jb 0x180002984
cmp byte [r9], r8b
jne 0x180002984
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180002960
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800029df
lea rbx, [0x18003e940]
cmp r8b, 0x23
jne 0x1800029c3
cmp byte [r9], r8b
jne 0x1800029c3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1800029b0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x18000e630
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
lea r10, [0x18003e940]
mov rax, qword [rcx + 0x108]
mov r9, rcx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dl
movzx r8d, bl
shr ebx, 8
xor r8, rax
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r10 + r8*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r10 + rcx*4]
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x404c], ebx
jne 0x18000e6bb
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.180018a30
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180011ef0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x18004a1d8]
mov edi, ecx
cmp byte [rbx + 0x4d4d], 0
jne 0x180011f42
cmp byte [rbx + 0x4d4e], 0
jne 0x180011f42
movsx r9d, word [rbx + 0x5eb8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.180002740
test dil, 2
je 0x18001206f
jmp 0x180011fcb
movss xmm1, dword [rbx + 0x39bc]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5eb8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x18004380c]
mulss xmm1, dword [0x180043804]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe40]
addss xmm1, dword [rbx + 0xe44]
mov qword [rbx + 0x4a18], rax
mov dword [rbx + 0x4a04], 1
movss dword [rbx + 0x4a10], xmm0
movss dword [rbx + 0x4a14], xmm1
movss xmm0, dword [rbx + 0x3a18]
mulss xmm0, dword [0x180043788]
or dword [rbx + 0x4a00], 0x41
movss dword [rbx + 0x4a60], xmm0
call fcn.180002740
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180012020
lea r11, [0x18003e940]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x180012003
cmp byte [r8], r9b
jne 0x180012003
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180011ff0
not ecx
call fcn.1800088e0
test rax, rax
je 0x18001206f
cmp byte [rax + 0xbe], 0
je 0x18001206f
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x5eb8]
movsx r9d, word [rbx + 0x5eb8]
call fcn.180002740
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.18000b5a0
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180016f60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6010], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x180016fe3
xor edx, edx
add rcx, 0x6018
call fcn.180019820
mov r8, rsi
lea rcx, [rbx + 0x6018]
mov rdx, rbp
call fcn.1800030e0
mov eax, dword [rbx + 0x6018]
xor edx, edx
mov r9, qword [rbx + 0x6010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x6020]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x18004a1d0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x180016fef
add rcx, 0x6018
call fcn.1800030e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180017330
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, qword [0x18004a1d8]
cmp byte [rbx + 0x5f68], 0
jne 0x18001743e
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x180017437
lea rdx, [0x18003e460]
call fcn.1800029f0
mov rdi, rax
test rax, rax
je 0x180017437
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x18001742e
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18001742e
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x18001742e
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18001742e
cmp rsi, 0xffffffffffffffff
je 0x18001742e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x18001742e
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x18001740d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180017437
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x180017423
mov rdx, rsi
mov rcx, rbp
call fcn.180017690
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180017437
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rbx + 0x5f68], 1
movss xmm0, dword [rbx + 0x5f6c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1800174cd
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f6c], xmm0
jb 0x1800174cd
mov rdi, qword [rbx + 0x20]
xor ebp, ebp
test rdi, rdi
je 0x1800174c0
mov rax, qword [0x18004a1d8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
mov dword [rax + 0x5f6c], ebp
call fcn.1800178d0
lea rdx, [0x18003e464]
mov rcx, rdi
mov rsi, rax
call fcn.1800029f0
mov rdi, rax
test rax, rax
je 0x1800174c7
mov r8, qword [rsp + 0x40]
lea edx, [rbp + 1]
mov r9, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1800174c7
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f6c], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800175f0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18004a1d8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180017653
mov qword [rsp], rbx
lea rbx, [0x18003e940]
nop dword [rax]
cmp r9b, 0x23
jne 0x180017633
cmp byte [r8], r9b
jne 0x180017633
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180017620
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x18001767f
cmp dword [r8 + 8], eax
je 0x180017686
add r8, 0x48
cmp r8, rcx
jne 0x180017670
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x180029b90
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbp
push rsi
sub rsp, 0x58
mov rsi, qword [0x18004a1d8]
mov rbp, rcx
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x180029d4e
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x180029d4e
mov qword [rsp + 0x70], rbx
mov ecx, 0x50
mov qword [rsp + 0x50], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x180029c04
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
jmp 0x180029c07
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x18], rax
mov rax, qword [0x18004a1d8]
mov dword [rdi + 0x28], 9
test rax, rax
je 0x180029c57
mov rsi, qword [rax + 0x90]
jmp 0x180029c5a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x180029c85
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x18004a1d8]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x20], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x28], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x40], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x180029d0f
inc rbx
cmp rbx, 5
jl 0x180029ce0
mov rdi, qword [rsp + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x58
pop rsi
pop rbp
ret
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x70]
mov qword [rdi + 0x48], rax
mov al, 1
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
pop rsi
pop rbp
ret
xor al, al
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x180034640
Capabilities:
Encode data using xor
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x18004a090]
cmp ecx, 0xffffffff
je 0x180034698
mov dword [rsp + 0x40], 0x42700000
mov dword [rsp + 0x44], 0x41a00000
call fcn.180034390
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.18002c960
test al, al
je 0x180034689
mov dword [0x18004a090], 0xffffffff
add rsp, 0x38
ret
mov ecx, dword [0x18004a090]
cmp ecx, 0xffffffff
jne 0x180034809
cmp byte [0x1800433bb], 0
mov eax, dword [0x1800433b8]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], 0x42700000
mov dword [rsp + 0x4c], 0x41a00000
je 0x180034794
cmp dword [0x18004a008], 2
jl 0x18003474e
movdqa xmm3, xmmword [0x180043910]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1800439e0]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1800439e0]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
psrad xmm2, 5
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x180043930]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180043970]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x40], xmm2
jmp 0x180034794
lea r9, [rsp + 0x40]
xor r8d, r8d
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 4
jl 0x180034760
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.18002c960
test al, al
je 0x1800347b6
mov dword [0x18004a090], 0
add rsp, 0x38
ret
mov qword [rsp + 0x50], rbx
mov bl, 5
mov qword [rsp + 0x30], rdi
movzx edi, bl
mov ecx, edi
call fcn.180034390
lea rcx, [rsp + 0x20]
cmp rax, rcx
je 0x1800347e3
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1800347f9
inc bl
cmp bl, 0xff
jb 0x1800347c2
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
mov rbx, qword [rsp + 0x50]
mov dword [0x18004a090], edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x18003b660
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18003b6af
mov qword [rsp + 0x30], rbx
lea r8, [0x180036e90]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x180034df0]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400015c7
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push rbp
sub rsp, 0xa60
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x9f0], ecx
mov qword [rbp + 0x9f8], rdx
call dbg.__main
lea r8, section..rdata
lea rax, str.GBSFontJSON
mov rdx, rax
lea rax, str._s__s_for
mov rcx, rax
call sym.printf
lea rax, str.Windows
mov rcx, rax
call sym.printf
lea rax, str.2023
mov rdx, rax
lea rax, str.__Santiago_Crespo__s_n
mov rcx, rax
call sym.printf
mov qword [rbp + 0x9d8], 0xffffffffffffffff
mov dword [rbp + 0x9d4], 0
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x60]
add rax, rdx
mov dword [rax], 0x702e2a5c
mov dword [rax + 3], 0x676e70
lea rdx, [rbp + 0xb0]
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x9d8], rax
cmp qword [rbp + 0x9d8], 0xffffffffffffffff
jne 0x1400016ca
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.FindFirstFile_failed___d__n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x1400017c3
lea rax, [rbp + 0xb0]
lea rdx, [rax + 0x2c]
lea rax, [rbp + 0x5e0]
mov rcx, rax
call sym.strcpy
mov eax, dword [rbp + 0xb0]
and eax, 0x10
test eax, eax
jne 0x140001789
lea rdx, [rbp + 0x5e0]
lea rax, [rbp + 0x1f0]
mov rcx, rax
call sym.strcpy
lea rax, [rbp + 0x1f0]
mov edx, 0x2e
mov rcx, rax
call sym.strrchr
mov dword [rax], 0x6f736a2e
mov word [rax + 4], 0x6e
lea rax, [rbp + 0x1f0]
lea rdx, [0x14000905b]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x9c8], rax
lea rax, [rbp + 0x5e0]
lea rdx, [0x14000905d]
mov rcx, rax
call sym.strtok
mov rdx, rax
mov rax, qword [rbp + 0x9c8]
mov r8, rdx
lea rdx, str._n___name_:___s___n___mapping_:__n
mov rcx, rax
call sym.fprintf
mov rax, qword [rbp + 0x9c8]
mov rcx, rax
call sym.fclose
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x9d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
jne 0x1400016ca
mov rax, qword [rbp + 0x9d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov eax, 0
add rsp, 0xa60
pop rbp
ret

Function at 0x140001a90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c0b4]
mov rbx, rcx
test esi, esi
jle 0x140001c30
mov rax, qword [0x14000c0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001bd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b30
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001c52
mov rax, qword [0x14000c0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001bce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001be0
add dword [0x14000c0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000c0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001b58
mov rax, qword [0x14000c0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400021c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c100]
test rbx, rbx
je 0x14000221c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002213
test rsi, rsi
je 0x140002213
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002430
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002448
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002450
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002460
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400024ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400024a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400024af
add rax, 0x28
cmp rax, r9
jne 0x140002490
xor eax, eax
ret

Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002540
mov rdx, qword [0x1400097c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000252e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000252e
cmp word [rax + 0x18], 0x20b
jne 0x14000252e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002540
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002519
add rbx, 0x28
cmp rbx, rdi
je 0x140002540
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002510
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002550
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400097c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002570
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002578
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002570
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400025cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400025c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002570
add rax, 0x28
cmp rax, r9
jne 0x1400025b0
xor eax, eax
ret

Function at 0x1400025d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400097c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400025ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400025f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002610
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400097c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002630
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002638
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002630
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002680
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002677
test rcx, rcx
je 0x140002630
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002668
xor eax, eax
ret