joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034790
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x50
call fcn.140189b00
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rdi, rcx
call fcn.140025600
call fcn.14000be70
mov rcx, rdi
call fcn.14002b630
mov rcx, rdi
call fcn.14002daf0
lea rcx, [rdi + 0x120]
call fcn.14002e080
lea rcx, [rdi + 0xd0]
call fcn.14002e1c0
lea rcx, [rdi + 0xf8]
call fcn.14002e3e0
lea rdx, [0x14023df20]
mov ecx, 0xe0
call fcn.140044150
mov qword [rsp + 0x48], rax
xor ebx, ebx
test rax, rax
je 0x140034818
mov rdx, rdi
mov rcx, rax
call fcn.1400330a0
mov rcx, rax
jmp 0x14003481b
mov rcx, rbx
mov qword [rdi + 0x148], rcx
test rcx, rcx
je 0x140034855
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test al, al
jne 0x140034855
mov rcx, qword [rdi + 0x148]
test rcx, rcx
je 0x140034847
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x148], rbx
xor al, al
jmp 0x1400349f3
mov qword [rsp + 0x88], rbx
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x80], ebx
mov dword [rsp + 0x70], ebx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x14018f5b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rsi, str.CSSCUploadSampleQueue::StartQueueService
test eax, eax
jne 0x140034967
mov dword [rsp + 0x78], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, str.SampleSubmissionMaxCount
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400348f1
mov eax, dword [rsp + 0x70]
mov dword [rdi + 0x158], eax
jmp 0x1400348fb
mov dword [rdi + 0x158], 3
mov dword [rsp + 0x78], 4
mov dword [rsp + 0x70], ebx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, str.SampleSubmissionRetryInterval
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003494c
mov eax, dword [rsp + 0x70]
mov qword [rdi + 0x150], rax
jmp 0x140034957
mov qword [rdi + 0x150], 0xe10
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400349a3
mov dword [rdi + 0x158], 3
mov qword [rdi + 0x150], 0xe10
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r9, str._s___registry_key_error__d_
mov r8d, 0x382
lea rdx, str..cnttmss_UploadSample.cpp
mov ecx, 0x45
call fcn.1400382e0
mov rax, qword [rdi + 0x150]
mov qword [rsp + 0x30], rax
mov eax, dword [rdi + 0x158]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r9, str._s___Max_retry_count__d___retry_interval__d_
mov r8d, 0x385
lea rdx, str..cnttmss_UploadSample.cpp
mov ecx, 0x49
call fcn.1400382e0
mov rcx, rdi
call fcn.140032530
movzx ebx, al
mov dl, 1
mov rcx, rdi
call fcn.140027ac0
mov al, bl
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140037400
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
test r8, r8
movzx edi, r9b
mov rsi, rdx
mov rbp, rcx
je 0x14003746b
lea rcx, [0x14023cbd0]
or r9, 0xffffffffffffffff
mov edx, 0x400
call fcn.140044c40
lea rax, [0x14023d2f0]
lea r8, [0x14023cbd0]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x3ff
mov byte [0x14023cfcf], bl
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x140037471
mov byte [0x14023cbd0], bl
test dil, dil
jne 0x14003754e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x14023daf0], rax
je 0x14003754e
lea rdx, str.SD_InitDebug_with_Ini_0200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14023daf8], rax
je 0x1400374c7
lea r8, str.14:59:49
lea rdx, str.Jul__5_2017
mov rcx, rbp
call rax
mov ebx, 1
mov rcx, qword [0x14023daf0]
lea rdx, str.SD_TraceW_0200
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14023daf0]
lea rdx, str.SD_TraceA_0200
mov qword [0x14023db00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14023daf0]
lea rdx, str.SD_TraceW
mov qword [0x14023db08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14023daf0]
lea rdx, str.SD_SetDebugMsg
mov qword [0x14023db10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14023daf0]
lea rdx, str.SD_DbLogTrace
mov qword [0x14023db18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14023db20], rax
lea rcx, [0x14023cfd0]
xor edx, edx
mov r8d, 0x104
call fcn.140041940
lea rcx, [0x14023cfd0]
call fcn.140037290
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140038370
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x278], rbx
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.140183750
nop
lea rdx, str.Log_ServerNamePipe
lea rcx, [rsp + 0x40]
call fcn.140183860
test al, al
jne 0x14003842a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400383fa
cmp byte [0x14023db48], 0
jne 0x14003841c
mov dword [rsp + 0x20], eax
lea r9, str.Need_to_Start_LogServer_for_turn_on_debug_log.
lea r8d, [rax + 0x70]
lea rdx, str..logcl_Command.cpp
lea ecx, [rax + 3]
call fcn.140038290
mov byte [0x14023db48], 1
jmp 0x14003841c
mov dword [rsp + 0x20], eax
lea r9, str.Initial_pipe_client_failed__err_d
mov r8d, 0x77
lea rdx, str..logcl_Command.cpp
lea ecx, [r8 - 0x72]
call fcn.140038290
nop
lea rcx, [rsp + 0x40]
call fcn.140183760
xor al, al
jmp 0x140038498
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140183780
test al, al
jne 0x14003848c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.pipe_send_failed_._err_d
mov r8d, 0x7e
lea rdx, str..logcl_Command.cpp
lea ecx, [r8 - 0x79]
call fcn.140038290
nop
lea rcx, [rsp + 0x40]
call fcn.140183760
xor al, al
jmp 0x140038498
lea rcx, [rsp + 0x40]
call fcn.140183760
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140041910
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

Function at 0x140038ee0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
jne 0x140038f2a
cmp dword [rsp + 0x24], 5
jne 0x140038f2a
mov eax, 1
cmp dword [rsp + 0x28], eax
cmove ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140041910
add rsp, 0xd0
pop rbx
ret
Function at 0x140041b20
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14023e3f0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1400502c0
test rax, rax
je 0x140041b74
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140041c09
mov ecx, 2
call fcn.1400500f0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140041940
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140041bf5
test ebx, ebx
jne 0x140041bf5
lea ecx, [rax + 2]
call fcn.1400500f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140041c30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x14023e3f0]
call fcn.1400502c0
test rax, rax
je 0x140041c65
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.1400500f0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140041940
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140041cee
test ebx, ebx
jne 0x140041cee
lea ecx, [rax + 2]
call fcn.1400500f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x1400428d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov ebx, edx
jne 0x140042916
call fcn.140044220
mov dword [rax], 0
call fcn.1400441f0
mov ebx, reloc.WS2_32.dll_shutdown
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
mov qword [rsp + 0x20], 0
call fcn.140041b20
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test edx, 0xfffffff9
jne 0x1400428dd
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140042947
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140044250
call fcn.1400441f0
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test al, 0x10
jne 0x14004297b
test al, 1
je 0x14004297b
test bl, 2
je 0x14004297b
call fcn.140044220
mov dword [rax], 5
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400441f0
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140042ae0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x140042b2c
call fcn.1400441f0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140041b20
xor eax, eax
jmp 0x140042bd2
mov qword [rsp + 0x50], rdi
call fcn.1400e71c0
mov edx, 0x2d8
mov ecx, 1
call fcn.14004ca00
test rax, rax
mov rdi, rax
je 0x140042bb8
call fcn.1400505e0
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.1400503c0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x140042a40]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140042bcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140046f30
test ebx, ebx
je 0x140042bcb
mov ecx, ebx
call fcn.140044250
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
Function at 0x140043950
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x180
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x170], rax
test rdx, rdx
mov rsi, rdx
jne 0x1400439a1
call fcn.1400441f0
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], reloc.WS2_32.dll_shutdown
mov qword [rsp + 0x20], rbx
call fcn.140041b20
or rax, 0xffffffffffffffff
jmp 0x140043a98
test rcx, rcx
je 0x140043977
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1a0], rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x140043a15
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x1400439dc
cmp eax, 3
jbe 0x140043a04
cmp eax, 8
je 0x1400439f0
cmp eax, 0x12
je 0x140043a04
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_shutdown
or rax, 0xffffffffffffffff
jmp 0x140043a90
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
or rax, 0xffffffffffffffff
jmp 0x140043a90
call fcn.1400441f0
mov dword [rax], 2
or rax, 0xffffffffffffffff
jmp 0x140043a90
mov eax, dword [rsp + 0x30]
xor ebx, ebx
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, ebx
mov dword [rsi], eax
call fcn.140053610
lea rcx, [rsp + 0x3c]
mov qword [rsi + 8], rax
call fcn.140053610
lea rcx, [rsp + 0x44]
mov qword [rsi + 0x10], rax
call fcn.140053610
mov ecx, dword [rsp + 0x4c]
shl rcx, 0x20
mov qword [rsi + 0x18], rax
mov eax, dword [rsp + 0x50]
add rcx, rax
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov qword [rsi + 0x20], rcx
lea rcx, [rsi + 0x28]
call fcn.1400433f0
test eax, eax
je 0x140043a8d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140041a40
mov rax, rdi
mov rdi, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140041910
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x180
pop rsi
ret
Function at 0x140043ac0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp rcx, 0xffffffffffffffff
mov rdi, rdx
jne 0x140043b11
call fcn.1400441f0
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], reloc.WS2_32.dll_shutdown
mov qword [rsp + 0x20], rbx
call fcn.140041b20
or eax, 0xffffffff
jmp 0x140043bef
test rdx, rdx
je 0x140043ae8
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140043b75
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140043b3f
cmp eax, 3
jbe 0x140043b65
cmp eax, 8
je 0x140043b52
cmp eax, 0x12
je 0x140043b65
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
jmp 0x140043bef
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
or eax, 0xffffffff
jmp 0x140043bef
call fcn.1400441f0
mov dword [rax], 2
or eax, 0xffffffff
jmp 0x140043bef
mov eax, dword [rsp + 0x30]
xor ebx, ebx
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, ebx
mov dword [rdi], eax
call fcn.140053610
lea rcx, [rsp + 0x3c]
mov qword [rdi + 8], rax
call fcn.140053610
lea rcx, [rsp + 0x44]
mov qword [rdi + 0x10], rax
call fcn.140053610
mov ecx, dword [rsp + 0x4c]
shl rcx, 0x20
mov qword [rdi + 0x18], rax
mov eax, dword [rsp + 0x50]
add rcx, rax
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov qword [rdi + 0x20], rcx
lea rcx, [rdi + 0x28]
call fcn.1400433f0
test eax, eax
je 0x140043bed
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140041a40
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140041910
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x180
pop rdi
ret
Function at 0x1400442e0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
call fcn.140005aa0
add byte [rax - 0x75], cl
enter 0xffffffffffffd233, 0x41
mov eax, __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14004433e
cmp dword [0x14023e428], 2
je 0x140044320
call fcn.1400547b0
mov ecx, reloc.WS2_32.dll_select
call fcn.140054570
mov ecx, 0xff
call fcn.140050ec0
mov eax, 0xff
jmp 0x140044546
mov dword [rax], __WSAFDIsSet
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x14004436f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x140044546
mov r13d, dword [rbx + 0x10]
mov esi, dword [rbx + 4]
mov r12d, dword [rbx + 8]
mov edi, dword [rbx + 0xc]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r13d, 2
je 0x1400443a1
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x14023e9f4], r13d
mov dword [0x14023e9fc], eax
mov dword [0x14023ea00], esi
mov dword [0x14023ea04], r12d
mov dword [0x14023e9f8], edi
cmp word [0x140000000], 0x5a4d
jne 0x140044427
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x1400443f5
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14004442d
cmp word [rax + 0x18], 0x20b
je 0x140044405
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14004442d
cmp dword [rax + 0x84], 0xe
ja 0x140044416
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14004442d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x50], ebx
jmp 0x14004442d
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, 1
call fcn.140054f90
test eax, eax
jne 0x14004445d
cmp dword [0x14023e428], 2
je 0x140044449
call fcn.1400547b0
mov ecx, Ordinal_30
call fcn.140054570
mov ecx, 0xff
call fcn.140050ec0
call fcn.140050850
test eax, eax
jne 0x140044488
cmp dword [0x14023e428], 2
je 0x140044474
call fcn.1400547b0
mov ecx, reloc.WS2_32.dll_recv
call fcn.140054570
mov ecx, 0xff
call fcn.140050ec0
call fcn.140054f10
nop
call fcn.140053a30
test eax, eax
jns 0x1400444a1
mov ecx, reloc.WLDAP32.dll_Ordinal_27
call fcn.140050e90
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x140243cc8], rax
call fcn.140054d40
mov qword [0x14023e418], rax
call fcn.140054c30
test eax, eax
jns 0x1400444cd
mov ecx, 8
call fcn.140050e90
call fcn.1400548a0
test eax, eax
jns 0x1400444e0
mov ecx, 9
call fcn.140050e90
mov ecx, 1
call fcn.140051000
test eax, eax
je 0x1400444f5
mov ecx, eax
call fcn.140050e90
mov r8, qword [0x14023ea20]
mov qword [0x14023ea28], r8
mov rdx, qword [0x14023ea10]
mov ecx, dword [0x14023ea08]
call fcn.14002b280
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x140044526
mov ecx, eax
call fcn.140051210
call fcn.140051230
jmp 0x140044544
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
sub rsp, 0x28
call fcn.140054ff0
add rsp, 0x28
jmp 0x1400442e0
Function at 0x140047230
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x140047257
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140047257
mov ecx, eax
call fcn.140044250
or eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140048a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov ebx, edx
jne 0x140048ad6
call fcn.140044220
mov dword [rax], 0
call fcn.1400441f0
mov ebx, reloc.WS2_32.dll_shutdown
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
mov qword [rsp + 0x20], 0
call fcn.140041b20
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test edx, 0xfffffff9
jne 0x140048a9d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140048b07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140044250
call fcn.1400441f0
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test al, 0x10
jne 0x140048b3b
test al, 1
je 0x140048b3b
test bl, 2
je 0x140048b3b
call fcn.140044220
mov dword [rax], 5
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400441f0
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140050047
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1401f3660]
jne 0x14004192a
rol rcx, 0x10
test cx, 0xffff
jne 0x140041926
repz ret
ror rcx, 0x10
jmp 0x14004ffa0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14023e510]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14023e608]
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 0x140050025
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, [0x14023e510]
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 0x140050047
mov rax, qword [rsp + 0x88]
mov qword [0x14023e608], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14023e5a8], rax
mov rax, qword [0x14023e608]
mov qword [0x14023e480], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14023e590], rax
mov dword [0x14023e470], 0xc0000409
mov dword [0x14023e474], 1
mov rax, qword [0x1401f3660]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1401f3668]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14023e508], eax
mov ecx, 1
call fcn.1400500f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140192090]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14023e508], 0
jne 0x1400500ce
mov ecx, 1
call fcn.1400500f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret