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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140056044
cmp r8d, 0xff
jne 0x140055f81
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x140055f6b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x794d0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140032580
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140032580
cmp r8d, 0xfb
jne 0x140055f93
lea r9, str.WILL
jmp 0x140055fd1
cmp r8d, 0xfc
jne 0x140055fa5
lea r9, str.WONT
jmp 0x140055fd1
cmp r8d, 0xfd
jne 0x140055fb7
lea r9, [0x140079ef4]
jmp 0x140055fd1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14005602d
cmp r10d, 0x27
jg 0x140056004
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x79af0]
test r8, r8
jne 0x140056014
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140032580
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x140055feb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140032580
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140032580
add rsp, 0x38
ret

Function at 0x140056390
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 0x1400563ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140032400
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140055f20
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400565a0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140056748
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 0x140056605
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140056605
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140056605
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 0x14005663c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140056692
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140056692
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140056692
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140056692
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140056692
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.140056050
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 0x1400566f4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140032400
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140056420
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 0x140056740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140032400
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140057eb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140089080]
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 0x140057f45
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 0x140057fa6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140032400
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.14006afc0
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 0x140058061
sub ecx, 1
je 0x1400580d4
sub ecx, 1
je 0x140058010
cmp ecx, 1
je 0x140057ff3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140077950]
call fcn.140032400
jmp 0x1400580d4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140057be0
test eax, eax
je 0x1400580d4
jmp 0x140057f7a
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 0x1400580d4
sub rax, rsi
cmp rax, rbp
jae 0x1400580d4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140032580
jmp 0x1400580d4
cmp r8d, 4
jle 0x1400580d4
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 0x1400580d4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140032320
mov esi, eax
test eax, eax
je 0x1400580b3
mov edx, 5
mov rcx, rbx
call fcn.140058ba0
mov eax, esi
jmp 0x140057f7a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140040e00
mov rcx, r14
call fcn.1400410e0
test eax, eax
je 0x140057f78
mov edx, 5
mov rcx, rbx
call fcn.140058ba0
mov eax, Ordinal_45
jmp 0x140057f7a
Function at 0x14006ae70
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 0x14006aeb2
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 0x14006aef9
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 0x14006af52
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 0x14006af10
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006af93
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14007d0da]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14007d0db]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006af60
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 0x14006c354
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14006c36d
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x28
ret
Function at 0x10008800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
test rdx, 0xffffffffffff0000
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
jne 0x10008834
cmp dword [rcx + 0xa8], 0
jne 0x10008834
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1000ae80
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.100087b0
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x100127fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x10012856
call fcn.1000ae80
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x10012856
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x10012878
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.1001227c
test rdi, rdi
mov esi, eax
je 0x10012876
test rbx, rbx
je 0x10012876
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x100130bc
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x100130f2
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x100131a9
call fcn.10009428
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x10013111
mov ecx, 0x80004005
call fcn.100010f0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x118]
mov rdx, rsi
mov rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1002d150
test eax, eax
je 0x1001317c
cmp eax, 0xc
je 0x10013176
cmp eax, 0x16
je 0x10013170
cmp eax, 0x22
je 0x10013170
cmp eax, 0x50
je 0x1001317c
call fcn.10005958
int3
call fcn.10005958
int3
call fcn.10005910
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x100131a7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.oledlg.dll_OleUIBusyA + 8]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1002f237
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100699e0]
jne 0x1002a6aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1002a6a6
repz ret
ror rcx, 0x10
jmp 0x1002f190
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1006f030]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1006f128]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1002f215
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1006f030]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1002f237
mov rax, qword [rsp + 0x88]
mov qword [0x1006f128], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1006f0c8], rax
mov rax, qword [0x1006f128]
mov qword [0x1006efa0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1006f0b0], rax
mov dword [0x1006ef90], 0xc0000409
mov dword [0x1006ef94], 1
mov rax, qword [0x100699e0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100699e8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1006f028], eax
mov ecx, 1
call fcn.1003b240
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100554c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1006f028], 0
jne 0x1002f2be
mov ecx, 1
call fcn.1003b240
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1003b250
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.1002f930
xor ebx, ebx
cmp qword [0x1006fd10], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x1003b381
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x1003b2b3
xor eax, eax
jmp 0x1003b461
lea rdx, [0x10055d60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1003b2ac
mov rcx, rax
call fcn.1002f8c0
lea rdx, [0x10055d50]
mov rcx, rbp
mov qword [0x1006fd10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1002f8c0
lea rdx, [0x10055d38]
mov rcx, rbp
mov qword [0x1006fd18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1002f8c0
lea rcx, [rsp + 0x30]
mov qword [0x1006fd20], rax
call fcn.1002c5e0
test eax, eax
je 0x1003b337
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1002f3d0
cmp dword [rsp + 0x30], 2
jne 0x1003b381
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1002f8c0
test rax, rax
mov qword [0x1006fd30], rax
je 0x1003b381
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1002f8c0
mov qword [0x1006fd28], rax
mov rcx, qword [0x1006fd28]
cmp rcx, rsi
je 0x1003b413
cmp qword [0x1006fd30], rsi
je 0x1003b413
call fcn.1002f990
call rax
test rax, rax
mov rbp, rax
je 0x1003b3de
mov rcx, qword [0x1006fd30]
call fcn.1002f990
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x1003b3de
test byte [rsp + 0x48], 1
jne 0x1003b413
lea rcx, [rsp + 0x34]
call fcn.1002c630
test eax, eax
je 0x1003b400
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1002f3d0
cmp dword [rsp + 0x34], 4
jb 0x1003b40d
bts edi, 0x15
jmp 0x1003b447
bts edi, 0x12
jmp 0x1003b447
mov rcx, qword [0x1006fd18]
cmp rcx, rsi
je 0x1003b447
call fcn.1002f990
call rax
test rax, rax
mov rbx, rax
je 0x1003b447
mov rcx, qword [0x1006fd20]
cmp rcx, rsi
je 0x1003b447
call fcn.1002f990
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1006fd10]
call fcn.1002f990
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1800010f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x18000119e
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
jne 0x18000119e
movzx ebx, word [rcx + 0x14]
xor edx, edx
movzx r11d, word [rcx + 6]
add rbx, rcx
test r11d, r11d
je 0x18000119e
lea rdi, str..text
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rax + rax*4]
xor eax, eax
lea r9, [rcx*8]
lea r8, [r9 + rbx]
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r8 + rax + 0x17]
jne 0x180001197
cmp rax, 6
jne 0x180001170
mov eax, dword [r9 + rbx + 0x20]
mov ebx, dword [r9 + rbx + 0x24]
add rbx, r10
mov dword [rsp + 0x30], eax
jmp 0x1800011a0
inc edx
cmp edx, r11d
jl 0x180001150
xor ebx, ebx
mov esi, dword [rsp + 0x30]
lea rdx, [0x1800040d4]
add rsi, rbx
mov r9d, 7
mov r8, rsi
mov rcx, rbx
call fcn.180001010
test rax, rax
je 0x1800011e4
mov edx, dword [rax + 0x15]
mov dword [rdx + rax + 0x1a], 0
mov edx, 0xefff
mov rax, qword gs:[0x30]
and word [rax + 0x17ee], dx
mov rbp, qword gs:[0x60]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x1800012dd
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x110]
call rax
lea rdx, str.LdrFastFailInLoaderCallout
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001241
mov ecx, dword [rax + 0x18]
mov dword [rcx + rax + 0x1d], 2
jmp 0x180001269
mov r9d, 0xa
lea rdx, [0x1800040b8]
mov r8, rsi
mov rcx, rbx
call fcn.180001010
test rax, rax
je 0x180001269
mov ecx, dword [rax + 5]
mov dword [rcx + rax + 9], 2
lea rdx, str.LdrGetDllFullName
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1800012dd
mov r9d, 7
lea r8, [rax + 0x80]
lea rdx, [0x1800040cc]
mov rcx, rax
call fcn.180001010
mov rcx, rax
test rax, rax
jne 0x1800012c4
mov r9d, 7
lea r8, [rbx + 0x80]
lea rdx, [0x1800040c4]
mov rcx, rbx
call fcn.180001010
mov rcx, rax
test rcx, rcx
je 0x1800012dd
mov eax, dword [rcx + 3]
mov rcx, qword [rax + rcx + 7]
mov rax, qword [rcx + 0x98]
add qword [rax + 0x38], 2
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180001300
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp edx, 1
jne 0x180001503
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea rcx, str.ApiHelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180004190], rax
test rax, rax
jne 0x18000134f
mov r9d, 0x10
lea r8, [0x180003224]
lea rdx, [0x180003230]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rax, qword [0x180004190]
mov qword [rsp + 0x20], rbx
test rax, rax
je 0x180001394
lea rdx, [0x180003250]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x1800013a0
mov r9d, 0x10
lea r8, [0x180003224]
lea rdx, [0x180003240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [0x180004188], rbx
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [0x180004190]
lea rdx, [0x180003260]
mov qword [0x180004188], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x1800013f2
mov r9d, 0x10
lea r8, [0x180003224]
lea rdx, [0x180003240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [0x180004168], rbx
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov rcx, qword [0x180004190]
lea rdx, [0x180003278]
mov qword [0x180004168], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x180001444
mov r9d, 0x10
lea r8, [0x180003224]
lea rdx, [0x180003240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [0x180004180], rbx
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov rcx, qword [0x180004190]
lea rdx, [0x180003290]
mov qword [0x180004180], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x180001496
mov r9d, 0x10
lea r8, [0x180003224]
lea rdx, [0x180003240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [0x180004170], rbx
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov rcx, qword [0x180004190]
lea rdx, [0x1800032a8]
mov qword [0x180004170], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x1800014e8
mov r9d, 0x10
lea r8, [0x180003224]
lea rdx, [0x180003240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [0x180004178], rbx
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov qword [0x180004178], rbx
call fcn.1800010f0
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
test edx, edx
jne 0x180001519
mov rcx, qword [0x180004190]
test rcx, rcx
je 0x180001519
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
add rsp, 0x28
ret
Function at 0x18000c870
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rdx]
xor r11d, r11d
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov r10, rdx
mov r9d, r11d
test al, al
je 0x18000c8c2
nop dword [rax + rax]
movsx eax, al
lea r10, [r10 + 1]
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
movzx eax, byte [r10]
test al, al
jne 0x18000c8a0
lea eax, [r9 + r9*8]
mov ecx, eax
shr rax, 0xb
xor rax, rcx
and eax, 0x3f
mov r8, qword [rbx + rax*8]
lea rbx, [rbx + rax*8]
test r8, r8
je 0x18000c940
nop
mov r10d, dword [r8]
mov ecx, r10d
sub ecx, 1
je 0x18000c90b
sub ecx, 1
je 0x18000c905
sub ecx, 1
je 0x18000c905
cmp ecx, 1
je 0x18000c8ff
mov rax, r11
jmp 0x18000c90f
lea rax, [r8 + 0x11]
jmp 0x18000c90f
lea rax, [r8 + 0x18]
jmp 0x18000c90f
lea rax, [r8 + 0x38]
mov r9, rdi
sub r9, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x18000c933
inc rax
test ecx, ecx
jne 0x18000c920
test edx, edx
je 0x18000c969
mov r8, qword [r8 + 8]
test r8, r8
jne 0x18000c8e0
mov rdx, rdi
mov ecx, esi
call fcn.180015050
test rax, rax
je 0x18000c959
mov rcx, qword [rbx]
mov qword [rax + 8], rcx
mov qword [rbx], rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
cmp r10d, esi
mov rsi, qword [rsp + 0x38]
cmove r11, r8
mov rax, r11
add rsp, 0x20
pop rdi
ret