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

Disassembly:
test edx, edx
je 0x140023194
mov eax, edx
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
sub rax, 1
jne 0x14002300a
mov eax, ecx
ret
Function at 0x14002f474
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r15, rcx
mov edx, dword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov rsi, qword [rax + rdx*8 - 8]
lea rdx, str.CreateDecoder
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CreateEncoder
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.GetMethodProperty
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
xor edi, edi
test rax, rax
je 0x14002f614
mov dword [rbp + 0x20], 1
lea rdx, str.GetNumberOfMethods
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002f512
lea rcx, [rbp + 0x20]
call rax
test eax, eax
jne 0x14002f669
mov r14d, edi
cmp dword [rbp + 0x20], edi
jbe 0x14002f614
mov eax, dword [r15 + 0x20]
dec eax
mov dword [rbp - 0x38], eax
mov dword [rbp - 0x34], r14d
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x2c]
mov r8d, 3
mov edx, r14d
mov rcx, qword [rsi + 0x20]
call fcn.14002eb2c
test eax, eax
jne 0x14002f669
lea rax, [rbp - 0x2f]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x1c]
mov r8d, 2
mov edx, r14d
mov rcx, qword [rsi + 0x20]
call fcn.14002eb2c
test eax, eax
jne 0x14002f669
mov rax, qword [rsi + 0x20]
mov dword [rbp - 0x50], edi
mov qword [rbp - 0x48], rdi
mov word [rbp - 0x2e], di
lea r8, [rbp - 0x50]
mov edx, 0xa
mov ecx, r14d
call rax
mov ebx, eax
test eax, eax
je 0x14002f59e
jmp 0x14002f5b7
cmp word [rbp - 0x50], 0xb
jne 0x14002f686
mov byte [rbp - 0x2d], 1
cmp word [rbp - 0x48], di
setne byte [rbp - 0x2e]
mov ebx, edi
lea rcx, [rbp - 0x50]
call fcn.14000b45c
test ebx, ebx
jne 0x14002f69a
lea rcx, [r15 + 0x60]
call fcn.1400302e8
mov ecx, dword [r15 + 0x68]
lea eax, [rcx + 1]
mov dword [r15 + 0x68], eax
imul rdx, rcx, 0x2c
mov rcx, qword [r15 + 0x60]
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rdx + rcx], xmm0
movups xmm1, xmmword [rbp - 0x28]
movups xmmword [rdx + rcx + 0x10], xmm1
movsd xmm0, qword [rbp - 0x18]
movsd qword [rdx + rcx + 0x20], xmm0
mov eax, dword [rbp - 0x10]
mov dword [rdx + rcx + 0x28], eax
inc r14d
cmp r14d, dword [rbp + 0x20]
jb 0x14002f51e
lea rdx, str.GetHashers
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002f667
lea rcx, [rsi + 0x40]
call rax
test eax, eax
jne 0x14002f669
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x14002f667
mov rax, qword [rcx]
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
je 0x14002f667
mov ecx, dword [r15 + 0x20]
dec ecx
mov dword [rbp + 0x20], ecx
mov dword [rbp + 0x24], edi
mov rdx, qword [rbp + 0x20]
lea rcx, [r15 + 0x70]
call fcn.14002dea8
inc edi
cmp edi, ebx
jb 0x14002f648
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp word [rbp - 0x50], di
je 0x14002f5b5
mov ebx, 0x80004005
jmp 0x14002f5b7
mov eax, ebx
jmp 0x14002f669
Function at 0x1400403d8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r13, r9
mov r15, r8
mov r14, rdx
mov rbx, rcx
xor edi, edi
mov dword [rbp - 0x30], edi
mov esi, dword [rdx]
cmp byte [rdx + 4], dil
je 0x14004044e
lea esi, [rdi + 1]
lea edx, [rdi + 3]
lea rcx, [rbp - 0x28]
call fcn.1400026d8
lea edi, [rsi + 5]
mov dword [rbp - 0x30], edi
mov rcx, qword [rbp - 0x28]
call fcn.14000af08
test al, al
je 0x140040445
mov rcx, qword [rbp - 0x28]
call sub.KERNEL32.dll_GetDriveTypeW
cmp eax, 5
je 0x140040442
cmp eax, 2
jne 0x140040445
mov esi, dword [r14]
mov rcx, qword [rbp - 0x28]
call fcn.14005bd4c
mov rcx, r15
call fcn.140003f6c
lea r12d, [rax + 1]
mov rax, qword [r15]
lea rdx, [rax + r12*2]
mov rcx, r13
call fcn.140002c08
mov rcx, rbx
call fcn.1400029b0
or edi, 1
mov dword [rbp - 0x30], edi
sub esi, 1
je 0x14004049a
mov rcx, rbx
cmp esi, 1
je 0x14004048f
call fcn.140007a94
test al, al
je 0x1400404e8
jmp 0x1400404c5
lea rdx, [r14 + 8]
call fcn.140002ad0
jmp 0x1400404c5
mov r8, r15
mov edx, r12d
lea rcx, [rbp - 0x18]
call fcn.1400026d8
or edi, 8
mov dword [rbp - 0x30], edi
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.140002ad0
nop
mov rcx, qword [rbp - 0x18]
call fcn.14005bd4c
mov rcx, rbx
call fcn.14000b06c
mov rax, rbx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp + 0x48], 0x22995
lea rdx, [0x1400894e8]
lea rcx, [rbp + 0x48]
call fcn.14005cfb0
int3

Function at 0x1400443c4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
call fcn.140001298
and dword [rdi], 0
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov edx, 0x3ff
xor r8w, bx
test dx, r8w
jne 0x140044417
movzx ecx, ax
mov eax, ecx
and ecx, edx
shr eax, 0xa
mov rdx, rsi
mov dword [rdi], eax
call fcn.140043f5c
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400448f4
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140044924
cmp dword [rbx + 0x54], 1
ja 0x140044924
mov rax, qword [rbx]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [rax + 0x40]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140044e2c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rbx, rcx
and qword [rbp - 0x19], 0
and dword [rbp - 0x11], 0
and dword [rbp - 0xd], 0
add rcx, 0x10
lea rdx, [rbp - 0x19]
call fcn.140044884
mov rsi, qword [rbp - 0x19]
cmp dword [rbp - 0x11], 1
jne 0x140044f59
mov r14d, dword [rsi]
and qword [rbp + 0x1f], 0
lea rax, [0x140074d98]
mov qword [rbp + 0x17], rax
and qword [rbp + 0x27], 0
lea rcx, [rbp + 0x2f]
call fcn.1400029b0
nop
lea rcx, [rbp + 0x3f]
call fcn.1400029b0
nop
mov rdx, qword [rbx + 0x30]
mov rdx, qword [rdx + r14*8]
cmp dword [rbx + 0x54], 1
je 0x140044ec7
lea rcx, [rbp + 0x2f]
call fcn.140002ad0
cmp r14d, dword [rbx + 0x48]
jae 0x140044ed0
mov rdx, qword [rbx + 0x40]
mov rdx, qword [rdx + r14*8]
lea rcx, [rbp + 0x3f]
call fcn.140002ad0
mov edx, InitCommonControls
mov rcx, qword [rbp + 0x3f]
call fcn.140003434
test eax, eax
jns 0x140044f29
lea rdx, [0x140074e14]
lea rcx, [rbp + 7]
call fcn.140002958
nop
lea rdx, [0x140074e1c]
lea rcx, [rbp - 9]
call fcn.140002958
nop
lea r8, [rbp + 7]
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x3f]
call fcn.140003df8
nop
mov rcx, qword [rbp - 9]
call fcn.14005bd4c
nop
mov rcx, qword [rbp + 7]
call fcn.14005bd4c
mov r8, qword [rbx + 8]
mov edx, 0x5e
lea rcx, [rbp + 0x17]
call fcn.14000d91c
nop
mov rcx, qword [rbp + 0x3f]
call fcn.14005bd4c
mov rcx, qword [rbp + 0x2f]
call fcn.14005bd4c
lea rax, [0x140074738]
mov qword [rbp + 0x17], rax
mov rcx, rsi
call fcn.14005bd4c
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14004a900
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp word [rbx + 0x18], 8
je 0x14004a951
cmp word [rbx + 0x18], 0x52
je 0x14004a93f
cmp word [rbx + 0x18], 0x76
jne 0x14004a94d
mov rcx, rdi
call fcn.14004a22c
jmp 0x14004a959
test al, al
je 0x14004a94d
mov rcx, rdi
call fcn.14004b45c
jmp 0x14004a959
xor al, al
jmp 0x14004a95b
mov rcx, rdi
call fcn.14004ac6c
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004bb80
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x2f0
or dword [rsp + 0x38], 0xffffffff
mov eax, 0x20
test edx, edx
mov dword [rsp + 0x20], 0x4010
mov rbx, r8
mov r9d, 0x2b8
cmovne eax, edx
lea r8, [rsp + 0x30]
mov edx, eax
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [rsp + 0x38]
mov dword [rbx], ecx
add rsp, 0x2f0
pop rbx
ret

Function at 0x14004bbc8
Capabilities:
Get file system object information

Disassembly:
sub rsp, 0x2f8
movzx eax, cl
lea r8, [rsp + 0x30]
or eax, 0x4010
lea rcx, [0x140070cb8]
mov r9d, 0x2b8
mov dword [rsp + 0x20], eax
mov edx, InitCommonControls
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add rsp, 0x2f8
ret
Function at 0x14005b340
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x14005b37e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005b37e
mov ecx, 0xc00
add rsp, 0x28
jmp rax
add rsp, 0x28
ret

Function at 0x14005b520
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, r9
lea rax, [rsp + 0x40]
mov r9, r8
mov qword [rsp + 0x28], rax
mov r8, rdx
mov dword [rsp + 0x20], 4
mov rbx, rcx
xor edx, edx
xor ecx, ecx
call fcn.140061f4c
mov qword [rbx], rax
mov rdi, rax
test rax, rax
je 0x14005b58d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x14005b58d
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x48]
mov ecx, 1
mov rsi, qword [rsp + 0x50]
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rdi
ret
Function at 0x14005b780
Capabilities:
Encode data using xor

Disassembly:
lea r9, [0x14008c900]
jmp 0x14005b790
push rbx
push rbp
push rsi
push rdi
mov eax, ecx
mov rbp, r9
mov rdi, r8
cmp rdi, 0x1f
jb 0x14005b953
test edx, 3
je 0x14005b7c5
movzx esi, byte [rdx]
movzx ebx, al
inc rdx
shr eax, 8
xor esi, ebx
xor eax, dword [rbp + rsi*4]
dec rdi
jmp 0x14005b7a6
xor eax, dword [rdx]
lea rdi, [rdx + rdi - 0x1b]
sub rdx, rdi
nop
mov ecx, dword [rdi + rdx + 0xc]
movzx ebx, word [rdi + rdx + 8]
movzx r9d, word [rdi + rdx + 0xa]
movzx esi, bl
shr ebx, 8
xor ecx, dword [rbp + rsi*4 + 0xc00]
movzx esi, r9b
shr r9d, 8
xor ecx, dword [rbp + rbx*4 + 0x800]
xor ecx, dword [rbp + rsi*4 + 0x400]
xor ecx, dword [rbp + r9*4]
movzx ebx, word [rdi + rdx + 4]
movzx r9d, word [rdi + rdx + 6]
movzx esi, bl
shr ebx, 8
xor ecx, dword [rbp + rsi*4 + 0x1c00]
movzx esi, r9b
shr r9d, 8
xor ecx, dword [rbp + rbx*4 + 0x1800]
xor ecx, dword [rbp + rsi*4 + 0x1400]
xor ecx, dword [rbp + r9*4 + 0x1000]
movzx esi, al
mov ebx, eax
shr ebx, 0x18
xor ecx, dword [rbp + rsi*4 + 0x2c00]
xor ecx, dword [rbp + rbx*4 + 0x2000]
ror eax, 0x10
movzx esi, al
shr eax, 0x18
xor ecx, dword [rbp + rsi*4 + 0x2400]
xor ecx, dword [rbp + rax*4 + 0x2800]
mov eax, dword [rdi + rdx + 0x18]
movzx ebx, word [rdi + rdx + 0x14]
movzx r9d, word [rdi + rdx + 0x16]
movzx esi, bl
shr ebx, 8
xor eax, dword [rbp + rsi*4 + 0xc00]
movzx esi, r9b
shr r9d, 8
xor eax, dword [rbp + rbx*4 + 0x800]
xor eax, dword [rbp + rsi*4 + 0x400]
xor eax, dword [rbp + r9*4]
movzx ebx, word [rdi + rdx + 0x10]
movzx r9d, word [rdi + rdx + 0x12]
movzx esi, bl
shr ebx, 8
xor eax, dword [rbp + rsi*4 + 0x1c00]
movzx esi, r9b
shr r9d, 8
xor eax, dword [rbp + rbx*4 + 0x1800]
xor eax, dword [rbp + rsi*4 + 0x1400]
xor eax, dword [rbp + r9*4 + 0x1000]
movzx esi, cl
mov ebx, ecx
shr ebx, 0x18
xor eax, dword [rbp + rsi*4 + 0x2c00]
xor eax, dword [rbp + rbx*4 + 0x2000]
ror ecx, 0x10
movzx esi, cl
shr ecx, 0x18
xor eax, dword [rbp + rsi*4 + 0x2400]
xor eax, dword [rbp + rcx*4 + 0x2800]
add rdx, 0x18
jae 0x14005b7d0
add rdi, 0x18
sub rdx, 0x18
movzx ebx, al
movzx ecx, ah
shr eax, 0x10
movzx esi, al
shr eax, 8
mov eax, dword [rbp + rax*4]
xor eax, dword [rbp + rbx*4 + 0xc00]
xor eax, dword [rbp + rcx*4 + 0x800]
xor eax, dword [rbp + rsi*4 + 0x400]
add rdx, 4
jb 0x14005b949
xor eax, dword [rdi + rdx]
jmp 0x14005b916
add rdx, rdi
add rdi, 3
sub rdi, rdx
test rdi, rdi
je 0x14005b96f
movzx esi, byte [rdx]
movzx ebx, al
inc rdx
shr eax, 8
xor esi, ebx
xor eax, dword [rbp + rsi*4]
dec rdi
jne 0x14005b958
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14005cbfc
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140061f83
call fcn.140063b5c
mov dword [rax], 0x16
call fcn.140063a20
xor eax, eax
jmp 0x140062011
mov rdx, r9
mov rcx, r8
call fcn.140061ee8
mov rbx, rax
test rax, rax
je 0x14006200e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140061e14]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140061ffb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140063ad0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140061fe2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140061ff1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140063e68
jmp 0x14006200e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006200b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140062368
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400623d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400623d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400623d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400623d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400623d7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400623d7
cmp dword [rcx + 0xf8], 0
je 0x1400623d7
mov ecx, ebx
call fcn.140062488
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140062264
nop
cmp dword [rbp + 0x20], 0
je 0x140062425
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140062430
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140062368

Function at 0x14006256c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140062368
Function at 0x140066be0
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
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140066c10
xor eax, eax
jmp 0x140066cd3
mov rbp, rbx
cmp word [rax], si
je 0x140066c35
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140066c1c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140066c18
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.140066b00
movsxd r14, eax
test eax, eax
jne 0x140066c73
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140066c09
mov rcx, r14
call fcn.140064864
mov rdi, rax
test rax, rax
jne 0x140066c8c
xor ecx, ecx
call fcn.140063e68
jmp 0x140066c68
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.140066b00
test eax, eax
jne 0x140066cbd
mov rcx, rdi
call fcn.140063e68
jmp 0x140066cc7
xor ecx, ecx
call fcn.140063e68
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 0x14006b440
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006b468
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006b468
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003ee0
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.0x140003f01
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 0x140003f2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003f30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003f89
test ecx, ecx
jle 0x140003f69
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 0x140003f89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003f89
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
Function at 0x140003fb0
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 0x140003fd2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140003fe1
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 0x140004004
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004006
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004042
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 0x1400040de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000407d
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 0x1400040be
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 0x1400040de
cmp rbx, rax
ja 0x140004090
test rbx, rbx
je 0x1400040de
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