joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f3c0
Capabilities:
Create directory
Extract resource via kernel32 functions

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140014b60
sub rsp, rax
mov eax, dword [0x14002a0c0]
mov rsi, rcx
test eax, eax
je 0x14000f460
xor ebx, ebx
lea rdi, [0x1400280c0]
test eax, eax
jg 0x14000f3fc
jmp 0x14000f410
add rbx, 1
cmp dword [0x14002a0c0], ebx
jle 0x14000f410
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x14000f3f0
jmp 0x14000f447
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
cmp rax, 2
jne 0x14000f425
cmp word [rsi + 2], 0x3a
je 0x14000f447
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f4b0
movsxd rbx, dword [0x14002a0c0]
cmp ebx, 0x3ff
jle 0x14000f4c8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str._HOME_
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.1400075a0
test al, al
je 0x14000f4ea
movsxd rbx, dword [0x14002a0c0]
mov rcx, rdi
lea rdi, [0x1400280c0]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x14002a0c0]
add eax, 1
mov dword [0x14002a0c0], eax
jmp 0x14000f3e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f434
xor eax, eax
jmp 0x14000f44c
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
add dword [0x14002a0c0], 1
mov rdx, rax
lea rax, [0x1400280c0]
mov qword [rax + rbx*8], rdx
jmp 0x14000f447
mov rcx, rbx
call fcn.140007c50
nop
nop word cs:[rax + rax]
nop
Function at 0x140013dc0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140014ba0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140013e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002a144]
mov rbx, rcx
test esi, esi
jle 0x140013f60
mov rax, qword [0x14002a148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140013e7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140013f05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013e60
mov rcx, rbx
call fcn.140014880
mov rdi, rax
test rax, rax
je 0x140013f82
mov rax, qword [0x14002a148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400149c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002a148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013f67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140013efe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013f10
add dword [0x14002a144], 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 [0x14002a148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140013efe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140013dc0
nop dword [rax]
xor esi, esi
jmp 0x140013e88
mov rax, qword [0x14002a148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140013dc0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140013dc0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400144f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002a1a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002a180]
test rbx, rbx
je 0x14001454c
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 0x140014543
test rsi, rsi
je 0x140014543
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014528
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 0x140014880
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140014900
Capabilities:
Parse pe header

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

Function at 0x1400149c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140018640]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400149df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400149e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x10000129c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret

Function at 0x1000014b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100003740], rdi
je 0x1000014fe
cmp rax, rdi
jne 0x1000014f1
mov edi, 1
mov r12d, edi
jmp 0x100001503
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1000014d5
mov edi, 1
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x100001519
mov ecx, 0x1f
call fcn.100154000
jmp 0x100001576
mov eax, dword [0x100003738]
test eax, eax
jne 0x100001570
mov dword [0x100003738], edi
lea r13, [0x1000011a0]
lea rsi, [0x100001188]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100001562
test eax, eax
jne 0x100001562
mov rcx, qword [rsi]
test rcx, rcx
je 0x100001557
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100001540
test eax, eax
je 0x100001576
mov eax, 0xff
jmp 0x100001648
mov dword [0x100003164], edi
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x10000159d
lea rdx, [0x100001180]
lea rcx, [0x100001170]
call sub.msvcrt.dll__initterm
mov dword [0x100003738], 2
test r12d, r12d
jne 0x1000015ab
xor eax, eax
xchg qword [0x100003740], rax
cmp qword [0x100003748], 0
je 0x1000015d4
lea rcx, [0x100003748]
call fcn.10000189c
test eax, eax
je 0x1000015d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003748]
mov r8, qword [0x100003148]
mov rdx, qword [0x100003150]
mov ecx, dword [0x100003140]
call fcn.100001440
mov dword [0x100003160], eax
cmp dword [0x100003144], 0
jne 0x100001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003164], 0
jne 0x100001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003160]
jmp 0x100001648
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.1000019b0
add rsp, 0x28
jmp 0x1000014b0

Function at 0x100001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001955
cmp rcx, 0xffffffffffffffff
je 0x100001955
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000194d
cmp dword [rcx + 0x3c], edx
jl 0x10000194d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000194d
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 0x100001955
mov rax, rdx
add rsp, 0x18
ret
Function at 0x769a70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x769a7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x769a8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x769a75
lea eax, [rcx + 1]
jmp 0x769a9b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x769aae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x769a94
sub eax, 3
jb 0x769ace
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x769b1d
sar eax, 1
movsxd rbp, eax
jb 0x769b04
jmp 0x769adc
add ebx, ebx
jne 0x769ada
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x769b04
inc ecx
add ebx, ebx
jne 0x769aea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x769b04
call r11
adc ecx, ecx
add ebx, ebx
jne 0x769afd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x769aec
add ecx, 2
jmp 0x769b09
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00769a32
jmp 0x769a7d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x114200
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x769b69
cmp rsi, rcx
jae 0x769b71
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x769b50
cmp al, 0x8f
ja 0x769b50
cmp byte [rsi - 2], 0xf
je 0x769b56
sub al, 0xe8
cmp al, 1
ja 0x769b3a
cmp rsi, rcx
jae 0x769b71
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x769b40
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x769b71
lodsb al, byte [rsi]
jmp 0x769b50
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x361000]
mov eax, dword [rdi]
or eax, eax
je 0x769bce
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x369000]
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 0x769b7e
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 0x769bc8
mov qword [rbx], rax
add rbx, 8
jmp 0x769b9e
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 0x769c12
cmp al, 0xef
ja 0x769bfa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x769bda
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x769be9
mov eax, dword [rdi]
add rdi, 4
jmp 0x769be9
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 + 0x1af]
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 0x769c66
sub rsp, 0xffffffffffffff80
jmp 0x46aa20
Function at 0x180884cc7
Capabilities:
Execute anti-debugging instructions

Disassembly:
add r9, 0xc
xor edi, edi
call fcn.180881c70
mov eax, 0x438f1ba2
mov edx, eax
or dl, dh
rdtsc
sbb r8, 8
mov dword [r8 + 4], eax
mov dword [r8], edx
push 0x19084013
lea rsp, [rsp + 8]
jmp fcn.180893de6

Function at 0x180893fbe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0x6a17d6a2
adc rsi, 6
mov word [rsi], r9w
lea rsp, [rsp + 8]
jmp fcn.18089192a
add rsi, 6
mov qword [rsp], 0x21396b0c
mov word [rsi], di
lea rsp, [rsp + 8]
jmp fcn.18089192a
jle 0x18088418f
mov r8d, 0x8f94f6a0
shr r8b, 0x47
mov r8, qword [rsi]
mov r9d, 0x51166e82
setae r9b
mov r9w, word [r8 + r9 - 0x51166e01]
ja 0x180873edc

Function at 0x1808aa035
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [rax + r8 - 0x631cc635]
call fcn.1808a6c31
mov ebp, 0x3409b7be
lea r9, [rbp + rbp + 0x283ebc2f]
mov rsp, rsi
movzx r11d, r9w
jmp 0x18089f380
Function at 0x140002280
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x28
ret

Function at 0x14000229c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret
Function at 0x1400026e0
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7f60]
mov eax, 0x8060
call fcn.140014cf0
sub rsp, rax
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rbp + 0x7f50], rax
xor ebx, ebx
mov r15, rdx
and qword [rsp + 0x30], rbx
mov r14d, r8d
and dword [rsp + 0x28], ebx
mov r12, rcx
and dword [rsp + 0x40], ebx
xor r9d, r9d
and dword [rsp + 0x44], ebx
xor r8d, r8d
and dword [rsp + 0x48], ebx
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x20], 2
xor esi, esi
call fcn.14000222c
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000276b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400027fd
and dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400027ef
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400027ef
mov ecx, 0x8000
lea r9, [rsp + 0x44]
cmp eax, ecx
lea rdx, [rsp + 0x50]
mov r8d, ecx
mov rcx, r12
cmovb r8d, eax
mov dword [rsp + 0x40], r8d
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400027ef
mov r8d, dword [rsp + 0x44]
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000229c
test eax, eax
je 0x1400027e7
mov eax, dword [rsp + 0x44]
cmp eax, dword [rsp + 0x48]
jne 0x1400027e7
add esi, eax
cmp dword [rsp + 0x40], ebx
jbe 0x1400027ef
jmp 0x14000276b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x1400027fd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140002811
cmp r14d, 0xffffffff
je 0x140002819
cmp r14d, esi
je 0x140002819
mov ebx, 0xfeb0
mov rcx, r15
call fcn.140002280
mov eax, ebx
mov rcx, qword [rbp + 0x7f50]
xor rcx, rsp
call fcn.140003e10
lea r11, [rsp + 0x8060]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000a30c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000a0e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a0e0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a0e0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a0e0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a0e0
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a0e0
cmp dword [rcx + 0xf8], esi
je 0x14000a0e0
mov ecx, r14d
call fcn.14000a228
mov ecx, 2
call fcn.14000da14
nop
cmp byte [0x140023290], 0
jne 0x14000a1aa
mov r15d, 1
mov eax, r15d
xchg dword [0x140023280], eax
test ebx, ebx
jne 0x14000a153
mov rdi, qword [0x140022008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140023288]
cmp rcx, rax
je 0x14000a14a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140007a60]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400234d0]
jmp 0x14000a15f
cmp ebx, r15d
jne 0x14000a165
lea rcx, [0x1400234e8]
call fcn.14000ad9c
nop
test ebx, ebx
jne 0x14000a17c
lea rdx, [0x1400163f8]
lea rcx, [0x1400163d8]
call fcn.14000b068
lea rdx, [0x140016408]
lea rcx, [0x140016400]
call fcn.14000b068
movzx eax, byte [0x140023290]
test esi, esi
cmove eax, r15d
mov byte [0x140023290], al
jmp 0x14000a1aa
mov ecx, 2
call fcn.14000da68
test esi, esi
jne 0x14000a1c1
mov ecx, r14d
call fcn.14000a1dc
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000a070
Function at 0x415660
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4157eb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0067e6a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4156c5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4156d4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4156f3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415703
cmp rbx, 0x1000
jae 0x4156cb
jmp 0x41576d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415715
xor edx, edx
jmp 0x415764
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0067e6a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4156f9
jmp 0x4156e8
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0067e6a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x00539390]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x00539a77]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0053c82d]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x415820
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415a46
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x0067e6a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x415893
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4158a2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x4158c5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x4158d5
cmp rbx, 0x1000
jae 0x415899
nop
jmp 0x415958
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x4158ed
xor esi, esi
jmp 0x41594a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x0067e6a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x4158cb
jmp 0x4158b6
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0067e6a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x4159e0
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x00539a90]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x00539a77]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0053482d]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x415980
call sym.runtime.printlock
lea rax, [0x00539a90]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x00539a77]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0053bf53]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS