joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140ed6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ed61df
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 0x140ed6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ed606f
add dl, dl
jne 0x140ed6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ed60f6
xor eax, eax
add dl, dl
jne 0x140ed60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ed61ad
add dl, dl
jne 0x140ed60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ed60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ed607e
mov eax, 1
add dl, dl
jne 0x140ed6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ed60fb
sub eax, ebx
mov ebx, 1
jne 0x140ed614c
mov ecx, 1
add dl, dl
jne 0x140ed612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ed613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ed6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ed607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ed6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ed6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ed615d
cmp eax, 0x7d00
jae 0x140ed619b
cmp eax, 0x500
jb 0x140ed6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ed607e
cmp eax, 0x7f
ja 0x140ed619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ed607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ed61d2
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 0x140ed607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001b548
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor ebp, ebp
cmp qword [rcx + 0x50], 0xffffffffffffffff
mov rdi, rcx
mov ebx, ebp
mov esi, 0x80004005
jne 0x14001b75a
mov rcx, qword [rcx + 0x38]
call qword [fcn.140001518]
cmp eax, ebp
ja 0x14001b59e
lea eax, [rbp + 1]
jmp 0x14001b76c
lea rcx, [rsp + 0x92]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x90], bp
call fcn.140022a0e
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x90]
mov r8d, 0x104
call qword [fcn.140001218]
cmp eax, ebp
jne 0x14001b5db
mov ebx, esi
jmp 0x14001b60c
xor r9d, r9d
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x90]
lea edx, [r9 + 1]
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 3
mov r8d, edx
call qword [0x140001088]
mov qword [rdi + 0x48], rax
mov rcx, qword [rdi + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x14001b74e
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbp
lea r8d, [r9 + 2]
mov dword [rsp + 0x20], ebp
call qword [0x1400011d8]
mov qword [rdi + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x14001b745
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], rbp
call qword [0x1400011c8]
mov qword [rdi + 0x58], rax
cmp rax, rbp
je 0x14001b74e
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x34]
call fcn.140022a0e
mov rcx, qword [rdi + 0x48]
lea rdx, [rsp + 0x40]
call qword [0x140001090]
mov edx, dword [rsp + 0x64]
mov dword [rdi + 0x60], edx
cmp dword [rsp + 0x54], ebp
jne 0x14001b69c
lea rax, [rsp + 0x44]
cmp dword [rsp + 0x58], ebp
je 0x14001b6a1
lea rax, [rsp + 0x54]
mov rax, qword [rax]
cmp edx, 0x10
mov qword [rdi + 0x40], rax
mov eax, 0x80070018
cmovbe ebx, eax
cmp ebx, ebp
jl 0x14001b752
mov rax, qword [rdi + 0x58]
lea rcx, [rax + 0x10]
cmp rax, rbp
jne 0x14001b6cb
mov rcx, rbp
xor r8d, r8d
add edx, 0xfffffff0
mov qword [rsp + 0x78], r8
mov r9, r8
mov qword [rsp + 0x80], r8
cmp rcx, rbp
je 0x14001b73e
cmp edx, ebp
jbe 0x14001b73e
shr edx, 3
cmp edx, ebp
jbe 0x14001b711
mov r10d, edx
xor r8, qword [rcx]
add r9, qword [rcx]
add rcx, 8
sub r10, 1
jne 0x14001b6f4
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x78]
mov ebx, ebp
mov rdx, qword [rcx]
cmp rdx, qword [rax]
jne 0x14001b72e
mov rdx, qword [rcx + 8]
cmp rdx, qword [rax + 8]
jne 0x14001b72e
mov eax, ebp
jmp 0x14001b733
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x14001b75a
mov ebx, 0x80070017
jmp 0x14001b74e
mov ebx, 0x80070057
jmp 0x14001b752
cmp ebx, ebp
jl 0x14001b752
mov ebx, 0x80070002
cmp ebx, ebp
jge 0x14001b75a
mov rcx, rdi
call fcn.14001b478
cmp qword [rdi + 0x50], 0xffffffffffffffff
je 0x14001b765
xor eax, eax
jmp 0x14001b76c
cmp ebx, ebp
cmovl esi, ebx
mov eax, esi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140022620
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140022cec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x140022d39
cmp rcx, 0xffffffffffffffff
je 0x140022d39
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140022d31
cmp dword [rcx + 0x3c], edx
jl 0x140022d31
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140022d31
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140022d39
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001389
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004b434
xor r8d, r8d
xor edx, edx
jmp 0x14004b124

Function at 0x140002126
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140073ce0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14009c5f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x14009fc68]
xor r11d, r11d
lea rdi, [0x1400808c4]
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 0x140073d50
mov rax, 0xfffffffffffffffe
jmp 0x140073e9d
cmp word [r10 + 6], r11w
jne 0x140073dbf
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x140073d7a
test r14, r14
je 0x140073d6b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x140073e9d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140073d88
mov r8b, 2
jmp 0x140073da6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140073d96
mov r8b, 3
jmp 0x140073da6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140073e92
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 0x140073de8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140073e92
cmp bl, bpl
jb 0x140073e92
cmp bl, r8b
jae 0x140073e92
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140073e15
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140073e92
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 0x140073df7
cmp r9, rbp
jae 0x140073e41
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140073d44
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140073e92
cmp edx, 0x110000
jae 0x140073e92
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 0x140073e92
test r14, r14
je 0x140073e80
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.14000394f
jmp 0x140073e9d
mov rdx, rsi
mov rcx, r10
call fcn.140003f8f
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000258b
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000216c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140008748
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400087d5
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400087d5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400087d5
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 0x1400087bc
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400087b6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400087be
add rdx, 0x28
jmp 0x14000879b
xor edx, edx
test rdx, rdx
jne 0x1400087c7
xor al, al
jmp 0x1400087db
cmp dword [rdx + 0x24], 0
jge 0x1400087d1
xor al, al
jmp 0x1400087db
mov al, 1
jmp 0x1400087db
xor al, al
jmp 0x1400087db
add rsp, 0x18
ret

Function at 0x1400023fb
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14001ca50
mov rax, rcx
neg rcx
test rax, 7
je 0x14001ca6d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14001cac8
test al, 7
jne 0x14001ca60
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14001ca81
mov rdx, qword [rax - 8]
test dl, dl
je 0x14001caf2
test dh, dh
je 0x14001caec
shr rdx, 0x10
test dl, dl
je 0x14001cae6
test dh, dh
je 0x14001cae0
shr rdx, 0x10
test dl, dl
je 0x14001cada
test dh, dh
je 0x14001cad4
shr edx, 0x10
test dl, dl
je 0x14001cace
test dh, dh
jne 0x14001ca81
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140002531
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140007350
sub rsp, 0x38
movzx eax, word [0x14009e100]
mov dword [rsp + 0x24], eax
movzx eax, word [0x14009e100]
cmp eax, 0x270
jl 0x14000737d
call fcn.140007270
movzx eax, word [0x14009e100]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x14009d740]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
inc eax
mov word [0x14009e100], ax
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x14009d740]
mov eax, dword [rcx + rax*4]
shr eax, 0xb
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400026c1
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140016390
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140081888]
mov ecx, 2
lea r8, [0x140081880]
lea rdx, str.FlsGetValue
call fcn.140015e60
mov ecx, ebx
test rax, rax
je 0x1400163ca
add rsp, 0x20
pop rbx
jmp qword [0x1400a9020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x140002806
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005efa8
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 0x14005efd8
xor eax, eax
jmp 0x14005f09b
mov rbp, rbx
cmp word [rax], si
je 0x14005effd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005efe4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005efe0
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.140003166
movsxd r14, eax
test eax, eax
jne 0x14005f03b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005efd1
mov rcx, r14
call fcn.14000103c
mov rdi, rax
test rax, rax
jne 0x14005f054
xor ecx, ecx
call fcn.14000116d
jmp 0x14005f030
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.140003166
test eax, eax
jne 0x14005f085
mov rcx, rdi
call fcn.14000116d
jmp 0x14005f08f
xor ecx, ecx
call fcn.14000116d
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 0x140002815
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400162e0
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140081848]
xor ecx, ecx
lea r8, [0x140081840]
lea rdx, str.FlsAlloc
call fcn.140015e60
test rax, rax
je 0x140016319
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400a9020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14000288d
Capabilities:
Get geographical location

Disassembly:
jmp 0x140053fbc
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, [0x140082e98]
mov rbp, rcx
lea r8, [0x140082e90]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.1400534dc
test rax, rax
je 0x14005401c
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400a9030]
jmp 0x140054036
xor edx, edx
mov rcx, rbp
call fcn.1400021bc
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 0x14000289c
Capabilities:
Terminate process

Disassembly:
jmp 0x1400776ac
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 0x1400029d7
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004b3c8
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004b124

Function at 0x140002b67
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400774a0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400774c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400774c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140002e69
Capabilities:
Parse pe header

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

Function at 0x140002eeb
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1400071e0
mov dword [rsp + 8], ecx
sub rsp, 0x18
mov eax, 4
imul rax, rax, 0
lea rcx, [0x14009d740]
mov edx, dword [rsp + 0x20]
mov dword [rcx + rax], edx
mov dword [rsp], 1
jmp 0x140007210
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x270
jae 0x140007259
mov eax, dword [rsp]
dec eax
mov eax, eax
lea rcx, [0x14009d740]
mov edx, dword [rsp]
dec edx
mov edx, edx
lea r8, [0x14009d740]
mov edx, dword [r8 + rdx*4]
shr edx, 0x1e
mov eax, dword [rcx + rax*4]
xor eax, edx
imul eax, eax, 0x6c078965
add eax, dword [rsp]
mov ecx, dword [rsp]
lea rdx, [0x14009d740]
mov dword [rdx + rcx*4], eax
jmp 0x140007208
mov eax, 0x270
mov word [0x14009e100], ax
add rsp, 0x18
ret

Function at 0x1400030df
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1400773e0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140077421
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140077415
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140077423
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140077403
xor eax, eax
ret

Function at 0x1400032c9
Capabilities:
Terminate process

Disassembly:
jmp 0x1400527c8
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400527e2
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003959
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 0x140003a3f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400163e8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400818a8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400818a0]
call fcn.140015e60
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140016428
call qword [0x1400a9020]
jmp 0x14001642e
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003ad0
Capabilities:
Set environment variable

Disassembly:
jmp 0x14006f0b4
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.1400020fe
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006f13e
cmp byte [rbp - 0x21], r15b
je 0x14006f139
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14006f174
call fcn.140003e7c
test eax, eax
jne 0x14006f160
cmp byte [rbp - 0x21], r15b
je 0x14006f158
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14006f174
cmp byte [rbp - 0x21], r15b
je 0x14006f171
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.140004052
test eax, eax
jne 0x14006f214
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400020fe
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006f1b3
cmp byte [rbp - 0x21], r15b
je 0x14006f1e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006f1e8
call fcn.140003e7c
test eax, eax
jne 0x14006f1d4
cmp byte [rbp - 0x21], r15b
je 0x14006f1cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006f1e8
cmp byte [rbp - 0x21], r15b
je 0x14006f1e5
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.140004052
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14006f214
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006f217
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006f225
mov rcx, rdi
call fcn.14000116d
cmp byte [rbp + 0x3f], r15b
je 0x14006f234
mov rcx, qword [rbp + 0x27]
call fcn.14000116d
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 0x140003bc0
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004b3b8
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 0x14004b193
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b193
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004b193
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004b193
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004b193
cmp dword [rcx + 0x84], 0xe
jbe 0x14004b193
cmp dword [rcx + 0xf8], 0
je 0x14004b193
mov ecx, ebx
call fcn.14004b2fc
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.14004ae7c
nop
cmp dword [rbp + 0x20], 0
je 0x14004b1e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004b21c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004b124

Function at 0x1400071e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1400071e0
mov dword [rsp + 8], ecx
sub rsp, 0x18
mov eax, 4
imul rax, rax, 0
lea rcx, [0x14009d740]
mov edx, dword [rsp + 0x20]
mov dword [rcx + rax], edx
mov dword [rsp], 1
jmp 0x140007210
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x270
jae 0x140007259
mov eax, dword [rsp]
dec eax
mov eax, eax
lea rcx, [0x14009d740]
mov edx, dword [rsp]
dec edx
mov edx, edx
lea r8, [0x14009d740]
mov edx, dword [r8 + rdx*4]
shr edx, 0x1e
mov eax, dword [rcx + rax*4]
xor eax, edx
imul eax, eax, 0x6c078965
add eax, dword [rsp]
mov ecx, dword [rsp]
lea rdx, [0x14009d740]
mov dword [rdx + rcx*4], eax
jmp 0x140007208
mov eax, 0x270
mov word [0x14009e100], ax
add rsp, 0x18
ret

Function at 0x140007270
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x18
mov dword [rsp], 0
jmp 0x140007285
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x270
jae 0x14000732f
mov eax, dword [rsp]
lea rcx, [0x14009d740]
mov eax, dword [rcx + rax*4]
and eax, 0x80000000
mov dword [rsp + 0xc], eax
mov ecx, dword [rsp]
inc ecx
xor edx, edx
mov eax, ecx
mov ecx, 0x270
div ecx
mov eax, edx
mov eax, eax
lea rcx, [0x14009d740]
mov eax, dword [rcx + rax*4]
btr eax, 0x1f
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
shr eax, 1
mov dword [rsp + 4], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x1400072f8
mov eax, dword [rsp + 4]
xor eax, 0x9908b0df
mov dword [rsp + 4], eax
mov eax, dword [rsp]
add eax, 0x18d
xor edx, edx
mov ecx, 0x270
div ecx
mov eax, edx
mov eax, eax
lea rcx, [0x14009d740]
mov edx, dword [rsp + 4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp]
lea rdx, [0x14009d740]
mov dword [rdx + rcx*4], eax
jmp 0x14000727d
xor eax, eax
mov word [0x14009e100], ax
add rsp, 0x18
ret