joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002cb30
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14003cda0], 1
je 0x14002cba8
lea rdi, [0x14003cda0]
mov rcx, rdi
call fcn.14002c410
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14002bdb0
mov esi, dword [0x14003cda0]
test esi, esi
jne 0x14002cbb8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400322c8], eax
cmp eax, 0xffffffff
je 0x140031be6
mov dword [0x14003cda0], 1
mov rcx, rbp
call fcn.14002c080
test rbx, rbx
je 0x14002cba8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14002c7b0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14002cb88
mov ecx, 2
call qword [fcn.14002b630]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14002cb88
call sub.msvcrt.dll_abort
nop

Function at 0x14002cbe0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14002c8c0
cmp qword [0x14003f048], 0
mov rbx, rax
je 0x14002ccf8
test rax, rax
je 0x14002ccf8
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.1400303f0
cmp eax, 1
je 0x14002cd06
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 rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
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 fcn.140031bec
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400322c8]
mov rdx, rbx
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
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14002cd0c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14002c680
nop
jmp fcn.140031bec

Function at 0x14002cd20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002cd40
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14002cbe0

Function at 0x14002db40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002db68
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14002cbe0
test rax, rax
jne 0x14002db5a
add rsp, 0x28
ret
Function at 0x14002dbd0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002dbf8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14002cbe0
test rax, rax
jne 0x14002dbea
jmp 0x14002dbee

Function at 0x14002dd10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14003cda8]
test eax, eax
jne 0x14002dd28
xor eax, eax
add rsp, 0x28
ret
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002dd58
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14002dd1e
test byte [rax + 0x40], 3
je 0x14002dd1e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14002dd20
call fcn.14002cbe0
test rax, rax
jne 0x14002dd3e
jmp 0x14002dd1e

Function at 0x14002dd70
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002ddb0
test ebx, ebx
jle 0x14002dda0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14002cbe0
test rax, rax
jne 0x14002dd8d
add rsp, 0x20
pop rbx
ret
Function at 0x14002dea0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002df18
test byte [rbx + 0x40], 0xc
jne 0x14002decf
mov eax, dword [0x14003cda8]
test eax, eax
jne 0x14002dee0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14002bdb0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14002df03
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14002df03
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002df2c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14002c080
call fcn.14002cbe0
mov rbx, rax
test rax, rax
jne 0x14002debf
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 0x14002df4a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14002c080
call fcn.14002ddc0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002dfd0
call fcn.14002f4d0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14002e008
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002e060
test esi, esi
je 0x14002dfe6
call fcn.14002dea0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002e040
mov edx, edi
call fcn.14002f5a0
call fcn.14002dea0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002e050
call fcn.14002dea0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002dea0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002dfa5
call fcn.14002cbe0
mov rbx, rax
jmp 0x14002dfa5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002dfbe
call fcn.14002cbe0
jmp 0x14002dfe6
call fcn.14002cbe0
mov rbx, rax
jmp 0x14002dfa1
Function at 0x14002df60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002df18
test byte [rbx + 0x40], 0xc
jne 0x14002decf
mov eax, dword [0x14003cda8]
test eax, eax
jne 0x14002dee0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14002bdb0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14002df03
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14002df03
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002df2c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14002c080
call fcn.14002cbe0
mov rbx, rax
test rax, rax
jne 0x14002debf
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 0x14002df4a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14002c080
call fcn.14002ddc0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002dfd0
call fcn.14002f4d0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14002e008
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002e060
test esi, esi
je 0x14002dfe6
call fcn.14002dea0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002e040
mov edx, edi
call fcn.14002f5a0
call fcn.14002dea0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002e050
call fcn.14002dea0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002dea0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002dfa5
call fcn.14002cbe0
mov rbx, rax
jmp 0x14002dfa5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002dfbe
call fcn.14002cbe0
jmp 0x14002dfe6
call fcn.14002cbe0
mov rbx, rax
jmp 0x14002dfa1

Function at 0x14002e070
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14002cb30
mov ecx, dword [0x1400322c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002e0e0
test esi, esi
je 0x14002e0c0
call fcn.14002dea0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002e0f0
mov edx, esi
call fcn.14002f5a0
call fcn.14002dea0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14002dea0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002dea0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14002cbe0
mov rbx, rax
jmp 0x14002e091
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002e0aa
Function at 0x140031980
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400319b0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub rsp, 0x28
test rcx, rcx
je 0x140031a00
mov rax, qword [0x14003cde0]
test rax, rax
je 0x140031a00
mov edx, 4
call rax
test al, al
je 0x140031a00
xor eax, eax
add rsp, 0x28
ret
mov eax, 0x16
add rsp, 0x28
ret
Function at 0x140002960
Capabilities:
Create thread
Enumerate processes

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x280
mov rax, qword [0x140044020]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbp, qword [0x140046988]
xor edx, edx
mov qword [r11 + 8], rbx
xor ebx, ebx
mov qword [r11 + 0x18], rdi
lea ecx, [rbx + 6]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002a65
xor edx, edx
mov dword [rsp + 0x30], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.14000eec0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002a5c
mov qword [rsp + 0x298], rsi
nop
lea rdx, [0x14003c5e0]
lea rcx, [rsp + 0x5c]
call fcn.140012e84
test eax, eax
je 0x140002a0a
lea rdx, [0x14003c630]
lea rcx, [rsp + 0x5c]
call fcn.140012e84
test eax, eax
jne 0x140002a24
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140002a3d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400029e0
test rbx, rbx
je 0x140002a54
jmp 0x140002a4b
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x298]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x290]
mov r9, qword [rbp + 0x88]
test r9, r9
je 0x140002ab8
lea r8, [0x14003c670]
xor edx, edx
xor ecx, ecx
call fcn.140001fa0
inc eax
movsxd rcx, eax
call fcn.14000ccb0
mov r8, qword [rbp + 0x88]
lea rdx, [0x14003c670]
mov rcx, rax
mov qword [rbp + 0x98], rax
call fcn.140001f40
mov qword [rsp + 0x28], 0
lea r8, [0x1400021f0]
mov r9, rbp
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x58], rax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000c760
add rsp, 0x280
pop rbp
ret

Function at 0x140002b00
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140044020]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002baa
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.14000eec0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002ba1
nop word [rax + rax]
lea rdx, [0x14003c680]
lea rcx, [rsp + 0x5c]
call fcn.140012e84
mov rcx, rbx
test eax, eax
jne 0x140002b92
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140002bc6
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002b70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rdi + 0x80]
lea rdx, [0x14003c6a0]
mov rcx, rdi
call fcn.1400022d0
xor al, al
jmp 0x140002bc6
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14000c760
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x140002bf0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x88]
lea r8, [0x14003c6f8]
mov rbx, rcx
xor edx, edx
xor ecx, ecx
call fcn.140001fa0
inc eax
movsxd rcx, eax
call fcn.14000ccb0
mov r8, qword [rbx + 0x88]
lea rdx, [0x14003c6f8]
mov rcx, rax
mov rbp, rax
call fcn.140001f40
cmp byte [rbx + 0x50], 0
jne 0x140002d6c
nop word [rax + rax]
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rdi, rax
test rax, rax
je 0x140002ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140002c93
cmp eax, 5
je 0x140002c93
mov rcx, qword [rbx + 0x80]
lea rdx, [0x14003c718]
call fcn.14000e4fc
test rax, rax
je 0x140002d2c
cmp qword [rbx + 0xa8], 0
je 0x140002cb8
mov r8, qword [rbx + 0x80]
test r8, r8
je 0x140002cb8
lea rdx, [0x14003c708]
mov rcx, rbx
call fcn.1400022d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002d15
mov rcx, qword [rbx + 0x80]
lea rdx, [0x14003c718]
call fcn.14000e4fc
test rax, rax
jne 0x140002cf0
mov rcx, rbx
call fcn.140002b00
test al, al
je 0x140002d56
cmp qword [rbx + 0xa8], 0
je 0x140002d15
mov r8, qword [rbx + 0x80]
test r8, r8
je 0x140002d15
lea rdx, [0x14003c708]
mov rcx, rbx
call fcn.1400022d0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x50], 0
je 0x140002c50
jmp 0x140002d6c
mov r8, qword [rbx + 0x80]
lea rdx, [0x14003c730]
mov rcx, rbx
call fcn.1400022d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002d6c
mov r8, qword [rbx + 0x80]
lea rdx, [0x14003c7a0]
mov rcx, rbx
call fcn.1400022d0
mov r8, qword [rbx + 0x80]
lea rdx, [0x14003c800]
mov rcx, rbx
call fcn.1400022d0
cmp byte [rbx + 0x50], 0
jne 0x140002e1e
mov r8, qword [rbx + 0x80]
lea rdx, [0x14003c828]
mov rcx, rbx
call fcn.1400022d0
cmp byte [rbx + 0xa0], 0
mov rcx, rbx
jne 0x140002dcd
lea rdx, [0x14003c850]
call fcn.1400022d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140002e1e
lea rdx, [0x14003c870]
call fcn.1400022d0
mov rdi, qword [rbx + 0x70]
sub rdi, qword [rbx + 0x68]
sar rdi, 3
test edi, edi
je 0x140002e1e
mov qword [rsp + 0x30], rsi
mov esi, edi
shl rsi, 3
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x68]
lea rsi, [rsi - 8]
xor edx, edx
mov rcx, qword [rsi + rcx]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add edi, 0xffffffff
jne 0x140002e00
mov rsi, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14000c780
Function at 0x140003f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x30
mov rbx, rcx
mov r8d, 6
lea rdx, [0x14003c970]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400040b8
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400040b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400040b8
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1400040b8
mov r14d, eax
mov ecx, eax
call fcn.14000ccb0
mov rdi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.14000e800
mov esi, dword [rdi]
lea rcx, [rsi + 1]
call fcn.14000ccb0
mov r14, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.14000eec0
lea rdx, [rdi + 4]
mov r8d, esi
mov rcx, r14
call fcn.14000e800
mov rdx, r14
mov rcx, rbx
call fcn.1400040e0
test al, al
je 0x1400040b8
movzx eax, byte [rsi + rdi + 4]
mov byte [rbx + 8], al
test al, al
je 0x1400040b2
lea rcx, [rax + 1]
call fcn.14000ccb0
mov qword [rbx], rax
movzx r8d, byte [rbx + 8]
inc r8
xor edx, edx
mov rcx, rax
call fcn.14000eec0
movzx r8d, byte [rbx + 8]
lea rdx, [rdi + 5]
add rdx, rsi
mov rcx, qword [rbx]
call fcn.14000e800
movzx eax, byte [rbx + 8]
add rax, rsi
mov ecx, dword [rax + rdi + 5]
mov dword [rbx + 0x18], ecx
call fcn.14000ccb0
mov qword [rbx + 0x10], rax
mov r8d, dword [rbx + 0x18]
xor edx, edx
mov rcx, rax
call fcn.14000eec0
mov r8d, dword [rbx + 0x18]
movzx edx, byte [rbx + 8]
add rdx, 9
add rdx, rsi
add rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.14000e800
nop
mov al, 1
jmp 0x1400040b8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x14000d3dc
Capabilities:
Parse pe header

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

Function at 0x14001b64c
Capabilities:
Parse pe header

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

Function at 0x140022b30
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140022b50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001a620
or eax, 0xffffffff
jmp 0x140022b52
xor eax, eax
add rsp, 0x28
ret
Function at 0x140023918
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002392e
mov al, 1
jmp 0x14002398e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002393f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002398c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140020d5c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002398c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002398c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002398c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002398e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002688c
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 0x1400268bc
xor eax, eax
jmp 0x14002697f
mov rbp, rbx
cmp word [rax], si
je 0x1400268e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400268c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400268c4
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.140022064
movsxd r14, eax
test eax, eax
jne 0x14002691f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400268b5
mov rcx, r14
call fcn.14001fd40
mov rdi, rax
test rax, rax
jne 0x140026938
xor ecx, ecx
call fcn.14001f1d8
jmp 0x140026914
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.140022064
test eax, eax
jne 0x140026969
mov rcx, rdi
call fcn.14001f1d8
jmp 0x140026973
xor ecx, ecx
call fcn.14001f1d8
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 0x14002948c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001ed28
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002952d
cmp ebx, dword [rsp + 0x30]
je 0x140029526
test esi, esi
je 0x140029526
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140029501
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002950e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400294eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140029512
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002952f
mov eax, 1
jmp 0x14002952f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret