joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call fcn.10151000
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10007c10
add rsp, 0x28
jmp 0x10007510
Function at 0x140001540
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call fcn.140001650
mov edx, 1
lea rcx, str.libCURL.dll
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
mov edx, 0
lea rcx, str.wscript_.wwwjspluginspassage.vbs
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
mov edx, 0
lea rcx, str.wscript_.wwwjspluginspassage2.vbs
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001870
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.14000c3f0
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.14000c3f0
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 0x1400018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400110b4]
mov r12, rcx
test ebx, ebx
jle 0x140001a10
mov rax, qword [0x1400110b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000192c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400019b3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001910
mov rcx, r12
call fcn.140002280
mov rsi, rax
test rax, rax
je 0x140001a32
mov rax, qword [0x1400110b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400023b0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400110b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ac
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019c0
add dword [0x1400110b4], 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 [0x1400110b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001870
nop dword [rax]
xor ebx, ebx
jmp 0x140001937
mov rax, qword [0x1400110b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001870
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001870
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001ef0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140011120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011100]
test rbx, rbx
je 0x140001f44
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 0x140001f3b
test r12, r12
je 0x140001f3b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f20
lea rcx, [0x140011120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x14000e5e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400022f5
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 0x1400022ec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022a0
add rax, 0x28
cmp rax, r9
jne 0x1400022d8
xor eax, eax
ret

Function at 0x140002300
Capabilities:
Parse pe header

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

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000e5e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400023d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400023d8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140003ba0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14000e660]
mov rax, qword [rsi]
test rax, rax
je 0x140003c30
cmp qword [rax + 0x30], 0
jne 0x140003c50
lea rbx, [0x14000d078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003c00
cmp qword [rax + 0x30], 0
jne 0x140003c20
lea rdx, [0x14000d078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14000c470
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140008aa0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003be2
test rax, rax
jne 0x140003c20
call fcn.140008aa0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003bf0
call fcn.140008aa0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003bc0
test rax, rax
jne 0x140003c50
call fcn.140008aa0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003bcb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140003c60
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140003d72
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140003d4a
add rax, 1
cmp rax, 0x6b
je 0x140003d67
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140003d40
cmp edx, 0x6a
je 0x140003d67
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140003d5b
Function at 0x140004780
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x14000e660]
mov rax, qword [rsi]
test rax, rax
je 0x140004970
cmp qword [rax + 0x28], 0
jne 0x140004958
lea rcx, [0x1400111d8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140004965
call fcn.140003d90
mov rax, qword [rsi]
test rax, rax
je 0x140004800
cmp qword [rax + 0x30], 0
jne 0x140004820
lea rdx, [0x14000d078]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140004834
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140008aa0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400047d0
test rax, rax
jne 0x140004820
call fcn.140008aa0
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1400047ee
call fcn.1400038d0
cmp qword [0x140013050], 0
mov rbx, rax
je 0x1400047ee
test rax, rax
je 0x1400047ee
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000a940
cmp eax, 1
je 0x1400049dd
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14000c476
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x1400049b8
cmp qword [rax + 0x30], 0
je 0x1400049a0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000c476
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400047bc
mov rax, qword [rsi]
jmp 0x1400047c9
call fcn.140008aa0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1400047a8
test rax, rax
jne 0x140004958
call fcn.140008aa0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400047bc
jmp 0x1400047c1
lea rdx, [0x14000d078]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14000492e
call fcn.140008aa0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400049a0
test rax, rax
jne 0x14000492a
call fcn.140008aa0
jmp 0x14000492a
call fcn.140003c60
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14000e660]
mov rdx, qword [rax]
lea rax, [0x1400111e8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140008920
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008940
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008988
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008934
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008975
Function at 0x140008aa0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400112c0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140008ac3
lea rax, [0x1400112c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140008b0b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140008b08
lea rax, [0x140011300]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140008b3b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140008b38
xor ecx, ecx
mov byte [0x140011319], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140011322], rdx
lea r8, [0x1400112c0]
lea rbx, [0x14001131a]
mov qword [0x140011332], rdx
mov qword [0x140011342], rdx
mov qword [0x140011352], rdx
xor edx, edx
mov qword [0x14001131a], rax
mov qword [0x14001132a], rax
mov qword [0x14001133a], rax
mov qword [0x14001134a], rax
mov byte [0x14001135a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008d16
lea rcx, [0x140011300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008c61
lea rsi, [0x140011200]
lea r8, [0x14001135a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140008c0d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140008c00
lea rcx, [0x140011300]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140008d03
lea rcx, [0x1400089b0]
mov qword [0x140011200], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140011200]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140011300]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14001135a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140008d36
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140008cb3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140008ca0
mov rax, rdx
mov qword [0x140011200], rax
lea rsi, [0x140011200]
jmp 0x140008cd9
cmp rdx, rsi
je 0x140008c3f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140008cd0
cmp rdx, rsi
je 0x140008c3f
mov qword [rdx + 8], rsi
lea rcx, [0x1400089b0]
call sub.msvcrt.dll__onexit
jmp 0x140008c3f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140008920
xor eax, eax
jmp 0x140008c58
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140008920
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140008920
xor eax, eax
jmp 0x140008cbf
Function at 0x1636eb4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1636ebe
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1636ee7
pop rbp
sub rbp, 0x33
sub rbp, 0x1236eb4
sub rsp, 0x20
and byte [rax], al
add byte [rax], al
jmp 0x1636f06
mov rax, 0x1236eb4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff94f2fd32
xor byte [rax], dl
inc rax
dec rcx
jne 0x1636f25
jmp 0x1636f3c
jp 0x1636ef9
fstp xword [rcx + 0x32320ebb]
xor bh, byte [rdx - 0x4d]
cmp dh, byte [rbx]
xor dh, byte [rdx]
jp 0x1636f81
fstp xword [rdx - 0xb]
xor dh, byte ss:[rdx]
xor dh, byte [rdx]
xor bh, byte [rdx - 0xb]
invalid
xor bh, byte [rdx + 0x33]
fstp xword [rdx - 0x78]
jrcxz 0x1636fec
jns 0x1636fb8
xor dh, byte [rdx]
xor dh, byte [rdx]
fidiv dword [rdi]
xor dh, byte [rdx]
xor bl, bl
and al, 0x32
xor dh, byte [rdx]
fidiv dword [rax]
add esp, dword [rbx]
jp 0x1636f53
xor dh, byte ss:[rdx]
xor bh, byte [rdx - 0x33]
cli
cmp eax, 0xcdcddcb7
int 0xf1
push 0x68
invalid
xor dh, byte [rdx]
xor dh, byte [rdx]
xor bh, byte [rdx - 0x75]
sub byte [rbp - 0x37], bl
xor dh, byte [rdx]
xor dh, byte [rdx]
xor bh, byte [rdx + 0x33]
fcmovnu st(0), st(2)
invalid
mov dh, 0x56
xor dh, byte [rdx]
xor bh, byte [0x3395dcb0]
xor dl, byte [rcx + rdi*4 + 0x2e]
or esi, dword [rdx - 0x49c22537]
xor dh, byte cs:[rdx]
xor dh, byte [rdx - 0x49c22437]
and dword [rdx], esi
xor dh, byte [rdx]
push rsp
mov bl, 0xc9
int 0x17
cmp eax, 0x32322db6
xor bh, byte [rdx - 0x33]
invalid
Function at 0x140006570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x1400066d2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400066d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x1400066d2
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140006616
nop
cmp rdi, r11
jae 0x1400066d2
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140006600
cmp rdi, r11
jae 0x1400066d2
movzx eax, word [rdi]
test ax, ax
je 0x1400066d2
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x14000664c
mov edx, ebx
mov rcx, rsi
call fcn.140006320
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140006669
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.1400b09f0
test eax, eax
je 0x1400066a8
cmp eax, 0xc
je 0x1400066a2
cmp eax, 0x16
je 0x14000669c
cmp eax, 0x22
je 0x14000669c
cmp eax, 0x50
je 0x1400066a8
call fcn.14008bf60
int3
call fcn.14008bf60
int3
call fcn.14008bf18
int3
test ebx, ebx
js 0x1400066c7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1400066c7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x1400066d4
mov ecx, 0x80070057
call fcn.140006300
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400066f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140006723
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x140006767
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140006762
cmp rbx, r11
jae 0x140006767
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140006750
cmp rbx, r11
jb 0x14000676b
xor eax, eax
jmp 0x140006777
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140006c30
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r9
mov r12, r8
mov r13, rdx
mov rdi, rcx
cmp qword [rcx + 0x10], 0
je 0x140006d78
cmp qword [rcx + 0x80], 0
jne 0x140006cbb
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140006ca8
lea rdx, str.GetPage
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x80], rax
test rax, rax
jne 0x140006cbb
mov dword [rdi], 0x7f
lea rcx, str.EWSIntf::get_page:_Function_not_found_in_DLL:_GetPage_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140006cbb
mov dword [rdi], 6
lea rcx, str.EWSIntf::get_page:_Attempting_to_lookup_GetPage_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp qword [rdi + 0x80], 0
je 0x140006d74
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 0x800
mov edx, 0x10000
lea rcx, [rsp + 0x38]
call fcn.140006850
movzx esi, al
mov rbx, qword [rsp + 0x38]
cmp al, 1
jne 0x140006d5d
mov dword [rsp + 0x90], r14d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov r9, rbx
mov r8, r12
mov rdx, r13
mov rcx, qword [rdi + 0x10]
call qword [rdi + 0x80]
test eax, eax
je 0x140006d5d
mov eax, dword [rsp + 0x90]
mov qword [rsp + 0x40], rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
mov rcx, rbp
call fcn.140014f10
nop
test rbx, rbx
je 0x140006d6f
mov rcx, rbx
call fcn.140084dcc
mov al, sil
jmp 0x140006d7a
mov al, sil
jmp 0x140006d7a
xor al, al
jmp 0x140006d7a
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret