joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f580
Capabilities:
Encode data using xor

Disassembly:
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, 0x20
mov r10, qword [0x14004b240]
xor ebx, ebx
mov bpl, r9b
mov r14b, r8b
mov rsi, rdx
mov rdi, rcx
test r10, r10
jne 0x14000f621
cmp byte [0x14004b238], bl
jne 0x14000f621
lea rcx, str.Crypt32.dll
call fcn.1400107d4
mov qword [0x14004b230], rax
test rax, rax
je 0x14000f60a
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14004b230]
lea rdx, str.CryptUnprotectMemory
mov qword [0x14004b240], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, rax
mov qword [0x14004b248], rax
jmp 0x14000f611
mov r9, qword [0x14004b248]
mov r10, qword [0x14004b240]
mov byte [0x14004b238], 1
jmp 0x14000f628
mov r9, qword [0x14004b248]
mov rax, rsi
mov rcx, rsi
and eax, 0xf
mov r8d, ebx
sub rcx, rax
test bpl, bpl
setne r8b
test r14b, r14b
je 0x14000f681
test r10, r10
je 0x14000f69b
mov edx, ecx
mov rcx, rdi
call r10
test eax, eax
jne 0x14000f6b6
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x140045fd8]
mov rcx, rbx
call fcn.14000712c
mov rcx, rbx
call fcn.140007300
mov edx, 2
mov rcx, rbx
call fcn.140007124
jmp 0x14000f6b6
test r9, r9
je 0x14000f69b
mov edx, ecx
mov rcx, rdi
call r9
test eax, eax
jne 0x14000f6b6
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14000f65b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rsi, rsi
je 0x14000f6b6
add al, 0x4b
lea ecx, [rbx + rax]
xor byte [rbx + rdi], cl
inc rbx
cmp rbx, rsi
jb 0x14000f6a8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000fca8
Capabilities:
Hash data using sha1

Disassembly:
and dword [rcx + 0x18], 0
and dword [rcx + 0x14], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret

Function at 0x14000fdcc
Capabilities:
Hash data using sha256

Disassembly:
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, 0x140
mov rsi, qword [rcx + 0x20]
lea rbp, [rcx + 0x30]
mov edi, dword [rcx + 0x20]
mov r14, rdx
shl rsi, 3
mov rbx, rcx
and edi, 0x3f
mov qword [rcx + 0x28], rbp
mov byte [rdi + rcx + 0x30], 0x80
jmp 0x14000fe1d
and edi, 0x3f
jne 0x14000fe18
mov rcx, rbx
call fcn.140010004
mov byte [rdi + rbx + 0x30], 0
inc edi
cmp edi, 0x38
jne 0x14000fe0b
lea edx, [rdi - 0x30]
mov rcx, rsi
shl rsi, 8
shr rcx, 0x38
mov byte [rdi + rbx + 0x30], cl
inc edi
sub rdx, 1
jne 0x14000fe27
mov rcx, rbx
call fcn.140010004
xor r8d, r8d
xor r9d, r9d
mov eax, r8d
mov ecx, 3
and eax, 3
inc r8d
sub ecx, eax
mov rax, r9
shr rax, 2
inc r9
shl ecx, 3
mov edx, dword [rbx + rax*4]
shr edx, cl
mov byte [r14], dl
inc r14
cmp r8d, 0x20
jb 0x14000fe4c
mov dword [rbx], 0x6a09e667
lea rcx, [rsp + 0x20]
mov dword [rbx + 4], 0xbb67ae85
mov edx, 0x20
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
and qword [rbx + 0x20], 0
call fcn.14000f73c
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.14000f73c
mov edx, 0x40
mov rcx, rbp
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
jmp fcn.14000f73c

Function at 0x14000ff00
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x20], 0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x1400107d4
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1020
call fcn.140021b80
sub rsp, rax
mov rbx, rcx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400107fe
xor eax, eax
jmp 0x140010821
mov r9d, 0x800
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000c2c0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
add rsp, 0x1020
pop rbx
ret
Function at 0x140011248
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x1400112ea
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140011480]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1400112c0
lea rdx, str.CreateThread_failed
lea rcx, [0x140045fd8]
call fcn.14000712c
lea rcx, [0x140045fd8]
call fcn.140007300
lea edx, [rsi + 2]
lea rcx, [0x140045fd8]
call fcn.140007124
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x108]
mov edx, dword [0x14004b8a0]
test edx, edx
je 0x1400112e0
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x140011264
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001b9cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor ebx, ebx
mov r15, r8
mov qword [rbp + 0x38], rbx
mov rdi, rdx
mov qword [rbp + 0x48], rbx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
mov rax, qword [rdi]
lea rdx, [rbp + 0x38]
mov rcx, rdi
call qword [rax + 0x90]
test eax, eax
js 0x14001ba15
cmp qword [rbp + 0x38], rbx
jne 0x14001ba67
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x7d0
ja 0x14001ba67
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, [rbp - 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001b9fb
xor r9d, r9d
lea rcx, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14001b9fb
mov rax, qword [rdi]
lea rdx, [rbp + 0x38]
mov rcx, rdi
call qword [rax + 0x90]
mov edi, eax
test eax, eax
js 0x14001badc
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14001bad3
mov rax, qword [rcx]
lea r8, [rbp + 0x48]
lea rdx, [0x140036370]
call qword [rax]
mov edi, eax
test eax, eax
js 0x14001bac5
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov edi, eax
test eax, eax
js 0x14001babb
mov rcx, qword [rbp + 0x48]
mov rdx, r15
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edi, eax
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x38]
test edi, edi
js 0x14001badc
test rcx, rcx
jne 0x14001bb49
cmp qword [rsi + 0x10], rbx
je 0x14001bb49
cmp qword [rsi + 0x30], rbx
jne 0x14001bb49
mov rdx, qword [rsi + 0x28]
test rdx, rdx
je 0x14001bb49
mov rcx, rsi
call fcn.14001c198
mov r14, rax
test rax, rax
je 0x14001bb49
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov dword [rsp + 0x30], 0x204
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rsi + 0x10]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsi + 0x10]
mov rdx, r14
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, r14
call fcn.140025c60
mov rbx, qword [rsp + 0xa0]
test edi, edi
setns al
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001cad0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14001cf34
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001d19c
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1060
call fcn.140021b80
sub rsp, rax
mov edx, 0x800
lea rcx, [rsp + 0x60]
call fcn.14001cad0
xor ebx, ebx
cmp byte [0x140052b8c], bl
jne 0x14001d235
lea rcx, [rsp + 0x60]
call fcn.14000c674
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.140012244
test eax, eax
jne 0x14001d235
lea rcx, [0x140034b74]
call fcn.14001cf34
lea rcx, [rsp + 0x60]
call fcn.140025c44
xor edx, edx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
call fcn.1400228f0
lea eax, [rbx + 0x14]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x1060
pop rbx
ret

Function at 0x14001d29c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x170
xor ebp, ebp
mov rdi, r8
cmp qword [0x140043180], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x14001d304
lea r9d, [rbp + 0x64]
mov ecx, 0x400
lea r8, [rax - 0xd8]
lea edx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0xa0]
mov word [0x140060478], ax
lea rax, [0x140060478]
mov qword [0x140043180], rax
mov word [0x14006047a], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400104a8
lea r9, [0x140043168]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x30]
mov word [rbx], bp
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea r11, [rsp + 0x170]
mov word [rbx + rdi*2 - 2], bp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001d534
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f40]
mov eax, 0x2040
call fcn.140021b80
sub rsp, rax
xor esi, esi
mov rdi, rdx
cmp byte [0x140052b98], sil
mov rbx, rcx
je 0x14001d615
lea rdx, [rbp + 0xf40]
call fcn.14001ece8
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001d615
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1f70]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1f78]
lea rax, [rsp + 0x40]
mov dword [rbp + 0x1f70], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001d60a
mov edx, dword [rbp + 0x1f70]
mov ecx, 0x7ff
shr edx, 1
mov r8, rdi
cmp edx, ecx
mov eax, edx
mov dword [rbp + 0x1f70], edx
lea rdx, [rsp + 0x40]
cmovb ecx, eax
mov word [rsp + rcx*2 + 0x40], si
mov rcx, rbx
call fcn.1400105c4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2040
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001d700
Capabilities:
Query environment variable

Disassembly:
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
mov eax, 0x2020
call fcn.140021b80
sub rsp, rax
xor r14d, r14d
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x14001d733
mov byte [r9], r14b
mov rcx, qword [rsp + 0x2050]
test rcx, rcx
je 0x14001d743
mov byte [rcx], r14b
test rbx, rbx
je 0x14001d7f8
movzx eax, word [rbx]
test ax, ax
je 0x14001d7f8
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x14001d788
test rsi, rsi
je 0x14001d794
test rdi, rdi
jne 0x14001d794
test r9, r9
je 0x14001d783
mov byte [r9], 1
mov rdi, rdx
jmp 0x14001d7a3
cmp ax, 0xd
je 0x14001d7b5
cmp ax, 0xa
je 0x14001d7b9
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x14001d7b0
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x14001d766
jmp 0x14001d7b9
mov byte [rcx], 1
jmp 0x14001d7b9
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x14001d7f3
mov word [rsi], r14w
test rdi, rdi
je 0x14001d7f3
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400105c4
mov word [rdi], r14w
mov rax, rbx
jmp 0x14001d7fa
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14001d818
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
test eax, eax
sete bl
test bl, bl
je 0x14001d87d
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x14001d880
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140020200
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x14004bb54], 0
mov edx, 1
mov rbx, rcx
mov byte [0x14004bb4c], 1
mov byte [0x14004bb4d], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.1400014f8
cmp qword [0x140052b70], 0
jne 0x14002024b
cmp byte [0x14004bb52], 0
je 0x140020254
cmp dword [0x14004bb48], 0
jne 0x140020269
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x140020344
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.140021b80
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x140052b98], dil
je 0x140020410
cmp word [0x14005f470], di
je 0x140020410
lea rdx, [rsp + 0x50]
lea rcx, [0x14005f470]
call fcn.14001ece8
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140020410
mov rcx, rbx
call fcn.140025c44
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x140020424
Capabilities:
Set environment variable

Disassembly:
push rbx
mov eax, 0x2020
call fcn.140021b80
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140010364
mov rbx, rax
test rax, rax
je 0x140020486
movzx ecx, word [rax]
jmp 0x14002046d
add rbx, 2
movzx ecx, word [rbx]
call fcn.140010480
test al, al
jne 0x140020466
mov rdx, rbx
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x2020
pop rbx
ret
Function at 0x140021ea4
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140021f35
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140021f35
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140021f35
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140021f19
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140021f13
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140021f1b
add rdx, 0x28
jmp 0x140021ef8
xor edx, edx
test rdx, rdx
jne 0x140021f24
xor al, al
jmp 0x140021f3b
test dword [rdx + 0x24], 0x80000000
je 0x140021f31
xor al, al
jmp 0x140021f3b
mov al, 1
jmp 0x140021f3b
xor al, al
jmp 0x140021f3b
add rsp, 0x18
ret

Function at 0x140028d70
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 0x140028b44
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028b44
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140028b44
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140028b44
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140028b44
cmp dword [rcx + 0x84], 0xe
jbe 0x140028b44
cmp dword [rcx + 0xf8], esi
je 0x140028b44
mov ecx, r14d
call fcn.140028c8c
mov ecx, 2
call fcn.14002c07c
nop
cmp byte [0x140062748], 0
jne 0x140028c0e
mov r15d, 1
mov eax, r15d
xchg dword [0x140062738], eax
test ebx, ebx
jne 0x140028bb7
mov rdi, qword [0x140043218]
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 [0x140062740]
cmp rcx, rax
je 0x140028bae
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140007300]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140062878]
jmp 0x140028bc3
cmp ebx, r15d
jne 0x140028bc9
lea rcx, [0x140062890]
call fcn.140029700
nop
test ebx, ebx
jne 0x140028be0
lea rdx, [0x140034528]
lea rcx, [0x140034508]
call fcn.140029a3c
lea rdx, [0x140034538]
lea rcx, [0x140034530]
call fcn.140029a3c
movzx eax, byte [0x140062748]
test esi, esi
cmove eax, r15d
mov byte [0x140062748], al
jmp 0x140028c0e
mov ecx, 2
call fcn.14002c0d0
test esi, esi
jne 0x140028c25
mov ecx, r14d
call fcn.140028c40
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 0x140028ad4

Function at 0x180001190
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800011c1
xor eax, eax
lea r8, [0x180001070]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x413fc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41414b
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 [0x005834e8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414025
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414034
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414053
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414063
cmp rbx, 0x1000
jae 0x41402b
jmp 0x4140cd
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414075
xor edx, edx
jmp 0x4140c4
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 [0x005834e8]
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 0x414059
jmp 0x414048
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x005834e8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004a237e]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004a2676]
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, [0x004a412f]
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 0x414180
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4143a6
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 [0x005834e8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4141f3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x414202
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x414225
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x414235
cmp rbx, 0x1000
jae 0x4141f9
nop
jmp 0x4142b8
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 0x41424d
xor esi, esi
jmp 0x4142aa
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 [0x005834e8]
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 0x41422b
jmp 0x414216
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x005834e8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x414340
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x004a268f]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x004a2676]
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, [0x0049fd5d]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x4142e0
call sym.runtime.printlock
lea rax, [0x004a268f]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004a2676]
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, [0x004a3ab0]
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