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

Disassembly:
mov qword [rsp + 0x18], r9
lea r11, [0x1402ebf18]
lea rsp, [rsp + 0x18]
mov r9d, 0xf48eefb5
movzx r9d, byte [r10]
push 0x3068db1
xor r9d, ebx
neg word [rsp + 2]
and r9d, 0xff
mov r9d, dword [r11 + r9*4]
shr ebx, 8
xor ebx, r9d
shl word [rsp + 6], 0xee
inc r10
xor ebx, 0xc12e3ba6
push 0xffffffff84bf6b08
dec rsi
lea rsp, [rsp + 0x10]
jne 0x1402e56a0
pop r9
mov r11d, 0xd298a513
call fcn.1403195c9
jmp 0x14030a8a0
movzx esi, dil
lea rbx, [rbx + rdi - 0x9bc3b11]
neg di
mov qword [rbx + rdi*8 - 0x4de627b8], r11
xor edi, 0xa63bd137
lea r10, [r10 + rsi - 0xd]
mov r9d, esi
adc r9b, sil
mov r9d, dword [r10 + rsi*2 - 0x12]
mov edx, edi
sbb edi, edx
xor r9d, ebp
sar esi, 0x2a
not r9d
movsx eax, dl
dec r9d
dec edx
movsx ecx, dl
neg r9d
and dil, 0x81
push rsi
rol r9d, 1
xchg byte [rsp + rdi*2 + 7], dl
inc dword [rsp + rdi*2 + 3]
mov qword [rsp + rdi], rbp
xor dword [rsp + rdi*2], r9d
neg dl
xor ax, 0xdf93
pop rbp
dec sil
cmovns rsi, rax
add eax, ecx
movsxd r9, r9d
cmovge rsi, rcx
shl sil, 0xe1
xchg al, sil
add r8, r9
and cl, sil
shr dil, 3
xadd rsi, rdi
jae fcn.1402ea123

Function at 0x1402e8e86
Capabilities:
Authenticate hmac

Disassembly:
shr r10, 0x90
mov edx, dword [r8 + rcx*2 - 0x801e12]
mov qword [rsp + rcx*2 - 0x801e0e], 0x3314c09e
inc si
mov cl, byte [r8 + rcx*2 - 0x801e0e]
lea r8, [r8 + r10*8 - 0x79d9a]
js 0x14039a518
movsxd rbp, ebp
call fcn.1402dfdc9
adc rbp, 0x6b2785bf
shrd ebx, edx, cl
call fcn.1403524e3

Function at 0x1402ef2fa
Capabilities:
Authenticate hmac

Disassembly:
lea r8, [r8 + rcx - 0x572f0003]
mov dword [r8 + rcx - 0x572effff], eax
shr cl, 0x66
dec word [rsp + rcx - 0x572efee8]
pop r11
pop rbx
pop rsi
pop rcx
pop r10
jg fcn.14033e3d6

Function at 0x1402ef4ce
Capabilities:
Authenticate hmac

Disassembly:
lea r8, [r8 + rsi*8 - 0x15b6f4d6]
mov qword [rsp + rsi - 0x2b6de9b], 0xffffffffd31cab14
neg qword [rsp + rsi*2 - 0x56dbd36]
lea rdx, [rsi + rsi*2 - 0x1dd3db74]
shl bx, cl
lea rax, [rsi + rsi*4 - 0x66e1b8e2]
mov word [r8 + rsi - 0x2b6de9b], bx
movsx ebx, byte [rsp + rsi*2 - 0x56dbd34]
xadd byte [rsp + rsi*2 - 0x56dbd33], sil
pop rsi
lea r11, [rdx + r11 + 0x15af3f9f]
mov r10d, 0x9ca53890
xadd dx, r10w
movzx ecx, dx
mov ebx, dword [r11 + rdx + 0x15af0713]
xor ebx, edi
add r10w, cx
lea ebx, [rbx + rdx*2 + 0x62efe42b]
jae 0x140319418
or ax, dx
cmovp dx, r10w
ror ebx, 2
sar ax, cl
sbb eax, r10d
jp 0x140370276
mov edi, 0xfdbe75b5
lea r11, [rdi + rdi - 0x57f41a54]
call fcn.1402d92b2
mov qword [rsp + rax*2 - 0x4340], rdi
rol word [rsp + rax - 0x21af], cl
dec dword [rsp + rbx*8 - 0x11]
xor dword [rsp + rax*2 - 0x4340], ebp
xchg qword [rsp + 8], rcx
add rcx, 0x6a683
jmp rcx
jns fcn.14030d183
inc r11w
mov qword [rsp + r9 + 0x2933e835], 0x6eb67184
push rsi
rol r11w, 1
sal rax, 0xc9
dec r11w
ror dword [rsp + r9 + 0x2933e846], 0x36
call fcn.14039afd3
movsxd rbx, ebx
sal rcx, 0x5d
shr dx, 0x46
add ax, 0x4225
adc r9, rbx
jmp r9
not ebx
xadd r10w, ax
ror ebx, 1
inc r10d
movsx ebp, sil
push rdi
lea rcx, [rsi*4 + 0x21359913]
xor dword [rsp + rdx*4 + 0x56bd1ad8], ebx
dec esi
pop rdi
lea rbp, [rsi + 0x18ba4712]
js 0x140355271
adc r10, rdi
pop rdx
pop rcx
pop rdx
jmp fcn.14030bcfc
Function at 0x1402f3062
Capabilities:
Authenticate hmac

Disassembly:
pushfq
pop r9
mov qword [rsp + rdx*4 - 0x3f620d64], r9
lea edi, [rdi - 0x63571e49]
lea r9, [rdx + rdx*4 - 0x14783877]
sal rdi, 3
mov r8d, esi
inc r8w
push rax
push rcx
not esi
movzx eax, r8b
lea rcx, [rax + rax*2 - 0x6afb2165]
push r10
push rcx
jnp 0x140349779

Function at 0x1402fa129
Capabilities:
Authenticate hmac

Disassembly:
movzx r9d, byte [r10]
mov qword [rsp], 0x2f33e08f
call fcn.140370131

Function at 0x1402fe108
Capabilities:
Authenticate hmac
Parse pe header

Disassembly:
not r11d
ror r11d, 3
mov qword [rsp + rbx*2 - 0xfe], rbx
sal cl, 1
mov qword [rsp + rbx*2 - 0xfe], rsi
xor dword [rsp + rbx - 0x7f], r11d
xor ebx, ebp
jno 0x14034975b

Function at 0x140302ca7
Capabilities:
Authenticate hmac

Disassembly:
cmp ebx, 4
push 0xffffffff90298f9c
lea rsp, [rsp + 0x10]
jbe 0x14035acc1
mov ecx, 0x33a4ac99
jmp 0x14035aca6
movzx edx, cl
lea edx, [rcx - 0x33a4ac95]
lea rax, [rcx*2 + 0x7536be32]
sub cx, ax
lea ecx, [rcx + rbx - 0x33a49539]
mov eax, 0xe08bd83a
sal ecx, 3
shl rax, 0xcc
sar eax, 0x46
setbe al
shl edx, 3
sar ax, 0xeb
xadd al, ah
mov rax, rbp
call fcn.14034e9a2
push 0x152212a6
call fcn.14035b060

Function at 0x140326a05
Capabilities:
Authenticate hmac
Parse pe header

Disassembly:
adc qword [rsp + rbp + 0x10], rsi
movzx edx, bp
xor dword [rsp + rbp + 0x10], ecx
mov qword [rsp + rbp*8], rdx
mov rsi, qword [rsp + rbp + 0x10]
dec word [rsp + rbp + 0xd]
push rdx
movsxd rcx, ecx
add r10, rcx
or rdi, rax
add rax, qword [r9 + rbp]
not edx
jmp 0x1403901ad
mov rbx, qword [rax + rbp*2]
call fcn.1403003ad

Function at 0x140329163
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
pop r10
pop rcx
pop r11
pop r11
je fcn.14033e3d6

Function at 0x140345787
Capabilities:
Encrypt data using chaskey

Disassembly:
mov qword [rsp + r11 - 0x983b31c], r11
mov qword [rsp + r11*2 - 0x13076638], r9
xadd r10b, dl
lea rdx, [r11*4 - 0xddd8cfd]
xor dword [rsp + r11*4 - 0x260ecc70], ebx
shr al, 0x23
neg r11
sal sil, 1
pop r9
movsxd rbx, ebx
adc rdi, rbx
push rax
rol qword [rsp + r11*8 + 0x4c1d98e0], 0x60
pop r11
jae fcn.14033e3d6

Function at 0x14034d9ff
Capabilities:
Authenticate hmac

Disassembly:
mov edx, dword [rbx + r9*2 - 0x1368f024]
mov r9d, dword [rbx + r9*4 - 0x26d1e044]
mov cl, byte [rbx + rdi*8 - 0x8f8]
lea rbx, [rbx + rax*4 - 0x41a]
call fcn.1402c6b09
mov rbp, qword [rsp + r9*2 - 0x1368f01c]
inc dx
movsxd rsi, esi
add r8, rsi
ror r11b, cl
sar dx, 3
jp 0x1402d0b00
not esi
lea r11, [r9*2 - 0x3b561566]
rol al, 0xe6
push rdi
lea esi, [rsi + r9*8 + 0x42094afc]
jb 0x1402ef408
inc r9b
mov qword [rsp + r9 - 0x9b4780a], 0xfffffffff4372996
mov qword [rsp + r9*2 - 0x1368f01c], rbp
movzx ebp, r11b
xor dword [rsp + r9*2 - 0x1368f01c], esi
mov ecx, 0xf6acdd83
jmp 0x1402f09fa
Function at 0x14035ea3f
Capabilities:
Authenticate hmac

Disassembly:
mov qword [rsp + rbx*4 - 0x13834], r9
mov r11d, esi
jb 0x14030b476
xor dword [rsp + rbx*2 - 0x9c1a], eax
movsx edx, r11w
shr r11, 0xb5
pop r9
and bl, r11b
movsxd rax, eax
push rdx
setne sil
xor dword [rsp + rbx - 0x4dfc], ebx
adc rdi, rax
rol bl, 6
inc esi
mov eax, dword [r8 + rsi*2 - 0x9c02]
cpuid
lea r8, [rsi + r8 - 0x4e0d]
sbb r11d, esi
mov dword [r8 + rsi - 0x4df5], eax
or si, r11w
je 0x1402ef391
mov dword [rsi + r8 - 0xfff7], ebx
push rsi
mov dword [r8 + rsi*2 - 0x1fffa], ecx
jle 0x1403569f5
xor cl, 0x81
sub cl, 0xb0
call fcn.1402da85e
mov ebx, dword [rsp + 2]
movsx esi, bx
not eax
shr dword [rsp + rbx*2 - 0x9c1a], 0xf2
jae 0x1402e4572
not qword [rsp + rcx*8 - 0x20560]
mov dword [rcx + r8 - 0x40ae], eax
adc qword [rsp + rcx - 0x40a0], rsi
pop r11
call fcn.1402d314e
inc byte [rsp + 1]
xor eax, r9d
dec eax
xor eax, 0xe32cdf35
bswap eax
jmp 0x140351e5a

Function at 0x140364242
Capabilities:
Authenticate hmac

Disassembly:
call fcn.140397c12
mov qword [rsp + r10 - 0x4092c828], r11
xor esi, r9d
sub esi, 0xddb94f0c
movzx ecx, word [rsp + r10 - 0x4092c827]
jmp 0x140382b71
xor esi, 0x18b328c
or r11w, r10w
bswap esi
or ecx, dword [rsp + r11*4 - 0x2447eefb]
push rcx
not r11
xor esi, 0x6da1df8c
ror esi, 2
xor r11b, 0x8e
sbb r10w, 0x57ac
xchg dword [rsp + r10 - 0x40927073], r10d
sbb esi, 0xf99aebad
mov eax, dword [rsp + r10 - 0x91171]
call fcn.14030b686
mov r10d, dword [rbp + riz]
push 0x52a0f5a7
mov ecx, 0x180af330
lea rbp, [rbp + rcx*2 - 0x3015e65c]
shr word [rsp + rcx*4 - 0x602bccbb], 0xed
xor r10d, r9d
xchg dword [rsp + rcx - 0x180af32d], ecx
bswap r10d
add byte [rsp + rcx - 0x4e], 0x2e
jae 0x14030d698
dec r10d
bswap r10d
lea rdx, [rcx + 0x75382e29]
sub cl, cl
jbe 0x1402c7391
mov ebx, 0xae2670a8
jmp 0x1402ce227

