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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x140078332
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140078375
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + htons]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400783d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + htons]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + htons]
sub rbp, 1
jne 0x140078390
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140078413
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400f64aa]
mov r8d, 1
call qword [rbx + htons]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400f64ab]
mov r8d, 1
call qword [rbx + htons]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400783e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140078c44
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400ac1cc
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400abfa0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400abfa0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400abfa0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400abfa0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400abfa0
cmp dword [rcx + 0x84], 0xe
jbe 0x1400abfa0
cmp dword [rcx + 0xf8], esi
je 0x1400abfa0
mov ecx, r14d
call fcn.1400ac0e8
mov ecx, 2
call fcn.1400b0910
nop
cmp byte [0x140139b90], 0
jne 0x1400ac06a
mov r15d, 1
mov eax, r15d
xchg dword [0x140139b80], eax
test ebx, ebx
jne 0x1400ac013
mov rdi, qword [0x1401310c8]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140139b88]
cmp rcx, rax
je 0x1400ac00a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400079c0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140139cc8]
jmp 0x1400ac01f
cmp ebx, r15d
jne 0x1400ac025
lea rcx, [0x140139ce0]
call fcn.1400acc80
nop
test ebx, ebx
jne 0x1400ac03c
lea rdx, [0x1400ece30]
lea rcx, [0x1400ece08]
call fcn.1400acfb8
lea rdx, [0x1400ece40]
lea rcx, [0x1400ece38]
call fcn.1400acfb8
movzx eax, byte [0x140139b90]
test esi, esi
cmove eax, r15d
mov byte [0x140139b90], al
jmp 0x1400ac06a
mov ecx, 2
call fcn.1400b0964
test esi, esi
jne 0x1400ac081
mov ecx, r14d
call fcn.1400ac09c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400abf30
Function at 0x1400baa7c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400ba738
call fcn.14009eab4
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.14009e964
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400ba720
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400ba720
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1400ba76a
lock or dword [rax + 0x14], 0x10
jmp 0x1400ba720
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400ba787
mov rcx, qword [rbp + 0x10]
call fcn.1400ba298
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400b8ac0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400aeb1c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1400ba7de
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1400ba720
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400ba84a
mov rcx, qword [rbp + 0x10]
call fcn.1400b8ac0
cmp eax, 0xffffffff
je 0x1400ba831
mov rcx, qword [rbp + 0x10]
call fcn.1400b8ac0
cmp eax, 0xfffffffe
je 0x1400ba831
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400b8ac0
movsxd rdi, eax
lea rsi, [0x140139f50]
mov rcx, rbx
sar rdi, 6
call fcn.1400b8ac0
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1400ba838
lea rax, [0x140131600]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400ba84a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400ba880
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400ba87c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400ba87c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1400ba723
jmp 0x1400ba6f0
Function at 0x1400baa84
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400ba8ea
call fcn.14009eab4
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.14009e964
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400ba8cc
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400ba8cc
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x1400ba91c
lock or dword [rax + 0x14], 0x10
jmp 0x1400ba8cc
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400ba939
mov rcx, qword [rbp + 0x20]
call fcn.1400ba298
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1400ba94e
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1400ba954
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1400b8ac0
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400aeb1c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1400ba9a7
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1400ba8cc
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400baa13
mov rcx, qword [rbp + 0x20]
call fcn.1400b8ac0
cmp eax, 0xffffffff
je 0x1400ba9fa
mov rcx, qword [rbp + 0x20]
call fcn.1400b8ac0
cmp eax, 0xfffffffe
je 0x1400ba9fa
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1400b8ac0
movsxd rdi, eax
lea r15, [0x140139f50]
mov rcx, rbx
sar rdi, 6
call fcn.1400b8ac0
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x1400baa01
lea rax, [0x140131600]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400baa13
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1400baa49
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400baa45
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400baa45
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1400baa67
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1400baa72
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1400ba8d1
jmp 0x1400ba898
Function at 0x1400c78ac
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400c78bf
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1400c7f24
lea rdx, [0x14012d978]
lea rcx, [rsp + 0x20]
call fcn.14009d9d8
int3

Function at 0x1400d3b3c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14013a728]
xor edx, edx
jmp fcn.1400c78ac

Function at 0x1400d452c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14013a728]
jmp fcn.1400c78ac

Function at 0x1401544b0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1401544dd
xor al, al
jmp 0x14015463f
mov rax, qword [0x1401746b0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1401746b8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1401746c0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401746c8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401746d0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1401746d8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1401746e0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1401746e8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1401746f0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140154631
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140154589
mov r11d, 2
jmp 0x1401545ad
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1401545a3
mov r11d, 1
jmp 0x1401545ad
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140154655
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1401545f2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14015460a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14015461a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140154628
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140154570
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14015463a
Function at 0x140159ea0
Capabilities:
Hash data using sha1

Disassembly:
push rbx
push rsi
push r13
sub rsp, 0xf0
movzx r13d, r9b
mov rbx, r8
mov rsi, rcx
test r9b, r9b
jne 0x140159ed0
call fcn.140158e30
test al, al
jne 0x140159ed0
add rsp, 0xf0
pop r13
pop rsi
pop rbx
ret
mov qword [rsp + 0x118], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
mov qword [rsp + 0x120], r12
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
call fcn.140163a94
mov r12, rax
test rbx, rbx
je 0x14015a133
lea r9, [rsp + 0x20]
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140154660
test al, al
je 0x14015a133
xor edi, edi
xor al, al
mov qword [rsp + 0x110], rbp
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x88], 0x67452301
mov dword [rsp + 0x84], edi
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x8c], 0xefcdab89
mov dword [rsp + 0x90], 0x98badcfe
mov dword [rsp + 0x94], 0x10325476
mov dword [rsp + 0x98], 0xc3d2e1f0
mov byte [rsp + 0x30], al
mov rbx, rdi
test rbp, rbp
je 0x140159fd9
nop
movzx eax, byte [rbx + r12]
mov byte [rsp + rcx + 0x40], al
mov rcx, qword [rsp + 0x38]
inc rcx
add dword [rsp + 0x84], 8
mov qword [rsp + 0x38], rcx
jne 0x140159fb7
inc dword [rsp + 0x80]
cmp rcx, 0x40
jne 0x140159fcc
lea rcx, [rsp + 0x30]
call fcn.140154910
mov rcx, qword [rsp + 0x38]
inc rbx
cmp rbx, rbp
jb 0x140159f90
movzx eax, byte [rsp + 0x30]
mov rbp, qword [rsp + 0x110]
mov r8d, 0x40
mov qword [rsp + 0x20], r8
test al, al
jne 0x14015a06f
mov byte [rsp + rcx + 0x40], pe_nt_image_headers64
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
cmp rax, 0x38
jbe 0x14015a02b
cmp rax, r8
jae 0x14015a01c
lea rcx, [rsp + rax + 0x40]
sub r8, rax
xor edx, edx
call fcn.140169140
lea rcx, [rsp + 0x30]
call fcn.140154910
mov rax, qword [rsp + 0x38]
cmp rax, 0x38
jae 0x14015a046
mov r8d, gethostname
lea rcx, [rsp + rax + 0x40]
xor edx, edx
sub r8, rax
call fcn.140169140
mov eax, dword [rsp + 0x80]
lea rcx, [rsp + 0x30]
bswap eax
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x84]
bswap eax
mov dword [rsp + 0x7c], eax
call fcn.140154910
mov byte [rsp + 0x30], 1
mov rcx, rdi
mov eax, dword [rsp + rcx*4 + 0x88]
inc rcx
bswap eax
mov dword [rsp + rcx*4 + 0x98], eax
cmp rcx, 5
jb 0x14015a072
lea r9, [rsp + 0x20]
lea r8, [rsp + 0xb0]
lea rcx, [rsp + 0x9c]
mov edx, reloc.WS2_32.dll_sendto
call fcn.1401544b0
mov rdx, qword [rsp + 0x20]
mov rcx, r12
mov byte [rsp + rdx + 0xb0], dil
call fcn.140164308
test r13b, r13b
lea rax, [0x140174a48]
lea rcx, [0x140174a60]
cmovne rcx, rax
cmp byte [rsi + 8], dil
je 0x14015a0ea
nop word [rax + rax]
inc rdi
cmp byte [rsi + rdi + 8], 0
jne 0x14015a0e0
movzx eax, byte [rcx]
test al, al
je 0x14015a10a
cmp rdi, 0x800
jae 0x14015a10a
inc rcx
mov byte [rsi + rdi + 8], al
inc rdi
mov al, byte [rcx]
test al, al
jne 0x14015a0f1
lea rdx, [rsp + 0xb0]
mov r8b, 1
mov rcx, rsi
mov byte [rdi + rsi + 8], 0
call fcn.140159590
test r13b, r13b
je 0x14015a12f
mov rcx, rsi
call fcn.1401596c0
mov al, 1
jmp 0x14015a13d
mov rcx, r12
call fcn.140164308
xor al, al
mov rdi, qword [rsp + 0x118]
mov r12, qword [rsp + 0x120]
add rsp, 0xf0
pop r13
pop rsi
pop rbx
ret
Function at 0x1407f2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407f21df
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 0x1407f2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f206f
add dl, dl
jne 0x1407f2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f20f6
xor eax, eax
add dl, dl
jne 0x1407f20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f21ad
add dl, dl
jne 0x1407f20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407f20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407f207e
mov eax, 1
add dl, dl
jne 0x1407f2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f20fb
sub eax, ebx
mov ebx, 1
jne 0x1407f214c
mov ecx, 1
add dl, dl
jne 0x1407f212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407f2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f215d
cmp eax, 0x7d00
jae 0x1407f219b
cmp eax, 0x500
jb 0x1407f2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f207e
cmp eax, 0x7f
ja 0x1407f219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407f21d2
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 0x1407f207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14003b3b6
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005a390
xor r8d, r8d
xor edx, edx
jmp 0x14005a080

Function at 0x14003c1e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400af530
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400d0048]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1400d31b0]
xor r11d, r11d
lea rdi, [0x1400bb2d4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400af5a0
mov rax, 0xfffffffffffffffe
jmp 0x1400af6ed
cmp word [r10 + 6], r11w
jne 0x1400af60f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400af5ca
test r14, r14
je 0x1400af5bb
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400af6ed
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400af5d8
mov r8b, 2
jmp 0x1400af5f6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400af5e6
mov r8b, 3
jmp 0x1400af5f6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400af6e2
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400af638
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400af6e2
cmp bl, bpl
jb 0x1400af6e2
cmp bl, r8b
jae 0x1400af6e2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400af665
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400af6e2
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400af647
cmp r9, rbp
jae 0x1400af691
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400af594
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400af6e2
cmp edx, 0x110000
jae 0x1400af6e2
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400af6e2
test r14, r14
je 0x1400af6d0
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.14003daf3
jmp 0x1400af6ed
mov rdx, rsi
mov rcx, r10
call fcn.14003e15b
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003c67b
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003c239
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140041e68
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140041ef5
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140041ef5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041ef5
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140041edc
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140041ed6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140041ede
add rdx, 0x28
jmp 0x140041ebb
xor edx, edx
test rdx, rdx
jne 0x140041ee7
xor al, al
jmp 0x140041efb
cmp dword [rdx + 0x24], 0
jge 0x140041ef1
xor al, al
jmp 0x140041efb
mov al, 1
jmp 0x140041efb
xor al, al
jmp 0x140041efb
add rsp, 0x18
ret

Function at 0x14003c7cf
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14005114c
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400bc298]
mov ecx, 2
lea r8, [0x1400bc290]
lea rdx, str.FlsGetValue
call fcn.140050c1c
mov ecx, ebx
test rax, rax
je 0x140051186
add rsp, 0x20
pop rbx
jmp qword [0x1400de020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14003c914
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400932a0
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 0x1400932d0
xor eax, eax
jmp 0x140093393
mov rbp, rbx
cmp word [rax], si
je 0x1400932f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400932dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400932d8
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.14003d2ba
movsxd r14, eax
test eax, eax
jne 0x140093333
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400932c9
mov rcx, r14
call fcn.14003b037
mov rdi, rax
test rax, rax
jne 0x14009334c
xor ecx, ecx
call fcn.14003b172
jmp 0x140093328
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.14003d2ba
test eax, eax
jne 0x14009337d
mov rcx, rdi
call fcn.14003b172
jmp 0x140093387
xor ecx, ecx
call fcn.14003b172
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