joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4ed060
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4ee120
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4eda62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc512108]
test eax, eax
je 0x2fc4edafa
lea rax, [0x2fc5120e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc512110]
mov qword [rbp - 8], rax
jmp 0x2fc4edade
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 0x2fc4edad2
cmp qword [rbp - 0x10], 0
je 0x2fc4edad2
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 0x2fc4eda98
lea rax, [0x2fc5120e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4edafb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4edc00
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 0x2fc4edc28
mov eax, 0
jmp 0x2fc4edc76
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 0x2fc4edc51
mov eax, 0
jmp 0x2fc4edc76
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 0x2fc4edc71
mov eax, 0
jmp 0x2fc4edc76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4edc7c
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 0x2fc4edcfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4edcf1
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 0x2fc4edcf1
mov rax, qword [rbp - 8]
jmp 0x2fc4edd0f
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 0x2fc4edcc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180002fc0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180021a94], 0xa
jl 0x180002ff2
mov eax, dword [0x180021a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002ff2
nop word cs:[rax + rax]
jmp 0x180002ff0
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180021a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180021a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180021a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180021aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x1800030c8
mov rsi, r10
test r8b, r8b
je 0x1800030e0
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180003060
test r9b, r9b
je 0x1800030f0
sub rsi, rcx
je 0x1800030c4
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x1800030c0
test ebp, ebp
jne 0x1800030c0
add rbx, 1
cmp rsi, rbx
jne 0x180003080
jmp 0x1800030c4
test ebp, ebp
jne 0x18000304c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x1800030e0
jmp 0x1800030f0
Function at 0x180002ce0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002d12
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002d12
nop word cs:[rax + rax]
jmp 0x180002d10
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002de8
mov rsi, r10
test r8b, r8b
je 0x180002e00
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002d80
test r9b, r9b
je 0x180002e10
sub rsi, rcx
je 0x180002de4
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002de0
test ebp, ebp
jne 0x180002de0
add rbx, 1
cmp rsi, rbx
jne 0x180002da0
jmp 0x180002de4
test ebp, ebp
jne 0x180002d6c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002e00
jmp 0x180002e10
Function at 0x14000172c
Capabilities:
Parse pe header

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

Function at 0x140004d4c
Capabilities:
Parse pe header

Disassembly:
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 0x140004dbb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004dbb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004dbb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004dbb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004dbb
cmp dword [rcx + 0x84], 0xe
jbe 0x140004dbb
cmp dword [rcx + 0xf8], 0
je 0x140004dbb
mov ecx, ebx
call fcn.140004e60
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.140004c54
nop
cmp dword [rbp + 0x20], 0
jne 0x140004e1c
call fcn.1400085a4
cmp eax, 1
jne 0x140004e0c
xor dl, dl
jmp 0x140004e16
call fcn.140008570
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140004e27
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004e30
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140004d4c

Function at 0x140004f34
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004d4c
Function at 0x140007f60
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 0x140007f90
xor eax, eax
jmp 0x140008053
mov rbp, rbx
cmp word [rax], si
je 0x140007fb5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140007f9c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140007f98
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.140007e80
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140007ff6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140007f89
call fcn.140008e50
mov rdi, rax
test rax, rax
jne 0x14000800c
xor ecx, ecx
call fcn.140006460
jmp 0x140007feb
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.140007e80
test eax, eax
jne 0x14000803d
mov rcx, rdi
call fcn.140006460
jmp 0x140008047
xor ecx, ecx
call fcn.140006460
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 0x14000b95c
Capabilities:
Set environment variable

Disassembly:
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.140006f38
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000b9e6
cmp byte [rbp - 0x21], r15b
je 0x14000b9e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000ba1c
call fcn.140009694
test eax, eax
jne 0x14000ba08
cmp byte [rbp - 0x21], r15b
je 0x14000ba00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000ba1c
cmp byte [rbp - 0x21], r15b
je 0x14000ba19
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.1400064cc
test eax, eax
jne 0x14000babc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140006f38
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000ba5b
cmp byte [rbp - 0x21], r15b
je 0x14000ba90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000ba90
call fcn.140009694
test eax, eax
jne 0x14000ba7c
cmp byte [rbp - 0x21], r15b
je 0x14000ba75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000ba90
cmp byte [rbp - 0x21], r15b
je 0x14000ba8d
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.1400064cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000babc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000babf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000bacd
mov rcx, rdi
call fcn.140006460
cmp byte [rbp + 0x3f], r15b
je 0x14000badc
mov rcx, qword [rbp + 0x27]
call fcn.140006460
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 0x14000d8e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000d908
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000d908
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180002120
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002152
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002152
nop word cs:[rax + rax]
jmp 0x180002150
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002228
mov rsi, r10
test r8b, r8b
je 0x180002240
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800021c0
test r9b, r9b
je 0x180002250
sub rsi, rcx
je 0x180002224
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002220
test ebp, ebp
jne 0x180002220
add rbx, 1
cmp rsi, rbx
jne 0x1800021e0
jmp 0x180002224
test ebp, ebp
jne 0x1800021ac
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002240
jmp 0x180002250
Function at 0x180001f24
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13b0
call fcn.180057800
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
call fcn.180067040
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.18000d860
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.1800571fc
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.18007f540
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.180067040
mov rcx, rax
call fcn.180065818
mov esi, 0x3e8
mov ebx, dword [0x180101d38]
mov edi, dword [0x180101cc8]
call fcn.1800657ec
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 0x1800063a8
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.18007f540
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, [0x18008e4a5]
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, [0x18008e4a5]
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 0x180006576
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 0x180006562
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 0x1800063a8
Function at 0x180006d54
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 ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
lea rcx, [rbp + 7]
mov rbx, rax
lea r8d, [rdx + 0x48]
call fcn.18007f540
lea rax, [0x180004788]
mov qword [rbp + 0x1f], rbx
lea rdi, str.BritishFlag
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.British_Flag
mov qword [rsp + 0x50], rbx
mov eax, 0x80000000
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rdi
mov dword [rsp + 0x38], 0xc8
xor ecx, ecx
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x180101d50], rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x180101d50]
call qword [sym.imp.USER32.dll_UpdateWindow]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
jmp 0x180006e3c
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 0x180006e28
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret