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

Disassembly:
cmp rcx, qword [0x100008110]
jne 0x1000056ab
rol rcx, 0x10
test cx, 0xffff
jne 0x1000056a7
ret 0
ror rcx, 0x10
jmp 0x1000059ac
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100008220]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x100008318]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100005a31
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100008220]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x100005a53
mov rax, qword [rsp + 0x88]
mov qword [0x100008318], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000082b8], rax
mov rax, qword [0x100008318]
mov qword [0x100008190], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000082a0], rax
mov dword [0x100008180], 0xc0000409
mov dword [0x100008184], 1
mov rax, qword [0x100008110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100008118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001400]
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, 0x88
ret

Function at 0x100005848
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100005895
cmp rcx, 0xffffffffffffffff
je 0x100005895
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000588d
cmp dword [rcx + 0x3c], edx
jl 0x10000588d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000588d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100005895
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0xd8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp ecx, 2
je 0x1400010b7
lea rcx, str.USAGE:_AMS1_Patch.exe__PID__n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400012e0
add rsp, 0xd8
ret
mov rcx, qword [rdx + 8]
mov qword [rsp + 0xd0], rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xor edx, edx
mov r8d, eax
lea ecx, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x1400010fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_OpenProcess___u__n
call fcn.140001010
lea eax, [rdi + 2]
jmp 0x1400012a9
lea rcx, str.amsi.dll
mov qword [rsp + 0xe0], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.AmsiOpenSession
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xorps xmm0, xmm0
lea rdx, [0x1400032a0]
mov rbx, rax
lea rcx, [rsp + 0x50]
xor eax, eax
mov dword [rsp + 0xb0], eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, qword [rsp + 0x50]
lea rcx, str._n___The_Patch_:__p_n_n
call fcn.140001010
xor ecx, ecx
mov dword [rsp + 0x38], 0
xor eax, eax
mov qword [rsp + 0x40], 0x1000
nop
cmp byte [rax + rbx], 0x74
je 0x1400011aa
inc ecx
inc rax
cmp rax, 0x400
jl 0x140001190
mov rax, qword [rsp + 0x30]
jmp 0x1400011b0
movsxd rax, ecx
add rax, rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 4
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
jns 0x1400011f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_in_NtProtectVirtualMemory1___u__n
call fcn.140001010
jmp 0x14000129f
xor ecx, ecx
xor eax, eax
nop dword [rax]
cmp byte [rax + rbx], 0x74
je 0x14000121a
inc ecx
inc rax
cmp rax, 0x400
jl 0x140001200
mov rdx, qword [rsp + 0x30]
jmp 0x140001220
movsxd rdx, ecx
add rdx, rbx
mov r9d, 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
jns 0x140001257
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_in_NtWriteVirtualMemory___u__n
call fcn.140001010
jmp 0x14000129f
mov r9d, dword [rsp + 0x38]
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
jns 0x140001293
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_in_NtProtectVirtualMemory2___u__n
call fcn.140001010
jmp 0x14000129f
lea rcx, str._n___AMSI_patched____n_n
call fcn.140001010
mov rbx, qword [rsp + 0xe0]
xor eax, eax
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400012e0
add rsp, 0xd8
ret
Function at 0x1800253fc
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [0x180052720]
mov ecx, 0x11
add rbx, 8
movaps xmmword [rsp + 0x20], xmm6
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x18004cdf8]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x18002544f
test al, al
je 0x18002543c
movaps xmm3, xmm6
jmp 0x18002543f
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x1000
mov rcx, rbx
call fcn.1800021d0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x180025484
test al, al
je 0x180025471
movaps xmm3, xmm6
jmp 0x180025474
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x2000
mov rcx, rbx
call fcn.1800021d0
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x1800254b9
test al, al
je 0x1800254a6
movaps xmm3, xmm6
jmp 0x1800254a9
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x4000
mov rcx, rbx
call fcn.1800021d0
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x1800254ec
test al, al
jne 0x1800254d9
xorps xmm6, xmm6
movaps xmm3, xmm6
mov r8b, al
mov edx, 0x8000
mov rcx, rbx
call fcn.1800021d0
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
Function at 0x18003d000
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rcx, [0x1800527a0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18003d023
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
cmp qword [0x1800522d0], 0xffffffffffffffff
jne 0x18003d084
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
lea rcx, str.debuglog.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1800522d0], rax
cmp rax, 0xffffffffffffffff
jne 0x18003d084
xor r9d, r9d
lea r8, str.ASSERTION_FAILURE
lea rdx, str.Could_not_write_to_debuglog.txt
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x18003d0bb
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r8, rax
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rbx
mov rcx, qword [0x1800522d0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1800522d0]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [0x1800527a0]
add rsp, 0x40
pop rbx
jmp qword [sym.imp.MSVCP140.dll__Mtx_unlock]
sub dword [0x1d7dab7ea], edx
invalid
rcl esp, cl
test rax, 0xffffffffbe8f7220
cmp ah, cl
invalid
sbb edi, dword [rax + 0x4a7fa69b]
add eax, 0xd5f47d91
or dword [rsi], esi
jo 0x180096a2a
invalid
mov esi, 0xee06db3a
cmpsb byte [rsi], byte [rdi]
ret 0x529f
fmul qword [rbp - 0x7c]
invalid
Function at 0x18003ea94
Capabilities:
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, qword [0x180052738]
mov rsi, rcx
mov al, byte [rcx]
mov rdx, rcx
mov r8, rdi
movabs r9, 0xcbf29ce484222325
movabs rcx, 0x100000001b3
jmp 0x18003eade
inc rdx
movzx eax, al
xor r9, rax
imul r9, rcx
mov al, byte [rdx]
test al, al
jne 0x18003eacf
test rdi, rdi
je 0x18003eb03
mov al, byte [rdi]
xor r9, 0x3a
jmp 0x18003eafb
inc r8
movzx eax, al
xor r9, rax
mov al, byte [r8]
imul r9, rcx
test al, al
jne 0x18003eaef
mov r8, qword [0x180052828]
mov rbx, qword [0x180052820]
sub r8, rbx
sar r8, 5
test r8, r8
jle 0x18003eb50
or rbp, 0xffffffffffffffff
mov rdx, r8
shr rdx, 1
mov r11, rdx
shl r11, 5
cmp qword [r11 + rbx], r9
jae 0x18003eb46
add rbx, 0x20
mov rax, rbp
add rbx, r11
sub rax, rdx
add r8, rax
jmp 0x18003eb4b
jbe 0x18003eb67
mov r8, rdx
test r8, r8
jg 0x18003eb21
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, rbx
test rdx, rdx
je 0x18003eb9c
mov r10, rdx
shr r10, 1
mov rcx, r10
shl rcx, 5
cmp qword [rcx + rax], r9
jae 0x18003eb94
add rcx, 0x20
add rax, rcx
mov rcx, rbp
sub rcx, r10
add rdx, rcx
jmp 0x18003eb97
mov rdx, r10
test rdx, rdx
jg 0x18003eb6f
shl r8, 5
lea rcx, [rbx + 0x20]
add rcx, r11
sub r8, rcx
add r8, rbx
sar r8, 5
jmp 0x18003ebdb
mov r10, r8
shr r10, 1
mov rdx, r10
shl rdx, 5
cmp r9, qword [rdx + rcx]
jae 0x18003ebcb
mov r8, r10
jmp 0x18003ebdb
add rdx, 0x20
add rcx, rdx
mov rdx, rbp
sub rdx, r10
add r8, rdx
test r8, r8
jg 0x18003ebb3
cmp rax, rcx
je 0x18003eb50
cmp byte [rsi], 0
mov r10, rsi
mov r8, qword [rax + 8]
je 0x18003ec0e
mov r9b, byte [rsi]
mov dl, byte [r8]
inc r8
cmp r9b, dl
jne 0x18003ec3c
inc r10
mov r9b, byte [r10]
test r9b, r9b
jne 0x18003ebf8
mov dl, byte [r8]
inc r8
cmp dl, 0x3a
jne 0x18003ec3c
mov r9b, byte [rdi]
mov r10, rdi
jmp 0x18003ec32
mov dl, byte [r8]
inc r8
cmp r9b, dl
jne 0x18003ec3c
inc r10
mov r9b, byte [r10]
test r9b, r9b
jne 0x18003ec21
cmp byte [r8], r9b
je 0x18003ec42
add rax, 0x20
jmp 0x18003ebe0
mov rax, qword [rax + 0x10]
jmp 0x18003eb52
Function at 0x180041690
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x180093b90]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x1800416c6
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800416fc
mov eax, 0xa
jmp 0x180041788
test esi, esi
je 0x18004171e
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18004173f
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18004173f
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180041739
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18004173f
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180041cac
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180041d10
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180041cfe
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180041cf7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180041ccb
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180052648]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180041dac
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180041df6
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x180093b88]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x180041e34
cmp rbx, r14
jb 0x180041e2f
cmp rbx, r12
jae 0x180041e2f
cmp qword [rbx + 8], rsi
jne 0x180041f8b
mov rbx, qword [rbx]
jmp 0x180041e16
mov r15, rdi
cmp rdi, r14
jb 0x180041eb8
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x180041eaf
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180041eaf
cmp dword [rbp - 0x10], 0x10000
je 0x180041e7f
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180041eaf
jmp 0x180041e4b
test r15, r15
je 0x180041eaf
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180041f50
cmp r15, r14
jae 0x180041e3c
test rbx, rbx
jne 0x180041f50
cmp rdi, r12
ja 0x180041f8b
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x180041f8b
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180041f8b
cmp dword [rbp - 0x10], 0x10000
je 0x180041f26
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x180041edf
test rdi, rdi
je 0x180041f8b
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x180041eb2
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x180041f5c
mov rax, qword [0x180093b88]
mov qword [rbx], rax
mov qword [0x180093b88], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180042324
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18004233b
cmp r8b, 0x90
je 0x18004233b
cmp r8b, 0xcc
jne 0x18004235d
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180042359
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18004235d
add edx, r10d
cmp edx, r9d
jb 0x180042349
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x14005042e
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400bc9b4
xor r8d, r8d
xor edx, edx
jmp 0x1400bc6a4
Function at 0x1400515e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400ee330
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140117480]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x14011a668]
xor r11d, r11d
lea rdi, [0x1400ff044]
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 0x1400ee3a0
mov rax, 0xfffffffffffffffe
jmp 0x1400ee4ed
cmp word [r10 + 6], r11w
jne 0x1400ee40f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400ee3ca
test r14, r14
je 0x1400ee3bb
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400ee4ed
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400ee3d8
mov r8b, 2
jmp 0x1400ee3f6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400ee3e6
mov r8b, 3
jmp 0x1400ee3f6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400ee4e2
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 0x1400ee438
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400ee4e2
cmp bl, bpl
jb 0x1400ee4e2
cmp bl, r8b
jae 0x1400ee4e2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400ee465
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400ee4e2
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 0x1400ee447
cmp r9, rbp
jae 0x1400ee491
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400ee394
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400ee4e2
cmp edx, 0x110000
jae 0x1400ee4e2
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 0x1400ee4e2
test r14, r14
je 0x1400ee4d0
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1400534e9
jmp 0x1400ee4ed
mov rdx, rsi
mov rcx, r10
call fcn.140053d22
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140051ba8
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x140062984
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140062a11
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140062a11
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140062a11
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 0x1400629f8
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400629f2
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400629fa
add rdx, 0x28
jmp 0x1400629d7
xor edx, edx
test rdx, rdx
jne 0x140062a03
xor al, al
jmp 0x140062a17
cmp dword [rdx + 0x24], 0
jge 0x140062a0d
xor al, al
jmp 0x140062a17
mov al, 1
jmp 0x140062a17
xor al, al
jmp 0x140062a17
add rsp, 0x18
ret
Function at 0x140051d4c
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400709a8
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140100008]
mov ecx, 2
lea r8, [0x140100000]
lea rdx, str.FlsGetValue
call fcn.140070478
mov ecx, ebx
test rax, rax
je 0x1400709e2
add rsp, 0x20
pop rbx
jmp qword [0x140126020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x140051ecd
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400d80f8
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 0x1400d8128
xor eax, eax
jmp 0x1400d81eb
mov rbp, rbx
cmp word [rax], si
je 0x1400d814d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400d8134
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400d8130
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.140052ae4
movsxd r14, eax
test eax, eax
jne 0x1400d818b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400d8121
mov rcx, r14
call fcn.140050041
mov rdi, rax
test rax, rax
jne 0x1400d81a4
xor ecx, ecx
call fcn.1400501ae
jmp 0x1400d8180
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.140052ae4
test eax, eax
jne 0x1400d81d5
mov rcx, rdi
call fcn.1400501ae
jmp 0x1400d81df
xor ecx, ecx
call fcn.1400501ae
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 0x140051ee1
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400708f8
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400fffc8]
xor ecx, ecx
lea r8, [0x1400fffc0]
lea rdx, str.FlsAlloc
call fcn.140070478
test rax, rax
je 0x140070931
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x140126020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140051f6d
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400c5424
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, [0x1401025e8]
mov rbp, rcx
lea r8, [0x1401025e0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.1400c4944
test rax, rax
je 0x1400c5484
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x140126030]
jmp 0x1400c549e
xor edx, edx
mov rcx, rbp
call fcn.140051694
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 0x140051f81
Capabilities:
Terminate process

Disassembly:
jmp 0x14006218c
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 0x140052116
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400bc948
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400bc6a4
Function at 0x14005271a
Capabilities:
Parse pe header

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

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