joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400786c6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400825a0
mov word [rsp + 0x20], r9w
mov word [rsp + 0x18], r8w
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x1401b9255]
call fcn.14007a304
xor eax, eax
mov word [rbp + 0x44], ax
xor eax, eax
mov word [rbp + 0x64], ax
mov eax, dword [rbp + 0x168]
and eax, 0xfffffffe
mov dword [rbp + 0x168], eax
mov dword [rbp + 4], 0
jmp 0x140082615
mov eax, dword [rbp + 4]
add eax, 2
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x168]
cmp dword [rbp + 4], eax
jae 0x1400826d2
movzx eax, word [rbp + 0x170]
movzx ecx, word [rbp + 0x64]
imul eax, ecx
movzx ecx, word [rbp + 0x178]
add eax, ecx
mov word [rbp + 0x64], ax
mov eax, dword [rbp + 4]
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x160]
movzx eax, byte [rdx + rax]
mov byte [rbp + rcx + 0x24], al
mov eax, dword [rbp + 4]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x160]
movzx eax, byte [rdx + rax + 1]
mov byte [rbp + rcx + 0x24], al
movzx eax, word [rbp + 0x24]
movzx ecx, word [rbp + 0x44]
add ecx, eax
mov eax, ecx
mov word [rbp + 0x44], ax
movzx eax, word [rbp + 0x64]
movzx ecx, word [rbp + 0x24]
xor ecx, eax
mov eax, ecx
mov word [rbp + 0x24], ax
mov eax, 1
imul rax, rax, 1
mov ecx, dword [rbp + 4]
mov rdx, qword [rbp + 0x160]
movzx eax, byte [rbp + rax + 0x24]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 0
mov ecx, dword [rbp + 4]
mov rdx, qword [rbp + 0x160]
movzx eax, byte [rbp + rax + 0x24]
mov byte [rdx + rcx + 1], al
jmp 0x14008260c
movzx eax, word [rbp + 0x44]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140171c10]
call fcn.140079a35
mov eax, edi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x140078743
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400adaa0
mov rax, rcx
neg rcx
test rax, 7
je 0x1400adabd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400adb18
test al, 7
jne 0x1400adab0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400adad1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400adb42
test dh, dh
je 0x1400adb3c
shr rdx, 0x10
test dl, dl
je 0x1400adb36
test dh, dh
je 0x1400adb30
shr rdx, 0x10
test dl, dl
je 0x1400adb2a
test dh, dh
je 0x1400adb24
shr edx, 0x10
test dl, dl
je 0x1400adb1e
test dh, dh
jne 0x1400adad1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x140078770
Capabilities:
Query environment variable

Disassembly:
jmp 0x140138600
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140138180
lea rcx, [rsp + 0x20]
call fcn.1401381d0
movzx eax, al
test eax, eax
jne 0x140138645
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1401381b0
mov rax, qword [rsp + 0x40]
jmp 0x14013873f
lea rcx, [rsp + 0x20]
call fcn.1401382d0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140138270
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.140078991
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14007839c
lea rcx, [rsp + 0x28]
call fcn.140078c6b
movzx eax, al
test eax, eax
jne 0x1401386df
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400798c8
lea rcx, [rsp + 0x20]
call fcn.1401381b0
mov rax, qword [rsp + 0x50]
jmp 0x14013873f
lea rcx, [rsp + 0x20]
call fcn.1401382d0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14007a278
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.14007891e
lea rcx, [rsp + 0x28]
call fcn.14007a7fa
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400798c8
lea rcx, [rsp + 0x20]
call fcn.1401381b0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x140078a90
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a3550
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400a2ed0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a358f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ba020]
jmp 0x1400a3599
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140078bfd
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400a3480
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400a2e50
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a34c1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ba020]
jmp 0x1400a34c7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140078c75
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401453c0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140144330
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140145427
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401ba030]
jmp 0x140145449
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400784a0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140078c89
Capabilities:
Terminate process

Disassembly:
jmp 0x1400885b0
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 0x140078e87
Capabilities:
Print debug messages

Disassembly:
jmp 0x140158cd0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401a7008]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140158cf6
jmp 0x140158d73
mov rcx, qword [rbp + 0x30]
call fcn.140078743
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140158d0f
jmp 0x140158d73
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140158d2c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140077929
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140077d34
test eax, eax
jne 0x140158d73
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140078919
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140079143
Capabilities:
Set environment variable

Disassembly:
jmp 0x14013a4b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x140079337
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008b7b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14008b7d0
xor al, al
jmp 0x14008b851
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14008b7e3
xor al, al
jmp 0x14008b851
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 0x14008b80d
xor al, al
jmp 0x14008b851
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14008b821
xor al, al
jmp 0x14008b851
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14008b833
xor al, al
jmp 0x14008b851
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14008b84f
xor al, al
jmp 0x14008b851
mov al, 1
add rsp, 0x38
ret
Function at 0x1400795f8
Capabilities:
Get common file path

Disassembly:
jmp 0x1400aeb00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add rsp, 0x28
ret

Function at 0x140079819
Capabilities:
Terminate process

Disassembly:
jmp 0x14011e740
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14011e76e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140079f67
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140079fc6
Capabilities:
Print debug messages

Disassembly:
jmp 0x140131190
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14007a075
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400a35c0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400a2f10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a3609
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ba020]
jmp 0x1400a3618
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x14007a6fb
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140081a80
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1401a7008]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1401b9182]
call fcn.14007a304
mov dword [rbp + 0x24], 2
lea rax, [rbp + 0x24]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x64]
xor r8d, r8d
lea rdx, str.Licence
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0xea
je 0x140081b1c
mov eax, 0xc0014002
jmp 0x140081c17
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov r8d, eax
mov edx, 8
mov rcx, qword [0x1401aa780]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140081b51
mov eax, 0xc0004001
jmp 0x140081c17
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x1a0]
call fcn.140081760
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x140081bde
mov dword [rbp + 0x24], 8
lea rax, [rbp + 0x24]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x64]
xor r8d, r8d
lea rdx, str.PipeServiceAllowed
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x140081bd7
cmp dword [rbp + 0x64], 1
jne 0x140081bd7
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rbp + rax + 0xa8]
mov rcx, qword [rbp + 8]
movzx ecx, byte [rcx + 0x31]
cmp eax, ecx
je 0x140081bde
mov dword [rbp + 0x44], 0xc0014001
mov rax, qword [rbp + 8]
cmp dword [rax + 0x3c], 0
jne 0x140081bef
mov dword [rbp + 0x44], 0xc0014001
cmp dword [rbp + 0x44], 0
jne 0x140081c01
mov rcx, qword [rbp + 8]
call fcn.140081cc0
mov dword [rbp + 0x44], eax
mov r8, qword [rbp + 8]
xor edx, edx
mov rcx, qword [0x1401aa780]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rbp + 0x44]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140079a35
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.140078919
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140081760
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1401a7008]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1401b9182]
call fcn.14007a304
mov dword [rbp + 4], 0
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x1a8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x24]
xor r8d, r8d
lea rdx, str.Licence
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x1400817fc
cmp dword [rbp + 0x24], 3
je 0x140081806
mov eax, 0xc0014001
jmp 0x1400819b1
mov eax, 0x726f
mov word [rbp + 0x84], ax
mov eax, 0x44a9
mov word [rbp + 0xa4], ax
mov eax, dword [rbp + 0x1b0]
sub eax, 2
movzx eax, ax
mov rcx, qword [rbp + 0x1a8]
add rcx, 2
movzx r9d, word [rbp + 0x84]
movzx r8d, word [rbp + 0xa4]
mov edx, eax
call fcn.1400779c4
mov word [rbp + 0x64], ax
movzx eax, word [rbp + 0x64]
mov rcx, qword [rbp + 0x1a8]
movzx ecx, word [rcx]
cmp eax, ecx
je 0x140081869
mov dword [rbp + 4], 0xc0014002
mov rax, qword [rbp + 0x1a8]
movzx eax, word [rax + 0x1a]
mov rcx, qword [rbp + 0x1a8]
movzx ecx, byte [rcx + 0x19]
imul eax, ecx
mov word [rbp + 0x84], ax
mov rax, qword [rbp + 0x1a8]
movzx eax, byte [rax + 0x18]
mov rcx, qword [rbp + 0x1a8]
movzx ecx, byte [rcx + 0x19]
imul eax, ecx
mov word [rbp + 0xa4], ax
mov eax, dword [rbp + 0x1b0]
sub eax, 0x1c
movzx eax, ax
mov rcx, qword [rbp + 0x1a8]
add rcx, 0x1c
movzx r9d, word [rbp + 0x84]
movzx r8d, word [rbp + 0xa4]
mov edx, eax
call fcn.1400779c4
mov word [rbp + 0x64], ax
movzx eax, word [rbp + 0x64]
mov rcx, qword [rbp + 0x1a8]
movzx ecx, word [rcx + 8]
cmp eax, ecx
je 0x1400818f5
mov dword [rbp + 4], 0xc0014002
mov rax, qword [rbp + 0x1a8]
movzx eax, byte [rax + 0x25]
mov rcx, qword [rbp + 0x1a8]
movzx ecx, byte [rcx + 0x24]
imul eax, ecx
mov word [rbp + 0x84], ax
mov rax, qword [rbp + 0x1a8]
movzx eax, word [rax + 0x26]
mov rcx, qword [rbp + 0x1a8]
movzx ecx, byte [rcx + 0x24]
imul eax, ecx
mov word [rbp + 0xa4], ax
mov eax, dword [rbp + 0x1b0]
sub eax, 0x28
movzx eax, ax
mov rcx, qword [rbp + 0x1a8]
add rcx, 0x28
movzx r9d, word [rbp + 0x84]
movzx r8d, word [rbp + 0xa4]
mov edx, eax
call fcn.1400779c4
mov word [rbp + 0x64], ax
movzx eax, word [rbp + 0x64]
mov rcx, qword [rbp + 0x1a8]
movzx ecx, word [rcx + 0x14]
cmp eax, ecx
je 0x140081981
mov dword [rbp + 4], 0xc0014002
cmp dword [rbp + 4], 0
jne 0x1400819ae
mov rax, qword [rbp + 0x1a8]
movzx eax, byte [rax + 0x30]
cmp eax, 0x51
jne 0x1400819a7
mov rax, qword [rbp + 0x1a8]
movzx eax, byte [rax + 0x17]
cmp eax, 2
jge 0x1400819ae
mov dword [rbp + 4], 0xc0014004
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1401718f0]
call fcn.140079a35
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.140078919
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140148e40
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140077929
sub rsp, rax
mov rax, qword [0x1401a7008]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401a9bc0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140149032
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140148f86
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140148f86
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140148f6b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140148f08
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140148ff2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140149051
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14014902d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140149051
jmp 0x140148ede
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140078919
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140149100
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140077929
sub rsp, rax
mov rax, qword [0x1401a7008]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401a9bc0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14014930d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140149259
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140149259
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140149239
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, recv
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1401491c8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401492cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14014932c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140149308
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14014932c
jmp 0x14014919e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140078919
add rsp, 0x1498
pop rdi
pop rsi
ret