joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070ea0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140070ead
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140070ebd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140070ea5
lea eax, [rcx + 1]
jmp 0x140070ecb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140070ede
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140070ec4
sub eax, 3
jb 0x140070efe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140070f4d
sar eax, 1
movsxd rbp, eax
jb 0x140070f34
jmp 0x140070f0c
add ebx, ebx
jne 0x140070f0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140070f34
inc ecx
add ebx, ebx
jne 0x140070f1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140070f34
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140070f2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140070f1c
add ecx, 2
jmp 0x140070f39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140070e62
jmp 0x140070ead
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140070f99
cmp rsi, rcx
jae 0x140070fa1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140070f80
cmp al, 0x8f
ja 0x140070f80
cmp byte [rsi - 2], 0xf
je 0x140070f86
sub al, 0xe8
cmp al, 1
ja 0x140070f6a
cmp rsi, rcx
jae 0x140070fa1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140070f70
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140070fa1
lodsb al, byte [rsi]
jmp 0x140070f80
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6e000]
mov eax, dword [rdi]
or eax, eax
je 0x14007100a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8c1a8]
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 0x140070fae
jns 0x140070fe3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140070fed
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 0x140071004
mov qword [rbx], rax
add rbx, 8
jmp 0x140070fce
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 0x140071044
cmp al, 0xef
ja 0x140071036
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140071016
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140071025
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 + 0x237]
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 0x140071098
sub rsp, 0xffffffffffffff80
jmp 0x14000afb0
Function at 0x140001510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
movzx ebx, dx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8d, [rsi + 0xa]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000154c
mov qword [rdi], rsi
jmp 0x140001612
mov rdx, rbx
mov qword [rsp + 0x70], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
jne 0x14000156c
mov qword [rdi], rsi
jmp 0x14000160d
mov qword [rsp + 0x38], r14
mov rcx, rbp
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov r14, rsi
test eax, eax
je 0x1400015f7
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x14000162b
cmp rbx, 0x1000
jb 0x1400015da
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140001625
call fcn.140003f20
test rax, rax
je 0x1400015d3
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x1400015e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140003f20
mov r14, rax
mov r8, rbx
mov rdx, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
lea rsi, [r14 + rbx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r15, qword [rsp + 0x30]
mov qword [rdi], r14
mov r14, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x70]
mov qword [rdi + 0x10], rsi
mov rax, rdi
mov qword [rdi + 8], rsi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.140001110
int3
call fcn.140003e70
int3
Function at 0x140002380
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400023a1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400023ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400023d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002429
test ecx, ecx
jle 0x140002409
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002429
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002429
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
out dx, eax
hlt
Function at 0x140002450
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002472
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002481
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400024a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400024a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400024e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000257e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000251d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000255e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000257e
cmp rbx, rax
ja 0x140002530
test rbx, rbx
je 0x14000257e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
out dx, al
cmpsd dword [rsi], dword [rdi]
mov dh, 0xe1
and edi, dword [rbp + 0x7af50a11]
push 0xffffffffffffffbf
invalid
Function at 0x1400029f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002a1d
xor eax, eax
jmp 0x140002b89
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002a57
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002a57
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002b89
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002b7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002a9a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002ac5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002b81
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002b34
sub eax, 1
je 0x140002b34
cmp eax, 2
jne 0x140002b7c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002b81
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002b62
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002b7c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002b81
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003f00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002f60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000303a
cmp byte [rcx + 0x71], 0
je 0x14000303a
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [0x140006410]
cmp eax, 0xffffffff
je 0x140003036
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002ffb
sub eax, 1
je 0x140002fff
cmp eax, 2
jne 0x140003036
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003f00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000302d
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140003036
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002fe3
xor al, al
jmp 0x140002fe3
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003f00
add rsp, 0x60
pop rbx
ret

