joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015e4c5
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14030bb80
push rbp
push rsi
push rdi
sub rsp, 0xc50
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x21c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140534080]
xor rax, rbp
mov qword [rbp + 0xc28], rax
lea rcx, [0x14056741d]
call fcn.140161373
lea rdx, [rbp + 0x758]
lea rcx, [rbp + 0x734]
call fcn.1402eeed0
mov rcx, rax
call fcn.14015d011
mov qword [rbp + 8], rax
lea rdx, [rbp + 0x7c8]
lea rcx, [rbp + 0x7a4]
call fcn.1402f0d50
mov rcx, rax
call fcn.14015ac53
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x818]
lea rcx, [rbp + 0x7f4]
call fcn.1402f2020
mov rcx, rax
call fcn.14015fee2
mov qword [rbp + 0x18], rax
lea rdx, [rbp + 0x868]
lea rcx, [rbp + 0x844]
call fcn.1402f2f50
mov rcx, rax
call fcn.14015e0ec
mov qword [rbp + 0x20], rax
lea rdx, [rbp + 0x8b8]
lea rcx, [rbp + 0x894]
call fcn.1402f3d40
mov rcx, rax
call fcn.14015ac53
mov qword [rbp + 0x28], rax
lea rdx, [rbp + 0x908]
lea rcx, [rbp + 0x8e4]
call fcn.1402f49e0
mov rcx, rax
call fcn.14015de53
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x80], 0x238
lea rax, [rbp + 0x84]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call fcn.14015d6a6
mov qword [rbp + 0x2d8], rax
mov dword [rbp + 0x940], 0x238
lea rax, [rbp + 0x944]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rax, [rbp + 0x80]
lea rcx, [rbp + 0x940]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x238
rep movsb byte [rdi], byte [rsi]
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 0x2d8]
call fcn.14015e623
test eax, eax
je 0x14030bdf7
lea rax, [rbp + 8]
mov qword [rbp + 0x2f8], rax
mov rax, qword [rbp + 0x2f8]
mov qword [rbp + 0x318], rax
mov rax, qword [rbp + 0x2f8]
add rax, 0x30
mov qword [rbp + 0x338], rax
jmp 0x14030bd3a
mov rax, qword [rbp + 0x318]
add rax, 8
mov qword [rbp + 0x318], rax
mov rax, qword [rbp + 0x338]
cmp qword [rbp + 0x318], rax
je 0x14030bddc
mov rax, qword [rbp + 0x318]
mov rax, qword [rax]
mov qword [rbp + 0x358], rax
lea rax, [rbp + 0xac]
mov qword [rbp + 0x58], rax
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x358]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14030bdd7
mov byte [0x14053d748], 1
mov dword [rbp + 0xbb4], 0
lea rdx, [rbp + 0xbb4]
lea rcx, [rbp + 0xb94]
call fcn.14015f75d
mov dword [rbp + 0xbf4], 0
lea rdx, [rbp + 0xbf4]
lea rcx, [rbp + 0xbd4]
call fcn.14015b563
lea rcx, [rbp + 0xc14]
call fcn.14015ff41
mov dword [0], 0xdead
jmp 0x14030bd28
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 0x2d8]
call fcn.140160310
test eax, eax
jne 0x14030bcfb
mov rcx, qword [rbp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140160054
mov rcx, qword [rbp + 0xc28]
xor rcx, rbp
call fcn.14015d7aa
lea rsp, [rbp + 0xc30]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015e533
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
jmp 0x1403c3a40
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140534080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1403c3a95
jmp 0x1403c3c44
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1403c3c1b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1403c3c1b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1403c3c1b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1403c3c1b
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1403c3c1b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1403c3c1b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1403c3c1b
mov r9, rsi
lea r8, [0x1404e9a5c]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.14015bf54
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1403c3bb5
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1403c3c1b
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1403c3c1b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.14015cb4d
test eax, eax
jne 0x1403c3c1b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1403c3c3c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14015d7aa
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14015e64b
Capabilities:
Resolve dns

Disassembly:
jmp 0x1403c8b30
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1403c8cf4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1403c8cd4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1403c8b8d
lea ebp, [rax + 0xe]
jmp 0x1403c8b99
cmp eax, 0x17
jne 0x1403c8c41
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1403c8c41
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1403c8c41
cmp rax, rbp
jb 0x1403c8c41
mov ecx, Ordinal_50
call qword [fcn.14015e501]
mov rdi, rax
test rax, rax
je 0x1403c8c7c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.14015e501]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1403c8c6b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14015d80e
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1403c8c2e
call qword [case.0x14039e759.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1403c8c50
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1403c8c3e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1403c8b80
jmp 0x1403c8c82
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.14015c8c8]
mov rcx, rdi
call qword [fcn.14015c8c8]
jmp 0x1403c8c82
mov rcx, rdi
mov r14d, 8
call qword [fcn.14015c8c8]
jmp 0x1403c8c82
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1403c8c97
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1403c8ccf
test rbx, rbx
je 0x1403c8cca
mov rcx, qword [rbx + 0x20]
call qword [fcn.14015c8c8]
mov rcx, qword [rbx + 0x18]
call qword [fcn.14015c8c8]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14015c8c8]
mov rbx, rdi
test rdi, rdi
jne 0x1403c8ca1
mov rbx, r13
jmp 0x1403c8ce3
test rbx, rbx
jne 0x1403c8ce3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x14015e65f
Capabilities:
Check for process debug object

Disassembly:
jmp 0x1402f9830
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140534080]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x140567420]
call fcn.140161373
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rbp + 8]
mov edx, reloc.WLDAP32.dll_Ordinal_30
mov rcx, rax
call fcn.14015fe56
cmp qword [rbp + 8], 0
je 0x1402f98a6
mov dword [rbp + 0xd4], 1
jmp 0x1402f98b0
mov dword [rbp + 0xd4], 0
mov eax, dword [rbp + 0xd4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140160054
mov eax, edi
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.14015d7aa
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14015e943
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14036ab20
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x10], al
je 0x14036ab43
lea edx, [rax + 0x7e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xf
jb 0x14036ab30
mov byte [rcx + 0x10], 0
lea r8, [rcx + 0xf]
mov rdx, rcx
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.14015d46c
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14015e98e
Capabilities:
Write file on windows

Disassembly:
jmp 0x1401afc70
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140161373
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x14015ea0b
Capabilities:
Get geographical location

Disassembly:
jmp 0x140406380
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 0x1404063ba
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1404063bf
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 0x140406408
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 0x140406408
dec r8
sub rdx, 1
jne 0x1404063ee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14015ed76
Capabilities:
Read file on windows

Disassembly:
jmp 0x1401afc00
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140161373
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x14015ed99
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x1401b01c0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140161373
mov eax, dword [rbp + 0x1a0]
not eax
mov dword [rbp + 0x1a0], eax
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
lea rax, [0x140429fa0]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x198], 0
je 0x1401b0305
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x198]
dec rax
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x158], 0
je 0x1401b0259
mov dword [rbp + 0x160], 1
jmp 0x1401b0263
mov dword [rbp + 0x160], 0
cmp dword [rbp + 0x160], 0
je 0x1401b0300
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x64]
cmp eax, 0x23
jne 0x1401b02da
cmp qword [rbp + 0x198], 2
jb 0x1401b02da
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1401b02da
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1401b02da
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x64]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x1401b0224
jmp 0x1401b039f
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x84], al
movzx eax, byte [rbp + 0x84]
test eax, eax
je 0x1401b039f
movzx eax, byte [rbp + 0x84]
cmp eax, 0x23
jne 0x1401b0376
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1401b0376
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1401b0376
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x84]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x1401b0305
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14015eef2
Capabilities:
Terminate process

Disassembly:
jmp 0x14040473c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14016180f
test al, al
je 0x140404638
xor dil, dil
mov byte [rsp + 0x20], dil
call fcn.140160298
mov bl, al
mov ecx, dword [0x14053eaa0]
cmp ecx, 1
je 0x140404643
test ecx, ecx
jne 0x140404574
mov dword [0x14053eaa0], 1
lea rdx, [0x140429a38]
lea rcx, [0x140429708]
call fcn.14015d688
test eax, eax
je 0x140404555
mov eax, 0xff
jmp 0x14040462d
lea rdx, [0x1404295f8]
lea rcx, [section..rdata]
call fcn.140160234
mov dword [0x14053eaa0], 2
jmp 0x14040457c
mov dil, 1
mov byte [rsp + 0x20], dil
mov cl, bl
call fcn.14015ffd2
call fcn.14015f33e
mov rbx, rax
cmp qword [rax], 0
je 0x1404045af
mov rcx, rax
call fcn.14015cc88
test al, al
je 0x1404045af
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x14056a020]
call fcn.14015f884
mov rbx, rax
cmp qword [rax], 0
je 0x1404045d1
mov rcx, rax
call fcn.14015cc88
test al, al
je 0x1404045d1
mov rcx, qword [rbx]
call fcn.140161008
call fcn.140161b11
movzx ebx, ax
call fcn.14015d089
mov r9d, ebx
mov r8, rax
xor edx, edx
lea rcx, [0x140000000]
call fcn.14015f3ac
mov ebx, eax
call fcn.14015f028
test al, al
je 0x14040464d
test dil, dil
jne 0x140404607
call fcn.140161139
xor edx, edx
mov cl, 1
call fcn.14015ca53
mov eax, ebx
jmp 0x14040462d
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1401600e0
nop
mov ecx, 7
call fcn.1401600e0
mov ecx, ebx
call fcn.14015a807
nop
mov ecx, ebx
call fcn.14015e3b7
nop
int3
sub rsp, 0x28
call fcn.14015f163
add rsp, 0x28
jmp 0x1404044ec

Function at 0x14015f028
Capabilities:
Parse pe header

Disassembly:
jmp 0x140404c54
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140404c9e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140404c9e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140404c9e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140404c9e
cmp dword [rcx + 0x84], 0xe
jbe 0x140404c9e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140404ca0
xor al, al
add rsp, 0x28
ret
Function at 0x14015f276
Capabilities:
Create thread

Disassembly:
jmp 0x1403c9550
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14015f85c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1404022c0
mov r10, rcx
test rdx, rdx
je 0x140402329
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
and r9b, 2
movzx ecx, r8b
cmp r9b, 2
cmovb ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1404022d0
ret
Function at 0x1401604d7
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1403b5bc0
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x40
jae 0x1403b5d78
lea ecx, [r8*8]
mov qword [rsp + 0x30], rsi
add qword [rbx], rcx
mov byte [r8 + rbx + 0x2c], 0x80
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jbe 0x1403b5c38
cmp eax, 0x40
jae 0x1403b5c22
nop word [rax + rax]
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x40
jb 0x1403b5c10
lea rsi, [rbx + 0x2c]
mov rcx, rbx
mov rdx, rsi
call fcn.1403b5f50
xor eax, eax
mov dword [rbx + 0x28], eax
jmp 0x1403b5c40
lea rsi, [rbx + 0x2c]
jae 0x1403b5c52
nop
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jb 0x1403b5c40
movzx eax, byte [rbx + 7]
mov rdx, rsi
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 4]
mov byte [rbx + 0x67], al
movzx eax, byte [rbx + 3]
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 2]
mov byte [rbx + 0x69], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.1403b5f50
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov rsi, qword [rsp + 0x30]
mov byte [rdi + 0x1f], al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140160644
Capabilities:
Write file on windows

Disassembly:
jmp 0x1403b0300
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1403b035e
mov dl, 1
call fcn.14015ff9b
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14015ff9b
mov eax, ebx
jmp 0x1403b03a2
cmp ebx, 2
ja 0x1403b03a0
mov r9, qword [rdi + 0x668]
lea rdx, [0x1404e74e8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14016067b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140356170
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140161373
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1403561ac
xor eax, eax
jmp 0x1403561d9
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x1403561d5
xor eax, eax
jmp 0x1403561d9
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140160739
Capabilities:
Get common file path

Disassembly:
jmp 0x1403b4170
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1403b419a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1404e7a5c]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x1403b41fe
mov rcx, rbx
test r14, r14
je 0x1403b41e8
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1403b4236
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1403b4236
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1403b42f8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1403b4260
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.14015e501]
mov rdi, rax
test rax, rax
je 0x1403b42ea
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1403b42ea
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1403b4290
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1403b42a4
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1403b42c0
mov rcx, rdi
test r14, r14
je 0x1403b42e1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1403b42e7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14015c8c8]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret