joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002f13
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140496bc4
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14056a550]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140710898]
xor r11d, r11d
lea rdi, [0x140541ae4]
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 0x140496c34
mov rax, 0xfffffffffffffffe
jmp 0x140496d81
cmp word [r10 + 6], r11w
jne 0x140496ca3
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x140496c5e
test r14, r14
je 0x140496c4f
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x140496d81
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140496c6c
mov r8b, 2
jmp 0x140496c8a
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140496c7a
mov r8b, 3
jmp 0x140496c8a
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140496d76
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 0x140496ccc
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140496d76
cmp bl, bpl
jb 0x140496d76
cmp bl, r8b
jae 0x140496d76
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140496cf9
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140496d76
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 0x140496cdb
cmp r9, rbp
jae 0x140496d25
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140496c28
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140496d76
cmp edx, 0x110000
jae 0x140496d76
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 0x140496d76
test r14, r14
je 0x140496d64
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call case.0x1400ebcb9.148
jmp 0x140496d81
mov rdx, rsi
mov rcx, r10
call fcn.14000670d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140003706
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002f77
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1403fe0c4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1403fe151
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1403fe151
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1403fe151
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 0x1403fe138
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1403fe132
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1403fe13a
add rdx, 0x28
jmp 0x1403fe117
xor edx, edx
test rdx, rdx
jne 0x1403fe143
xor al, al
jmp 0x1403fe157
cmp dword [rdx + 0x24], 0
jge 0x1403fe14d
xor al, al
jmp 0x1403fe157
mov al, 1
jmp 0x1403fe157
xor al, al
jmp 0x1403fe157
add rsp, 0x18
ret
Function at 0x1400030a3
Capabilities:
Set registry value

Disassembly:
jmp 0x140164320
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x430
lea rbp, [rsp + 0x50]
mov r12, rcx
mov r15, r8
mov r14, rdx
mov edx, 2
lea rcx, [rbp + 0x390]
mov r8, r12
lea rax, [0x1404df3e8]
mov qword [rcx], rax
lea r10, [rbp + 0x3c0]
mov qword [rcx + 8], 0x11
lea r13, [0x140000000]
mov byte [rcx + 0x30], 0
mov qword [rcx + 0x10], r10
mov qword [rcx + 0x18], 1
call fcn.1400048cc
mov edx, 0x12c
lea rcx, [rbp + 0x130]
mov r8, r14
mov r9, qword [rbp + 0x430]
call fcn.1400042eb
mov rax, qword [rbp + 0x250]
mov ecx, dword [rbp + 0x258]
mov qword [0x14064bd00], rax
mov eax, 0x120
mov dword [0x14064bd08], ecx
movups xmm0, xmmword [rbp + rax + 0x120]
movups xmm1, xmmword [rbp + rax + 0x110]
movups xmm2, xmmword [rbp + rax + 0x100]
movups xmm3, xmmword [rbp + rax + 0xf0]
movups xmm4, xmmword [rbp + rax + 0xe0]
movups xmm5, xmmword [rbp + rax + 0xd0]
movups xmmword [r13 + rax + 0x64bbd0], xmm0
movups xmmword [r13 + rax + 0x64bbc0], xmm1
movups xmmword [r13 + rax + 0x64bbb0], xmm2
movups xmmword [r13 + rax + 0x64bba0], xmm3
movups xmmword [r13 + rax + 0x64bb90], xmm4
movups xmmword [r13 + rax + 0x64bb80], xmm5
sub rax, 0x60
jne 0x1401643bc
mov edx, 0x12c
lea rcx, [rbp + 0x260]
mov r8, r15
mov r9, qword [rbp + 0x438]
call fcn.1400042eb
mov rax, qword [rbp + 0x380]
mov ecx, dword [rbp + 0x388]
mov qword [0x14064be40], rax
mov eax, 0x120
mov dword [0x14064be48], ecx
movups xmm0, xmmword [rbp + rax + 0x250]
movups xmm1, xmmword [rbp + rax + 0x240]
movups xmm2, xmmword [rbp + rax + 0x230]
movups xmm3, xmmword [rbp + rax + 0x220]
movups xmm4, xmmword [rbp + rax + 0x210]
movups xmm5, xmmword [rbp + rax + 0x200]
movups xmmword [r13 + rax + 0x64bd10], xmm0
movups xmmword [r13 + rax + 0x64bd00], xmm1
movups xmmword [r13 + rax + 0x64bcf0], xmm2
movups xmmword [r13 + rax + 0x64bce0], xmm3
movups xmmword [r13 + rax + 0x64bcd0], xmm4
movups xmmword [r13 + rax + 0x64bcc0], xmm5
sub rax, 0x60
jne 0x140164462
mov r11, rsp
lea rcx, [0x14064be60]
mov edx, 0x12c
lea r8, [rbp + 0x3d0]
mov r9d, 1
xor r10d, r10d
xor eax, eax
mov qword [r8 - 0x20], r10
mov dword [rbp + 0x12c], eax
mov byte [r8], al
mov qword [r11 + 0x20], r10
call fcn.1400025f4
mov r10, rsp
lea r9, [rbp + 0x12c]
mov rcx, 0xffffffff80000001
mov rdx, r12
xor r8d, r8d
lea rax, [rbp + 0x3b0]
mov qword [r10 + 0x40], r9
lea r9, [0x14064be60]
mov dword [r10 + 0x20], 0
mov dword [r10 + 0x28], 0x4001f
mov qword [r10 + 0x30], 0
mov qword [r10 + 0x38], rax
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x1401645a4
lea r12, [0x14064bbe0]
mov edx, 0x12c
mov r8, r12
lea rcx, [rbp]
mov r9d, edx
call fcn.140002c52
mov rdx, rsp
xor r8d, r8d
mov r9d, 1
mov rcx, qword [rbp + 0x3b0]
mov qword [rdx + 0x20], r12
mov dword [rdx + 0x28], eax
lea rdx, [0x14064bd20]
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x1401645a4
mov rcx, qword [rbp + 0x3b0]
call sub.ADVAPI32.dll_RegCloseKey
lea rsp, [rbp + 0x3e0]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140003283
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140467b08
jmp 0x1404876ac
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140002167
mov rdx, rbx
mov rcx, rdi
lea r8, [rax + 0x30]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140006609
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14056a550]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov rsi, r8
mov eax, r9d
mov r11, rdx
cmp rax, 0x20
mov r10, rcx
jae 0x1404877d1
mov byte [rsp + rax + 0x20], r9b
inc rax
cmp rax, 0x20
jl 0x1404876d6
movzx r8d, byte [r11]
inc r11
mov edx, r8d
mov eax, r8d
shr rdx, 3
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
mov byte [rsp + rdx + 0x20], cl
test r8b, r8b
jne 0x1404876ea
test r10, r10
jne 0x140487717
mov r10, qword [rsi]
movzx r8d, byte [r10]
mov edx, 1
mov eax, r8d
mov ecx, r8d
and ecx, 7
shr rax, 3
shl edx, cl
mov rbx, r10
test byte [rsp + rax + 0x20], dl
je 0x140487774
mov rdi, r10
mov r11b, r8b
mov rbx, rdi
mov r8b, r11b
test r11b, r11b
je 0x140487774
lea r10, [rdi + 1]
mov edx, 1
movzx r11d, byte [r10]
mov rdi, r10
mov eax, r11d
mov ecx, r11d
and ecx, 7
shr rax, 3
shl edx, cl
mov rbx, r10
mov r8b, r11b
test byte [rsp + rax + 0x20], dl
jne 0x14048773e
mov r11, rbx
test r8b, r8b
je 0x1404877af
mov al, byte [rbx]
movzx r8d, al
mov edx, 1
mov ecx, r8d
inc r11
and ecx, 7
shr r8, 3
shl edx, cl
test byte [rsp + r8 + 0x20], dl
jne 0x1404877a9
mov al, byte [r11]
mov r10, r11
test al, al
jne 0x14048777e
jmp 0x1404877af
mov byte [r10], r9b
mov r10, r11
cmp r11, rbx
mov qword [rsi], r10
cmovne r9, rbx
mov rax, r9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003706
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
call fcn.140004a6b
int3

Function at 0x140003463
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1404403f0
mov rax, rcx
neg rcx
test rax, 7
je 0x14044040d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140440468
test al, 7
jne 0x140440400
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 0x140440421
mov rdx, qword [rax - 8]
test dl, dl
je 0x140440492
test dh, dh
je 0x14044048c
shr rdx, 0x10
test dl, dl
je 0x140440486
test dh, dh
je 0x140440480
shr rdx, 0x10
test dl, dl
je 0x14044047a
test dh, dh
je 0x140440474
shr edx, 0x10
test dl, dl
je 0x14044046e
test dh, dh
jne 0x140440421
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 0x1400034a4
Capabilities:
Query environment variable

Disassembly:
jmp 0x14048b15c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14048b1e3
mov rsi, rbx
cmp word [rax], bp
je 0x14048b1a2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14048b18c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14048b188
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000105f
mov rdi, rax
test rax, rax
je 0x14048b1d0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003724
mov rbp, rdi
xor ecx, ecx
call fcn.140001276
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140003594
Capabilities:
Get file size

Disassembly:
jmp 0x14023aa00
push rbp
push r13
push r14
sub rsp, 0x170
lea rbp, [rsp + 0x40]
mov r9, rdx
mov r8, rcx
lea rcx, [rbp]
mov edx, 0x12c
call fcn.1400042eb
mov rax, rsp
lea rcx, [0x140683000]
mov edx, 0x105
lea r8, [rbp]
mov r9d, 0x12c
mov qword [rax + 0x20], 0
call fcn.1400025f4
mov rax, rsp
lea rcx, [0x140683000]
mov edx, 0x80000000
mov r8d, 3
xor r9d, r9d
mov dword [rax + 0x20], 3
mov dword [rax + 0x28], 0x80
mov qword [rax + 0x30], 0
call sub.KERNEL32.dll_CreateFileA
mov r13, rax
cmp r13, 0xffffffffffffffff
jne 0x14023aa8c
xor r14d, r14d
jmp 0x14023aab2
mov rcx, r13
lea rdx, [rbp + 0x12c]
call sub.KERNEL32.dll_GetFileSize
mov r14d, eax
cmp r14d, 0xffffffff
je 0x14023aac2
mov rcx, r13
call sub.KERNEL32.dll_CloseHandle
mov dword [rbp + 0x12c], eax
mov eax, r14d
lea rsp, [rbp + 0x130]
pop r14
pop r13
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
xor r14d, r14d
test eax, eax
sete r14b
jmp 0x14023aaa4
Function at 0x140003968
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14040efb4
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140542aa8]
mov ecx, 2
lea r8, [0x140542aa0]
lea rdx, str.FlsGetValue
call fcn.14040ea84
mov ecx, ebx
test rax, rax
je 0x14040efee
add rsp, 0x20
pop rbx
jmp qword [0x1408e8020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x140003ab2
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140021ee0
push rbp
push r13
push r14
push r15
sub rsp, 0xb8
lea rbp, [rsp + 0x30]
mov r15, r8
mov r13, rcx
lea rcx, [rbp]
mov edx, 2
lea r8, [0x14056ced0]
mov r9d, 0x28
lea r10, [0x1404a7d68]
mov qword [rcx], r10
lea r11, [rbp + 0x70]
mov qword [rbp + 8], 0x1d
lea r14, [0x140000000]
mov byte [r11], 0
mov qword [rbp + 0x10], r11
mov qword [rbp + 0x18], 1
call fcn.1400048cc
mov r10, rsp
lea rcx, [0x14056cde0]
mov edx, 0xf0
lea r8, [0x1404a7d88]
mov r9d, 1
mov qword [r10 + 0x20], 0
call fcn.1400025f4
mov edx, 0xc
lea rcx, [rbp + 0x40]
mov r8, r15
call fcn.140004390
mov edx, 0xc
lea r15, [rbp + 0x50]
mov rcx, r15
lea r8, [rbp + 0x40]
mov r9d, edx
call fcn.140002c52
mov edx, 2
lea rcx, [rbp + 0x20]
lea r8, [0x14056cef8]
mov r9d, 4
movsxd rax, eax
lea r10, [rbp + 0x80]
mov qword [rcx], r15
mov qword [rbp + 0x28], rax
mov byte [rcx + 0x60], 0
mov qword [rbp + 0x30], r10
mov qword [rbp + 0x38], 1
call fcn.1400048cc
mov r11, rsp
mov rcx, 0xffffffff80000001
lea rdx, [0x14056ced0]
xor r8d, r8d
mov r9d, 0x4001f
lea r10, [rbp + 0x60]
mov qword [r11 + 0x20], r10
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x1400220b3
mov r15, rsp
lea rdx, [0x14056cef8]
xor r8d, r8d
lea r9, [rbp + 0x5c]
mov rcx, qword [rbp + 0x60]
lea r10, [0x14056cde0]
mov dword [rbp + 0x4c], 0xf0
lea r11, [rbp + 0x4c]
mov qword [r15 + 0x20], r10
mov qword [r15 + 0x28], r11
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x140022081
movsxd rcx, dword [rbp + 0x4c]
cmp rcx, 2
jle 0x14002206c
lea rdx, [0x14056cde0]
lea r8, [rcx - 1]
neg r8
add r8, 0xf0
lea rcx, [rdx + rcx - 1]
mov edx, 0
cmovg rdx, r8
lea r8, [0x1404a7d8c]
jmp 0x140022094
lea rcx, [0x14056cde0]
mov edx, 0xf0
lea r8, [0x1404a7d90]
jmp 0x140022094
lea rcx, [0x14056cde0]
mov edx, 0xf0
lea r8, [0x1404a7d94]
mov r10, rsp
mov r9d, 1
mov qword [r10 + 0x20], 0
call fcn.1400025f4
mov rcx, qword [rbp + 0x60]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, 0xf0
movups xmm0, xmmword [r14 + rdx + 0x56cdd0]
movups xmmword [r13 + rdx - 0x10], xmm0
movups xmm1, xmmword [r14 + rdx + 0x56cdc0]
movups xmmword [r13 + rdx - 0x20], xmm1
movups xmm2, xmmword [r14 + rdx + 0x56cdb0]
movups xmmword [r13 + rdx - 0x30], xmm2
movups xmm3, xmmword [r14 + rdx + 0x56cda0]
movups xmmword [r13 + rdx - 0x40], xmm3
movups xmm4, xmmword [r14 + rdx + 0x56cd90]
movups xmmword [r13 + rdx - 0x50], xmm4
sub rdx, 0x50
jne 0x1400220b8
mov rax, r13
lea rsp, [rbp + 0x88]
pop r15
pop r14
pop r13
pop rbp
ret
Function at 0x140003bd4
Capabilities:
Query environment variable

Disassembly:
jmp 0x14048b008
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 0x14048b038
xor eax, eax
jmp 0x14048b0fb
mov rbp, rbx
cmp word [rax], si
je 0x14048b05d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14048b044
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14048b040
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.140004d13
movsxd r14, eax
test eax, eax
jne 0x14048b09b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14048b031
mov rcx, r14
call fcn.14000105f
mov rdi, rax
test rax, rax
jne 0x14048b0b4
xor ecx, ecx
call fcn.140001276
jmp 0x14048b090
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.140004d13
test eax, eax
jne 0x14048b0e5
mov rcx, rdi
call fcn.140001276
jmp 0x14048b0ef
xor ecx, ecx
call fcn.140001276
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 0x140003be8
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14040ef04
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140542a68]
xor ecx, ecx
lea r8, [0x140542a60]
lea rdx, str.FlsAlloc
call fcn.14040ea84
test rax, rax
je 0x14040ef3d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1408e8020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x140003cba
Capabilities:
Get geographical location

Disassembly:
jmp 0x140477710
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, [0x140545e08]
mov rbp, rcx
lea r8, [0x140545e00]
lea rdx, str.GetLocaleInfoEx
mov ecx, 7
call fcn.140476c2c
test rax, rax
je 0x140477770
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1408e8030]
jmp 0x14047778a
xor edx, edx
mov rcx, rbp
call fcn.140002ff4
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 0x140003cce
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140441864
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1404415b0

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

Disassembly:
jmp 0x1401c0f50
push rbp
push r15
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov r15, rcx
call fcn.140004db3
mov ecx, dword [0x1407630c0]
xor eax, eax
lea rdx, [0x140000000]
mov r8d, dword [r15]
and r8d, ecx
mov dword [0x14072db60], r8d
mov r9d, r8d
shr r9d, 0x1e
xor r8d, r9d
imul r8d, r8d, 0x6c078965
lea r11d, [r8 + rax*2 + 1]
and r11d, ecx
mov r10d, r11d
shr r10d, 0x1e
mov dword [rdx + rax*8 + 0x72db64], r11d
xor r11d, r10d
imul r15d, r11d, 0x6c078965
lea r8d, [r15 + rax*2 + 2]
and r8d, ecx
mov dword [rdx + rax*8 + 0x72db68], r8d
inc rax
cmp rax, 0x137
jb 0x1401c0f80
mov edx, dword [0x14072e518]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul r8d, edx, 0x6c078965
add r8d, 0x26f
and ecx, r8d
mov dword [0x14072e51c], ecx
mov dword [0x140710920], 0x270
mov dword [0x140710924], 0x75bcd15
lea rsp, [rbp + 8]
pop r15
pop rbp
ret
Function at 0x1400046dd
Capabilities:
Clear file content

Disassembly:
jmp 0x140499020
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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140001cf3
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140001cf3
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140499170
cmp rax, 0xffffffffffffffff
je 0x140499170
xor edi, edi
test rbp, rbp
jle 0x14049911b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400058da
mov rbx, rax
test rax, rax
jne 0x1404990a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140499111
mov edx, 0x8000
mov ecx, r14d
call fcn.1400049e4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call case.0x1400ebcb9.211
cmp eax, 0xffffffff
je 0x1404990f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1404990b8
mov edx, r15d
mov ecx, r14d
call fcn.1400049e4
jmp 0x140499111
cmp byte [rsi + 0x38], dil
je 0x140499108
cmp dword [rsi + 0x34], 5
jne 0x140499108
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140499111
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140001276
jmp 0x140499184
jns 0x140499184
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140001cf3
cmp rax, 0xffffffffffffffff
jne 0x14049913c
cmp byte [rsi + 0x30], dil
je 0x140499184
mov edi, dword [rsi + 0x2c]
jmp 0x140499184
mov ecx, r14d
call fcn.14000646f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140499184
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140499184
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14049917d
mov eax, dword [rsi + 0x2c]
jmp 0x140499182
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140001cf3
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400047a0
Capabilities:
Parse pe header

Disassembly:
jmp 0x1403fe66c
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1403fe6b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1403fe6b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1403fe6b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1403fe6b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1403fe6b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1403fe6b8
xor al, al
add rsp, 0x28
ret
Function at 0x140004a34
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
jmp 0x140312930
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x30]
lea rdx, [0x1406e2aa0]
mov rbx, rcx
call sub.KERNEL32.dll_FindFirstFileA
mov rcx, rax
cmp rcx, 0xffffffffffffffff
je 0x140312a24
xor edx, edx
lea rax, [0x1406e2acc]
mov qword [rbp + 0x10], rsi
mov rsi, rbx
mov qword [rbp + 8], rdi
mov rbx, rax
mov qword [rbp], r12
mov r12, rdx
mov rdi, rcx
mov r10, rsp
mov rcx, rsi
mov edx, 0x104
lea r8, [0x140517934]
mov r9d, 1
mov dword [r10 + 0x20], 0
call fcn.140006019
mov edx, 2
lea rcx, [rbp + 0x18]
movsxd rax, eax
lea r8, [0x1406e2be0]
dec rax
mov qword [rcx], rsi
cmovle rax, r12
mov r9d, 0x104
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], 0x104
call fcn.1400048cc
lea rcx, [0x1406e2be0]
call sub.KERNEL32.dll_DeleteFileA
mov rcx, rdi
lea rdx, [0x1406e2aa0]
call sub.KERNEL32.dll_FindNextFileA
movsxd rcx, eax
test rcx, rcx
jne 0x1403129fd
xor r8b, r8b
jmp 0x140312a05
call sub.KERNEL32.dll_FindClose
mov r8b, 0xff
test r8b, 1
jne 0x140312978
mov rcx, rdi
mov rsi, qword [rbp + 0x10]
mov rdi, qword [rbp + 8]
mov r12, qword [rbp]
call sub.KERNEL32.dll_FindClose
nop
xor eax, eax
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x140004bc4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140373fe0
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x14056a550]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x1406eff40]
lea rdx, [0x140373f70]
call fcn.1400062d5
mov ecx, dword [0x1406eff3c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14037405b
mov qword [rsi], rbx
xor edi, edi
cmp dword [0x14056a068], 1
jne 0x140374079
mov edx, 1
mov ecx, 2
call fcn.1400066bd
mov qword [rbx + 0x68], rax
mov edx, 1
mov ecx, 0x16
call fcn.1400066bd
mov qword [rbx + 0x70], rax
jmp 0x140374079
lea r8, [rsp + 0x20]
mov ecx, 0x88
xor edx, edx
call fcn.140003765
test eax, eax
je 0x140374090
mov edi, eax
mov qword [rsi], 0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003706
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [rsp + 0x20]
lea rdx, [0x140569fe0]
mov r8d, 0x88
mov rcx, rdi
call fcn.14000419c
mov ecx, dword [0x1406eff3c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x20]
jmp 0x140374025