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

Disassembly:
mov qword [rsp + 8], rbx
mov r11, qword [r8]
mov r10, rcx
movabs rbx, 0x100000001b3
movzx r9d, r11b
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov rax, r11
imul r9, rbx
shr rax, 8
movzx r8d, al
mov rax, r11
xor r9, r8
shr rax, 0x10
mov r8, qword [r10 + 8]
imul r9, rbx
movzx ecx, al
mov rax, r11
xor r9, rcx
shr rax, 0x18
imul r9, rbx
movzx ecx, al
mov rax, r11
xor r9, rcx
shr rax, 0x20
imul r9, rbx
movzx ecx, al
mov rax, r11
xor r9, rcx
shr rax, 0x28
imul r9, rbx
movzx ecx, al
mov rax, r11
xor r9, rcx
shr rax, 0x30
imul r9, rbx
movzx ecx, al
mov rax, r11
xor r9, rcx
shr rax, 0x38
mov rcx, qword [r10 + 0x30]
imul r9, rbx
xor r9, rax
imul r9, rbx
and rcx, r9
shl rcx, 4
add rcx, qword [r10 + 0x18]
mov rax, qword [rcx + 8]
cmp rax, r8
je 0x1400bc216
mov rcx, qword [rcx]
cmp r11, qword [rax + 0x10]
je 0x1400bc218
cmp rax, rcx
je 0x1400bc216
mov rax, qword [rax + 8]
cmp r11, qword [rax + 0x10]
jne 0x1400bc1f4
test rax, rax
cmove rax, r8
mov qword [rdx], rax
mov rax, rdx
mov rbx, qword [rsp + 8]
ret
xor eax, eax
mov rbx, qword [rsp + 8]
test rax, rax
cmove rax, r8
mov qword [rdx], rax
mov rax, rdx
ret
Function at 0x1400bf6a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1400bf6d8
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400bf570
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x1400bf877
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop
mov r10, qword [rcx + 0x10]
mov r11, qword [rsi + 0x30]
mov rax, r10
mov rdx, qword [rdx]
shr rax, 8
movzx r8d, al
mov rax, r10
shr rax, 0x10
movzx r9d, r10b
xor r9, rbp
imul r9, rdi
xor r9, r8
movzx r8d, al
imul r9, rdi
mov rax, r10
xor r9, r8
shr rax, 0x18
imul r9, rdi
movzx r8d, al
mov rax, r10
xor r9, r8
shr rax, 0x20
imul r9, rdi
movzx r8d, al
mov rax, r10
xor r9, r8
shr rax, 0x28
imul r9, rdi
movzx r8d, al
mov rax, r10
xor r9, r8
shr rax, 0x30
imul r9, rdi
movzx r8d, al
mov rax, r10
xor r9, r8
shr rax, 0x38
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1400bf7ec
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x1400bf866
mov rax, qword [r11 + 8]
cmp r10, qword [rax + 0x10]
jne 0x1400bf825
mov r10, qword [rax]
cmp r10, rcx
je 0x1400bf81f
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x1400bf866
mov r8, rax
cmp r9, rax
je 0x1400bf842
nop dword [rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r10, qword [rax + 0x10]
je 0x1400bf88c
cmp r9, rax
jne 0x1400bf830
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x1400bf740
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x1400bf866
Function at 0x1401b7760
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401b776d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401b777d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401b7765
lea eax, [rcx + 1]
jmp 0x1401b778b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401b779e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401b7784
sub eax, 3
jb 0x1401b77be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401b780d
sar eax, 1
movsxd rbp, eax
jb 0x1401b77f4
jmp 0x1401b77cc
add ebx, ebx
jne 0x1401b77ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401b77f4
inc ecx
add ebx, ebx
jne 0x1401b77da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401b77f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401b77ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401b77dc
add ecx, 2
jmp 0x1401b77f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401b7722
jmp 0x1401b776d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x14b200
mov dl, 0x15
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401b7859
cmp rsi, rcx
jae 0x1401b7861
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401b7840
cmp al, 0x8f
ja 0x1401b7840
cmp byte [rsi - 2], 0xf
je 0x1401b7846
sub al, 0xe8
cmp al, 1
ja 0x1401b782a
cmp rsi, rcx
jae 0x1401b7861
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401b7830
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401b7861
lodsb al, byte [rsi]
jmp 0x1401b7840
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1b4000]
mov eax, dword [rdi]
or eax, eax
je 0x1401b78be
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1b7444]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1401b786e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401b78b8
mov qword [rbx], rax
add rbx, 8
jmp 0x1401b788e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1401b7902
cmp al, 0xef
ja 0x1401b78ea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401b78ca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1401b78d9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1401b78d9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401b7956
sub rsp, 0xffffffffffffff80
jmp 0x140001cb0
Function at 0x14000335c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400033a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400033a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400033a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400033a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400033a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400033a8
xor al, al
add rsp, 0x28
ret

Function at 0x140a8f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a8f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a8f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a8f06f
add dl, dl
jne 0x140a8f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a8f0f6
xor eax, eax
add dl, dl
jne 0x140a8f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a8f1ad
add dl, dl
jne 0x140a8f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a8f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a8f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a8f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a8f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a8f07e
mov eax, 1
add dl, dl
jne 0x140a8f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a8f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a8f0fb
sub eax, ebx
mov ebx, 1
jne 0x140a8f14c
mov ecx, 1
add dl, dl
jne 0x140a8f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a8f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a8f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a8f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a8f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a8f15d
cmp eax, 0x7d00
jae 0x140a8f19b
cmp eax, 0x500
jb 0x140a8f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8f07e
cmp eax, 0x7f
ja 0x140a8f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a8f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a8f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400079f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000781c
Function at 0x14000cf28
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000cd54
Function at 0x14001116d
Capabilities:
Hide thread from debugger

Disassembly:
jmp 0x140012820
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x140026100]
call fcn.14001146f
mov dword [rbp + 4], 0x11
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x64], 0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x88], rax
lea rdx, str.NtSetInformationThread
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x11
mov rcx, rax
call qword [rbp + 0x28]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x1400128a4
mov dword [rbp + 0x64], 1
mov eax, dword [rbp + 0x64]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140011271
Capabilities:
Terminate process

Disassembly:
jmp 0x140014fd0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011320
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016320
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016340
xor al, al
jmp 0x1400163c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016353
xor al, al
jmp 0x1400163c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001637d
xor al, al
jmp 0x1400163c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016391
xor al, al
jmp 0x1400163c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400163a3
xor al, al
jmp 0x1400163c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400163bf
xor al, al
jmp 0x1400163c1
mov al, 1
add rsp, 0x38
ret

Function at 0x140011366
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
jmp 0x140012b20
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140020040]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x140026100]
call fcn.14001146f
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 0x28]
mov dword [rbp + 0xb4], eax
cmp dword [rbp + 0xb4], 2
jae 0x140012b80
mov eax, 1
jmp 0x140012bcb
mov dword [rbp + 0x60], 0x40
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor edx, edx
mov rax, qword [rbp + 0x68]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 2
jae 0x140012bc9
mov eax, 1
jmp 0x140012bcb
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001cee0]
call fcn.1400113e3
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.14001122b
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret

Function at 0x140011370
Capabilities:
Check if process is running under wine

Disassembly:
jmp 0x140012d30
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140026100]
call fcn.14001146f
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012d6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x140012d8e
lea rdx, str.wine_get_unix_file_name
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140012d89
xor eax, eax
jmp 0x140012d8e
mov eax, 1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x3a4da1473
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov qword [rbp + 0x110], 0
mov dword [rbp - 0x20], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x118], rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x3a4da15d9
jmp 0x3a4da15b8
mov rax, qword [rbp + 0x130]
lea rdx, [rbp - 0x20]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x3a4da15b8
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 0x18]
mov ecx, eax
call fcn.3a4da13c4
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov r10, qword [sym.a.dll_SizwlUdjXmRXYFRisSr]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x110]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call r10
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x3a4da159c
mov rax, qword [rbp + 0x110]
cmp rax, 0xffffffffffffffff
je 0x3a4da159c
mov rdx, qword [sym.a.dll_PbjaqnJqUbcFNAyxXNN]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x110]
jmp 0x3a4da15f3
mov rdx, qword [sym.a.dll_PbjaqnJqUbcFNAyxXNN]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
jmp 0x3a4da15f3
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
jne 0x3a4da14d8
mov rdx, qword [sym.a.dll_PbjaqnJqUbcFNAyxXNN]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
add rsp, 0x1a0
pop rbp
ret
Function at 0x3a4db1bf0
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 fcn.3a4dbbec0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.3a4dbbec0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x3a4db1c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3a4e8c104]
mov rbx, rcx
test esi, esi
jle 0x3a4db1d90
mov rax, qword [0x3a4e8c108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3a4db1cab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3a4db1d35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3a4db1c90
mov rcx, rbx
call fcn.3a4db24c0
mov rdi, rax
test rax, rax
je 0x3a4db1db2
mov rax, qword [0x3a4e8c108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3a4db2600
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3a4e8c108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3a4db1d97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3a4db1d2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3a4db1d40
add dword [0x3a4e8c104], 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 [0x3a4e8c108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3a4db1d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3a4db1bf0
nop dword [rax]
xor esi, esi
jmp 0x3a4db1cb8
mov rax, qword [0x3a4e8c108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3a4db1bf0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.3a4db1bf0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3a4db2130
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3a4e8c140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3a4e8c120]
test rbx, rbx
je 0x3a4db218c
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 0x3a4db2183
test rsi, rsi
je 0x3a4db2183
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3a4db2168
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 0x3a4db24c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x3a4db2540
Capabilities:
Parse pe header

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

Function at 0x3a4db2600
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a4e66490]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3a4db261f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3a4db2628
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x3a4db32c0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x3a4e8c1c0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x3a4e8c1c8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x3a4db3310
lea rdx, [0x3a4db31d0]
mov ecx, eax
mov dword [0x3a4e8c1b8], eax
call fcn.3a4dbc870
test eax, eax
jne 0x3a4db3318
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x3a4db3307
call sub.msvcrt.dll_abort
nop
nop
Function at 0x3a4db3320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x3a4e658d0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x3a4db3358
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x3a4db33c0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x3a4db33d0
mov esi, dword [0x3a4e8c1b8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x3a4db3440
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x3a4db3488
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x3a4db3347
mov rcx, rbx
call fcn.3a4db3220
mov qword [rsi + r12*8 + 8], rax
jmp 0x3a4db3347
call fcn.3a4db3220
mov qword [rbx + 0x10], rax
jmp 0x3a4db3347
mov r10d, dword [rsi]
test r10d, r10d
je 0x3a4db34ea
mov r9d, dword [0x3a4e5c210]
test r9d, r9d
je 0x3a4db3518
lock add dword [0x3a4e8c1c0], 1
jne 0x3a4db354c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x3a4db34f7
mov eax, dword [rsi]
test eax, eax
je 0x3a4db3361
lock sub dword [0x3a4e8c1c0], 1
js 0x3a4db3361
mov rcx, qword [0x3a4e8c1c8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x3a4db3361
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x3a4db3573
mov qword [rax], rdi
mov ecx, dword [0x3a4e8c1b8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x3a4db339b
call r13
jmp 0x3a4db339b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x3a4db3573
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x3a4db3463
call fcn.3a4db32c0
mov dword [0x3a4e5c210], 1
mov edx, dword [rsi]
test edx, edx
jne 0x3a4db33ec
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x3a4db3361
mov rax, qword [0x3a4e8c1b0]
lea r12, [rax + 1]
mov qword [0x3a4e8c1b0], r12
mov qword [rbx + 0x10], r12
jmp 0x3a4db3407
lock add dword [0x3a4e5c214], 1
je 0x3a4db34d1
mov r8d, dword [0x3a4e5c210]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x3a4e5c210]
test r8d, r8d
jne 0x3a4db34e0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x3a4db3540
jmp 0x3a4db34e0
mov rcx, qword [0x3a4e8c1c8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x3a4db33fa
lock sub dword [0x3a4e8c1c0], 1
jmp 0x3a4db33fa
call sub.msvcrt.dll_abort
nop
nop dword [rax]