joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000c9c4
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov r8, rcx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x18000ca11
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18000ca0e
mov edx, edi
mov rcx, rbx
call fcn.18000c990
test eax, eax
jns 0x18000ca0e
mov rcx, rbx
call qword [0x18002c7a8]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000de44
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov esi, ecx
lea r9, str.83271x
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x18000de9c
lea edx, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18000de93
lea eax, [rbx - 0xa]
jmp 0x18000e041
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x180018a40]
mov edx, 0x271d
call fcn.18000cb10
mov r11, rax
mov qword [0x18002a4d0], rax
test rax, rax
jne 0x18000dec4
or eax, 0xffffffff
jmp 0x18000e041
test sil, 3
je 0x18000dfb0
movabs rax, 0xdfcbe139f7ca5e
lea rcx, [rsp + 0x31]
xor edx, edx
mov qword [rbp + 0x68], rax
movabs rax, 0xbaa4a5579fa514
mov byte [rsp + 0x30], bl
mov qword [rsp + 0x20], rax
mov eax, dword [0x180018a30]
mov dword [rbp + 0x60], eax
movzx eax, word [0x180018a34]
mov word [rbp + 0x64], ax
mov al, byte [0x180018a36]
mov byte [rbp + 0x66], al
xor eax, eax
lea r8d, [rax + 0x7f]
mov byte [rbp + 0x67], al
call sub.msvcrt.dll_memset
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x30]
mov edi, 0x80
mov dword [rbp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea r8, [rbp + 0x58]
lea rdx, [rbp - 0x50]
xor ecx, ecx
mov dword [rbp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov r11d, ebx
mov rdx, rbx
movzx eax, byte [rbp + rdx + 0x68]
movsx ecx, byte [rsp + rdx + 0x30]
xor ecx, eax
movzx eax, byte [rsp + rdx + 0x20]
cmp ecx, eax
jne 0x18000df72
inc r11d
inc rdx
cmp r11d, 7
jb 0x18000df51
cmp r11d, 7
jne 0x18000dfa9
mov r8d, ebx
mov rdx, rbx
movzx eax, byte [rbp + rdx + 0x68]
movsx ecx, byte [rbp + rdx - 0x50]
xor ecx, eax
movzx eax, byte [rbp + rdx + 0x60]
cmp ecx, eax
jne 0x18000df9f
inc r8d
inc rdx
cmp r8d, 6
jb 0x18000df7e
cmp r8d, 6
je 0x18000debc
mov r11, qword [0x18002a4d0]
mov qword [0x18002a4c8], rbx
mov r9d, 1
mov r8, r11
mov rdx, rbx
mov r10d, 0x271c
lea rdi, [0x180000000]
mov rax, rdx
and eax, 0x3f
mov al, byte [rax + rdi + 0x263f0]
xor byte [r8], al
jne 0x18000dff5
mov eax, r9d
lea rcx, [r11 + rdx + 1]
inc r9d
mov qword [rdi + rax*8 + 0x2c920], rcx
inc rdx
inc r8
dec r10
jne 0x18000dfd0
mov qword [0x18002c920], r11
mov ecx, ebx
lea rdx, [0x18002d6c0]
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x18000e01f
lea eax, [rcx + 0x20]
mov byte [rdx], al
jmp 0x18000e021
mov byte [rdx], cl
inc ecx
inc rdx
cmp ecx, 0x100
jb 0x18000e010
mov ecx, esi
call fcn.18000e370
mov ecx, 0xfffffffe
test eax, eax
cmovs ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x150]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000e054
Capabilities:
Encode data using xor

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
xor ebx, ebx
movsxd rsi, ecx
lea r12, [0x18001b170]
cmp qword [0x18002a4c8], rbx
mov edi, ebx
jne 0x18000e0a5
mov edx, 0x1bb5
mov rcx, r12
call fcn.18000cb10
mov qword [0x18002a4c8], rax
test rax, rax
jne 0x18000e0a5
lea rax, [0x18002a4dc]
jmp 0x18000e11a
mov r8d, 0x1bb4
mov ecx, esi
lea r13, [0x1800263a0]
cmp esi, r8d
jae 0x18000e0da
lea rdx, [r12 + rsi]
mov eax, ecx
and eax, 0x3f
mov al, byte [rax + r13]
xor al, byte [rdx]
je 0x18000e0d6
inc ecx
inc rdx
cmp ecx, r8d
jb 0x18000e0bd
jmp 0x18000e0da
mov edi, ecx
sub edi, esi
lea ecx, [rdi + 1]
add rcx, rcx
call fcn.18000ca40
mov r11, rax
test rax, rax
je 0x18000e09c
test edi, edi
je 0x18000e117
lea rcx, [r12 + rsi]
mov rdx, rax
lea eax, [rbx + rsi]
inc ebx
and eax, 0x3f
mov al, byte [rax + r13]
xor al, byte [rcx]
inc rcx
movsx eax, al
mov word [rdx], ax
add rdx, 2
cmp ebx, edi
jb 0x18000e0f8
mov rax, r11
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 0x18000e134
Capabilities:
Encode data using xor

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, 0x20
mov rax, qword [0x18002a4c8]
xor ebx, ebx
movsxd rsi, ecx
mov edi, ebx
test rax, rax
jne 0x18000e186
lea rcx, [0x18001b170]
mov edx, 0x1bb5
call fcn.18000cb10
mov qword [0x18002a4c8], rax
test rax, rax
jne 0x18000e186
lea rax, [0x18002a4d8]
jmp 0x18000e1fd
mov r8d, 0x1bb4
mov ecx, esi
mov rbp, rsi
lea r12, [0x1800263a0]
cmp esi, r8d
jae 0x18000e1be
lea rdx, [rax + rsi]
mov eax, ecx
and eax, 0x3f
mov al, byte [rax + r12]
xor al, byte [rdx]
je 0x18000e1ba
inc ecx
inc rdx
cmp ecx, r8d
jb 0x18000e1a1
jmp 0x18000e1be
mov edi, ecx
sub edi, esi
lea ecx, [rdi + 1]
call fcn.18000ca40
mov r11, rax
test rax, rax
je 0x18000e17d
test edi, edi
je 0x18000e1fa
mov rdx, qword [0x18002a4c8]
sub rbp, rax
mov rcx, rax
add rdx, rbp
lea eax, [rbx + rsi]
inc ebx
and eax, 0x3f
mov al, byte [rax + r12]
xor al, byte [rdx + rcx]
mov byte [rcx], al
inc rcx
cmp ebx, edi
jb 0x18000e1e2
mov rax, r11
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x18000e434
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, r8
movzx r10d, dx
mov rbx, rcx
xor edi, edi
mov r8d, r9d
mov rdx, rax
and dword [rsp + 0x44], edi
movzx ecx, r10w
mov esi, r9d
mov dword [rsp + 0x40], 2
call fcn.18000e3c0
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18000e539
and qword [rsp + 0x30], rdi
and dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000e51c
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x18000e4e8
mov byte [rsp + 0x5f], dil
xor ecx, ecx
lea rdx, [rsp + 0x50]
lea eax, [rcx + 0x41]
inc ecx
mov byte [rdx], al
inc rdx
cmp ecx, 0xf
jb 0x18000e4cd
lea rcx, [rsp + 0x50]
call fcn.18000cf64
jmp 0x18000e51c
mov rdx, qword [rsp + 0x48]
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8d, dword [rdx + 4]
mov rcx, rbx
add r8d, 8
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
je 0x18000e51c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, 1
test rbx, rbx
je 0x18000e52a
mov rcx, rbx
call qword [0x18002c7a8]
lea rcx, [rsp + 0x48]
mov rdx, rsi
call fcn.18000ca70
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x18000e7b8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rdx], ecx
mov dword [rdx + 0x9c0], 1
movsxd rcx, dword [rdx + 0x9c0]
mov eax, dword [rdx + rcx*4 - 4]
shr eax, 0x1e
xor eax, dword [rdx + rcx*4 - 4]
imul eax, eax, 0x6c078965
add eax, ecx
mov dword [rdx + rcx*4], eax
inc dword [rdx + 0x9c0]
cmp dword [rdx + 0x9c0], 0x270
jl 0x18000e7c4
repz ret
Function at 0x18000e7f8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [rcx + 0x9c0], 0x270
mov r8, rcx
jl 0x18000e8bd
xor r9d, r9d
mov r10d, 0x7fffffff
lea r11, [0x1800267f0]
mov edx, 0xe3
mov ecx, dword [r8 + r9*4 + 4]
xor ecx, dword [r8 + r9*4]
and ecx, r10d
xor ecx, dword [r8 + r9*4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [r11 + rax*4]
xor eax, ecx
xor eax, dword [r8 + r9*4 + 0x634]
mov dword [r8 + r9*4], eax
inc r9
cmp r9, rdx
jl 0x18000e820
mov ecx, dword [r8 + rdx*4 + 4]
xor ecx, dword [r8 + rdx*4]
and ecx, r10d
xor ecx, dword [r8 + rdx*4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [r11 + rax*4]
xor eax, ecx
xor eax, dword [r8 + rdx*4 - 0x38c]
mov dword [r8 + rdx*4], eax
inc rdx
cmp rdx, 0x26f
jl 0x18000e851
mov edx, dword [r8 + 0x9bc]
xor edx, dword [r8]
and edx, r10d
xor edx, dword [r8 + 0x9bc]
mov eax, edx
shr edx, 1
and eax, 1
mov ecx, dword [r11 + rax*4]
xor ecx, dword [r8 + 0x630]
xor ecx, edx
and dword [r8 + 0x9c0], 0
mov dword [r8 + 0x9bc], ecx
movsxd rcx, dword [r8 + 0x9c0]
mov edx, dword [r8 + rcx*4]
lea eax, [rcx + 1]
mov dword [r8 + 0x9c0], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x18000e994
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
not r8d
test edx, edx
jne 0x18000e9a1
xor eax, eax
ret
mov r9d, edx
lea rdx, [0x18001cd30]
movzx eax, byte [r10]
inc r10
xor r8d, eax
mov eax, r8d
shr r8d, 4
and eax, 0xf
mov ecx, dword [rdx + rax*4]
xor ecx, r8d
mov eax, ecx
shr ecx, 4
and eax, 0xf
mov r8d, dword [rdx + rax*4]
xor r8d, ecx
dec r9
jne 0x18000e9ab
not r8d
mov eax, r8d
ret

Function at 0x18000ebd0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x48], 0
mov rsi, rdx
call fcn.18000eaa0
mov rdi, rax
test rax, rax
je 0x18000ec5e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x18000ec55
lea ecx, [rbx + 1]
call fcn.18000ca40
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18000ec55
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call fcn.18000eb50
test eax, eax
je 0x18000ec55
cmp dword [rsp + 0x40], ebx
jne 0x18000ec55
mov rax, qword [rsp + 0x48]
mov byte [rbx + rax], 0
test rsi, rsi
je 0x18000ec45
mov dword [rsi], ebx
mov rcx, rdi
call qword [0x18002c7a8]
mov rax, qword [rsp + 0x48]
jmp 0x18000ec74
mov rcx, rdi
call qword [0x18002c7a8]
cmp qword [rsp + 0x48], 0
je 0x18000ec72
lea rcx, [rsp + 0x48]
xor edx, edx
call fcn.18000ca70
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18000fce4
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x80
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_DeleteFileW]
Function at 0x18000fd08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x18000fea0
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x68
xor r13d, r13d
mov word [rbp + 0x44], 0x500
lea ecx, [r13 + 8]
mov ebx, r13d
mov qword [rbp + 0x48], r13
mov dword [rbp + 0x40], r13d
call fcn.18000fd24
mov rsi, rax
test rax, rax
je 0x18000ff97
mov edi, 2
lea r8, [rbp + 0x38]
mov rcx, rax
mov edx, edi
call fcn.18000fd80
mov qword [rbp + 0x48], rax
test rax, rax
je 0x18000ff7b
lea rax, [rbp + 0x50]
lea r8d, [rdi + 0x1e]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov r9d, 0x220
mov edx, edi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [0x18002c8f0]
test eax, eax
je 0x18000ff7b
mov rax, qword [rbp + 0x48]
mov edi, r13d
cmp dword [rax], r13d
jbe 0x18000ff71
mov r12, r13
mov rdx, qword [rbp + 0x50]
mov rcx, qword [r12 + rax + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x18000ff6c
mov rax, qword [rbp + 0x48]
inc edi
add r12, 0x10
cmp edi, dword [rax]
jb 0x18000ff49
jmp 0x18000ff71
mov ebx, 1
mov rcx, qword [rbp + 0x50]
call qword [0x18002c830]
mov rcx, rsi
call qword [0x18002c7a8]
cmp qword [rbp + 0x48], r13
je 0x18000ff95
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.18000ca70
mov eax, ebx
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x18000ffa4
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x60
xor r9d, r9d
mov dword [rax + 0x10], 0
mov word [rax + 0x14], 0x500
lea rax, [rax + 0x18]
mov rbx, rcx
lea edx, [r9 + 1]
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8d, [r9 + 0x12]
lea rcx, [rsp + 0x78]
call qword [0x18002c8f0]
test eax, eax
je 0x180010020
mov rdx, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [0x18002c830]
mov eax, ebx
add rsp, 0x60
pop rbx
ret

Function at 0x180010838
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
cmp dword [0x18002a6c0], 0
je 0x18001084c
mov eax, 9
jmp 0x18001085c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x1800117ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r9b, byte [r8 + 0x100]
mov r10b, byte [r8 + 0x101]
movsxd rdx, edx
mov r11, rcx
test rdx, rdx
jle 0x18001184d
movzx r9d, r9b
inc r9d
and r9d, 0x800000ff
jge 0x1800117ec
dec r9d
or r9d, 0xffffff00
inc r9d
movzx r10d, r10b
movzx ebx, r9b
movzx edi, byte [rbx + r8]
add r10d, edi
and r10d, 0x800000ff
jge 0x180011812
dec r10d
or r10d, 0xffffff00
inc r10d
movzx ecx, r10b
mov al, byte [rcx + r8]
mov byte [rbx + r8], al
mov byte [rcx + r8], dil
movzx ecx, byte [rbx + r8]
add ecx, edi
and ecx, 0x800000ff
jge 0x18001183b
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, cl
mov cl, byte [rax + r8]
xor byte [r11], cl
inc r11
dec rdx
jne 0x1800117cf
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov byte [r8 + 0x100], r9b
mov byte [r8 + 0x101], r10b
ret

Function at 0x180011a84
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x5c]
cmp dword [rcx + 0x5c], 0x37
mov rbx, rcx
mov byte [rax + rcx + 0x1c], 0x80
jle 0x180011ad2
jmp 0x180011aa5
cdqe
mov byte [rax + rcx + 0x1c], 0
inc dword [rcx + 0x5c]
mov eax, dword [rcx + 0x5c]
cmp eax, 0x40
jl 0x180011a9e
call fcn.180011898
jmp 0x180011ac3
movsxd rax, dword [rbx + 0x5c]
mov byte [rax + rbx + 0x1c], 0
inc dword [rbx + 0x5c]
cmp dword [rbx + 0x5c], 0x38
jl 0x180011ab7
jmp 0x180011add
cdqe
mov byte [rax + rcx + 0x1c], 0
inc dword [rcx + 0x5c]
mov eax, dword [rcx + 0x5c]
cmp eax, 0x38
jl 0x180011acb
mov al, byte [rbx + 0x1b]
mov rcx, rbx
mov byte [rbx + 0x54], al
mov al, byte [rbx + 0x1a]
mov byte [rbx + 0x55], al
mov al, byte [rbx + 0x19]
mov byte [rbx + 0x56], al
mov al, byte [rbx + 0x18]
mov byte [rbx + 0x57], al
mov al, byte [rbx + 0x17]
mov byte [rbx + 0x58], al
mov al, byte [rbx + 0x16]
mov byte [rbx + 0x59], al
mov al, byte [rbx + 0x15]
mov byte [rbx + 0x5a], al
mov al, byte [rbx + 0x14]
mov byte [rbx + 0x5b], al
add rsp, 0x20
pop rbx
jmp fcn.180011898
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140011d90]
mov dword [rax], 1
mov rax, qword [0x140011da0]
mov dword [rax], 1
mov rax, qword [0x140011db0]
mov dword [rax], 1
mov rax, qword [0x140011d80]
mov dword [rax], 1
mov rax, qword [0x140011c10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002afa
Capabilities:
Check for debugger via api
Check for outputdebugstring error
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
setne al
test al, al
je 0x140002b1e
mov ecx, 1
call sub.msvcrt.dll_exit
mov dword [rbp - 4], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 4]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call rax
mov eax, dword [rbp - 4]
test eax, eax
je 0x140002b52
mov ecx, 1
call sub.msvcrt.dll_exit
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
lea rax, [0x140011249]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
setne al
test al, al
je 0x140002b8f
mov ecx, 1
call sub.msvcrt.dll_exit
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140003ef0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14000be00
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14000be00
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140004b22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400191a8]
test eax, eax
je 0x140004bba
lea rax, [0x140019180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400191b0]
mov qword [rbp - 8], rax
jmp 0x140004b9e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140004b92
cmp qword [rbp - 0x10], 0
je 0x140004b92
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140004b58
lea rax, [0x140019180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140004bbb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140004cc0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140004ce8
mov eax, 0
jmp 0x140004d36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140004d11
mov eax, 0
jmp 0x140004d36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140004d31
mov eax, 0
jmp 0x140004d36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140004d3c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140004dba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140004db1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140004db1
mov rax, qword [rbp - 8]
jmp 0x140004dcf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140004d84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000d840
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0x80000000
mov dword [rbp - 0x18], 0x7fffffff
mov qword [rbp - 8], 0
jmp 0x14000d8d2
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x18d]
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + rdx*4]
mov eax, dword [rbp - 0x24]
shr eax, 1
xor edx, eax
mov eax, dword [rbp - 0x24]
and eax, 1
test eax, eax
je 0x14000d8b9
mov eax, 0x9908b0df
jmp 0x14000d8be
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov dword [rax + rdx*4], ecx
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0xe2
jbe 0x14000d864
mov qword [rbp - 0x10], 0xe3
jmp 0x14000d954
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 0xe3]
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + rdx*4]
mov eax, dword [rbp - 0x20]
shr eax, 1
xor edx, eax
mov eax, dword [rbp - 0x20]
and eax, 1
test eax, eax
je 0x14000d93b
mov eax, 0x9908b0df
jmp 0x14000d940
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov dword [rax + rdx*4], ecx
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0x26e
jbe 0x14000d8e6
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x9bc]
and eax, 0x80000000
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0x7fffffff
or eax, edx
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x630]
mov eax, dword [rbp - 0x1c]
shr eax, 1
xor edx, eax
mov eax, dword [rbp - 0x1c]
and eax, 1
test eax, eax
je 0x14000d9a1
mov eax, 0x9908b0df
jmp 0x14000d9a6
mov eax, 0
xor edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x9bc], edx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0
nop
add rsp, 0x30
pop rbp
ret