joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401fbd60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1404f42c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1401fbdf5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1401fbe56
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1401d6680
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14020f960
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1401fbf11
sub ecx, 1
je 0x1401fbf84
sub ecx, 1
je 0x1401fbec0
cmp ecx, 1
je 0x1401fbea3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140217d94]
call fcn.1401d6680
jmp 0x1401fbf84
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1401fba90
test eax, eax
je 0x1401fbf84
jmp 0x1401fbe2a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1401fbf84
sub rax, rsi
cmp rax, rbp
jae 0x1401fbf84
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1401d6800
jmp 0x1401fbf84
cmp r8d, 4
jle 0x1401fbf84
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1401fbf84
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1401d65a0
mov esi, eax
test eax, eax
je 0x1401fbf63
mov edx, 5
mov rcx, rbx
call fcn.1401fca50
mov eax, esi
jmp 0x1401fbe2a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1401e4e80
mov rcx, r14
call fcn.1401e5160
test eax, eax
je 0x1401fbe28
mov edx, 5
mov rcx, rbx
call fcn.1401fca50
mov eax, Ordinal_46
jmp 0x1401fbe2a
Function at 0x14020ed20
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 [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14020ed62
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 0x14020eda9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
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 rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14020ee02
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 + reloc.WS2_32.dll_htonl]
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 + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14020edc0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14020ee43
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14022cfc2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14022cfc3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14020ee10
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 0x14020eeec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14020ef26
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14020ef2b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14020ef74
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14020ef74
dec r8
sub rdx, 1
jne 0x14020ef5a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140210470
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402104ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402104ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402104ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402104ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1402104ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1402104bc
xor al, al
add rsp, 0x28
ret
Function at 0x14001c650
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140033ac0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140033ac0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14001c6c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400630b4]
mov r12, rcx
test ebx, ebx
jle 0x14001c7f0
mov rax, qword [0x1400630b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14001c70c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14001c793
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14001c6f0
mov rcx, r12
call fcn.14001d060
mov rsi, rax
test rax, rax
je 0x14001c812
mov rax, qword [0x1400630b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14001d190
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400630b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001c7f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001c78c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001c7a0
add dword [0x1400630b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400630b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001c78c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001c650
nop dword [rax]
xor ebx, ebx
jmp 0x14001c717
mov rax, qword [0x1400630b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14001c650
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14001c650
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001ccd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140063120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140063100]
test rbx, rbx
je 0x14001cd24
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14001cd1b
test r12, r12
je 0x14001cd1b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001cd00
lea rcx, [0x140063120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14001d060
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14005f9c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14001d080
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14001d088
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001d080
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14001d0d5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001d0cc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14001d080
add rax, 0x28
cmp rax, r9
jne 0x14001d0b8
xor eax, eax
ret

Function at 0x14001d0e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14005f9c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14001d100
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14001d108
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001d100
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14001d190
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14005f9c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14001d1b0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14001d1b8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14001e980
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14005fa40]
mov rax, qword [rsi]
test rax, rax
je 0x14001ea10
cmp qword [rax + 0x30], 0
jne 0x14001ea30
lea rbx, [0x140034088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14001e9e0
cmp qword [rax + 0x30], 0
jne 0x14001ea00
lea rdx, [0x140034088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140033c50
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140023880
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14001e9c2
test rax, rax
jne 0x14001ea00
call fcn.140023880
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14001e9d0
call fcn.140023880
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14001e9a0
test rax, rax
jne 0x14001ea30
call fcn.140023880
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14001e9ab
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x14001ea40
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001eb52
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001eb2a
add rax, 1
cmp rax, 0x6b
je 0x14001eb47
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14001eb20
cmp edx, 0x6a
je 0x14001eb47
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001eb3b
Function at 0x14001f560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x14005fa40]
mov rax, qword [rsi]
test rax, rax
je 0x14001f750
cmp qword [rax + 0x28], 0
jne 0x14001f738
lea rcx, [0x1400631d8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x14001f745
call fcn.14001eb70
mov rax, qword [rsi]
test rax, rax
je 0x14001f5e0
cmp qword [rax + 0x30], 0
jne 0x14001f600
lea rdx, [0x140034088]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x14001f614
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140023880
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14001f5b0
test rax, rax
jne 0x14001f600
call fcn.140023880
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x14001f5ce
call fcn.14001e6b0
cmp qword [0x140066050], 0
mov rbx, rax
je 0x14001f5ce
test rax, rax
je 0x14001f5ce
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140025720
cmp eax, 1
je 0x14001f7bd
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140033c56
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x14001f798
cmp qword [rax + 0x30], 0
je 0x14001f780
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140033c56
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14001f59c
mov rax, qword [rsi]
jmp 0x14001f5a9
call fcn.140023880
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x14001f588
test rax, rax
jne 0x14001f738
call fcn.140023880
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14001f59c
jmp 0x14001f5a1
lea rdx, [0x140034088]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14001f70e
call fcn.140023880
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14001f780
test rax, rax
jne 0x14001f70a
call fcn.140023880
jmp 0x14001f70a
call fcn.14001ea40
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14005fa40]
mov rdx, qword [rax]
lea rax, [0x1400631e8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140023700
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140023720
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140023768
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140023714
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140023755
Function at 0x140023880
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400632c0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x1400238a3
lea rax, [0x1400632c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1400238eb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400238e8
lea rax, [0x140063300]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14002391b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140023918
xor ecx, ecx
mov byte [0x140063319], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140063322], rdx
lea r8, [0x1400632c0]
lea rbx, [0x14006331a]
mov qword [0x140063332], rdx
mov qword [0x140063342], rdx
mov qword [0x140063352], rdx
xor edx, edx
mov qword [0x14006331a], rax
mov qword [0x14006332a], rax
mov qword [0x14006333a], rax
mov qword [0x14006334a], rax
mov byte [0x14006335a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140023af6
lea rcx, [0x140063300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140023a41
lea rsi, [0x140063200]
lea r8, [0x14006335a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1400239ed
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1400239e0
lea rcx, [0x140063300]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140023ae3
lea rcx, [0x140023790]
mov qword [0x140063200], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140063200]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140063300]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14006335a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140023b16
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140023a93
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140023a80
mov rax, rdx
mov qword [0x140063200], rax
lea rsi, [0x140063200]
jmp 0x140023ab9
cmp rdx, rsi
je 0x140023a1f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140023ab0
cmp rdx, rsi
je 0x140023a1f
mov qword [rdx + 8], rsi
lea rcx, [0x140023790]
call sub.msvcrt.dll__onexit
jmp 0x140023a1f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140023700
xor eax, eax
jmp 0x140023a38
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140023700
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140023700
xor eax, eax
jmp 0x140023a9f
Function at 0x14001dc78
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x90], 0x5f5e100
mov byte [rsp + 0x30], 0x45
mov byte [rsp + 0x31], 0x56
mov byte [rsp + 0x32], reloc.OLEAUT32.dll_VarR8FromDisp
mov byte [rsp + 0x33], 0x5f
mov byte [rsp + 0x34], WSASetLastError
and al, 0x34
insd dword [rdi], dx
mov byte [rsp + 0x35], 0x4a
mov byte [rsp + 0x36], 0x6a
mov byte [rsp + 0x37], 0x26
mov byte [rsp + 0x38], gethostbyname
mov byte [rsp + 0x39], 0x4c
mov byte [rsp + 0x3a], reloc.WS2_32.dll_getservbyname
mov byte [rsp + 0x3b], 0x76
mov byte [rsp + 0x3c], 0x47
mov byte [rsp + 0x3d], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x3e], VarI4FromDisp
mov byte [rsp + 0x3f], 0x43
mov byte [rsp + 0x40], 0x7a
mov byte [rsp + 0x41], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x42], gethostbyname
mov byte [rsp + 0x43], VarI4FromDisp
mov byte [rsp + 0x44], 0x2a
mov byte [rsp + 0x45], 0x4c
mov byte [rsp + 0x46], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0xc0], 0
movabs rax, 0x140000e46
mov qword [rsp + 0x60], rax
movabs rax, 0x1400044f6
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x5c], 0x7d0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x88], 0
movabs rax, sym.imp.KERNEL32.dll_HeapAlloc
mov qword [rsp + 0xa0], rax
movabs rax, sym.imp.KERNEL32.dll_GetProcessHeap
mov qword [rsp + 0xb8], rax
movabs rax, sym.imp.KERNEL32.dll_HeapFree
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x98]
add byte [rax], al
add byte [rax - 0x77], cl
and al, 0x20
mov qword [rsp + 0x48], 0
jmp 0x14001de10
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x48], rax
jae 0x14001de38
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x48]
mov byte [rax], cl
jmp 0x14001de03
mov rax, qword [rsp + 0x50]
add rax, 0x2b5e
mov qword [rsp + 0x50], rax
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
imul eax, eax, 0x64
cdqe
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
imul eax, eax, 0x8c
cdqe
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x2b5e]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x28], 0
jmp 0x14001de96