Function at 0x1400048e4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x180057214
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x180057260
test rbx, rbx
je 0x18005724f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1800017fd
cmp eax, 1
je 0x180057260
mov eax, 4
jmp 0x1800572a3
call fcn.1800039bd
cmp eax, 2
jne 0x18005729c
call fcn.18000185c
test al, al
je 0x18005729c
call fcn.180002b21
test al, al
jne 0x180057292
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.1800039f9
jmp 0x1800572a3
call fcn.1800038a0
mov rcx, rax
jmp 0x180057282
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000216c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180076bb0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18009b040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x18009db78]
xor r11d, r11d
lea rdi, [0x180085744]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x180076c20
mov rax, 0xfffffffffffffffe
jmp 0x180076d6d
cmp word [r10 + 6], r11w
jne 0x180076c8f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x180076c4a
test r14, r14
je 0x180076c3b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x180076d6d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x180076c58
mov r8b, 2
jmp 0x180076c76
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x180076c66
mov r8b, 3
jmp 0x180076c76
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x180076d62
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x180076cb8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x180076d62
cmp bl, bpl
jb 0x180076d62
cmp bl, r8b
jae 0x180076d62
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x180076ce5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x180076d62
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x180076cc7
cmp r9, rbp
jae 0x180076d11
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x180076c14
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x180076d62
cmp edx, 0x110000
jae 0x180076d62
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x180076d62
test r14, r14
je 0x180076d50
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1800039f4
jmp 0x180076d6d
mov rdx, rsi
mov rcx, r10
call fcn.18000405c
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800025f4
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800021b2
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x180008a18
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180008aa5
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x180008aa5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180008aa5
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180008a8c
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180008a86
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180008a8e
add rdx, 0x28
jmp 0x180008a6b
xor edx, edx
test rdx, rdx
jne 0x180008a97
xor al, al
jmp 0x180008aab
cmp dword [rdx + 0x24], 0
jge 0x180008aa1
xor al, al
jmp 0x180008aab
mov al, 1
jmp 0x180008aab
xor al, al
jmp 0x180008aab
add rsp, 0x18
ret

Function at 0x1800024eb
Capabilities:
Get system information on windows

Disassembly:
jmp 0x18007a040
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18007a06e
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x18007a0c7
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x18007a0c7
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x18007a0b9
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x18000272f
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180017588
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1800868b0]
mov ecx, 2
lea r8, [0x1800868a8]
lea rdx, str.FlsGetValue
call fcn.180017058
mov ecx, ebx
test rax, rax
je 0x1800175c2
add rsp, 0x20
pop rbx
jmp qword [0x1800a8020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x180002879
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005ce0c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18005ce3c
xor eax, eax
jmp 0x18005ceff
mov rbp, rbx
cmp word [rax], si
je 0x18005ce61
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005ce48
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005ce44
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800031f7
movsxd r14, eax
test eax, eax
jne 0x18005ce9f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005ce35
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005ceb8
xor ecx, ecx
call fcn.180001168
jmp 0x18005ce94
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800031f7
test eax, eax
jne 0x18005cee9
mov rcx, rdi
call fcn.180001168
jmp 0x18005cef3
xor ecx, ecx
call fcn.180001168
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18000287e
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1800174d8
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x180086870]
xor ecx, ecx
lea r8, [0x180086868]
lea rdx, str.FlsAlloc
call fcn.180017058
test rax, rax
je 0x180017511
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800a8020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1800028fb
Capabilities:
Get geographical location

Disassembly:
jmp 0x18005f264
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1800889a8]
mov rbp, rcx
lea r8, [0x1800889a0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.18005e784
test rax, rax
je 0x18005f2c4
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1800a8030]
jmp 0x18005f2de
xor edx, edx
mov rcx, rbp
call fcn.180002207
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18000290a
Capabilities:
Terminate process

Disassembly:
jmp 0x18007ad0c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x180002a4f
Capabilities:
Parse pe header

Disassembly:
jmp 0x18001f8b8
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x18001f614

Function at 0x180002bda
Capabilities:
Parse pe header

Disassembly:
jmp 0x18007ab00
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18007ab28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18007ab28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x180003170
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007aa40
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x18007aa81
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x18007aa75
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x18007aa83
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x18007aa63
xor eax, eax
ret

Function at 0x18000335a
Capabilities:
Terminate process

Disassembly:
jmp 0x180051508
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180051522
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.180003a03
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]