joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013440
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400134b8
test byte [rbx + 0x40], 0xc
jne 0x14001346f
mov eax, dword [0x14001fd68]
test eax, eax
jne 0x140013480
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400113b0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400134a3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400134a3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400134cc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400116a0
call fcn.140012200
mov rbx, rax
test rax, rax
jne 0x14001345f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400134ea
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400116a0
call fcn.140013360
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140013570
call fcn.140014620
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400135a8
call fcn.140012150
mov ecx, dword [0x1400173b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140013600
test esi, esi
je 0x140013586
call fcn.140013440
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400135e0
mov edx, edi
call fcn.1400146d0
call fcn.140013440
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400135f0
call fcn.140013440
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140013440
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140012150
mov ecx, dword [0x1400173b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140013545
call fcn.140012200
mov rbx, rax
jmp 0x140013545
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001355e
call fcn.140012200
jmp 0x140013586
call fcn.140012200
mov rbx, rax
jmp 0x140013541
Function at 0x140013500
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400134b8
test byte [rbx + 0x40], 0xc
jne 0x14001346f
mov eax, dword [0x14001fd68]
test eax, eax
jne 0x140013480
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400113b0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400134a3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400134a3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400134cc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400116a0
call fcn.140012200
mov rbx, rax
test rax, rax
jne 0x14001345f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400134ea
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400116a0
call fcn.140013360
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140013570
call fcn.140014620
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400135a8
call fcn.140012150
mov ecx, dword [0x1400173b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140013600
test esi, esi
je 0x140013586
call fcn.140013440
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400135e0
mov edx, edi
call fcn.1400146d0
call fcn.140013440
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400135f0
call fcn.140013440
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140013440
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140012150
mov ecx, dword [0x1400173b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140013545
call fcn.140012200
mov rbx, rax
jmp 0x140013545
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001355e
call fcn.140012200
jmp 0x140013586
call fcn.140012200
mov rbx, rax
jmp 0x140013541

Function at 0x140013610
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140013680
test esi, esi
je 0x140013660
call fcn.140013440
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140013690
mov edx, esi
call fcn.1400146d0
call fcn.140013440
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140013440
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140013440
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140012200
mov rbx, rax
jmp 0x140013631
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001364a
Function at 0x14000fbd0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000fbdd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000fbed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000fbd5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000fc05
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000fbf2
sub eax, 3
jb 0x14000fc1f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000fc56
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000fc46
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000fc44
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000fc33
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000fb92
jmp 0x14000fbdd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x4a00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000fca2
cmp rsi, rcx
jae 0x14000fcaa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000fc89
cmp al, 0x8f
ja 0x14000fc89
cmp byte [rsi - 2], 0xf
je 0x14000fc8f
sub al, 0xe8
cmp al, 1
ja 0x14000fc73
cmp rsi, rcx
jae 0x14000fcaa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000fc79
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000fcaa
lodsb al, byte [rsi]
jmp 0x14000fc89
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xd000]
mov eax, dword [rdi]
or eax, eax
je 0x14000fd07
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf1dc]
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 0x14000fcb7
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 0x14000fd01
mov qword [rbx], rax
add rbx, 8
jmp 0x14000fcd7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x227]
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 0x14000fd5f
sub rsp, 0xffffffffffffff80
jmp 0x140004d20
Function at 0x4016f0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x401711
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sub.msvcrt.dll_fflush

Function at 0x4017e0
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [fcn.0041ced0]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
ret

Function at 0x40d510
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x148
cmp qword [0x00436778], 0
mov qword [rbp + 0x28], rcx
mov byte [rbp - 0x119], 1
je 0x40d603
mov rax, qword [0x00436768]
lea rcx, [rbp - 0x108]
mov rdx, rbp
mov qword [rbp - 0x118], rax
lea rax, [rbp - 0x118]
mov qword [0x00436768], rax
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rbp - 0x110], rax
test rax, rax
jne 0x40d620
xor r12d, r12d
cmp qword [rbp + 0x28], 0
je 0x40d5d4
mov rcx, qword [rbp + 0x28]
mov esi, 7
call sub.msvcrt.dll_strlen
lea r8, [0x00433b80]
lea rcx, [0x0041e020]
cmp rax, 7
mov rbx, rax
cmovge rsi, rax
lea rdx, [rsi + 0x11]
call fcn.00407d10
movq xmm0, rbx
movq xmm1, rsi
mov rdx, qword [rbp + 0x28]
punpcklqdq xmm0, xmm1
lea rcx, [rax + 0x10]
lea r8, [rbx + 1]
mov r12, rax
movups xmmword [rax], xmm0
call sub.msvcrt.dll_memcpy
mov rcx, r12
call qword [0x00436778]
mov rax, qword [0x00436768]
cmp qword [rbp - 0x110], 0
mov byte [rbp - 0x119], 0
mov rax, qword [rax]
mov qword [0x00436768], rax
jne 0x40d68d
movzx eax, byte [rbp - 0x119]
test al, al
jne 0x40d6a8
add rsp, 0x148
pop rbx
pop rsi
pop r12
pop rbp
ret
mov rax, qword [0x00436768]
mov rax, qword [rax]
mov qword [rbp - 0x110], 0
mov qword [0x00436768], rax
mov rax, qword [0x00436760]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x40d65d
add qword [rbx - 0x10], 8
mov rax, qword [0x00436760]
test rax, rax
je 0x40d678
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x40d678
call fcn.004044b0
cmp qword [rbp - 0x110], 0
mov qword [0x00436760], rbx
je 0x40d603
mov rcx, qword [0x00436760]
test rcx, rcx
je 0x40d6ea
call fcn.0040da60
jmp 0x40d603
mov ecx, 2
call qword [fcn.0041ced0]
xor r8d, r8d
cmp qword [rbp + 0x28], 0
mov r12, rax
je 0x40d6cc
mov rcx, qword [rbp + 0x28]
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, qword [rbp + 0x28]
mov r9, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
jmp 0x40d612
call fcn.0040d480
nop
Function at 0x416d60
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.0041ced0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.0041ced0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x416dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x00437bd4]
mov r12, rcx
test ebx, ebx
jle 0x416f00
mov rax, qword [0x00437bd8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x416e1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x416ea3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x416e00
mov rcx, r12
call fcn.00417780
mov rsi, rax
test rax, rax
je 0x416f22
mov rax, qword [0x00437bd8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.004178b0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00437bd8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x416f07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x416e9c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x416eb0
add dword [0x00437bd4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x00437bd8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x416e9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00416d60
nop dword [rax]
xor ebx, ebx
jmp 0x416e27
mov rax, qword [0x00437bd8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00416d60
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00416d60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4173f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00437c40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00437c20]
test rbx, rbx
je 0x417444
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x41743b
test r12, r12
je 0x41743b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x417420
lea rcx, [0x00437c40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x417780
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00423590]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4177a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4177a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4177a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4177f5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4177ec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4177a0
add rax, 0x28
cmp rax, r9
jne 0x4177d8
xor eax, eax
ret

Function at 0x417800
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00423590]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x417820
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x417828
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x417820
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x4178b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00423590]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4178d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4178d8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140688058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406881df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140688089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068806f
add dl, dl
jne 0x140688096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406880f6
xor eax, eax
add dl, dl
jne 0x1406880a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406881ad
add dl, dl
jne 0x1406880b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406880c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406880d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406880dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406880ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14068807e
mov eax, 1
add dl, dl
jne 0x140688106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140688113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406880fb
sub eax, ebx
mov ebx, 1
jne 0x14068814c
mov ecx, 1
add dl, dl
jne 0x14068812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14068813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140688123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140688168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140688175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068815d
cmp eax, 0x7d00
jae 0x14068819b
cmp eax, 0x500
jb 0x140688196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068807e
cmp eax, 0x7f
ja 0x14068819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406881d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14068807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140001800
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, [0x1400010e0]
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 0x140001861
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 0x1400018a5
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 0x1400023a0
Capabilities:
Access peb ldr_data

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10
mov rcx, r11
add rcx, 0x10
mov r10, qword [rcx]
add r11, 0x18
mov r13, qword [r11]
mov rcx, r13
add rcx, 0x10
mov r11, qword [rcx]
push r12
mov r13, r11
add r13, 0x30
mov rcx, qword [r13]
cmp rcx, 0
je 0x140002413
mov r13, qword [r11 + 0x60]
mov r12, qword [r13]
and r12d, 0xdf00df
mov r13, qword [r13 + 0xc]
shl r13d, 8
add r13d, r12d
shl r13d, 2
sub r13d, 0xc914cd2c
cmp r13, 0
je 0x14000241b
mov r13, qword [r11]
mov r11, r13
jmp 0x1400023cf
mov r11d, dword [rcx + 0x3c]
add r11, rcx
add r11, 0x10
mov r13d, dword [r11 + 0x78]
add r13, rcx
push rbx
mov r12d, dword [r13 + 0x20]
add r12, rcx
mov ebx, dword [r12]
add rbx, rcx
mov r11d, dword [rbx + 0xb]
sub r11d, 0x746365
test r11d, r11d
test ebx, ebx
jne 0x140002451
jmp 0x14000245f
inc r12
inc r12
inc r12
inc r12
jmp 0x140002435
mov r11d, dword [r13 + 0x20]
sub r12, r11
sub r12, rcx
shr r12d, 1
mov r11d, dword [r13 + 0x24]
add r11, r12
add r11, rcx
mov r12d, dword [r11]
mov r11d, dword [r13 + 0x1c]
and r12d, 0xffff
shl r12d, 2
add r11, rcx
add r11, r12
mov r12d, dword [r11]
mov r11d, 0x6a000
add r12, rcx
push rcx
add r11, r10
push r10
push r11
push rbx
Function at 0x1400111e5
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140014060
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014080
xor al, al
jmp 0x140014101
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014093
xor al, al
jmp 0x140014101
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 0x1400140bd
xor al, al
jmp 0x140014101
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400140d1
xor al, al
jmp 0x140014101
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400140e3
xor al, al
jmp 0x140014101
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400140ff
xor al, al
jmp 0x140014101
mov al, 1
add rsp, 0x38
ret
Function at 0x148b24058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.148b241df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x148b24089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x148b2406f
add dl, dl
jne 0x148b24096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x148b240f6
xor eax, eax
add dl, dl
jne 0x148b240a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x148b241ad
add dl, dl
jne 0x148b240b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x148b240c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x148b240d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x148b240dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x148b240ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x148b2407e
mov eax, 1
add dl, dl
jne 0x148b24106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x148b24113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x148b240fb
sub eax, ebx
mov ebx, 1
jne 0x148b2414c
mov ecx, 1
add dl, dl
jne 0x148b2412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x148b2413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x148b24123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x148b2407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x148b24168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x148b24175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x148b2415d
cmp eax, 0x7d00
jae 0x148b2419b
cmp eax, 0x500
jb 0x148b24196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x148b2407e
cmp eax, 0x7f
ja 0x148b2419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x148b2407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x148b241d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x148b2407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20