joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400014d3
Capabilities:
Encode data using base64

Disassembly:
jmp 0x140014d40
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
xor eax, eax
movzx r11d, r8w
mov word [rsp + 0x19], ax
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov byte [rsp + 0x1b], al
mov rdi, rdx
mov eax, 0x55555556
mov byte [rsp + 0x18], 0
imul r11d
xor r10d, r10d
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea eax, [rbx + rbx*2]
sub r11d, eax
test ebx, ebx
jle 0x140014e16
nop dword [rax]
movzx edx, r10w
lea r8, [rdi + rdx*2]
add r8, rdx
movzx edx, byte [r8]
movzx r9d, byte [r8 + 1]
movzx eax, dl
shr al, 2
mov byte [rsp + 0x18], al
movzx eax, r9b
shr al, 4
shl dl, 4
or al, dl
shl r9b, 2
movzx edx, byte [r8 + 2]
and al, 0x3f
mov byte [rsp + 0x19], al
mov r8d, 4
movzx eax, dl
shr al, 6
or al, r9b
and al, 0x3f
and dl, 0x3f
mov byte [rsp + 0x1a], al
mov byte [rsp + 0x1b], dl
lea rdx, [rsp + 0x18]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
movzx eax, byte [rax + rsi]
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140014df0
inc r10w
movzx eax, r10w
cmp eax, ebx
jl 0x140014d90
sub r11d, 1
je 0x140014ea2
cmp r11d, 1
jne 0x140014e8f
movzx edx, r10w
lea rax, [rdi + rdx*2]
movzx r8d, byte [rdx + rax]
movzx r10d, byte [rdx + rax + 1]
movzx r9d, r8b
movzx edx, r10b
shr r9b, 2
shr dl, 4
and r10b, 0xf
movzx eax, r9b
shl r8b, 4
or dl, r8b
and dl, 0x3f
movzx eax, byte [rax + rsi]
mov byte [rcx], al
movzx eax, dl
shl r10b, 2
movzx eax, byte [rax + rsi]
mov byte [rcx + 1], al
movzx eax, r10b
movzx eax, byte [rax + rsi]
mov byte [rcx + 2], al
mov word [rcx + 3], 0x3d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
ret
mov byte [rcx], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
ret
mov rbx, qword [rsp + 8]
movzx edx, r10w
lea rax, [rdi + rdx*2]
mov rdi, qword [rsp + 0x20]
movzx r8d, byte [rdx + rax]
movzx eax, r8b
and r8b, 3
shr al, 2
movzx eax, al
shl r8b, 4
movzx eax, byte [rax + rsi]
mov byte [rcx], al
movzx eax, r8b
movzx eax, byte [rax + rsi]
mov rsi, qword [rsp + 0x10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
mov byte [rcx + 4], 0
ret

Function at 0x1400014e7
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140095ef0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140143350]
mov ecx, 6
lea r8, [0x140143348]
lea rdx, [0x140143358]
call fcn.1400956d0
mov rdi, rax
test rax, rax
je 0x140095f31
mov rcx, rax
call fcn.140002f18
mov ecx, ebx
call rdi
jmp 0x140095f39
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001956
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400193c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, qword [rsp + 0x70]
xor ebx, ebx
mov r15, r9
mov rbp, r8
mov rdi, rdx
mov r14, rcx
mov qword [r12], rbx
cmp rdx, 2
jb 0x140019521
movzx ecx, word [rcx]
lea esi, [rbx + 2]
mov eax, 6
lea r13d, [rbx + 0x7f]
movzx edx, cx
mov r8d, 0x7e
shr dx, 0xf
and dl, 1
cmovne esi, eax
movzx eax, cx
shr ax, 8
and ax, 0x7f
cmp r8w, ax
jne 0x140019436
add rsi, 2
jmp 0x140019440
cmp r13w, ax
jne 0x140019440
add rsi, 8
cmp rdi, rsi
jb 0x140019521
test rsi, rsi
je 0x140019521
test cl, 0x70
je 0x140019461
mov eax, 0xf1
jmp 0x140019526
test cl, cl
jns 0x140019457
test dl, dl
je 0x140019457
movzx ecx, byte [r14]
and cl, 0xf
lea eax, [rcx - 1]
cmp al, 1
jbe 0x14001947e
lea eax, [rcx - 8]
cmp al, 2
ja 0x140019457
movzx eax, cl
lea r8, [rsp + 0x70]
mov rcx, r14
mov dword [rsp + 0x70], eax
mov rdx, rdi
call fcn.1400192c0
mov r8, rax
test rax, rax
je 0x14001951b
mov rax, rdi
sub rax, rsi
cmp r8, rax
ja 0x140019521
jae 0x1400194b4
sub rdi, rsi
sub rdi, r8
mov qword [r12], rdi
movzx ecx, word [r14]
movzx eax, cx
shr ax, 0xf
test al, 1
je 0x140019457
shr cx, 8
mov eax, 0x7e
and cx, r13w
cmp ax, cx
jne 0x1400194db
lea rdx, [r14 + 4]
jmp 0x1400194e9
lea rdx, [r14 + 0xa]
cmp r13w, cx
je 0x1400194e9
lea rdx, [r14 + 2]
test rdx, rdx
je 0x140019457
lea rax, [rdx + 4]
mov qword [rbp], rax
mov qword [r15], r8
test r8, r8
je 0x14001951b
mov rcx, qword [rbp]
mov rax, rbx
and eax, 3
movzx eax, byte [rax + rdx]
xor byte [rcx + rbx], al
inc rbx
cmp rbx, qword [r15]
jb 0x140019502
mov eax, dword [rsp + 0x70]
jmp 0x140019526
mov eax, 0xf2
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001d02
Capabilities:
Terminate process

Disassembly:
jmp 0x140083660
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 1
xor eax, eax
lock cmpxchg dword [rcx], edi
je 0x140083693
nop word [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lock cmpxchg dword [rbx], edi
jne 0x140083680
dec dword [rbx + 4]
xor edi, edi
mov eax, dword [rbx + 4]
test eax, eax
cmovs eax, edi
mov dword [rbx + 4], eax
test eax, eax
jne 0x14008373b
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x1400836ea
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400836dc
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], rdi
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x68], rdi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140083723
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0x48]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140083723
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 8]
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rdi
mov dword [rbx + 0x58], 0xffffffff
call fcn.140003ffd
xchg dword [rbx], edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140001d7a
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401037b0
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 esi, esi
mov rbx, rax
test rax, rax
je 0x14010382f
jmp 0x1401037eb
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x1401037da
lea rax, [rax + rcx*2]
add rax, 2
cmp word [rax], si
jne 0x1401037d6
sub rax, rbx
add rax, 2
sar rax, 1
lea rbp, [rax + rax]
mov rcx, rbp
call fcn.140002397
mov rdi, rax
test rax, rax
je 0x14010381f
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.1400038a5
mov rsi, rdi
xor ecx, ecx
call fcn.140005173
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001f05
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140115330
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140115371
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140115365
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140115373
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140115353
xor eax, eax
ret
Function at 0x140002045
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400fb440
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, 0x20
mov edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, [0x1401482f8]
mov r14, rcx
lea r8, [0x1401482f0]
lea rdx, [0x140148300]
mov ecx, listen
call fcn.1400faa2c
mov rbx, rax
test rax, rax
je 0x1400fb4a3
mov rcx, rax
call qword [section..00cfg]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x1400fb4bd
xor edx, edx
mov rcx, r14
call fcn.1400030c6
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140002347
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400c2bd0
sub rsp, 0x58
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov r9, rdx
cmp rax, 0x20
mov r8, rcx
jae 0x1400c2c68
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 0x20
jl 0x1400c2bef
mov al, byte [rdx]
jmp 0x1400c2c22
movzx edx, al
shr rdx, 3
movzx eax, al
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
inc r9
mov byte [rsp + rdx + 0x20], cl
mov al, byte [r9]
test al, al
jne 0x1400c2c03
jmp 0x1400c2c47
movzx eax, r9b
mov edx, 1
movzx ecx, r9b
and ecx, 7
shr rax, 3
shl edx, cl
test byte [rsp + rax + 0x20], dl
jne 0x1400c2c63
inc r8
mov r9b, byte [r8]
test r9b, r9b
jne 0x1400c2c28
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x58
ret
mov rax, r8
jmp 0x1400c2c51
call fcn.140002275
int3
Function at 0x1400025ae
Capabilities:
Create directory

Disassembly:
jmp 0x1400f070c
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400f072e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140004138
or eax, 0xffffffff
jmp 0x1400f0730
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002671
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x140014880
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor eax, eax
mov dword [rbp - 0x51], 0x5a827999
mov qword [rbp - 0x39], rax
lea r8, [rbp - 0x39]
mov qword [rbp - 0x31], rax
mov r13, rcx
mov qword [rbp - 0x29], rax
lea rcx, [0x140014f70]
mov qword [rbp - 0x21], rax
mov r10, rdx
mov qword [rbp - 0x19], rax
mov r9d, reloc.WSOCK32.dll_recv
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
lea rax, [0x140014f60]
mov qword [rbp + 7], rax
lea rax, [0x140014f80]
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x39]
sub r10, rax
mov qword [rbp + 0xf], rcx
mov qword [rbp + 0x1f], rcx
mov dword [rbp - 0x4d], 0x6ed9eba1
mov dword [rbp - 0x49], 0x8f1bbcdc
mov dword [rbp - 0x45], 0xca62c1d6
nop dword [rax]
mov ecx, dword [r10 + r8]
lea r8, [r8 + 4]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [r8 - 4], edx
sub r9, 1
jne 0x140014930
test r13, r13
je 0x14001497d
movups xmm0, xmmword [r13]
mov eax, dword [r13 + 0x10]
mov dword [rbp - 0x59], eax
movups xmmword [rbp - 0x69], xmm0
jmp 0x14001499a
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov dword [rbp - 0x59], eax
call fcn.1400033cd
mov dword [rax], socket
call fcn.140004845
mov edx, dword [rbp - 0x61]
xor bl, bl
xor r12b, r12b
xor r14b, r14b
nop word [rax + rax]
movzx r15d, r14b
and r15b, 0xf
cmp r14b, 0x10
jb 0x1400149fb
movzx eax, r15b
lea r10, [rbp - 0x39]
lea r10, [r10 + rax*4]
movzx r8d, r15b
lea eax, [r8 - 3]
and eax, 0xf
lea ecx, [r8 - 8]
and ecx, 0xf
mov r9d, dword [rbp + rcx*4 - 0x39]
xor r9d, dword [rbp + rax*4 - 0x39]
lea eax, [r8 + 2]
and eax, 0xf
xor r9d, dword [rbp + rax*4 - 0x39]
xor r9d, dword [r10]
rol r9d, 1
mov dword [r10], r9d
mov r8d, dword [rbp - 0x5d]
mov ecx, dword [rbp - 0x65]
movzx edi, bl
call qword [rbp + rdi*8 + htons]
mov esi, dword [rbp - 0x69]
lea rdx, [rbp - 0x69]
rol esi, 5
mov r8d, reloc.WSOCK32.dll_recv
movzx ecx, r15b
add esi, dword [rbp + rcx*4 - 0x39]
lea rcx, [rbp - 0x65]
add esi, dword [rbp + rdi*4 - 0x51]
add esi, dword [rbp - 0x59]
add esi, eax
call fcn.1400046f6
mov edx, dword [rbp - 0x61]
inc r12b
ror edx, 2
mov dword [rbp - 0x69], esi
mov dword [rbp - 0x61], edx
cmp r12b, 0x14
jne 0x140014a5f
movzx ebx, bl
xor r12b, r12b
inc ebx
and ebx, 0x80000003
jge 0x140014a5f
dec ebx
or ebx, 0xfffffffc
inc ebx
inc r14b
cmp r14b, 0x4f
jbe 0x1400149b0
lea r8, [rbp - 0x69]
mov rcx, r13
sub r8, r13
mov edx, 5
nop dword [rax + rax]
mov eax, dword [r8 + rcx]
add dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140014a80
add qword [r13 + 0x18], 0x200
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140004ca5
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400028b5
Capabilities:
Clear file content

Disassembly:
jmp 0x140114218
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov ebp, 1
mov r8d, ebp
xor edx, edx
mov esi, ecx
call fcn.14000573b
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140114259
call fcn.1400033cd
mov eax, dword [rax]
jmp 0x1401142ff
xor edx, edx
mov ecx, esi
lea r8d, [rdx + 2]
call fcn.14000573b
cmp rax, 0xffffffffffffffff
je 0x14011424d
mov rdi, rbx
sub rdi, rax
test rdi, rdi
jle 0x140114340
mov r15d, 0x1000
mov rdx, rbp
mov ecx, r15d
call fcn.140003db9
mov rbx, rax
test rax, rax
jne 0x1401142a4
call fcn.1400033cd
mov dword [rax], listen
jmp 0x14011432d
mov edx, 0x8000
mov ecx, esi
call fcn.140001f87
mov ebp, eax
mov r8d, edi
cmp rdi, r15
mov rdx, rbx
mov ecx, esi
cmovge r8d, r15d
call fcn.140002a18
cmp eax, 0xffffffff
je 0x140114318
cdqe
sub rdi, rax
test rdi, rdi
jg 0x1401142b2
mov edx, ebp
mov ecx, esi
call fcn.140001f87
mov rcx, rbx
call fcn.140005173
xor r8d, r8d
mov rdx, r14
mov ecx, esi
call fcn.14000573b
cmp rax, 0xffffffffffffffff
je 0x14011424d
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.140004e0d
cmp dword [rax], 5
jne 0x14011432d
call fcn.1400033cd
mov dword [rax], reloc.WSOCK32.dll_listen
call fcn.1400033cd
mov rcx, rbx
mov edi, dword [rax]
call fcn.140005173
mov eax, edi
jmp 0x1401142ff
jns 0x1401142e6
xor r8d, r8d
mov rdx, rbx
mov ecx, esi
call fcn.14000573b
cmp rax, 0xffffffffffffffff
je 0x14011424d
mov ecx, esi
call fcn.1400028e7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401142e6
call fcn.1400033cd
mov dword [rax], reloc.WSOCK32.dll_listen
call fcn.140004e0d
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
jmp 0x14011424d
Function at 0x140002c34
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401153f0
mov rax, rcx
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x140115400
xor eax, eax
ret
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
xor eax, eax
cmp dword [rcx], 0x4550
jne 0x14011541d
mov edx, 0x20b
cmp word [rcx + 0x18], dx
sete al
ret

Function at 0x140002db5
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400e4df8
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 0x1400e4a60
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e4a60
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e4a60
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e4a60
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e4a60
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e4a60
cmp dword [rcx + 0xf8], esi
je 0x1400e4a60
mov ecx, r14d
call fcn.1400e4cc0
mov ecx, 2
call fcn.1400042a5
nop
cmp byte [0x140184439], 0
jne 0x1400e4b2a
mov r15d, 1
mov eax, r15d
xchg dword [0x140184428], eax
test ebx, ebx
jne 0x1400e4ad3
mov rdi, qword [0x14016c4a0]
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 [0x140184430]
cmp rcx, rax
je 0x1400e4aca
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [section..00cfg]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140185028]
jmp 0x1400e4adf
cmp ebx, r15d
jne 0x1400e4ae5
lea rcx, [0x140185048]
call fcn.140004723
nop
test ebx, ebx
jne 0x1400e4afc
lea rdx, [0x14011cbf0]
lea rcx, [0x14011c8b0]
call fcn.140003b52
lea rdx, [0x14011ce10]
lea rcx, [0x14011cd00]
call fcn.140003b52
movzx eax, byte [0x140184439]
test esi, esi
cmove eax, r15d
mov byte [0x140184439], al
jmp 0x1400e4b2a
mov ecx, 2
call fcn.140002b67
test esi, esi
jne 0x1400e4b41
mov ecx, r14d
call fcn.1400e4bb8
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 0x1400e49f0
Function at 0x140002ea5
Capabilities:
Access the windows event log

Disassembly:
jmp 0x140085f90
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
movzx esi, dx
movzx ebp, cx
xorps xmm0, xmm0
lea rdx, str.DPTF
xor ecx, ecx
xor ebx, ebx
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140086051
mov rdx, qword [rsp + 0xd0]
lea rax, [0x14013e3a8]
lea r8, [rsp + 0xd8]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
call fcn.140004b29
mov ecx, 2
mov r9d, 0x100
movzx r8d, bp
movups xmm0, xmmword [rax]
lea rax, str.Error_in_formatting_event_message
movups xmmword [rsp + 0x60], xmm0
mov rbx, qword [rsp + 0x64]
test rbx, rbx
cmovne rax, rbx
xor edx, edx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], cx
mov rcx, rdi
mov qword [rsp + 0x20], rdx
movzx edx, si
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
test rbx, rbx
je 0x14008605e
mov rcx, rbx
call fcn.140002d65
test rdi, rdi
je 0x14008606c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400033ff
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400e4d78
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400e49f0

Function at 0x14000354e
Capabilities:
Terminate process

Disassembly:
jmp 0x14009f548
sub rsp, 0x28
mov ecx, reloc.WSOCK32.dll_socket
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14009f561
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140001cda
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000376f
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400dbff4
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x60
test rdx, rdx
je 0x1400dc02e
test r8, r8
je 0x1400dc02e
test r9, r9
jne 0x1400dc036
call fcn.1400033cd
mov dword [rax], socket
call fcn.140004845
xor eax, eax
add rsp, 0x60
pop rbp
ret
lea rax, [rbp + 0x28]
mov qword [rbp - 0x38], r9
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
lea rax, [rbp + 0x10]
mov qword [rbp - 0x30], r9
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x38]
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x20]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x10], rax
call fcn.1400015eb
jmp 0x1400dc030

Function at 0x1400039b3
Capabilities:
Terminate process

Disassembly:
jmp 0x14008ec7c
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 0x140003a99
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140095e18
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x140143310]
mov ecx, 4
lea r8, [0x140143308]
lea rdx, [0x140143318]
call fcn.1400956d0
mov rbx, rax
test rax, rax
je 0x140095e5b
mov rcx, rax
call fcn.140002f18
mov rcx, rdi
call rbx
jmp 0x140095e61
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003b43
Capabilities:
Get common file path

Disassembly:
jmp 0x1400eecf0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edi, edi
lea rcx, [rsp + 0x22]
xor edx, edx
mov word [rsp + 0x20], di
mov r8d, 0x208
call fcn.1400033e1
lea rdx, [rsp + 0x20]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
ja 0x1400eed6a
movzx ecx, word [rsp + 0x20]
test cx, cx
je 0x1400eedc7
cmp word [rsp + 0x22], 0x3a
jne 0x1400eedc7
lea eax, [rcx - 0x61]
cmp ax, 0x19
movzx eax, cx
ja 0x1400eed65
sub eax, 0x20
lea edi, [rax - 0x40]
jmp 0x1400eedc7
lea esi, [rax + 1]
mov edx, 2
mov ecx, esi
call fcn.140003db9
mov rbx, rax
test rax, rax
je 0x1400eed90
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400eed9d
call fcn.1400033cd
mov dword [rax], listen
jmp 0x1400eedbf
cmp word [rbx], di
je 0x1400eedbf
cmp word [rbx + 2], 0x3a
jne 0x1400eedbf
movzx eax, word [rbx]
sub ax, 0x61
cmp ax, 0x19
movzx eax, word [rbx]
ja 0x1400eedbc
sub eax, 0x20
lea edi, [rax - 0x40]
mov rcx, rbx
call fcn.140005173
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140004ca5
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003eef
Capabilities:
Delete file

Disassembly:
jmp 0x1400ff2b4
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400ff2d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140004138
or eax, 0xffffffff
jmp 0x1400ff2d6
xor eax, eax
add rsp, 0x28
ret

Function at 0x140003ffd
Capabilities:
Delete directory
Delete file

Disassembly:
jmp 0x140084590
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 4]
test rcx, rcx
je 0x1400845af
call fcn.140002d65
mov qword [rbx + 4], 0
mov rcx, qword [rbx + 0x2c]
test rcx, rcx
je 0x1400845d4
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 0x2c]
test rcx, rcx
je 0x1400845cc
call fcn.140002d65
mov qword [rbx + 0x2c], 0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400845f9
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400845f1
call fcn.140002d65
mov qword [rbx + 0x18], 0
add rsp, 0x20
pop rbx
ret