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

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000d1c8
xor eax, eax
jmp 0x18000d28b
mov rbp, rbx
cmp word [rax], si
je 0x18000d1ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000d1d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000d1d0
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.18000d0b8
movsxd r14, eax
test eax, eax
jne 0x18000d22b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000d1c1
mov rcx, r14
call fcn.180009718
mov rdi, rax
test rax, rax
jne 0x18000d244
xor ecx, ecx
call fcn.180008b8c
jmp 0x18000d220
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.18000d0b8
test eax, eax
jne 0x18000d275
mov rcx, rdi
call fcn.180008b8c
jmp 0x18000d27f
xor ecx, ecx
call fcn.180008b8c
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 0x180010c5c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180010c72
mov al, 1
jmp 0x180010cd2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180010c83
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180010cd0
mov ecx, dword [rcx + 0x18]
nop
call fcn.18000eaa0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180010cd0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180010cd0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180010cd0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180010cd2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140011181
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140011a10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400430a5]
call fcn.140011398
nop
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0xc4], 2
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x140011ab1
cmp dword [rbp + 0xc4], 1
je 0x140011aaf
xor eax, eax
jmp 0x140011c4e
jmp 0x140011ad9
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140011ad2
cmp dword [rbp + 0xc4], 2
je 0x140011ad0
xor eax, eax
jmp 0x140011c4e
jmp 0x140011ad9
xor eax, eax
jmp 0x140011c4e
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x88]
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax]
call fcn.140011208
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x20]
call fcn.140011208
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x1c]
call fcn.140011208
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x24]
call fcn.140011208
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
mov dword [rbp + 0x1b4], eax
mov eax, dword [rbp + 0xa4]
dec eax
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0x1b4], 0
je 0x140011c4c
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax]
call fcn.140011208
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
lea rdx, str.ReflectiveLoader
mov rcx, qword [rbp + 0xe8]
call fcn.1400113a7
test rax, rax
je 0x140011c29
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x1c]
call fcn.140011208
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x88]
movzx eax, word [rax]
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax*4]
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x68]
mov ecx, dword [rax]
call fcn.140011208
jmp 0x140011c4e
mov rax, qword [rbp + 0x48]
add rax, 4
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x88]
add rax, 2
mov qword [rbp + 0x88], rax
jmp 0x140011b81
xor eax, eax
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x1400134f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011208
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140011cf0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x1400430a5]
call fcn.140011398
nop
xor eax, eax
mov word [rbp + 4], ax
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov rax, qword [rbp + 0x148]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x148]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x48]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x28], rax
mov eax, 0x28
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x14]
cmp dword [rbp + 0x140], eax
jae 0x140011d7f
mov eax, dword [rbp + 0x140]
jmp 0x140011e15
xor eax, eax
mov word [rbp + 4], ax
jmp 0x140011d92
movzx eax, word [rbp + 4]
inc ax
mov word [rbp + 4], ax
movzx eax, word [rbp + 4]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140011e13
movzx eax, word [rbp + 4]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0xc]
cmp dword [rbp + 0x140], eax
jb 0x140011e0e
movzx eax, word [rbp + 4]
imul rax, rax, 0x28
movzx ecx, word [rbp + 4]
imul rcx, rcx, 0x28
mov rdx, qword [rbp + 0x28]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rbp + 0x28]
add eax, dword [rdx + rcx + 0x10]
cmp dword [rbp + 0x140], eax
jae 0x140011e0e
movzx eax, word [rbp + 4]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0xc]
mov ecx, dword [rbp + 0x140]
sub ecx, eax
mov eax, ecx
movzx ecx, word [rbp + 4]
imul rcx, rcx, 0x28
mov rdx, qword [rbp + 0x28]
add eax, dword [rdx + rcx + 0x14]
jmp 0x140011e15
jmp 0x140011d87
xor eax, eax
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014840
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014860
xor al, al
jmp 0x1400148e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014873
xor al, al
jmp 0x1400148e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001489d
xor al, al
jmp 0x1400148e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400148b1
xor al, al
jmp 0x1400148e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400148c3
xor al, al
jmp 0x1400148e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400148df
xor al, al
jmp 0x1400148e1
mov al, 1
add rsp, 0x38
ret

Function at 0x1400112b2
Capabilities:
Create thread

Disassembly:
jmp 0x140011e70
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x14003d440]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1400430a5]
call fcn.140011398
nop
mov dword [rbp + 0x64], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xa4], 0x1ae10
mov eax, dword [rbp + 0xa4]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
mov r9d, 0x10
lea r8, [0x140037e10]
mov edx, dword [rbp + 0xa4]
lea rcx, section..data
call fcn.1400113c5
nop
mov eax, dword [rbp + 0xa4]
mov r8d, eax
lea rdx, section..data
mov rcx, qword [rbp + 8]
call fcn.1400113de
nop
mov eax, dword [rbp + 0xa4]
lea r9, [rbp + 0x64]
mov r8d, 0x20
mov edx, eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rbp + 0x24], eax
lea rcx, section..data
call fcn.140011181
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x24], 0
je 0x140011fc6
mov eax, dword [rbp + 0x84]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x48], rax
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ac00]
call fcn.140011311
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400113c5
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
jmp 0x140011820
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x14003d440]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1400430a5]
call fcn.140011398
nop
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400118a3
mov eax, 0xffffffff
jmp 0x14001197c
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400118cf
mov eax, 0xffffffff
jmp 0x14001197c
xor r9d, r9d
mov r8d, dword [rbp + 0x158]
mov rdx, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400118f8
mov eax, 0xffffffff
jmp 0x14001197c
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x28]
mov edx, 0x6610
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x140011922
mov eax, 0xffffffff
jmp 0x14001197c
lea rax, [rbp + 0x148]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x140]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140011957
mov eax, 0xffffffff
jmp 0x14001197c
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ad10]
call fcn.140011311
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140012720
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113ca
movzx eax, al
test eax, eax
jne 0x140012740
mov ecx, 7
call fcn.14001131b
nop
mov byte [rsp + 0x20], 0
call fcn.140011334
mov byte [rsp + 0x21], al
cmp dword [0x14003dca8], 1
jne 0x140012764
mov ecx, 7
call fcn.14001131b
nop
jmp 0x1400127bc
cmp dword [0x14003dca8], 0
jne 0x1400127b7
mov dword [0x14003dca8], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a9
test eax, eax
je 0x140012798
mov eax, 0xff
jmp 0x1400128c1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001132a
mov dword [0x14003dca8], 2
jmp 0x1400127bc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011307
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012819
mov rcx, qword [rsp + 0x30]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x140012819
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140044020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001284d
mov rcx, qword [rsp + 0x38]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x14001284d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001137a
nop
call fcn.140012970
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x14001286c
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001287b
call fcn.140011384
nop
xor edx, edx
mov cl, 1
call fcn.14001114f
mov eax, dword [rsp + 0x28]
jmp 0x1400128c1
add rsp, 0x68
ret
Function at 0x140498e90
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140498e9d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140498ead
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140498e95
lea eax, [rcx + 1]
jmp 0x140498ebb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140498ece
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140498eb4
sub eax, 3
jb 0x140498eee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140498f3d
sar eax, 1
movsxd rbp, eax
jb 0x140498f24
jmp 0x140498efc
add ebx, ebx
jne 0x140498efa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140498f24
inc ecx
add ebx, ebx
jne 0x140498f0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140498f24
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140498f1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140498f0c
add ecx, 2
jmp 0x140498f29
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140498e52
jmp 0x140498e9d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x496000]
mov eax, dword [rdi]
or eax, eax
je 0x140498f9d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4991e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140498f4d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140498f97
mov qword [rbx], rax
add rbx, 8
jmp 0x140498f6d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140498fe1
cmp al, 0xef
ja 0x140498fc9
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140498fa9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140498fb8
mov eax, dword [rdi]
add rdi, 4
jmp 0x140498fb8
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140499035
sub rsp, 0xffffffffffffff80
jmp 0x140014c44
Function at 0x180001f24
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13b0
call fcn.180057400
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
call fcn.180066c40
or dword [rsp + 0x13a4], 0xffffffff
mov r8d, 1
mov edx, r8d
mov dword [rsp + 0x24], eax
mov r9d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
mov dword [rsp + rdx*4 + 0x24], ecx
mov eax, ecx
add rdx, r8
cmp rdx, r9
jb 0x180001f58
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r9d
lea rcx, [rsp + 0x13c0]
mov dword [rsp + 0x13c0], r8d
mov dword [rsp + 0x13c4], 6
call fcn.18000d464
mov dword [rbx + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, dword [rbx + 0x30]
sub edx, 1
je 0x180002052
sub edx, 1
je 0x180002038
sub edx, 1
je 0x18000201b
sub edx, 1
je 0x180002001
sub edx, 1
je 0x180001fe4
cmp edx, 1
jne 0x18000206c
mov ecx, 0x21f0
call fcn.180056dfc
mov qword [rbx + 0x28], rax
jmp 0x18000206c
xor ecx, ecx
mov edx, 0x21f0
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x20], rax
jmp 0x18000206c
mov edx, 8
mov r8d, 0x21f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x18], rax
jmp 0x18000206c
xor ecx, ecx
mov edx, 0x21f0
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x10], rax
jmp 0x18000206c
mov edx, 8
mov r8d, 0x21f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], rax
jmp 0x18000206c
xor ecx, ecx
mov edx, 0x21f0
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x13b0
pop rbx
ret
Function at 0x180002114
Capabilities:
Hide graphical window

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
xor edx, edx
mov rbx, rcx
lea rcx, [rbp + 7]
lea r8d, [rdx + 0x48]
call fcn.18007f140
lea rax, [0x180002318]
mov qword [rbp + 0x1f], rbx
lea rdi, str.BrainStorm
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 7]
mov qword [rbp + 0x47], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
and qword [rsp + 0x58], 0
lea r8, str.Brain_Storm
mov qword [rsp + 0x50], rbx
mov eax, 0xf0
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rdi
mov dword [rsp + 0x38], eax
xor ecx, ecx
mov dword [rsp + 0x30], eax
mov eax, 0x80000000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x180101d18], rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x180101d18]
call qword [sym.imp.USER32.dll_UpdateWindow]
lea r13, [0x180101cd0]
mov ecx, 1
mov rax, r13
lea r8, [0x180101d10]
mov edx, 4
mov dword [rax], ecx
inc ecx
add rax, 4
sub rdx, 1
jne 0x1800021ef
cmp rax, r8
jl 0x1800021ea
and dword [0x180101d0c], edx
xor ecx, ecx
mov dword [0x180101d38], 3
mov dword [0x180101cc8], 3
call fcn.180066c40
mov rcx, rax
call fcn.180065418
mov esi, 0x3e8
mov ebx, dword [0x180101d38]
mov edi, dword [0x180101cc8]
call fcn.1800653ec
and eax, 0x80000003
jge 0x18000224f
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x18000226e
sub eax, 1
je 0x18000226a
sub eax, 1
je 0x180002266
cmp eax, 1
jne 0x180002270
inc ebx
jmp 0x180002270
dec ebx
jmp 0x180002270
inc edi
jmp 0x180002270
dec edi
cmp ebx, 3
ja 0x1800022b6
cmp edi, 3
ja 0x1800022b6
movsxd rcx, dword [0x180101d38]
movsxd rax, dword [0x180101cc8]
mov dword [0x180101d38], ebx
mov dword [0x180101cc8], edi
lea r8, [rax + rcx*4]
movsxd rcx, ebx
movsxd rax, edi
lea rdx, [rax + rcx*4]
mov eax, dword [r13 + r8*4]
mov ecx, dword [r13 + rdx*4]
mov dword [r13 + rdx*4], eax
mov dword [r13 + r8*4], ecx
sub rsi, 1
jne 0x180002230
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
jmp 0x1800022e5
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1800022d1
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r13, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
add rsp, 0x28
jmp 0x180002114
Function at 0x180005fd0
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor edx, edx
mov rdi, rcx
lea rcx, [rbp + 7]
lea r8d, [rdx + 0x48]
call fcn.18007f140
mov rax, qword [sym.imp.USER32.dll_DefWindowProcW]
lea rbx, str.ConvClass
lea rcx, [rbp + 7]
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x47], rbx
call qword [sym.imp.USER32.dll_RegisterClassA]
and qword [rsp + 0x58], 0
lea r8, str.Currency_Converter
mov qword [rsp + 0x50], rdi
mov eax, 0x80000000
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rbx
mov dword [rsp + 0x38], 0x12c
xor ecx, ecx
mov dword [rsp + 0x30], 0x190
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
and qword [rsp + 0x58], 0
lea r8, [0x18008e485]
mov qword [rsp + 0x50], rdi
lea rdx, str.EDIT
and qword [rsp + 0x48], 0
mov r9d, 0x50802000
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov dword [rsp + 0x38], 0x1e
mov rbx, rax
mov dword [rsp + 0x30], 0x64
mov dword [rsp + 0x28], 0x32
mov dword [rsp + 0x20], 0x32
call qword [sym.imp.USER32.dll_CreateWindowExA]
and qword [rsp + 0x58], 0
lea r8, str.Convert_to_Euro
mov qword [rsp + 0x50], rdi
lea rdx, str.BUTTON
and qword [rsp + 0x48], 0
mov r9d, 0x50000001
mov qword [rsp + 0x40], rbx
xor ecx, ecx
mov dword [rsp + 0x38], 0x1e
mov dword [rsp + 0x30], 0x96
mov dword [rsp + 0x28], 0x32
mov dword [rsp + 0x20], 0xa0
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
and qword [rsp + 0x58], 0
lea r8, [0x18008e485]
mov qword [rsp + 0x50], rdi
lea rdx, str.EDIT
and qword [rsp + 0x48], 0
mov r9d, 0x50800804
mov qword [rsp + 0x40], rbx
xor ecx, ecx
mov dword [rsp + 0x38], 0x96
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x32
call qword [sym.imp.USER32.dll_CreateWindowExA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
jmp 0x18000619e
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x18000618a
mov eax, dword [rbp - 0x19]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
add rsp, 0x28
jmp 0x180005fd0