joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003330
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180003356
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.180003330
movzx edx, word [rdi + rbx*2]
mov ecx, eax
mov rbx, qword [rsp + 0x30]
xor rdx, rcx
movzx ecx, dl
lea rdx, [0x1800339a0]
shr eax, 8
xor eax, dword [rdx + rcx*4]
add rsp, 0x20
pop rdi
ret

Function at 0x1800033b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800033d6
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
dec rcx
mov qword [rsp + 0x38], rdi
call fcn.1800033b0
movsx ebx, byte [rbx + rsi]
mov edi, eax
call fcn.180003390
mov byte [rsp + 0x30], al
movzx edx, bl
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x40], 0x1c3589c0
mov r8d, dword [rsp + 0x40]
movzx ecx, byte [rsp + 0x30]
xor r8d, 0xc09
movsx eax, byte [rsp + 0x30]
sub dl, cl
xor r8b, 0xd3
cmp dl, r8b
mov edx, ebx
mov rbx, qword [rsp + 0x48]
sbb ecx, ecx
add eax, 0xbe
and ecx, 0x20
or edx, ecx
lea rcx, [0x1800339a0]
xor edx, edi
shr edi, 8
and rax, rdx
xor edi, dword [rcx + rax*4]
mov eax, edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x180003460
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180003486
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
dec rcx
mov qword [rsp + 0x38], rdi
call fcn.180003460
movzx ebx, word [rsi + rbx*2]
mov edi, eax
call fcn.180003390
mov byte [rsp + 0x30], al
movzx ecx, bx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x40], 0x29341f03
mov r8d, dword [rsp + 0x40]
movsx edx, byte [rsp + 0x30]
xor r8d, 0xc09
sub cx, dx
xor r8b, 0x10
movsx edx, byte [rsp + 0x30]
movzx eax, r8b
cmp cx, ax
sbb ax, ax
add edx, 0xbe
and ax, 0x20
or bx, ax
lea rax, [0x1800339a0]
movzx ecx, bx
mov rbx, qword [rsp + 0x48]
xor rcx, rdi
shr edi, 8
and rdx, rcx
xor edi, dword [rax + rdx*4]
mov eax, edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x180005330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rsi, r9
mov r10, rdx
mov qword [rsp + 0x20], rdx
mov r13, rcx
movsxd r8, dword [rdx + 0x3c]
movsxd rax, dword [rcx + 0x3c]
mov r9d, dword [r8 + rdx + 0x88]
mov r8d, dword [rax + rcx + 0x88]
test r9d, r9d
jne 0x180005378
test r8d, r8d
je 0x180005557
mov rbp, r9
lea r11, [r8 + rcx]
mov qword [rsp + 0x28], r11
add rbp, rdx
jne 0x180005392
test r11, r11
je 0x180005557
mov ebx, dword [rbp + 0x20]
add rbx, rdx
mov qword [rsp + 0x30], rbx
mov edi, dword [r11 + 0x20]
add rdi, r13
mov qword [rsp + 0x38], rdi
xor r15d, r15d
cmp dword [rbp + 0x18], r15d
jbe 0x180005557
nop word [rax + rax]
lea r8, [r15 + r15]
mov eax, dword [rbp + 0x24]
add rax, r8
movzx edx, word [rax + r10]
mov ecx, dword [rbp + 0x1c]
add rcx, r10
mov r12d, dword [rcx + rdx*4]
mov eax, dword [r11 + 0x24]
add rax, r8
movzx edx, word [rax + r13]
mov ecx, dword [r11 + 0x1c]
add rcx, r13
mov r14d, dword [rcx + rdx*4]
add r14, r13
add r12, r10
je 0x18000554a
test r14, r14
je 0x18000554a
mov edx, dword [rbx + r15*4]
add rdx, r10
mov edi, dword [rdi + r15*4]
add rdi, r13
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp byte [rdx + rcx], 0
jne 0x180005420
dec rcx
call fcn.1800033b0
mov ebx, eax
not ebx
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x180005440
dec rcx
mov rdx, rdi
call fcn.1800033b0
not eax
cmp ebx, eax
jne 0x180005536
cmp ebx, 0xf33c2ac
je 0x180005536
cmp ebx, 0x2078f304
je 0x180005536
cmp ebx, 0x46926cf5
je 0x180005536
cmp ebx, 0x5100831b
je 0x180005536
cmp ebx, 0x515def78
je 0x180005536
cmp ebx, 0x6db71dcd
je 0x180005536
cmp ebx, 0xc8827a2a
je 0x180005536
cmp ebx, 0xa9554556
je 0x180005536
mov r8d, 4
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_RtlCompareMemory]
cmp rax, 4
je 0x180005536
test rsi, rsi
je 0x18000552b
mov rbx, qword [rsi]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [rsi + 8], rax
je 0x18000556f
mov qword [rsp + 0x40], rsi
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x48], rdi
lea ecx, [rdi + 0x18]
call fcn.18000e000
mov qword [rsp + 0x48], rax
mov qword [rax + 0x10], r12
inc qword [rsi + 8]
mov rcx, qword [rbx + 8]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 8], rax
mov qword [rcx], rax
mov r8, r14
mov rdx, r12
call fcn.180005210
mov r10, qword [rsp + 0x20]
mov r11, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
inc r15d
cmp r15d, dword [rbp + 0x18]
jb 0x1800053c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_too_long
call fcn.18000f108
int3
Function at 0x180005580
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
push r15
sub rsp, 0x80
mov rax, qword [0x18003a040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [r11 - 0x48], 8
mov qword [r11 - 0x58], rax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x48], eax
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x30]
mov r15, qword [rcx + 0x60]
test r15, r15
je 0x18000575f
mov qword [r11 - 0x20], r13
mov eax, 0x5a4d
mov r13, qword [r15 + 0x10]
cmp word [r13], ax
jne 0x18000575a
movsxd rax, dword [r13 + 0x3c]
cmp dword [rax + r13], 0x4550
jne 0x18000575a
mov qword [r11 - 0x28], r14
mov r14d, dword [rax + r13 + 0x90]
add r14, r13
cmp dword [r14], 0
je 0x180005755
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
mov ecx, dword [r14 + 0xc]
add rcx, r13
call fcn.18000bf70
mov r12, rax
test rax, rax
je 0x180005733
mov esi, dword [r14]
add rsi, qword [r15 + 0x10]
mov ebx, dword [r14 + 0x10]
add rbx, qword [r15 + 0x10]
mov rcx, qword [rsi]
test rcx, rcx
js 0x180005725
je 0x180005725
mov rdx, qword [r15 + 0x10]
add rdx, 2
mov qword [rsp + 0x30], rbx
mov rbp, qword [rbx]
add rdx, rcx
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x180005675
dec rcx
call fcn.1800033b0
not eax
mov rcx, r12
mov edx, eax
call fcn.18000c080
mov rdi, rax
test rbp, rbp
je 0x180005708
test rax, rax
je 0x180005708
cmp rbp, rax
je 0x180005708
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], 8
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x30]
call fcn.18000dcc8
test eax, eax
js 0x180005708
mov qword [rbx], rdi
lea rax, [rsp + 0x48]
mov r9d, dword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x40], 8
call fcn.18000dcc8
add rsi, 8
mov qword [rsp + 0x30], 0
add rbx, 8
mov rcx, qword [rsi]
test rcx, rcx
jns 0x180005655
add r14, 0x14
cmp dword [r14], 0
jne 0x180005622
mov rbx, qword [rsp + 0x90]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000dec0
add rsp, 0x80
pop r15
ret
Function at 0x18000bac0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x18003a040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rcx + r8*2], 0
jne 0x18000bae0
dec r8
cmp r8, 0xffffffffffffffff
jne 0x18000bafb
mov eax, 0xffffffff
jmp 0x18000bb21
lea rcx, [r8 - 1]
mov rdx, rbx
call fcn.180003330
movzx edx, word [rbx + r8*2]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx ecx, dl
lea rdx, [0x1800339a0]
xor eax, dword [rdx + rcx*4]
not eax
xor edx, edx
mov ecx, eax
call fcn.18000bd40
test rax, rax
jne 0x18000bbcc
mov rax, qword [0x1800ba3b0]
test rax, rax
jne 0x18000bb7b
xor edx, edx
mov ecx, 0x84c05e40
call fcn.18000bd40
mov edx, 0xfa2a9aa9
mov rcx, rax
call fcn.18000c080
mov qword [0x1800ba3b0], rax
test rax, rax
jne 0x18000bb7b
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18000dec0
add rsp, 0x40
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call rax
mov r10, qword [0x1800ba3b8]
test r10, r10
jne 0x18000bbaf
mov edx, 0xa09b055e
mov ecx, 0x84c05e40
call fcn.18000c390
mov qword [0x1800ba3b8], rax
mov r10, rax
test rax, rax
je 0x18000bb66
xor eax, eax
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call r10
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18000dec0
add rsp, 0x40
pop rbx
ret
Function at 0x18000c390
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
xor edx, edx
call fcn.18000bd40
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.18000c080

Function at 0x18000c740
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov rbp, rcx
test rcx, rcx
je 0x18000c7cf
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000c7cf
movsxd rsi, dword [rcx + 0x3c]
add rsi, rcx
cmp dword [rsi], 0x4550
jne 0x18000c7cf
xor edi, edi
cmp di, word [rsi + 6]
jae 0x18000c7cf
nop word [rax + rax]
movzx ecx, word [rsi + 0x14]
lea rdx, [rdi + rdi*4]
add rcx, rsi
lea rbx, [rcx + rdx*8]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx + 0x18], 0
jne 0x18000c7a6
dec rcx
lea rdx, [rbx + 0x18]
call fcn.1800033b0
not eax
cmp eax, 0xa21c1ea3
je 0x18000c7ec
movzx eax, word [rsi + 6]
inc edi
cmp edi, eax
jb 0x18000c790
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [r14], rbp
mov eax, dword [rbx + 0x24]
add rax, rbp
mov qword [r14 + 8], rax
mov eax, dword [rbx + 0x28]
mov dword [r14 + 0x10], eax
mov eax, dword [rbx + 0x24]
sub eax, dword [rbx + 0x2c]
mov dword [r14 + 0x14], eax
mov eax, 1
jmp 0x18000c7d1

Function at 0x18000dba5
Capabilities:
Check os version
Execute syscall

