joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800991b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1800992d4
cmp r8d, 0xff
jne 0x180099211
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1800991fb
lea r8, [0x180000000]
mov r9, qword [r8 + r10*8 + 0xbadd0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.180074ce0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.180074ce0
cmp r8d, 0xfb
jne 0x180099223
lea r9, str.WILL
jmp 0x180099261
cmp r8d, 0xfc
jne 0x180099235
lea r9, str.WONT
jmp 0x180099261
cmp r8d, 0xfd
jne 0x180099247
lea r9, [0x1800bb7f4]
jmp 0x180099261
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1800992bd
cmp r10d, 0x27
jg 0x180099294
lea r8, [0x180000000]
mov r8, qword [r8 + r10*8 + 0xbb3f0]
test r8, r8
jne 0x1800992a4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.180074ce0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x18009927b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.180074ce0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.180074ce0
add rsp, 0x38
ret

Function at 0x180099620
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18009967f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180074b60
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1800991b0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180099830
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1800999d8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x180099895
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x180099895
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180099895
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1800998cc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x180099922
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180099922
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180099922
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180099922
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180099922
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1800992e0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x180099984
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180074b60
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1800996b0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1800999d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180074b60
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x18009b140
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x180126060]
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 0x18009b1d5
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 0x18009b236
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.180074b60
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.1800ae3d0
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 0x18009b2f1
sub ecx, 1
je 0x18009b364
sub ecx, 1
je 0x18009b2a0
cmp ecx, 1
je 0x18009b283
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1800c1964]
call fcn.180074b60
jmp 0x18009b364
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.18009ae70
test eax, eax
je 0x18009b364
jmp 0x18009b20a
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 0x18009b364
sub rax, rsi
cmp rax, rbp
jae 0x18009b364
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.180074ce0
jmp 0x18009b364
cmp r8d, 4
jle 0x18009b364
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 0x18009b364
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.180074a80
mov esi, eax
test eax, eax
je 0x18009b343
mov edx, 5
mov rcx, rbx
call fcn.18009be30
mov eax, esi
jmp 0x18009b20a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.180084090
mov rcx, r14
call fcn.180084370
test eax, eax
je 0x18009b208
mov edx, 5
mov rcx, rbx
call fcn.18009be30
mov eax, Ordinal_45
jmp 0x18009b20a
Function at 0x1800ae240
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 [section..data]
mov rdi, rax
test rax, rax
jne 0x1800ae282
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 0x1800ae2c9
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 0x1800ae322
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 0x1800ae2e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1800ae363
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1800bea22]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800bea23]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1800ae330
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 0x14001f150
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140049a00
sub rsp, rax
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov word [rsp + 0x30], bp
lea edi, [rbp + 0x28]
test al, al
je 0x14001f202
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14003d58c
cmp rax, 1
jne 0x14001f25e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001f1df
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001f1d3
cmp rcx, 1
jb 0x14001f25e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001f1a0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001f233
lea rcx, [rsp + 0x80]
call fcn.14003eacc
jmp 0x14001f235
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002dc90
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140032280
int3

Function at 0x14001f270
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], bp
lea rbx, [rsp + 0x30]
mov al, 0x4e
lea edi, [rbp + 0x28]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14003d58c
cmp rax, 1
jne 0x14001f345
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001f2ec
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001f2e0
cmp rcx, 1
jb 0x14001f345
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001f2b1
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002dc90
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140032280
int3
Function at 0x14002e664
Capabilities:
Parse pe header

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

Function at 0x1400325e0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003244b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003244b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003244b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003244b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003244b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003244b
cmp dword [rcx + 0xf8], 0
je 0x14003244b
mov ecx, ebx
call fcn.1400324fc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400322d8
nop
cmp dword [rbp + 0x20], 0
je 0x140032499
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400324a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400323dc
Function at 0x1400434e0
Capabilities:
Query environment variable

Disassembly:
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 ebp, ebp
mov rbx, rax
test rax, rax
je 0x140043567
mov rsi, rbx
cmp word [rax], bp
je 0x140043526
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140043510
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004350c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400410e8
mov rdi, rax
test rax, rax
je 0x140043554
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004a060
mov rbp, rdi
xor ecx, ecx
call fcn.14003f138
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140045c6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140045c82
mov al, 1
jmp 0x140045ce2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140045c93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140045ce0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140043c84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140045ce0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140045ce0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140045ce0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140045ce2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140049910
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140049938
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140049938
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140012f10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015660
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015680
xor al, al
jmp 0x140015701
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015693
xor al, al
jmp 0x140015701
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 0x1400156bd
xor al, al
jmp 0x140015701
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400156d1
xor al, al
jmp 0x140015701
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400156e3
xor al, al
jmp 0x140015701
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400156ff
xor al, al
jmp 0x140015701
mov al, 1
add rsp, 0x38
ret
Function at 0x140012180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250a4]
call fcn.1400113a2
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0xc4], 0
jmp 0x140012254
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
cmp dword [rbp + 0xc4], eax
jae 0x1400122c4
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov rcx, qword [rbp + 0xe8]
call fcn.1400111e5
cmp eax, dword [rbp + 0x1e8]
jne 0x1400122c2
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0xa8]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
jmp 0x1400122c6
jmp 0x140012246
xor eax, eax
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
add rsp, 0x20
mov qword [section..bss], rax
call fcn.006df140
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_GetCommandLineA]
add rsp, 0x20
xor edx, edx
mov rbx, rax
jmp 0x40103d
cmp byte [rbx], 0x22
jne 0x40103a
not edx
inc rbx
cmp byte [rbx], 0
jne 0x401033
lea rdi, [rsp - 1]
mov rcx, rbx
sub rcx, rax
add rcx, 0xf
and rcx, 0xfffffffffffffff0
sub rsp, rcx
xor ecx, ecx
cmp rbx, rax
jb 0x4010a6
cmp byte [rbx], 0x20
ja 0x401069
dec rbx
jmp 0x40105a
inc ecx
push 0
push 0
cmp rbx, rax
jb 0x4010a6
cmp edx, 0
jne 0x40107e
cmp byte [rbx], 0x20
jbe 0x40105a
cmp byte [rbx], 0x22
jne 0x401090
not edx
cmp edx, 0
jne 0x4010a1
cmp byte [rbx + 1], 0x22
jne 0x4010a1
push rax
mov al, byte [rbx]
mov byte [rdi], al
pop rax
mov qword [rsp], rdi
inc dword [rsp + 8]
dec rdi
dec rbx
jmp 0x40106f
mov rsi, rsp
and rsp, 0xfffffffffffffff0
push rcx
push rsi
call fcn.004010c5
mov rcx, rax
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x40113b
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x130
push rax
lea rax, [rbp - 0x110]
push rax
call fcn.00401d25
pop rcx
push 0x104
lea rax, [rbp - 0x110]
push rax
call fcn.00401d50
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
dec eax
mov dword [rbp - 8], eax
jmp 0x4011ac
mov eax, dword [rbp - 8]
cmp eax, 0x104
jae 0x401250
movzx eax, byte [rbp + rax - 0x110]
mov byte [rbp - 0x111], al
movzx eax, byte [rbp - 0x111]
cmp eax, 0x2f
je 0x4011b2
movzx eax, byte [rbp - 0x111]
cmp eax, 0x5c
je 0x4011b2
dec dword [rbp - 8]
cmp dword [rbp - 8], 0
jg 0x401174
mov eax, dword [rbp - 4]
sub eax, dword [rbp - 8]
mov dword [rbp - 0x124], eax
mov eax, 0x104
sub eax, dword [rbp - 0x124]
jb 0x401252
cmp eax, dword [rbp - 8]
jb 0x401252
mov eax, dword [rbp - 8]
mov ebx, dword [rbp - 0x124]
mov dword [rbp - 0x118], ebx
lea rax, [rbp + rax - 0x110]
mov qword [rbp - 0x120], rax
push qword [rbp - 0x118]
push qword [rbp - 0x120]
push 6
push 0x6e005e
call fcn.00401d8d
cmp eax, 0xffffffff
je 0x40121b
mov dword [0x009d6020], 0
jmp 0x40124e
push qword [rbp - 0x118]
push qword [rbp - 0x120]
push 4
push 0x6e03d9
call fcn.00401d8d
cmp eax, 0xffffffff
je 0x401244
mov dword [0x009d6020], 2
jmp 0x40124e
mov dword [0x009d6020], 1
leave
ret
int 5
int 5
Function at 0x401baf
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x130
push rax
lea rax, [rbp - 0x120]
push rax
call fcn.00401d25
pop rcx
push rax
push 0x104
lea rax, [rbp - 0x120]
push rax
push 1
push 1
push 0
call fcn.0040aa33
pop rcx
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
jge 0x401bf0
xor al, al
leave
ret
push rax
push qword [rbp - 8]
call fcn.0040aa77
pop rcx
mov eax, eax
mov dword [rbp - 0x124], eax
mov eax, dword [rbp - 0x124]
cmp eax, 0x7ffffffc
jae 0x401d01
add eax, 4
mov r8d, eax
mov edx, 0xc
mov rcx, qword [section..bss]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
add rsp, 0x20
mov ebx, dword [rbp - 0x124]
mov dword [rax], ebx
call fcn.006defae
mov dword [rax + 4], 1
mov qword [rbp - 0x10], rax
push rax
push qword [rbp - 8]
mov rax, qword [rbp - 0x10]
lock inc dword [rax]
cmp dword [rax + 4], 1
jne 0x401d03
mov qword [rbp - 0x128], rax
mov rax, qword [rax + 8]
mov ebx, dword [rax]
push rbx
lea rax, [rax + 4]
push rax
call fcn.0040aab9
pop rcx
mov rbx, qword [rbp - 0x128]
lock dec dword [rbx]
mov rbx, qword [rbp - 0x10]
lock inc dword [rbx]
cmp dword [rbx + 4], 1
jne 0x401d03
mov qword [rbp - 0x128], rbx
mov rbx, qword [rbx + 8]
mov esi, dword [rbx]
mov rdi, qword [rbp - 0x128]
lock dec dword [rdi]
cmp eax, esi
jne 0x401d05
push rax
push qword [rbp - 8]
call fcn.0040ab09
pop rcx
mov rax, qword [rbp - 0x10]
lock inc dword [rax]
cmp dword [rax + 4], 1
jne 0x401d07
mov qword [rbp - 0x128], rax
mov rax, qword [rax + 8]
mov ebx, dword [rax]
push rbx
lea rax, [rax + 4]
push rax
push 8
push 0x6f08a0
call fcn.0040ab38
mov rbx, qword [rbp - 0x128]
lock dec dword [rbx]
mov byte [rbp - 1], al
mov rax, qword [rbp - 0x10]
mov ebx, 1
call fcn.006df099
mov al, byte [rbp - 1]
leave
ret
int 5
int 5
int 5
int 5

Function at 0x401d09
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x18
push qword [rbp + 0x10]
mov ecx, dword [rsp]
call qword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x4030f3
Capabilities:
Get hostname

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov dword [rbp - 4], 0x20
push rax
push rax
lea rax, [rbp - 4]
push rax
push qword [rbp + 0x10]
mov rcx, qword [rsp]
mov rdx, qword [rsp + 8]
call qword [sym.imp.KERNEL32.DLL_GetComputerNameA]
add rsp, 0x20
cmp eax, 0
jne 0x40312e
mov rax, qword [rbp + 0x10]
mov byte [rax], 0
leave
ret 8