joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000cf2c
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov r8d, dword [0x100052a68]
test r8d, r8d
je 0x10000cf7a
mov rcx, qword [0x100052a60]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [0x100032a60]
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000cf70
mov eax, dword [0x100052a68]
add eax, eax
cmp eax, dword [rsp + 0x40]
je 0x10000cf7a
mov dword [0x100012a44], 0x322
and dword [0x100052a68], 0
add rsp, 0x38
ret

Function at 0x10000cf8c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x90
and dword [rax + 0x20], 0
mov r9d, r8d
lea rax, [rax - 0x30]
mov esi, r8d
or r9d, 9
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10000cfd3
mov rcx, rbx
jmp 0x10000d0e4
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x80]
lea r8, [rsp + 0xc8]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x64]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
je 0x10000d053
cmp eax, 0xea
je 0x10000d053
cmp eax, 0x7a
jne 0x10000d075
mov edx, dword [rsp + 0xc0]
mov ecx, 0x40
inc edx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x10000d084
lea ebx, [rax + 8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x10000d0f3
xor ebx, ebx
mov r9d, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
mov r8, rdi
inc r9d
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10000d0b9
mov rcx, qword [rsp + 0x78]
mov r8d, esi
mov rdx, rdi
call fcn.10000cf8c
test eax, eax
je 0x10000d0bb
inc ebx
cmp eax, 0x103
je 0x10000d0c8
cmp ebx, dword [rsp + 0x60]
jb 0x10000d086
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xb0]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000e410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rax, qword [0x100012110]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [0x10000203c]
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov dword [rcx], eax
movzx eax, word [0x100002040]
xor r12d, r12d
mov rsi, r12
mov word [rcx + 4], ax
cmp rdi, r12
je 0x10000e4f7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, r12d
je 0x10000e4f7
mov rbx, rdi
cmp word [rdi], r12w
je 0x10000e493
movzx edx, word [rbx]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
cmp rax, r12
je 0x10000e493
add rbx, 2
cmp word [rbx], r12w
jne 0x10000e476
movzx eax, word [rbx]
mov rbp, rbx
cmp ax, r12w
je 0x10000e4d5
lea rcx, [rsp + 0x20]
movzx edx, ax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
cmp rax, r12
je 0x10000e4bc
cmp rsi, r12
jne 0x10000e4bf
mov rsi, rbx
jmp 0x10000e4bf
mov rsi, r12
add rbx, 2
mov ax, word [rbx]
cmp ax, r12w
jne 0x10000e49f
cmp rsi, r12
je 0x10000e4d5
mov word [rsi], r12w
cmp rbp, rdi
jbe 0x10000e4f2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rbp
mov rcx, rdi
lea r8d, [rax + 1]
call fcn.10000e668
mov rax, rdi
jmp 0x10000e4fe
lea rax, [0x100001454]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.100010090
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x180001000
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x18001a008]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
movdqa xmm0, xmmword [0x1800103c0]
lea rax, [rsp + 0x58]
movdqa xmm1, xmmword [0x1800103a0]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x40], rax
xor edi, edi
lea rax, [rsp + 0x50]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm0, xmmword [str._e0e8_475f_ba9c_CLSID566296fea31ad31620b1InSOFTWAREClasses]
mov rbx, rcx
mov qword [rsp + 0x38], rax
xor r9d, r9d
movdqa xmmword [rbp - 0x70], xmm1
xor r8d, r8d
movdqa xmm1, xmmword [0x1800103b0]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], edi
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmmword [rbp - 0x50], xmm1
mov dword [rbp - 0x40], 0x636f7270
mov dword [rbp - 0x3c], 0x76726553
mov dword [rbp - 0x38], 0x32337265
mov byte [rbp - 0x34], dil
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x18000119f
xor edx, edx
mov dword [rsp + 0x60], 0x4f004c
mov r8d, 0x208
mov dword [rsp + 0x64], 0x410043
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x68], 0x41004c
mov dword [rsp + 0x6c], 0x500050
mov dword [rsp + 0x70], 0x410044
mov dword [rsp + 0x74], 0x410054
mov word [rsp + 0x78], di
call fcn.1800021f0
lea rcx, [rsp + 0x60]
call fcn.180005528
lea rdx, [rbp - 0x30]
mov r8, rax
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], di
jne 0x180001125
xor ecx, ecx
movzx eax, word [r8 + rcx*2]
mov word [rdx + rcx*2], ax
inc rcx
test ax, ax
jne 0x180001130
lea rcx, [rbp - 0x30]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x180001149
xor edx, edx
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x180001154
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0x208
lea rdx, [0x180010334]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x1800011a1
xor al, al
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1800013f0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800011d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rdi
push rbp
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x18001a008]
xor rax, rsp
mov qword [rbp + 0x310], rax
xor edi, edi
mov dword [rsp + 0x50], 0x73005c
xor edx, edx
mov word [rsp + 0x60], di
mov r8d, 0x208
mov dword [rsp + 0x54], 0x63006f
lea rcx, [rbp + 0x100]
mov dword [rsp + 0x58], 0x64002e
mov dword [rsp + 0x5c], 0x6c006c
call fcn.1800021f0
lea rdx, [rbp + 0x100]
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], di
jne 0x18000123c
lea r8, [rsp + 0x50]
xor ecx, ecx
movzx eax, word [r8 + rcx*2]
mov word [rdx + rcx*2], ax
inc rcx
test ax, ax
jne 0x18000124c
lea rcx, [rbp + 0x100]
call section..text
test al, al
je 0x180001337
xor edx, edx
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x68]
call fcn.1800021f0
xor edx, edx
mov dword [rbp - 0x80], 0x68
mov r8d, 0x104
mov word [rbp - 0x40], di
lea rcx, [rbp - 0x10]
mov dword [rbp - 0x44], 1
call fcn.1800021f0
lea rcx, [rbp - 0x10]
dec rcx
inc rcx
cmp byte [rcx], dil
jne 0x1800012aa
movaps xmm0, xmmword [str.cmd__C_timeout_1__taskkill__f__im_explorer.exe__explorer.exe]
lea rdx, [rbp - 0x10]
movaps xmm1, xmmword [0x180010350]
xor r9d, r9d
mov al, byte [0x180010380]
xor r8d, r8d
movups xmmword [rcx], xmm0
movaps xmm0, xmmword [0x180010360]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [0x180010370]
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm1
mov byte [rcx + 0x40], al
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180001337
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.1800013f0
mov rdi, qword [rsp + 0x430]
add rsp, 0x420
pop rbp
ret
Function at 0x1800093f8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180009428
xor eax, eax
jmp 0x1800094eb
mov rbp, rbx
cmp word [rax], si
je 0x18000944d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180009434
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180009430
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180009348
movsxd r14, eax
test eax, eax
jne 0x18000948b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180009421
mov rcx, r14
call fcn.18000ac64
mov rdi, rax
test rax, rax
jne 0x1800094a4
xor ecx, ecx
call fcn.180007a4c
jmp 0x180009480
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180009348
test eax, eax
jne 0x1800094d5
mov rcx, rdi
call fcn.180007a4c
jmp 0x1800094df
xor ecx, ecx
call fcn.180007a4c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180009508
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18000958f
mov rsi, rbx
cmp word [rax], bp
je 0x18000954e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180009538
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180009534
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18000ac64
mov rdi, rax
test rax, rax
je 0x18000957c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180003230
mov rbp, rdi
xor ecx, ecx
call fcn.180007a4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400043f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004400]
mov dword [rax], 1
mov rax, qword [0x140004410]
mov dword [rax], 1
mov rax, qword [0x140004390]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400043e0]
mov dword [0x140007020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400044b0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004490]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004340]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001530
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
mov ecx, 0x52
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
je 0x140001558
mov edx, 0x14a
mov ecx, 0x1e0
mov rax, qword [sym.imp.USER32.dll_SetCursorPos]
call rax
mov ecx, 8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 6
mov rax, qword [sym.imp.USER32.dll_mouse_event]
call rax
mov edx, 0x14a
mov ecx, 0x1cc
mov rax, qword [sym.imp.USER32.dll_SetCursorPos]
call rax
mov ecx, 8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 6
mov rax, qword [sym.imp.USER32.dll_mouse_event]
call rax
mov ecx, 0x58
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
je 0x14000156b
mov r9d, 0
mov r8d, 2
mov edx, 0
mov ecx, 0xa0
mov rax, qword [sym.imp.USER32.dll_keybd_event]
call rax
nop
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001970
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 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 0x1400019e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070b4]
mov rbx, rcx
test esi, esi
jle 0x140001b10
mov rax, qword [0x1400070b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ab5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a10
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001b32
mov rax, qword [0x1400070b8]
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 [0x1400070b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001aae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001ac0
add dword [0x1400070b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001aae
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 0x140001a38
mov rax, qword [0x1400070b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400021e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x140002310
ja 0x140002228
test edx, edx
je 0x1400022a8
mov eax, dword [0x140007108]
test eax, eax
je 0x140002390
mov dword [0x140007108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x140002215
mov eax, dword [0x140007108]
test eax, eax
je 0x140002215
lea r12, [0x140007120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x140002294
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 0x1400023b8
test eax, eax
jne 0x1400023b8
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002268
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002215
mov eax, dword [0x140007108]
test eax, eax
jne 0x140002328
mov eax, dword [0x140007108]
cmp eax, 1
jne 0x140002215
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x1400022e1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sym.free
test rbx, rbx
jne 0x1400022d0
lea rcx, [0x140007120]
mov qword [0x140007100], 0
mov dword [0x140007108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x140002215
call sym._fpreset
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x140007120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x14000237c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400023a8
test rsi, rsi
je 0x1400023a8
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002358
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400022b2
lea rcx, [0x140007120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14000220b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002358
jmp 0x14000237c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002268
jmp 0x140002294

Function at 0x1400023d0
Capabilities:
Parse pe header

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

Function at 0x140002400
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000244d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002444
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000244f
add rax, 0x28
cmp rax, r9
jne 0x140002430
xor eax, eax
ret
Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400024e0
mov rdx, qword [0x140004390]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400024ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400024ce
cmp word [rax + 0x18], 0x20b
jne 0x1400024ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400024e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400024b9
add rbx, 0x28
cmp rbx, rdi
je 0x1400024e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400024b0
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 0x1400024f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x140004390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002510
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002518
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002510
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002565
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000255c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002510
add rax, 0x28
cmp rax, r9
jne 0x140002548
xor eax, eax
ret

Function at 0x140002570
Capabilities:
Parse pe header

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

Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002620
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002617
test rcx, rcx
je 0x1400025d0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002608
xor eax, eax
ret

Function at 0x140002630
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000264f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002658
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002670
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002690
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002698
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002690
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002690
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]
mov rax, r8
cmp rcx, r8
jb 0x1400026e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026f0
add rdx, 0x28
cmp r9, rdx
jne 0x1400026d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140004390]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002724
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x140002730
mov rax, r9
ret
cmp word [rcx + 0x18], 0x20b
jne 0x140002724
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002724
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r10w, r10w
je 0x140002724
lea ecx, [r10 - 1]
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000277c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002790
add rdx, 0x28
cmp rdx, r10
jne 0x140002768
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027a0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400027ae
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002785
test r8d, r8d
jg 0x140002798
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400112b7
Capabilities:
Terminate process

Disassembly:
jmp 0x14001ac00
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