Function at 0x14036bf3b
Capabilities:
Authenticate hmac

Disassembly:
inc ecx
ror ecx, 2
xor ecx, 0xb4ac899b
not r9
jmp 0x1402d896a
rol rdi, 0x9f
mov qword [rsp + rdx*2], rbp
xor dword [rsp + rdx*2], ecx
pop rbp
call fcn.14034661a
dec edi
xor ecx, ebp
inc ecx
not ecx
rol qword [rsp + rdx*2], 1
bswap ecx
rol ecx, 2
inc dword [rsp + rdx + 4]
jg 0x1402cad68
push rcx
pop r11
mov rsi, qword [rsp + 0x18]
movsxd rax, eax
pop rdi
add r10, rax
movsx edi, r11b
neg ecx
mov ax, word [r9 + rdi*8 - 0x108]
bswap rcx
lea r9, [rdi + r9 - 0x1f]
sal r11, 0x7b
mov qword [rsp + rdi - 0x19], 0xffffffffe11f0914
lea r8, [r8 + rdi - 0x22]
sar word [rsp + rdi*8 - 0xfb], 0x85
jne 0x14038f2f6
jae 0x1402ef41c
movzx edx, byte [r8 + rdi*4 - 0x84]
xor edi, r11d
not r11d
xor dl, sil
movsx ebx, cx
call fcn.14038eb34
xor r11w, r11w
shl di, 0xac
not eax
mov r9d, edx

Function at 0x1403735fe
Capabilities:
Authenticate hmac
Encode data using base64

Disassembly:
setb bpl
lea r9, [r9 + r11*2 - 0x1fe22]
lea rcx, [rbp*2 + 0x410f1e91]
mov qword [rsp + r11 - 0xff0a], 0xffffffff80816800
or dl, bl
shr ax, 4
pop rbx
not dl
rol rdi, 0xfb
mov ebx, dword [rsp + r11 - 0xff0b]
call fcn.14037f877

Function at 0x140382b5c
Capabilities:
Authenticate hmac

Disassembly:
mov qword [rsp + rsi + 0x78a5a936], rbp
mov qword [rsp + rsi + 0x78a5a92e], rdx
call fcn.14035faa8
Function at 0x140382c0e
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
xor al, sil
ror al, 1
sub r11, rbp
jp 0x140368477
mov qword [rsp + rdx*2 - 0x32c00], 0x7b10753a
dec al
dec ebp
not r11
sets byte [rsp + rdx*2 - 0x32c00]
xor al, 0xbd
neg word [rsp + rdx - 0x19600]
rol bp, 0xa9
push rbp
ror al, 1
push rdx
xor al, 0x3f
inc al
xchg qword [rsp + rdx - 0x195f0], rdi
rol dx, 0xe9
xor sil, al
or dword [rsp + rdx - 0x10129], 0x160d010a
xadd word [rsp + r11 + 0x4c8b2b45], r11w
lea rdi, [rbp + rbp*4 + 0x2e291f88]
lea rax, [rsp + rax + 0x18]
and word [rsp + r11 + 0x4c8bf307], r11w
mov rcx, qword [rax + r11 + 0x4c8bf2ff]
shr bl, 0x21
shl r11w, 2
jnp 0x140397e68

Function at 0x14038acfa
Capabilities:
Authenticate hmac

Disassembly:
lea r11, [rsi + r11 - 0x26baa402]
mov qword [rsp + rsi - 0x26baa3ee], r10
mov r10d, dword [r11 + rsi*2 - 0x4d7547fc]
and dword [rsp + rsi*2 - 0x4d7547eb], 0xb690c08d
mov qword [rsp + rsi*2 - 0x4d7547fc], 0x78a360a5
xor r10d, edi
not byte [rsp + rsi*2 - 0x4d7547f6]
movsx ecx, sil
ror byte [rsp + rsi*2 - 0x4d7547e8], 7
inc r10d
neg r10d
call fcn.140345e5c

Function at 0x14039fc77
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x28]
jne 0x14035e34b
mov ebp, 0x4e25b937
movsx r8d, bp
pop r8
pop r9
Function at 0x1407f4948
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407f4acf
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407f4979
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f495f
add dl, dl
jne 0x1407f4986
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f49e6
xor eax, eax
add dl, dl
jne 0x1407f4995
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f4a9d
add dl, dl
jne 0x1407f49a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f49b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f49c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f49cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407f49da
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407f496e
mov eax, 1
add dl, dl
jne 0x1407f49f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f4a03
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f49eb
sub eax, ebx
mov ebx, 1
jne 0x1407f4a3c
mov ecx, 1
add dl, dl
jne 0x1407f4a1e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f4a2b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f4a13
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f496e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407f4a58
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f4a65
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f4a4d
cmp eax, 0x7d00
jae 0x1407f4a8b
cmp eax, 0x500
jb 0x1407f4a86
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f496e
cmp eax, 0x7f
ja 0x1407f4a8e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f496e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407f4ac2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407f496e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140010540
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400105d0
jmp 0x1400105bf
jae 0x140010690
cmp r8, 0x201
jae 0x1400105d0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140010628
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400105ff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400352e0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140010651
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400106f8
mov r8d, r14d
cmp r15, r8
jne 0x1400105b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001071b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400105bf
jmp 0x1400105d0
cmp rsi, r8
jb 0x140010735
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400137c0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400106e1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140008a40
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1400106c9
jmp 0x1400106e1
lea rcx, str.internal_error:_entered_unreachable_code8
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140035e70
jmp 0x14001074a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400362c0
ud2
Function at 0x14001b850
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14003a468]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001b894
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14001b8f3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14001b902
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14001b93a
cmp eax, 0x103
je 0x14001b944
test eax, eax
js 0x14001b91f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14001b93a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140013440
mov rcx, rax
call fcn.14000a6d0
mov ecx, 7
int 0x29
ud2
Function at 0x14001b9b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14003a468]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001b9f4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001ba5a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001ba91
test eax, eax
js 0x14001ba6b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001ba84
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140013440
mov rcx, rax
call fcn.14000a6d0
mov ecx, 7
int 0x29
ud2
Function at 0x14001e9c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14001eacf
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14001e9f8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14001ea92
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14001eab1
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001ea4e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14001ea6b
jmp 0x14001ea60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001ea66
cmp eax, 0x6d
jne 0x14001ea82
mov byte [rsi + 1], 0
jmp 0x14001ea76
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14001ea78
mov r8d, 0x10
mov rcx, rbx
call fcn.140035220
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14001ea05
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140035220
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14001ea05
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140035080
ud2
Function at 0x140001940
Capabilities:
Parse pe header

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

Function at 0x140005de4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005be0
Function at 0x1400097ec
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 0x14000981c
xor eax, eax
jmp 0x1400098df
mov rbp, rbx
cmp word [rax], si
je 0x140009841
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009828
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009824
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.14000970c
movsxd r14, eax
test eax, eax
jne 0x14000987f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009815
mov rcx, r14
call fcn.14000a764
mov rdi, rax
test rax, rax
jne 0x140009898
xor ecx, ecx
call fcn.140006c9c
jmp 0x140009874
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.14000970c
test eax, eax
jne 0x1400098c9
mov rcx, rdi
call fcn.140006c9c
jmp 0x1400098d3
xor ecx, ecx
call fcn.140006c9c
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 0x1400098fc
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 0x140009983
mov rsi, rbx
cmp word [rax], bp
je 0x140009942
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000992c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140009928
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000a764
mov rdi, rax
test rax, rax
je 0x140009970
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140002f00
mov rbp, rdi
xor ecx, ecx
call fcn.140006c9c
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