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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0xb8
call fcn.140280460
sub rsp, rax
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r12, qword [rsp + 0x110]
xor ebx, ebx
movsxd rsi, r8d
mov rbp, r9
mov r14, rdx
mov rdi, rcx
mov eax, ebx
test r9, r9
je 0x1401b1546
cmp r9, qword [rcx]
je 0x1401b153c
test rdx, rdx
je 0x1401b1739
test r8d, r8d
js 0x1401b1739
mov eax, 1
mov qword [rcx], r9
jmp 0x1401b1552
mov rbp, qword [rcx]
test rbp, rbp
je 0x1401b1739
mov qword [rsp + 0xb0], r15
test r14, r14
je 0x1401b1635
mov rcx, rbp
call fcn.140189bb0
mov r15d, eax
cmp eax, 0x80
jle 0x1401b158d
lea r8, str.j____int_sizeof_ctx__key_
mov edx, reloc.WS2_32.dll_WSACleanup
lea rcx, str..cryptohmachmac.c
call fcn.140175aa0
cmp r15d, esi
jge 0x1401b15e4
mov r8, r12
lea rcx, [rdi + 8]
mov rdx, rbp
call fcn.1401b0c00
test eax, eax
je 0x1401b1728
mov r8, rsi
lea rcx, [rdi + 8]
mov rdx, r14
call fcn.1401b0e60
test eax, eax
je 0x1401b1728
lea r14, [rdi + 0x98]
mov r8, r14
lea rdx, [rdi + 0x9c]
lea rcx, [rdi + 8]
call fcn.1401b0b20
test eax, eax
je 0x1401b1728
jmp 0x1401b160c
cmp esi, 0x80
ja 0x1401b1728
mov r8, rsi
lea rcx, [rdi + 0x9c]
mov rdx, r14
call fcn.140282ac0
lea r14, [rdi + 0x98]
mov dword [r14], esi
mov ecx, dword [r14]
cmp ecx, 0x80
je 0x1401b163d
mov eax, ecx
mov r8d, 0x80
sub r8d, ecx
xor edx, edx
lea rcx, [rdi + 0x9c]
add rcx, rax
call fcn.140282700
jmp 0x1401b163d
test eax, eax
je 0x1401b1717
lea rcx, [rsp + 0x20]
mov rax, rdi
sub rax, rcx
mov rdx, rbx
lea rsi, [rax + 0x9c]
lea r14, [rax + 0x9d]
nop dword [rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
add rdx, 2
movzx eax, byte [rsi + rcx]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [r14 + rcx]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x80
jl 0x1401b1660
mov r8, r12
lea rcx, [rdi + 0x38]
mov rdx, rbp
call fcn.1401b0c00
test eax, eax
je 0x1401b1728
mov rcx, rbp
call fcn.140189bb0
movsxd r8, eax
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 0x38]
call fcn.1401b0e60
test eax, eax
je 0x1401b1728
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, rbx
add rbx, 2
movzx eax, byte [rsi + rcx]
xor al, 0x5c
mov byte [rcx], al
movzx eax, byte [r14 + rcx]
xor al, 0x5c
mov byte [rcx + 1], al
cmp rbx, 0x80
jl 0x1401b16c0
mov r8, r12
lea rcx, [rdi + 0x68]
mov rdx, rbp
call fcn.1401b0c00
test eax, eax
je 0x1401b1728
mov rcx, rbp
call fcn.140189bb0
movsxd r8, eax
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 0x68]
call fcn.1401b0e60
test eax, eax
je 0x1401b1728
lea rdx, [rdi + 0x38]
lea rcx, [rdi + 8]
call fcn.1401b0f70
test eax, eax
jne 0x1401b172c
xor eax, eax
jmp 0x1401b1731
mov eax, 1
mov r15, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14027f960
add rsp, 0xb8
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401b3400
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x28
call fcn.140280460
sub rsp, rax
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1401b3448
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1401b342d
mov dword [reloc.WS2_32.dll_accept], eax
jmp 0x1401b3448
xorps xmm2, xmm2
lea rcx, [rsp + 0x38]
mov edx, 8
call fcn.14017f1e0
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x1401b3464
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm2, xmm2
lea rcx, [rsp + 0x30]
mov edx, 4
mov dword [rsp + 0x30], eax
call fcn.14017f1e0
add rsp, 0x28
ret
Function at 0x1401c7610
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, 0x38
call fcn.140280460
sub rsp, rax
mov r11, rcx
cmp dword [rsp + 0x60], r9d
jne 0x1401c76ff
movzx r10d, byte [r8]
lea eax, [r10 - 0x6a]
cmp al, 1
ja 0x1401c76ff
mov qword [rsp + 0x30], rbx
lea rdx, [r8 + 1]
cmp r10b, 0x6b
jne 0x1401c76ae
lea ebx, [r9 - 3]
xor eax, eax
test ebx, ebx
jle 0x1401c766a
movzx ecx, byte [rdx]
inc rdx
cmp cl, 0xba
je 0x1401c766a
cmp cl, 0xbb
jne 0x1401c769d
inc eax
cmp eax, ebx
jl 0x1401c7654
sub ebx, eax
test eax, eax
jne 0x1401c76b2
mov dword [rsp + 0x20], 0x83
lea r9, [0x1403b5390]
mov edx, 0x80
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xa]
call fcn.140176d10
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x38
ret
mov dword [rsp + 0x20], 0x7b
lea r9, [0x1403b5378]
jmp 0x1401c767f
lea ebx, [r9 - 2]
movsxd rax, ebx
cmp byte [rax + rdx], 0xcc
je 0x1401c76e8
mov edx, 0x80
mov dword [rsp + 0x20], 0x8b
lea r9, str..crypto_rsa_rsa_x931.c
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xb]
call fcn.140176d10
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x38
ret
mov r8d, ebx
mov rcx, r11
call fcn.140282ac0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
mov edx, 0x80
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
lea r9, [0x1403b5360]
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 9]
call fcn.140176d10
or eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x1402062e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x20
call fcn.140280460
sub rsp, rax
mov r9d, dword [rdx + 8]
mov rsi, rdx
cmp r9d, dword [r8 + 8]
mov rdi, r8
mov rbx, rcx
cmovge rdi, rdx
cmovge rsi, r8
mov edx, dword [rdi + 8]
cmp edx, dword [rcx + 0xc]
jg 0x14020631e
mov rax, rcx
jmp 0x140206323
call fcn.140186020
test rax, rax
jne 0x140206338
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
cmp dword [rsi + 8], eax
jle 0x140206365
xor r9d, r9d
mov rcx, qword [rsi]
lea r9, [r9 + 8]
mov rdx, qword [rdi]
inc eax
mov r8, qword [r9 + rdx - 8]
xor r8, qword [r9 + rcx - 8]
mov rcx, qword [rbx]
mov qword [r9 + rcx - 8], r8
cmp eax, dword [rsi + 8]
jl 0x140206342
cmp eax, dword [rdi + 8]
jge 0x14020639b
movsxd rcx, eax
lea r8, [rcx*8]
nop word [rax + rax]
mov rcx, qword [rdi]
lea r8, [r8 + 8]
mov rdx, qword [rbx]
inc eax
mov rcx, qword [r8 + rcx - 8]
mov qword [r8 + rdx - 8], rcx
cmp eax, dword [rdi + 8]
jl 0x140206380
mov edx, dword [rdi + 8]
mov dword [rbx + 8], edx
test edx, edx
jle 0x1402063c7
lea eax, [rdx - 1]
movsxd rcx, eax
mov rax, qword [rbx]
lea r8, [rax + rcx*8]
mov rax, qword [r8]
lea r8, [r8 - 8]
test rax, rax
jne 0x1402063c4
dec edx
test edx, edx
jg 0x1402063b2
mov dword [rbx + 8], edx
cmp dword [rbx + 8], 0
jne 0x1402063d4
mov dword [rbx + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14020b0e0
Capabilities:
Encode data using base64

Disassembly:
xor r10d, r10d
test r8d, r8d
jle 0x14020b1d3
lea r9, [rdx + 1]
lea r11, [0x140321ce0]
cmp r8d, 3
jl 0x14020b15b
movzx eax, byte [r9]
movzx edx, byte [r9 - 1]
shl rdx, 8
or rdx, rax
movzx eax, byte [r9 + 1]
shl rdx, 8
or rdx, rax
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r11]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 1], al
mov rax, rdx
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 2], al
add rcx, 3
and edx, 0x3f
movzx eax, byte [rdx + r11]
mov byte [rcx], al
jmp 0x14020b1b4
movzx edx, byte [r9 - 1]
shl edx, 0x10
cmp r8d, 2
jne 0x14020b172
movzx eax, byte [r9]
shl eax, 8
or edx, eax
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r11]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 1], al
cmp r8d, 1
jne 0x14020b19e
lea eax, [r8 + 0x3c]
jmp 0x14020b1aa
shr rdx, 6
and edx, 0x3f
movzx eax, byte [rdx + r11]
mov byte [rcx + 2], al
add rcx, 3
mov byte [rcx], 0x3d
add r10d, 4
add r9, 3
sub r8d, 3
inc rcx
test r8d, r8d
jg 0x14020b0f7
mov byte [rcx], 0
mov eax, r10d
ret
mov byte [rcx], r10b
mov eax, r10d
ret
Function at 0x140232db0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
mov eax, 0x20
call fcn.140280460
sub rsp, rax
mov rax, qword [rcx + 8]
lea r14d, [r9 + 1]
mov rbx, rdx
mov rsi, rcx
mov r9, qword [rax + 0xc8]
test byte [r9 + 0x70], 1
je 0x140232e16
mov ecx, dword [rdx + 4]
lea eax, [r14 + r8]
cmp eax, ecx
jbe 0x140232e03
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, r8d
add qword [rdx + 0x10], rax
add qword [rdx + 0x18], rax
sub ecx, r8d
mov dword [rdx + 4], ecx
jmp 0x140232e1c
cmp r14d, dword [rdx + 4]
ja 0x140232df0
mov ecx, dword [rdx + 4]
mov rax, qword [rdx + 0x10]
dec ecx
mov qword [rsp + 0x30], rbp
or ebp, 0xffffffff
test dword [rsi + 0x19c], 0x200
mov qword [rsp + 0x38], rdi
movzx edi, byte [rcx + rax]
je 0x140232e8f
cmp qword [rsi + 0xe0], 0
jne 0x140232e8f
mov rcx, qword [rsi + 0x80]
lea rdx, [0x1404128a0]
add rcx, 8
mov r8d, 8
call fcn.140175590
test eax, eax
jne 0x140232e7d
test dil, 1
jne 0x140232e7d
mov rax, qword [rsi + 0x80]
or dword [rax], 8
mov rax, qword [rsi + 0x80]
test byte [rax], 8
je 0x140232e8f
test edi, edi
je 0x140232e8f
add edi, ebp
mov rcx, qword [rsi + 0xd0]
mov rcx, qword [rcx]
call fcn.140189700
bt eax, 0x15
jae 0x140232eb3
sub ebp, edi
mov eax, 1
add dword [rbx + 4], ebp
jmp 0x140232f6a
mov r11d, dword [rbx + 4]
lea ecx, [rdi + r14]
mov esi, 0xff
mov r8d, r11d
sub r8d, ecx
mov eax, r11d
xor r8d, ecx
xor eax, ecx
or r8d, eax
lea eax, [r11 - 1]
xor r8d, r11d
shr r8d, 0x1f
dec r8d
cmp eax, esi
cmovb esi, eax
xor r9d, r9d
test esi, esi
je 0x140232f3a
mov rbp, qword [rbx + 0x10]
mov r10d, edi
shr r10d, 0x1f
nop word [rax + rax]
mov eax, r9d
mov ecx, edi
sub ecx, r9d
shr eax, 0x1f
shr ecx, 0x1f
xor cl, al
xor al, r10b
or cl, al
mov eax, r11d
sub eax, r9d
xor cl, r10b
dec cl
dec eax
movzx edx, cl
inc r9d
movzx ecx, byte [rax + rbp]
xor ecx, edi
and edx, ecx
not edx
and r8d, edx
cmp r9d, esi
jb 0x140232f00
not r8d
movzx eax, r8b
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [rdi + 1]
neg ecx
and eax, ecx
sub r11d, eax
shl eax, 8
or dword [rbx], eax
mov eax, ecx
and eax, 1
mov dword [rbx + 4], r11d
not ecx
or eax, ecx
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1402376a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.140280460
sub rsp, rax
mov edi, edx
mov rbx, rcx
test edx, edx
jle 0x1402376cc
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140238a50
test eax, eax
je 0x140237702
mov rcx, rbx
call fcn.1401cd2f0
test eax, 0x3000
jne 0x14023770f
cmp dword [rbx + 0x284], 0
jne 0x14023770f
mov rcx, rbx
call fcn.14018c390
mov rcx, rax
mov edx, 1
call fcn.140178fe0
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140238960

Function at 0x140238960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
mov eax, 0x20
call fcn.140280460
sub rsp, rax
lea rdx, [rsp + 0x38]
mov rbx, rcx
call fcn.140238850
test rax, rax
je 0x140238a46
cmp dword [rsp + 0x38], 0
jg 0x140238a46
cmp dword [rsp + 0x3c], 0
jg 0x140238a46
mov rcx, qword [rbx + 0x88]
movzx eax, word [rcx + 0x31c]
add ax, ax
mov word [rcx + 0x31c], ax
mov rax, qword [rbx + 0x88]
cmp word [rax + 0x31c], 0x3c
jbe 0x1402389d0
mov ecx, 0x3c
mov word [rax + 0x31c], cx
mov rcx, rbx
call fcn.140238c80
mov rcx, rbx
call fcn.1402380d0
test eax, eax
jns 0x1402389ed
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x88]
inc dword [rax + 0x308]
mov rax, qword [rbx + 0x88]
cmp dword [rax + 0x308], 2
jbe 0x140238a14
mov dword [rax + 0x308], 1
cmp dword [rbx + 0x284], 0
mov rcx, rbx
je 0x140238a34
mov dword [rbx + 0x284], 0
add rsp, 0x20
pop rbx
jmp fcn.140236cc0
call fcn.140238c80
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140237a80
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14025a560
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, r8
mov rbx, rdx
mov ecx, dword [0x14041ac24]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140413fc8], ecx
jle 0x14025a5e7
lea rcx, [0x140413fc8]
call fcn.14027fab0
cmp dword [0x140413fc8], 0xffffffff
jne 0x14025a5e7
lea rcx, [rsp + 0x20]
call fcn.14025a690
mov qword [0x140413fc0], rax
lea rcx, [0x140413fc8]
call fcn.14027fa44
mov rax, qword [0x140413fc0]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rax]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x14025a645
mov ecx, eax
call fcn.14025a670
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140329db0]
lea rcx, [rsp + 0x30]
call fcn.1400082a0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14025a090
lea rdx, [0x14039cdd8]
lea rcx, [rsp + 0x50]
call fcn.1402833f0
nop
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14027f960
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
Function at 0x14027ec68
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14027ecec
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14027ecec
dec r8
sub rdx, 1
jne 0x14027ecd2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14028096c
Capabilities:
Parse pe header

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

Function at 0x140280f10
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140280f3a
mov eax, dword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rdx, str.error_while_reading
mov rcx, rbx
call fcn.140280f50
int3
Function at 0x14029b844
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140280460
sub rsp, rax
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1402a3300
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14029b893
mov rax, rbp
jmp 0x14029b99b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x41b240]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1402b0350
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x41b240]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14029b997
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14029b997
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1402b0350
test rax, rax
js 0x14029b997
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14029b997
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14029b989
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14029b989
cmp byte [rcx], 0xd
jne 0x14029b96f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14029b97e
cmp byte [rcx + 1], 0xa
jne 0x14029b97e
inc rcx
jmp 0x14029b97e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3d6ab0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14029b951
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14029b99b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14027f960
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1402a17c0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1402a15b0
Function at 0x1402b06a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14041b240]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1402b06fe
cmp word [rdx], r12w
jne 0x1402b06fe
or byte [rax + r8*8 + 0x38], cl
jmp 0x1402b0704
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1402b085f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1402b083a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1402b073d
mov rcx, r9
jmp 0x1402b0760
cmp r9, rdx
jae 0x1402b0777
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1402b0721
jmp 0x1402b085f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402b0834
cmp dword [rsp + 0x80], edi
je 0x1402b0834
mov rdx, r14
lea r11, [0x14041b240]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1402b080d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1402b07e0
mov word [rbx], r12w
jmp 0x1402b085b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1402b07e9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1402b085b
cmp word [rsp + 0x70], r12w
jne 0x1402b081a
cmp rbx, rsi
je 0x1402b07da
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1402b0358
cmp word [rsp + 0x70], r12w
je 0x1402b085f
mov word [rbx], r13w
jmp 0x1402b085b
lea r11, [0x14041b240]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1402b0857
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1402b085f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1402b10b4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1402b10e6
call fcn.14028f26c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14028f67c
jmp 0x1402b1205
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402b1205
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1402b1205
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1402b1115
lock or dword [rcx + 0x14], 0x10
jmp 0x1402b1205
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1402b1129
call fcn.1402b35b4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1402a3300
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1402b0b4c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1402b11f3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1402b11be
mov rcx, rsi
call fcn.1402a3300
cmp eax, edi
je 0x1402b11a9
mov rcx, rsi
call fcn.1402a3300
cmp eax, 0xfffffffe
je 0x1402b11a9
mov rcx, rsi
call fcn.1402a3300
movsxd rbx, eax
lea r14, [0x14041b240]
mov rcx, rsi
sar rbx, 6
call fcn.1402a3300
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1402b11b0
lea rdx, [0x1403d6a60]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402b11be
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1402b11e2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1402b11e2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1402b11e2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1402b1208
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1402b5ccc
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 0x1402b5cfc
xor eax, eax
jmp 0x1402b5dbf
mov rbp, rbx
cmp word [rax], si
je 0x1402b5d21
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402b5d08
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402b5d04
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.1402ad7c4
movsxd r14, eax
test eax, eax
jne 0x1402b5d5f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402b5cf5
mov rcx, r14
call fcn.1402ab264
mov rdi, rax
test rax, rax
jne 0x1402b5d78
xor ecx, ecx
call fcn.1402ab228
jmp 0x1402b5d54
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.1402ad7c4
test eax, eax
jne 0x1402b5da9
mov rcx, rdi
call fcn.1402ab228
jmp 0x1402b5db3
xor ecx, ecx
call fcn.1402ab228
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 0x1402b5ddc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1402b5e63
mov rsi, rbx
cmp word [rax], bp
je 0x1402b5e22
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402b5e0c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402b5e08
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402ab264
mov rdi, rax
test rax, rax
je 0x1402b5e50
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140282ac0
mov rbp, rdi
xor ecx, ecx
call fcn.1402ab228
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret