joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ad00
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f890
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fd74]
lea rsi, [0x140034db0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad79
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a580
test al, al
je 0x14000ae5f
lea rcx, [rsp + 0x20]
call fcn.140013edc
movsxd r11, dword [0x14002fd74]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fd74], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000adb4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ada4
add rax, 2
test ecx, ecx
jne 0x14000ad90
test edx, edx
je 0x14000add7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad84
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000adc0
cmp rax, 2
jne 0x14000addb
cmp word [rdi + 2], 0x3a
jne 0x14000addb
mov al, 1
jmp 0x14000ae3e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae08
mov bl, 1
jmp 0x14000ae0c
test bl, bl
je 0x14000ae33
cmp dword [0x14002fd74], 0x400
jge 0x14000ae33
mov rcx, rdi
call fcn.140013edc
movsxd rdx, dword [0x14002fd74]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fd74], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b7b0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000aba0
int3
Function at 0x1400036f8
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x488
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x480], rax
lea rdx, [rsp + 0x30]
call fcn.14001cdf4
test eax, eax
je 0x14000fe1a
mov esi, eax
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140010016
int3
movzx eax, word [rsp + 0x36]
and eax, 0xf000
cmp eax, 0x4000
jne 0x14000fe97
mov rcx, rdi
int3
xor ebx, ebx
mov rcx, r15
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000fff0
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140010098
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str.ensure_copy:_failed_to_copy_the_file__S_over_to__S__lasterr:__lx
mov r8, r15
mov r9, rdi
int3
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140027fe0
mov eax, ebx
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14004fe88]
int3
lea rcx, [0x14004fe88]
int3
Function at 0x140010cc0
Capabilities:
Hash data via wincrypt
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r12, qword [rsp + 0x90]
movq xmm0, rcx
movq xmm1, rdx
punpcklqdq xmm1, xmm0
movq xmm0, r12
movq xmm2, r8
punpcklqdq xmm2, xmm0
pxor xmm0, xmm0
pcmpeqd xmm2, xmm0
pshufd xmm3, xmm2, 0xb1
pand xmm3, xmm2
pcmpeqd xmm1, xmm0
pshufd xmm0, xmm1, 0xb1
pand xmm0, xmm1
packssdw xmm0, xmm3
movmskps eax, xmm0
test eax, eax
jne 0x140010d94
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x140010d94
mov esi, r9d
mov r15d, r9d
mov rax, qword [rcx + 8]
sub rax, r15
jb 0x140010dce
mov r14, rdx
mov rdx, qword [rdx]
cmp rdx, rax
ja 0x140010dce
mov rdi, r8
mov ebp, dword [rsp + 0x98]
add rdx, qword [rcx]
mov rcx, r8
mov r8, r15
call fcn.140028030
add qword [r14], r15
mov r14d, ebp
xor r15d, r15d
mov r13, qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [r12 + r15*8]
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call r13
test eax, eax
je 0x140010de1
inc r15
cmp r14, r15
jne 0x140010d74
xor eax, eax
jmp 0x140010dbd
mov ecx, 2
call fcn.1400176b8
lea rcx, str.ERROR:_Invalid_parameter_specified._n
mov edx, 0x24
mov r8d, 1
mov r9, rax
call fcn.140022ae0
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.1400176b8
lea rdx, str.ERROR:_Could_not_read__s_n
jmp 0x140010df2
mov ecx, 2
call fcn.1400176b8
lea rdx, str.ERROR:_Could_not_update_verify_context_for__s_n
mov rcx, rax
mov r8, rbx
int3
Function at 0x140015e9d
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x140015ebb
je 0x140015ec6
call 0x140015f15
mov bl, 0xc7
lahf
pop rsi
jne 0x140015ea6
call 0x140015ebe
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140015ea6
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140015ef4
je 0x140015f32
invalid
je 0x140015f43
jne 0x140015ea6
lea rax, [0x140015dcc]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x140011b2d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140015fe4
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14001603d
je 0x140016043
call 0x140016034
fild qword [rdi - 0x7c]
jmp 0x174f527b6
jne 0x140016006
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140015fc6
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x140015ea0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x140015ebb
je 0x140015ec6
call 0x140015f15
mov bl, 0xc7
lahf
pop rsi
jne 0x140015ea6
call 0x140015ebe
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140015ea6
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140015ef4
je 0x140015f32
invalid
je 0x140015f43
jne 0x140015ea6
lea rax, [0x140015dcc]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x140011b2d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140015fe4
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14001603d
je 0x140016043
call 0x140016034
fild qword [rdi - 0x7c]
jmp 0x174f527b6
jne 0x140016006
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140015fc6
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x140015eb0
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x140015ebb
je 0x140015ec6
call 0x140015f15
mov bl, 0xc7
lahf
pop rsi
jne 0x140015ea6
call 0x140015ebe
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140015ea6
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140015ef4
je 0x140015f32
invalid
je 0x140015f43
jne 0x140015ea6
lea rax, [0x140015dcc]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x140011b2d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140015fe4
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14001603d
je 0x140016043
call 0x140016034
fild qword [rdi - 0x7c]
jmp 0x174f527b6
jne 0x140016006
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140015fc6
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x140015f15
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x140015ebb
je 0x140015ec6
call 0x140015f15
mov bl, 0xc7
lahf
pop rsi
jne 0x140015ea6
call 0x140015ebe
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140015ea6
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140015ef4
je 0x140015f32
invalid
je 0x140015f43
jne 0x140015ea6
lea rax, [0x140015dcc]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x140011b2d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140015fe4
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14001603d
je 0x140016043
call 0x140016034
fild qword [rdi - 0x7c]
jmp 0x174f527b6
jne 0x140016006
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140015fc6
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x140036fc0
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x118
mov rdi, r9
mov rbx, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x110], rax
lea rsi, [rsp + 0x78]
mov rcx, rsi
call fcn.14000b840
mov rsi, qword [rsi]
test rsi, rsi
je 0x14003713f
lea r14, [rsp + 0x60]
mov dword [r14], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x140037085
cmp dword [rsp + 0x60], 0
je 0x140037085
xor r12d, r12d
lea r15, [rsp + 0x80]
mov r8d, 0x90
mov rcx, r15
xor edx, edx
call fcn.140016ea0
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov edx, 9
mov r8, r15
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x140037085
mov eax, dword [rsp + 0x90]
bt eax, 0xd
jae 0x140037085
shl eax, 0xd
and eax, 0x1000000
mov r12d, eax
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
xor ecx, ecx
mov qword [rax + 0x60], rcx
mov dword [rax], 0x68
lea rdx, str.winsta0Default
mov qword [rax + 0x10], rdx
mov qword [rsp + 0x70], rcx
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14003714b
mov rcx, qword [rsp + 0x60]
test rdi, rdi
je 0x140037143
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140015308
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140027fe0
mov eax, ebx
add rsp, 0x118
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14003711c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140037109
xor edi, edi
lea r14, [rsp + 0x58]
mov qword [r14], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [r14]
test rax, rax
lea rdx, [0x140044140]
cmovne rdx, rax
int3
Function at 0x140001814
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x18], 0
lea rax, str.SNMPTRAP
and qword [r11 - 0x10], 0
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rax, [0x1400010f0]
xor ecx, ecx
mov qword [r11 - 0x20], rax
lea ebx, [r9 + 1]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140004638], rax
test rax, rax
jne 0x140001875
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
int3
xor edx, edx
lea rcx, [0x140004680]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140004698], rax
test rax, rax
jne 0x1400018b9
mov rcx, qword [0x140004638]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
int3
lea rcx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov rcx, qword [0x140004638]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140004698]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140002210
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x14000225c
cmp rax, rbx
jne 0x14000224f
mov ebx, 1
mov esi, ebx
jmp 0x140002261
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002234
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002277
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400022dc
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022d6
mov dword [0x140004658], ebx
lea r15, [0x1400033b8]
lea rdi, [0x1400033a0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400022c8
test eax, eax
jne 0x1400022cc
cmp qword [rdi], 0
je 0x1400022bd
mov rax, qword [rdi]
mov rcx, qword [0x140003380]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000229e
test eax, eax
je 0x1400022dc
mov eax, 0xff
jmp 0x1400023b8
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002303
lea rdx, [0x140003398]
lea rcx, [0x140003388]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x140002310
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002344
lea rcx, [0x140004660]
call fcn.1400025c0
test eax, eax
je 0x140002344
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003380]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001814
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002374
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002389
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x1400023b8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14011a000
add rsp, 0x28
jmp 0x140002210

Function at 0x1400024ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400024f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400024f0
cmp dword [rcx + 0x3c], edx
jl 0x1400024f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400024f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400024f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140620d30
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140620d3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140620d4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140620d35
lea eax, [rcx + 1]
jmp 0x140620d5b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140620d6e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140620d54
sub eax, 3
jb 0x140620d8e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140620ddd
sar eax, 1
movsxd rbp, eax
jb 0x140620dc4
jmp 0x140620d9c
add ebx, ebx
jne 0x140620d9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140620dc4
inc ecx
add ebx, ebx
jne 0x140620daa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140620dc4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140620dbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140620dac
add ecx, 2
jmp 0x140620dc9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140620cf2
jmp 0x140620d3d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1d2c00
mov dl, 0x70
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140620e2d
cmp rsi, rcx
jae 0x140620e35
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140620e14
cmp al, 0x8f
ja 0x140620e14
cmp byte [rsi - 2], 0xf
je 0x140620e1a
sub al, 0xe8
cmp al, 1
ja 0x140620dfe
cmp rsi, rcx
jae 0x140620e35
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140620e04
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140620e35
lodsb al, byte [rsi]
jmp 0x140620e14
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x60a000]
mov eax, dword [rdi]
or eax, eax
je 0x140620e9e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6211e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140620e42
jns 0x140620e77
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140620e81
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140620e98
mov qword [rbx], rax
add rbx, 8
jmp 0x140620e62
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140620ee2
cmp al, 0xef
ja 0x140620eca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140620eaa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140620eb9
mov eax, dword [rdi]
add rdi, 4
jmp 0x140620eb9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x25f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140620f36
sub rsp, 0xffffffffffffff80
jmp 0x1400929f0