Disassembly:
xor al, 0x5a
mov r10, qword gs:[0x60]
cmp word [r10 + 0x118], 0xa
je 0x18000dbf7
cmp word [r10 + 0x118], 6
je 0x18000dbc8
jmp 0x18000dc1e
cmp word [r10 + 0x11c], 3
je 0x18000dbf9
cmp word [r10 + 0x11c], 2
je 0x18000dbfb
cmp word [r10 + 0x11c], 1
jne 0x18000dc1e
cmp word [r10 + 0x120], 0x1db1
je 0x18000dbfd
jmp 0x18000dc1e
inc eax
inc eax
inc eax
cmp qword [0x1800ba208], 0
jne 0x18000dc13
cmp eax, 0xc390050f
pop r10
mov r10, rcx
jne 0x18000dc08
syscall
nop
ret
pop r10
mov r10, rcx
jmp qword [0x1800ba208]
ret
Function at 0x18001ee94
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 0x18001eec4
xor eax, eax
jmp 0x18001ef87
mov rbp, rbx
cmp word [rax], si
je 0x18001eee9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001eed0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001eecc
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.18001ede4
movsxd r14, eax
test eax, eax
jne 0x18001ef27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001eebd
mov rcx, r14
call fcn.18001cc00
mov rdi, rax
test rax, rax
jne 0x18001ef40
xor ecx, ecx
call fcn.18001cbc4
jmp 0x18001ef1c
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.18001ede4
test eax, eax
jne 0x18001ef71
mov rcx, rdi
call fcn.18001cbc4
jmp 0x18001ef7b
xor ecx, ecx
call fcn.18001cbc4
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 0x1800235e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180023608
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180023608
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001330
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r9d, 4
mov dword [rsp + 0x50], 1
mov rbx, rdx
lea r8, [rsp + 0x50]
mov edi, ecx
or rcx, 0xffffffffffffffff
lea edx, [r9 + 0x32]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov rcx, qword [sym.imp.CSRSRV.dll_CsrUnhandledExceptionFilter]
call qword [sym.imp.ntdll.dll_RtlSetUnhandledExceptionFilter]
mov r9d, 4
mov dword [rsp + 0x58], 0xd
lea r8, [rsp + 0x58]
or rcx, 0xffffffffffffffff
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_RtlSetHeapInformation]
mov r9d, 8
mov dword [rsp + 0x28], 2
lea r8, [rsp + 0x28]
mov dword [rsp + 0x2c], 1
or rcx, 0xffffffffffffffff
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.CSRSRV.dll_CsrServerInitialization]
mov ebx, eax
test eax, eax
js 0x1400016f8
mov r9d, 4
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
or rcx, 0xffffffffffffffff
lea edx, [r9 + 8]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov edx, ebx
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.ntdll.dll_NtTerminateThread]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
mov edx, ebx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
nop
jmp 0x1400013de
Function at 0x40c380
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.0040c9e0
mov esi, eax
test sil, sil
jne 0x40c542
test ebx, ebx
je 0x40c542
xor rdi, rdi
test r13d, r13d
jle 0x40c467
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40c446
cmp ebx, 0xffffffff
je 0x40c3f3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40c3f3
xor rsi, rsi
jmp 0x40c542
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40c446
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40c434
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40c434
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40c542
lea rcx, [rbp + 0x3c]
call fcn.0040bf30
sub r13d, 1
test r13d, r13d
jg 0x40c3da
nop
cmp ebx, 0xffffffff
je 0x40c467
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40c462
xor rsi, rsi
jmp 0x40c542
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40c39d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c467
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040c5f0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x008af9a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40c4d1
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40c4ce
sub eax, r14d
sub ebx, eax
jmp 0x40c4d1
xor rbx, rbx
test sil, sil
je 0x40c503
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40c500
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c4d6
mov dil, 1
nop
jmp 0x40c520
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c503
mov dil, 1
test dil, dil
je 0x40c48a
nop
test sil, sil
je 0x40c542
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x40e240
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x008af0a8], 0
je 0x40e2de
cmp word [0x008af3b8], 0xd7b2
jne 0x40e273
cmp dword [0x008af3c0], 0
jbe 0x40e273
lea rcx, [0x008af3b0]
call qword [0x008af3d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0084ea24]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040e314]
call fcn.0040f880
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40e300
cmp byte [0x0084d052], 0
jne 0x40e300
xor rcx, rcx
lea rdx, [0x0084ea24]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e5e0
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x0084d058], 0
je 0x40e611
mov rcx, rsi
mov rdx, rdi
call qword [0x0084d058]
mov r13, rax
jmp 0x40e627
mov ecx, 0x10
call fcn.00408d30
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x008af0a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e570]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov rbx, rax
test rbx, rbx
jne 0x40e66c
mov rcx, r13
call fcn.00408d60
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x412b50
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.0040e7f0
movzx rax, word [rbp + 0x4e]
cmp word [0x0084f190], ax
ja 0x412c38
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0084f590]
mov word [rbp + 0x4e], ax
ja 0x412c38
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x412c37
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0084f190]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x412bf1
mov ecx, eax
sub ecx, 1
jmp 0x412c32
lea rdx, [0x0084f190]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x412c13
mov r8d, eax
add r8d, 1
jmp 0x412c32
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0084f198]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.004129e0
jmp 0x412c37
cmp ecx, r8d
jae 0x412bc0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x412d1a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x412d1a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040ffd0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040ffd0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040ffd0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00412d74]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00412d84]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410450
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040e8d0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x412f90
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x008b3e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x008b3e98], ax
jne 0x412ffb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x008b3e9a]
mov r8d, 0x55
call fcn.0040ffd0
lea rcx, [0x008b3e70]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x413106
lea rcx, [0x008b3e70]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040e7f0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4130c0
cmp byte [0x008b3e68], 0
je 0x413054
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00412e20
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040ee40
jmp 0x4130c0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00412b50
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ee40
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x4130c0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41309f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00413154]
call fcn.00410240
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00412b50
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00410240
lea rcx, [0x008b3e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x008b3e98], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040fed0
lea rcx, [0x008b3e9a]
mov edx, 0xaa
mov r8, rax
call fcn.00412900
lea rcx, [0x008b3e70]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040e8d0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413b30
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040e980
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040ffd0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00410330
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00413950
test al, al
jne 0x413bfe
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040ffd0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00410330
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00413950
test al, al
jne 0x413bfe
mov rcx, qword [rbp + 0x20]
call fcn.0040e7f0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e8d0
lea rcx, [rbp + 0x70]
call fcn.0040e7f0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret