joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006f4ae
Capabilities:
Get geographical location

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r9d, 0x10
mov r13, qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea rbp, [rsp + 0x30]
mov rbx, rcx
mov rsi, rdx
mov ecx, 0x400
mov r8, rbp
mov edx, 0x59
lea r12, [rsp + 0x40]
call r13
mov r8, r12
mov edx, 0x5a
mov ecx, 0x400
mov edi, eax
mov r9d, 0x10
call r13
test edi, edi
jne 0x14006f363
lea rcx, str.Couldnt_obtain_language_info
call fcn.140078bd0
jmp 0x14006f39e
lea rdx, [0x1401a5462]
test eax, eax
lea rax, [0x1401a5460]
mov r9, rbp
mov rcx, rdx
cmovne rdx, r12
lea r8, str._s_s_s
cmovne rcx, rax
mov qword [rsp + 0x28], rdx
mov rdx, rsi
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.140041a6b
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
push rbp
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
xor eax, eax
xor r8d, r8d
lea r14, [rbp - 4]
lea r13, [rbp - 8]
mov dword [rbp - 8], eax
mov rdi, rcx
mov dword [rbp - 4], eax
mov r12, rdx
mov r9, r14
mov rdx, r13
mov ecx, 8
call qword [0x1401ead08]
mov esi, dword [rbp - 4]
add rsi, rsi
cmp rsi, 0x7f
ja 0x14006f40f
lea rax, [rsi + 0xf]
shr rax, 4
shl rax, 4
call fcn.140123670
sub rsp, rax
lea rbx, [rsp + 0x20]
jmp 0x14006f428
mov rcx, rsi
call fcn.1400413db
mov rbx, rax
test rax, rax
jne 0x14006f428
xor ecx, ecx
call fcn.140078cc6
jmp 0x14006f4a0
mov r9, r14
mov r8, rbx
mov rdx, r13
mov ecx, 8
call qword [0x1401ead08]
test eax, eax
jne 0x14006f44d
mov rdx, r12
mov rcx, rdi
call 0x14006f300
jmp 0x14006f491
mov eax, dword [rbp - 4]
mov r10b, 0x5f
lea edx, [rax - 1]
cmp r12, rdx
mov rax, rdx
cmovb eax, r12d
xor edx, edx
xor ecx, ecx
cmp edx, eax
jae 0x14006f48d
mov r9w, word [rbx + rdx*2]
mov r8d, r9d
test r9b, r9b
je 0x14006f47f
cmp r9b, 0x2d
cmove r8d, r10d
jmp 0x14006f484
mov ecx, edx
mov r8b, 0x2c
mov byte [rdi + rdx], r8b
inc rdx
jmp 0x14006f464
mov byte [rdi + rcx], 0
cmp rsi, 0x7f
jbe 0x14006f4a0
mov rcx, rbx
call fcn.14004149f
nop
mov rsp, rbp
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop rbp
ret
push rsi
push rbx
sub rsp, 0x28
cmp qword [0x1401ead00], 0
mov rbx, rcx
mov rsi, rdx
jne 0x14006f4f4
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x1401ead00], rax
mov rcx, rax
test rax, rax
je 0x14006f4f4
lea rdx, str.GetUserPreferredUILanguages
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ead08], rax
cmp qword [0x1401ead08], 0
mov rdx, rsi
mov rcx, rbx
jne 0x14006f50f
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14006f300
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14006f3ab

Function at 0x140073498
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
cmp dword [0x1401eae60], 0
jne 0x1400734a9
xor eax, eax
jmp 0x1400734e3
mov qword [rsp + 0x28], rcx
mov r8d, 0x10
lea rcx, [rsp + 0x20]
movabs rax, 0x210000050001
mov qword [rsp + 0x20], rax
mov edx, 1
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400734a5
lea rcx, str.Couldnt_register_for_raw_input_events
call fcn.140078bd0
add rsp, 0x38
ret
Function at 0x1400734e8
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
cmp dword [0x1401eae60], 0
jne 0x1400734f9
xor eax, eax
jmp 0x140073535
lea rcx, [rsp + 0x20]
mov r8d, 0x10
mov edx, 1
movabs rax, 0x100050001
mov qword [rsp + 0x20], rax
xor eax, eax
mov qword [rsp + 0x28], rax
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400734f5
lea rcx, str.Couldnt_unregister_for_raw_input_events
call fcn.140078bd0
add rsp, 0x38
ret

Function at 0x1400c68cc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [0x1401eb390], 0
je 0x1400c68e6
inc dword [0x1401eb388]
jmp 0x1400c69f2
lea rcx, str.hid.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1401eb390], rax
mov rcx, rax
test rax, rax
je 0x1400c69fb
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HidD_GetManufacturerString
mov dword [0x1401eb388], 1
call rbx
mov rcx, qword [0x1401eb390]
lea rdx, str.HidD_GetProductString
mov qword [0x1401eb380], rax
call rbx
mov rcx, qword [0x1401eb390]
lea rdx, str.HidP_GetCaps
mov qword [0x1401eb378], rax
call rbx
mov rcx, qword [0x1401eb390]
lea rdx, str.HidP_GetButtonCaps
mov qword [0x1401eb370], rax
call rbx
mov rcx, qword [0x1401eb390]
lea rdx, str.HidP_GetValueCaps
mov qword [0x1401eb368], rax
call rbx
mov rcx, qword [0x1401eb390]
lea rdx, str.HidP_MaxDataListLength
mov qword [0x1401eb360], rax
call rbx
mov rcx, qword [0x1401eb390]
lea rdx, str.HidP_GetData
mov qword [0x1401eb358], rax
call rbx
cmp qword [0x1401eb380], 0
mov qword [0x1401eb350], rax
je 0x1400c69f6
cmp qword [0x1401eb378], 0
je 0x1400c69f6
cmp qword [0x1401eb370], 0
je 0x1400c69f6
cmp qword [0x1401eb368], 0
je 0x1400c69f6
cmp qword [0x1401eb360], 0
je 0x1400c69f6
cmp qword [0x1401eb358], 0
je 0x1400c69f6
test rax, rax
je 0x1400c69f6
xor eax, eax
jmp 0x1400c69fe
call fcn.1400c68a0
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x1400c6a3c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [0x1401eb3d8], 0
je 0x1400c6a56
inc dword [0x1401eb3d0]
jmp 0x1400c6b88
mov rbx, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.XInput1_4.dll
call rbx
mov edx, 0x10004
mov qword [0x1401eb3d8], rax
test rax, rax
jne 0x1400c6abf
lea rcx, str.XInput1_3.dll
call rbx
mov edx, 0x10003
mov qword [0x1401eb3d8], rax
test rax, rax
jne 0x1400c6abf
lea rcx, str.binXInput1_3.dll
call rbx
mov qword [0x1401eb3d8], rax
test rax, rax
je 0x1400c6aad
mov edx, 0x10003
jmp 0x1400c6abf
lea rcx, str.XInput9_1_0.dll
call rbx
mov qword [0x1401eb3d8], rax
jmp 0x1400c6aa6
mov rcx, qword [0x1401eb3d8]
test rcx, rcx
je 0x1400c6b91
mov dword [0x1401eb3a0], edx
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x64
mov dword [0x1401eb3d0], 1
call rbx
mov qword [0x1401eb3c8], rax
test rax, rax
jne 0x1400c6b10
mov rcx, qword [0x1401eb3d8]
lea rdx, str.XInputGetState
call rbx
mov qword [0x1401eb3c8], rax
mov rcx, qword [0x1401eb3d8]
lea rdx, str.XInputSetState
call rbx
mov rcx, qword [0x1401eb3d8]
lea rdx, str.XInputGetCapabilities
mov qword [0x1401eb3c0], rax
call rbx
mov rcx, qword [0x1401eb3d8]
mov edx, 0x6c
mov qword [0x1401eb3b8], rax
call rbx
mov rcx, qword [0x1401eb3d8]
lea rdx, str.XInputGetBatteryInformation
mov qword [0x1401eb3b0], rax
call rbx
cmp qword [0x1401eb3c8], 0
mov qword [0x1401eb3a8], rax
je 0x1400c6b8c
cmp qword [0x1401eb3c0], 0
je 0x1400c6b8c
cmp qword [0x1401eb3b8], 0
je 0x1400c6b8c
xor eax, eax
jmp 0x1400c6b94
call fcn.1400c6a10
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x1400c909b
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov ebx, 3
mov rsi, rcx
mov ecx, 0xd
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov rdi, qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400c9166
mov rcx, qword [rsi + 0x310]
test rcx, rcx
je 0x1400c90db
mov rax, qword [rcx + 0xd8]
mov rcx, qword [rax + 8]
call rdi
test eax, eax
je 0x1400c9155
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, qword [sym.imp.USER32.dll_CloseClipboard]
test rax, rax
mov rbx, rax
je 0x1400c9145
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.14004169f
mov r8, qword [rsp + 0x28]
lea rdx, [0x1401b2896]
lea rcx, [0x1401b2890]
lea r9, [rax + 1]
add r9, r9
call fcn.14004114c
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rdi
test rsi, rsi
jne 0x1400c9179
jmp 0x1400c9166
lea rcx, str.Couldnt_get_clipboard_data
call fcn.140064512
call rdi
jmp 0x1400c9166
mov ecx, 0xa
call fcn.14006f956
dec ebx
jmp 0x1400c90be
lea rcx, [0x1401b28ef]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.140041929
mov rax, rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400fb086
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, qword [rsp + 0xa0]
mov r12, rdx
lea r14, [rsp + 0x29]
mov rbp, rcx
mov rbx, r8
mov rsi, r9
mov r8d, 0x17
mov rdx, r14
mov rcx, r12
call rbp
cmp rax, 0x17
je 0x1400fb0cb
mov eax, 0xffffffcb
jmp 0x1400fb1ad
mov ax, word [rsp + 0x29]
add dword [rsi], 0x17
lea rdx, [rsp + 0x2b]
lea rcx, [rbx + 8]
mov dword [rbx], 0x5367674f
mov r8d, 8
lea r13, [0x1401b8460]
mov word [rbx + 4], ax
call fcn.14000d024
lea rdx, [rsp + 0x33]
lea rcx, [rbx + 0x10]
mov r8d, 4
call fcn.14000d024
lea rdx, [rsp + 0x37]
lea rcx, [rbx + 0x14]
mov r8d, 4
call fcn.14000d024
lea rcx, [rbx + 0x18]
mov r8d, 4
lea rdx, [rsp + 0x3b]
call fcn.14000d024
movzx r8d, byte [rsp + 0x3f]
xor eax, eax
xor ecx, ecx
mov dword [rsp + 0x3b], eax
mov byte [rbx + 0x1c], r8b
mov eax, dword [rdi]
mov edx, eax
shl eax, 8
shr edx, 0x18
xor dl, byte [r14 + rcx]
inc rcx
movzx edx, dl
xor eax, dword [r13 + rdx*4]
cmp rcx, 0x17
jne 0x1400fb148
lea rdx, [rbx + 0x1d]
mov rcx, r12
mov dword [rdi], eax
call rbp
movzx edx, byte [rbx + 0x1c]
mov rcx, rax
cmp rcx, rdx
jne 0x1400fb0c1
movzx edx, dl
add dword [rsi], edx
xor r8d, r8d
cmp r8d, edx
jae 0x1400fb1ab
mov eax, dword [rdi]
mov ecx, eax
shl eax, 8
shr ecx, 0x18
xor cl, byte [rbx + r8 + 0x1d]
inc r8
movzx ecx, cl
xor eax, dword [r13 + rcx*4]
mov dword [rdi], eax
jmp 0x1400fb188
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140104346
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
movups xmmword [rsp + 0x50], xmm6
mov r12d, 0x1000
movzx eax, word [rcx + 0x36]
mov rbp, qword [rcx + 0x38]
mov rbx, rcx
mov rsi, rdx
mov r15, r8
test ax, ax
je 0x14010437b
lea r12d, [rax + rax]
movzx edx, byte [rbx + 0x35]
movzx eax, byte [rbx + 0x34]
movss xmm6, dword [0x1401b8b8c]
imul rax, rdx
mov rdx, rsi
sub rdx, qword [rbx + 0xe8]
imul rax, rdx
cvtsi2ss xmm0, rax
mulss xmm0, xmm6
mulss xmm0, dword [0x1401b8b68]
comiss xmm0, dword [0x1401b8b6c]
jae 0x1401043be
cvttss2si rdx, xmm0
jmp 0x1401043d0
subss xmm0, dword [0x1401b8b6c]
cvttss2si rdx, xmm0
btc rdx, 0x3f
add rdx, r15
mov rdi, r15
lea r13, [rsp + 0x38]
movabs r14, 0x8000000000000000
cmp rdx, r9
cmova rdx, r9
mov qword [rsp + 0x20], r13
mov r8, r15
mov rcx, rbx
mov qword [rsp + 0xc8], r9
call fcn.140104295
test eax, eax
je 0x140104536
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.1400fa110
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0xc8]
cmp rax, rbp
jne 0x14010444a
mov qword [rsp + 0x20], r13
mov r8, rdi
mov rdx, rdi
call fcn.140104295
test eax, eax
je 0x140104536
jmp 0x140104456
cmp qword [rsp + 0x48], rsi
jb 0x14010447b
cmp rsi, rax
jb 0x14010447b
sub rsi, qword [rbx + 0xe8]
mov rcx, rbx
mov rdx, rsi
call fcn.1401031f7
cmp rsi, rax
jne 0x140104536
mov eax, 1
jmp 0x140104540
mov rcx, qword [rsp + 0x38]
mov r11, qword [rbx + 0xf0]
movzx edx, byte [rbx + 0x34]
movzx r10d, byte [rbx + 0x35]
cmp rsi, rax
jae 0x1401044b1
cmp r15, rcx
mov rdx, rcx
mov r9, rcx
cmova r15, rcx
sub rdx, r15
shr rdx, 1
add rdx, r15
cmovb rdx, r15
jmp 0x14010452e
mov r8, rsi
mov ebp, r12d
sub r8, rax
cmp r8, rbp
jb 0x140104456
imul rdx, r10
cmp r9, rcx
mov r10, rcx
cmovb r9, rcx
sub r10, r11
cvtsi2ss xmm0, r10
mov r10, rax
imul r10, rdx
imul r8, rdx
cvtsi2ss xmm1, r10
mulss xmm1, xmm6
divss xmm0, xmm1
cvtsi2ss xmm1, r8
mulss xmm1, xmm6
mulss xmm0, xmm1
comiss xmm0, dword [0x1401b8b6c]
jae 0x14010450a
cvttss2si rdx, xmm0
jmp 0x14010451a
subss xmm0, dword [0x1401b8b6c]
cvttss2si rdx, xmm0
xor rdx, r14
add rdx, rcx
mov r15, rcx
cmp rdx, r9
cmova rdx, r9
cmp rdi, rcx
cmovb rdi, rcx
mov rbp, rax
jmp 0x1401043ec
mov rcx, rbx
call fcn.140104254
xor eax, eax
movups xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401084c4
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
movups xmmword [rsp + 0x70], xmm6
movups xmmword [rsp + 0x80], xmm7
xor r11d, r11d
movss xmm6, dword [0x1401bab90]
lea rbx, [0x1401b91a0]
mov rax, rcx
mov r10, rdx
cmp r11d, r9d
jge 0x1401086d5
movss xmm0, dword [rax]
lea rcx, [rsp + 0x4c]
xor edx, edx
lea rdi, [rsp + 0x28]
mov rsi, rcx
lea r12, [rsp + 0x2c]
lea rbp, [rsp + 0x30]
xorps xmm0, xmm6
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rax + 0x44]
movss dword [rsp + 0x4c], xmm0
movss xmm1, dword [rax + rdx*2 + 8]
movss xmm0, dword [rax + rdx*2 + 4]
sub rcx, 8
movaps xmm2, xmm0
addss xmm0, xmm1
subss xmm2, xmm1
movss xmm1, dword [rax + rdx*2 + 0xc]
movss dword [r12 + rdx], xmm0
movss xmm0, dword [rax + rdx*2 + 0x10]
movss dword [rcx + 0x28], xmm2
movaps xmm2, xmm0
addss xmm0, xmm1
subss xmm2, xmm1
xorps xmm0, xmm6
movss dword [rbp + rdx], xmm0
add rdx, 8
movss dword [rcx + 0x24], xmm2
cmp rdx, 0x20
jne 0x140108530
mov rcx, rdi
xor edx, edx
lea rbp, [0x1401b91c4]
call fcn.1401082f3
mov rcx, rsi
call fcn.1401082f3
movss xmm0, dword [rsp + 0x50]
xorps xmm0, xmm6
movss dword [rsp + 0x50], xmm0
movss xmm0, dword [rsp + 0x58]
xorps xmm0, xmm6
movss dword [rsp + 0x58], xmm0
movss xmm0, dword [rsp + 0x60]
xorps xmm0, xmm6
movss dword [rsp + 0x60], xmm0
movss xmm0, dword [rsp + 0x68]
xorps xmm0, xmm6
movss dword [rsp + 0x68], xmm0
movups xmm1, xmmword [rdi + rdx]
movups xmm4, xmmword [rsi + rdx]
mov rcx, rdx
movups xmm3, xmmword [rbx + rdx]
movups xmm7, xmmword [rbp + rdx]
neg rcx
movups xmm2, xmmword [r10 + rdx]
movups xmm5, xmmword [r8 + rdx + 0x24]
mulps xmm7, xmm1
movups xmm0, xmmword [r8 + rdx]
mulps xmm3, xmm4
mulps xmm1, xmmword [rbx + rdx]
addps xmm3, xmm7
movups xmm7, xmmword [rbp + rdx]
mulps xmm4, xmm7
subps xmm1, xmm4
movaps xmm4, xmm5
mulps xmm4, xmm3
movups xmmword [r10 + rdx], xmm1
movaps xmm1, xmm2
mulps xmm1, xmm0
mulps xmm2, xmm5
mulps xmm0, xmm3
subps xmm1, xmm4
addps xmm0, xmm2
movups xmmword [rax + rdx], xmm1
add rdx, 0x10
shufps xmm0, xmm0, 0x1b
movups xmmword [rax + rcx + 0x38], xmm0
cmp rdx, 0x20
jne 0x1401085da
movss xmm2, dword [rsp + 0x48]
movss xmm3, dword [rsp + 0x6c]
inc r11d
add rax, 0x48
movss xmm4, dword [0x1401baba0]
movss xmm5, dword [0x1401baba4]
add r10, 0x24
movaps xmm1, xmm2
movaps xmm7, xmm3
movss xmm0, dword [r10 - 4]
mulss xmm3, xmm4
mulss xmm2, xmm5
mulss xmm1, xmm4
mulss xmm7, xmm5
subss xmm2, xmm3
addss xmm1, xmm7
movss dword [r10 - 4], xmm2
movss xmm2, dword [r8 + 0x20]
movss xmm3, dword [r8 + 0x44]
mulss xmm2, xmm0
mulss xmm3, xmm1
subss xmm2, xmm3
movss dword [rax - 0x28], xmm2
mulss xmm0, dword [r8 + 0x44]
mulss xmm1, dword [r8 + 0x20]
addss xmm0, xmm1
movss dword [rax - 0x24], xmm0
jmp 0x1401084f6
movups xmm6, xmmword [rsp + 0x70]
movups xmm7, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14010e8a3
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, rcx
mov rbp, rdx
mov r12, r8
cmp dword [rbx + 0x98], 0
jne 0x14010ea6b
mov rcx, rbx
call fcn.14010d759
cmp al, 0x4f
jne 0x14010e8bc
mov rcx, rbx
call fcn.14010e889
mov edi, eax
lea eax, [rax - 0x19]
cmp dword [rbx + 0x58], eax
jb 0x14010ea6b
mov rcx, rbx
call fcn.14010d759
mov edx, eax
mov eax, 1
cmp dl, 0x67
jne 0x14010e926
mov rcx, rbx
call fcn.14010d759
mov edx, eax
mov eax, 2
cmp dl, 0x67
jne 0x14010e926
mov rcx, rbx
call fcn.14010d759
cmp al, 0x53
sete al
movzx eax, al
add eax, 3
cmp dword [rbx + 0x98], 0
jne 0x14010ea6b
cmp eax, 4
jne 0x14010ea5c
mov dword [rsp + 0x35], 0x5367674f
mov esi, 4
lea r14, [rsp + 0x35]
mov rcx, rbx
call fcn.14010d759
mov byte [r14 + rsi], al
inc rsi
cmp rsi, 0x1b
jne 0x14010e94e
cmp dword [rbx + 0x98], 0
jne 0x14010ea6b
cmp byte [rsp + 0x39], 0
jne 0x14010ea5c
xor eax, eax
mov r13d, dword [rsp + 0x4b]
xor edx, edx
xor esi, esi
mov dword [rsp + 0x4b], eax
lea r15, [0x1401eb600]
mov eax, esi
shl esi, 8
shr eax, 0x18
xor al, byte [r14 + rdx]
inc rdx
movzx eax, al
xor esi, dword [r15 + rax*4]
cmp rdx, 0x1b
jne 0x14010e991
xor r14d, r14d
xor r8d, r8d
movzx eax, byte [rsp + 0x4f]
cmp r8d, eax
jae 0x14010e9e8
mov rcx, rbx
mov dword [rsp + 0x2c], r8d
call fcn.14010d759
mov edx, esi
mov r8d, dword [rsp + 0x2c]
shl esi, 8
movzx eax, al
shr edx, 0x18
xor edx, eax
add r14d, eax
inc r8d
xor esi, dword [r15 + rdx*4]
jmp 0x14010e9b3
test r14d, r14d
je 0x14010e9f6
cmp dword [rbx + 0x98], 0
jne 0x14010ea6b
xor edx, edx
cmp edx, r14d
je 0x14010ea22
mov rcx, rbx
mov dword [rsp + 0x2c], edx
call fcn.14010d759
mov ecx, esi
mov edx, dword [rsp + 0x2c]
shl esi, 8
shr ecx, 0x18
xor eax, ecx
inc edx
movzx eax, al
xor esi, dword [r15 + rax*4]
jmp 0x14010e9f8
cmp esi, r13d
jne 0x14010ea5c
test rbp, rbp
je 0x14010ea37
mov rcx, rbx
call fcn.14010e889
mov dword [rbp], eax
test r12, r12
je 0x14010ea4a
xor eax, eax
test byte [rsp + 0x3a], 4
setne al
mov dword [r12], eax
lea edx, [rdi - 1]
mov rcx, rbx
call fcn.14010e349
mov eax, 1
jmp 0x14010ea6d
mov edx, edi
mov rcx, rbx
call fcn.14010e349
jmp 0x14010e8bc
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401228b0
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.140130060
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140122920
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401ec564]
mov rbx, rcx
test esi, esi
jle 0x140122a50
mov rax, qword [0x1401ec568]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14012296b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401229f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140122950
mov rcx, rbx
call fcn.140123390
mov rdi, rax
test rax, rax
je 0x140122a72
mov rax, qword [0x1401ec568]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1401234d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401ec568]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140122a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1401229ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140122a00
add dword [0x1401ec564], 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 [0x1401ec568]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401229ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401228b0
nop dword [rax]
xor esi, esi
jmp 0x140122978
mov rax, qword [0x1401ec568]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401228b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1401228b0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140123000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401ec5c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401ec5a0]
test rbx, rbx
je 0x14012305c
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 rsi, rsi
je 0x140123053
test eax, eax
jne 0x140123053
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140123038
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 0x140123390
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140123410
Capabilities:
Parse pe header

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

Function at 0x1401234d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401c2230]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1401234ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1401234f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001cdd4
Capabilities:
Parse pe header

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

Function at 0x140023250
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002304c
Function at 0x140028598
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 0x1400285c8
xor eax, eax
jmp 0x14002868b
mov rbp, rbx
cmp word [rax], si
je 0x1400285ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400285d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400285d0
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.1400284b8
movsxd r14, eax
test eax, eax
jne 0x14002862b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400285c1
mov rcx, r14
call fcn.140024d4c
mov rdi, rax
test rax, rax
jne 0x140028644
xor ecx, ecx
call fcn.1400240d4
jmp 0x140028620
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.1400284b8
test eax, eax
jne 0x140028675
mov rcx, rdi
call fcn.1400240d4
jmp 0x14002867f
xor ecx, ecx
call fcn.1400240d4
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