joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180112780
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov rbp, rdx
mov qword [r11 - 0x58], rdx
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1801127c7
mov rdx, qword [r8]
mov rcx, qword [r8 + 0x10]
test rcx, rcx
je 0x1801127e3
mov rax, rdx
cmp word [rax], 0x25
je 0x18011281b
add rax, 2
sub rcx, 1
jne 0x1801127d3
mov rdx, rdi
mov rcx, rbp
call fcn.180027f60
nop
mov dword [rsp + 0x20], 1
mov rax, rbp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18011e350
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test rax, rax
je 0x1801127e3
sub rax, rdx
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x1801127e3
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.180027f60
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x180112847
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
test eax, eax
jne 0x1801128c7
mov rdx, rdi
mov rcx, rbp
call fcn.180027f60
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1801128ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801128a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180112967
call fcn.18011e794
movdqa xmm0, xmmword [0x1801b2840]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
jmp 0x1801127f7
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.18011e7e8
mov rsi, rax
cmp qword [rdi + 0x18], 8
jb 0x1801128f2
mov rdi, qword [rdi]
lea r8d, [r14 + 1]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x18011292c
cmp eax, r14d
ja 0x18011292c
mov eax, eax
mov word [rsi + rax*2], r15w
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x180112912
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180003950
mov rcx, rsi
call fcn.18011e794
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x1801b2840]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
mov dword [rsp + 0x20], 1
jmp 0x1801128ae
call fcn.180146964
int3
Function at 0x180121ca4
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180121cb7
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.18012bba8
lea rdx, [0x180209df0]
lea rcx, [rsp + 0x20]
call fcn.18013cd08
int3

Function at 0x18012c540
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x180212a30]
xor edx, edx
jmp fcn.180121ca4

Function at 0x18012ced8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x180212a30]
jmp fcn.180121ca4

Function at 0x180138b50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180138c0c]
mov r9, qword [r9 + 8]
jmp fcn.180129d04

Function at 0x180138be4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180138c1c]
mov r9, qword [r9 + 8]
jmp fcn.180129d04
Function at 0x18015cb4c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18015c9ec
call fcn.180146a94
mov dword [rax], 0x16
call fcn.180146944
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18015c9d4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18015c9d4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18015ca1e
lock or dword [rax + 0x14], 0x10
jmp 0x18015c9d4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18015ca3b
mov rcx, qword [rbp + 0x10]
call fcn.18015d038
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180158078
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18015d5cc
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18015ca92
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x18015c9d4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18015cafe
mov rcx, qword [rbp + 0x10]
call fcn.180158078
cmp eax, 0xffffffff
je 0x18015cae5
mov rcx, qword [rbp + 0x10]
call fcn.180158078
cmp eax, 0xfffffffe
je 0x18015cae5
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180158078
movsxd rdi, eax
lea rsi, [0x180213140]
mov rcx, rbx
sar rdi, 6
call fcn.180158078
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18015caec
lea rax, [0x18020d4c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18015cafe
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18015cb34
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18015cb30
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18015cb30
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18015c9d7
jmp 0x18015c9a4
Function at 0x14000138e
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004a998
xor r8d, r8d
xor edx, edx
jmp 0x14004a67c

Function at 0x140001398
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1400073ec
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x878]
sub rsp, 0x970
mov rax, qword [0x140094008]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov edi, ecx
xor edx, edx
lea rcx, [rbp + 0x460]
mov r8d, 0x400
call fcn.1400030e9
movups xmm0, xmmword [str.C:Program_Files_]
movzx eax, word [0x14007ef40]
lea rcx, [rbp + 0x72]
xor edx, edx
mov word [rbp + 0x70], ax
mov r8d, 0x3ee
movaps xmmword [rbp + 0x60], xmm0
call fcn.1400030e9
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140007536
movzx edx, di
mov r8d, 0xa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
xor edx, edx
and dword [rsp + 0x28], 0
mov r8d, eax
lea rax, [rsp + 0x40]
mov ecx, 0x1300
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14000752d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000752d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14000752d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp + 0x460]
call fcn.140002586
lea r8, [rbp + 0x460]
mov edx, 0x400
lea rcx, [rbp + 0x60]
call fcn.140001109
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rbp + 0x60]
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.140002581
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140073000
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140094008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140097138]
xor r11d, r11d
lea rdi, [0x14007f924]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x140073070
mov rax, 0xfffffffffffffffe
jmp 0x1400731bd
cmp word [r10 + 6], r11w
jne 0x1400730df
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x14007309a
test r14, r14
je 0x14007308b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400731bd
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400730a8
mov r8b, 2
jmp 0x1400730c6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400730b6
mov r8b, 3
jmp 0x1400730c6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400731b2
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x140073108
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400731b2
cmp bl, bpl
jb 0x1400731b2
cmp bl, r8b
jae 0x1400731b2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140073135
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400731b2
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x140073117
cmp r9, rbp
jae 0x140073161
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140073064
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400731b2
cmp edx, 0x110000
jae 0x1400731b2
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400731b2
test r14, r14
je 0x1400731a0
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140003922
jmp 0x1400731bd
mov rdx, rsi
mov rcx, r10
call fcn.140003f53
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140002581
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x1400084ac
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140008539
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140008539
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008539
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140008520
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000851a
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140008522
add rdx, 0x28
jmp 0x1400084ff
xor edx, edx
test rdx, rdx
jne 0x14000852b
xor al, al
jmp 0x14000853f
cmp dword [rdx + 0x24], 0
jge 0x140008535
xor al, al
jmp 0x14000853f
mov al, 1
jmp 0x14000853f
xor al, al
jmp 0x14000853f
add rsp, 0x18
ret
Function at 0x1400026b2
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14001688c
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400808e8]
mov ecx, 2
lea r8, [0x1400808e0]
lea rdx, str.FlsGetValue
call fcn.14001635c
mov ecx, ebx
test rax, rax
je 0x1400168c6
add rsp, 0x20
pop rbx
jmp qword [0x14009f020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400027f2
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005e30c
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 0x14005e33c
xor eax, eax
jmp 0x14005e3ff
mov rbp, rbx
cmp word [rax], si
je 0x14005e361
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005e348
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005e344
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.140003134
movsxd r14, eax
test eax, eax
jne 0x14005e39f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005e335
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x14005e3b8
xor ecx, ecx
call fcn.140001172
jmp 0x14005e394
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.140003134
test eax, eax
jne 0x14005e3e9
mov rcx, rdi
call fcn.140001172
jmp 0x14005e3f3
xor ecx, ecx
call fcn.140001172
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 0x140002801
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400167dc
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400808a8]
xor ecx, ecx
lea r8, [0x1400808a0]
lea rdx, str.FlsAlloc
call fcn.14001635c
test rax, rax
je 0x140016815
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x14009f020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140002874
Capabilities:
Get geographical location

Disassembly:
jmp 0x140053428
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140081e68]
mov rbp, rcx
lea r8, [0x140081e60]
lea rdx, str.GetLocaleInfoEx
mov ecx, 7
call fcn.140052944
test rax, rax
je 0x140053488
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x14009f030]
jmp 0x1400534a2
xor edx, edx
mov rcx, rbp
call fcn.1400021c6
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140002888
Capabilities:
Terminate process

Disassembly:
jmp 0x140007ca0
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400029be
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004a930
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004a67c

Function at 0x140002e46
Capabilities:
Parse pe header

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

Function at 0x140003297
Capabilities:
Terminate process

Disassembly:
jmp 0x140051c60
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140051c7a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.14000392c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400032f6
Capabilities:
Extract resource via kernel32 functions
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
jmp 0x140007140
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x140094008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbp, rdx
mov esi, ecx
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov r8d, 0x104
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140007334
movzx edx, si
lea r8d, [rbx + 0xa]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x48]
mov ecx, 0x1300
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x14000732b
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000732b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14000732b
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x40], eax
mov rcx, rbp
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14000732b
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r11d, dword [rcx + r8 + 0x88]
add r11, r8
cmp r11, r8
je 0x1400072e8
mov r10d, dword [r11 + 0x18]
test r10d, r10d
je 0x1400072e8
mov r12d, dword [r11 + 0x20]
dec r10d
mov ebp, 0x780e44e5
lea rcx, [r12 + r10*4]
mov r9d, dword [rcx + r8]
add r9, r8
mov sil, byte [r9]
inc r9
test sil, sil
je 0x1400072e3
movsx ecx, sil
sub sil, 0x41
mov edx, ecx
or edx, 0x20
cmp sil, 0x19
mov sil, byte [r9]
cmova edx, ecx
inc r9
xor edx, ebp
imul ebp, edx, 0x1000193
test sil, sil
jne 0x1400072b4
cmp ebp, 0x9e4ffe6a
je 0x1400072ed
test r10d, r10d
jne 0x140007296
mov rax, qword [rax]
jmp 0x140007271
mov ecx, dword [r11 + 0x24]
lea r9, [rsp + 0x44]
add rcx, r8
mov qword [rsp + 0x20], rbx
movzx edx, word [rcx + r10*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
mov rdx, r14
add rax, r8
mov rcx, r13
mov r8d, dword [rsp + 0x40]
call rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140002581
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003a12
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400168e4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140080908]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140080900]
call fcn.14001635c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140016924
call qword [0x14009f020]
jmp 0x14001692a
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003aa3
Capabilities:
Set environment variable

Disassembly:
jmp 0x14006e41c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140002108
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006e4a6
cmp byte [rbp - 0x21], r15b
je 0x14006e4a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14006e4dc
call fcn.140003e40
test eax, eax
jne 0x14006e4c8
cmp byte [rbp - 0x21], r15b
je 0x14006e4c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14006e4dc
cmp byte [rbp - 0x21], r15b
je 0x14006e4d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140004007
test eax, eax
jne 0x14006e57c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140002108
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006e51b
cmp byte [rbp - 0x21], r15b
je 0x14006e550
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006e550
call fcn.140003e40
test eax, eax
jne 0x14006e53c
cmp byte [rbp - 0x21], r15b
je 0x14006e535
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006e550
cmp byte [rbp - 0x21], r15b
je 0x14006e54d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140004007
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14006e57c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006e57f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006e58d
mov rcx, rdi
call fcn.140001172
cmp byte [rbp + 0x3f], r15b
je 0x14006e59c
mov rcx, qword [rbp + 0x27]
call fcn.140001172
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140003b93
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004a920
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004a6eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004a6eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004a6eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004a6eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004a6eb
cmp dword [rcx + 0x84], 0xe
jbe 0x14004a6eb
cmp dword [rcx + 0xf8], 0
je 0x14004a6eb
mov ecx, ebx
call fcn.14004a864
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004a3d4
nop
cmp dword [rbp + 0x20], 0
je 0x14004a739
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004a774
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004a67c