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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14002b5c2
call fcn.140020048
mov dword [rax], 0x16
call fcn.14001b360
jmp 0x14002b6e1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002b6e1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002b6e1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002b5f1
lock or dword [rcx + 0x14], 0x10
jmp 0x14002b6e1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002b605
call fcn.14002cdbc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140028fd0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002c538
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002b6cf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002b69a
mov rcx, rsi
call fcn.140028fd0
cmp eax, edi
je 0x14002b685
mov rcx, rsi
call fcn.140028fd0
cmp eax, 0xfffffffe
je 0x14002b685
mov rcx, rsi
call fcn.140028fd0
movsxd rbx, eax
lea r14, [0x140050840]
mov rcx, rsi
sar rbx, 6
call fcn.140028fd0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002b68c
lea rdx, [0x14004e430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002b69a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002b6be
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002b6be
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002b6be
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14002b6e4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002b6fc
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14002b41e
call fcn.140020048
mov dword [rax], 0x16
call fcn.14001b360
jmp 0x14002b56e
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002b56e
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002b56e
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002b44d
lock or dword [rcx + 0x14], 0x10
jmp 0x14002b56e
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002b461
call fcn.14002cdbc
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14002b471
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14002b474
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140028fd0
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14002c538
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14002b55c
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14002b507
mov rcx, rbx
call fcn.140028fd0
cmp eax, 0xffffffff
je 0x14002b4f2
mov rcx, rbx
call fcn.140028fd0
cmp eax, 0xfffffffe
je 0x14002b4f2
mov rcx, rbx
call fcn.140028fd0
movsxd rdi, eax
lea rsi, [0x140050840]
mov rcx, rbx
sar rdi, 6
call fcn.140028fd0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14002b4f9
lea rdx, [0x14004e430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002b507
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14002b52b
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14002b52b
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14002b52b
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14002b549
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14002b554
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14002b573
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x14002b3e8
Function at 0x14002ba14
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140014790
sub rsp, rax
mov rax, qword [0x14004e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140028fd0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002ba63
mov rax, rbp
jmp 0x14002bb6b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x50840]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002cd10
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x50840]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002bb67
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002bb67
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002cd10
test rax, rax
js 0x14002bb67
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002bb67
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002bb59
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002bb59
cmp byte [rcx], 0xd
jne 0x14002bb3f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002bb4e
cmp byte [rcx + 1], 0xa
jne 0x14002bb4e
inc rcx
jmp 0x14002bb4e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4e480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002bb21
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002bb6b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400147f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002c08c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140050840]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002c0ea
cmp word [rdx], r12w
jne 0x14002c0ea
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002c0f0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002c24b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002c226
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002c129
mov rcx, r9
jmp 0x14002c14c
cmp r9, rdx
jae 0x14002c163
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002c10d
jmp 0x14002c24b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002c220
cmp dword [rsp + 0x80], edi
je 0x14002c220
mov rdx, r14
lea r11, [0x140050840]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002c1f9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002c1cc
mov word [rbx], r12w
jmp 0x14002c247
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002c1d5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002c247
cmp word [rsp + 0x70], r12w
jne 0x14002c206
cmp rbx, rsi
je 0x14002c1c6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002cd18
cmp word [rsp + 0x70], r12w
je 0x14002c24b
mov word [rbx], r13w
jmp 0x14002c247
lea r11, [0x140050840]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002c243
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002c24b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002eaec
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 0x14002eb1c
xor eax, eax
jmp 0x14002ebdf
mov rbp, rbx
cmp word [rax], si
je 0x14002eb41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002eb28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002eb24
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.14002d298
movsxd r14, eax
test eax, eax
jne 0x14002eb7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002eb15
mov rcx, r14
call fcn.140027c20
mov rdi, rax
test rax, rax
jne 0x14002eb98
xor ecx, ecx
call fcn.140026ee0
jmp 0x14002eb74
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.14002d298
test eax, eax
jne 0x14002ebc9
mov rcx, rdi
call fcn.140026ee0
jmp 0x14002ebd3
xor ecx, ecx
call fcn.140026ee0
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 0x140035750
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14027a15c], 0x12c
mov rdi, rcx
jg 0x14014633f
lea rdx, [rcx + 0x20]
add rcx, 0x50
lea r8, [rsp + 0x38]
call fcn.1401ab924
lea rbx, [rdi + 0x18]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140146303
cmp dword [rsp + 0x38], 0
jne 0x140146303
cmp byte [rdi + 0x70], 0
lea rdx, [rsp + 0x38]
mov rcx, rbx
je 0x1401462cc
call fcn.1401abb5c
test al, al
jne 0x1401462db
jmp 0x140146303
mov r8d, 0x493e0
call fcn.1401abbc0
test al, al
je 0x14014633f
and dword [0x14027a15c], 0
mov rcx, qword [rdi + 0x28]
mov byte [rdi + 0x70], 1
test rcx, rcx
je 0x140146303
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 8]
call qword [case.0x1401ab3a5.0]
test al, al
jne 0x140146334
cmp qword [rbx], 0xffffffffffffffff
je 0x14014631c
cmp dword [rsp + 0x38], 0
jne 0x140146334
mov rcx, rbx
call fcn.1401ab7b4
or qword [rbx], 0xffffffffffffffff
cmp dword [rsp + 0x38], 0
je 0x140146334
inc dword [0x14027a15c]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140180730
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14018055c

Function at 0x140197430
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140197450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401768a0
or eax, 0xffffffff
jmp 0x140197452
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400c38d0
Capabilities:
Terminate process

Disassembly:
loope 0x14008b32b
invalid
add esp, dword [rax - 0x68]
lea r10, [r10 + rax*4]
movzx eax, byte [rbx - 0x48]
invalid
cld
pop r11
jmp 0x1400c38dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400c38ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400c38d5
lea eax, [rcx + 1]
jmp 0x1400c38fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400c390e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400c38f4
sub eax, 3
jb 0x1400c392e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400c397d
sar eax, 1
movsxd rbp, eax
jb 0x1400c3964
jmp 0x1400c393c
add ebx, ebx
jne 0x1400c393a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400c3964
inc ecx
add ebx, ebx
jne 0x1400c394a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400c3964
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400c395d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400c394c
add ecx, 2
jmp 0x1400c3969
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400c3892
jmp 0x1400c38dd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x95000
mov dl, 0x15
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400c39cd
cmp rsi, rcx
jae 0x1400c39d5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400c39b4
cmp al, 0x8f
ja 0x1400c39b4
cmp byte [rsi - 2], 0xf
je 0x1400c39ba
sub al, 0xe8
cmp al, 1
ja 0x1400c399e
cmp rsi, rcx
jae 0x1400c39d5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400c39a4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400c39d5
lodsb al, byte [rsi]
jmp 0x1400c39b4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xc0000]
mov eax, dword [rdi]
or eax, eax
je 0x1400c3a32
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc3820]
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 0x1400c39e2
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 0x1400c3a2c
mov qword [rbx], rax
add rbx, 8
jmp 0x1400c3a02
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 0x1400c3a6c
cmp al, 0xef
ja 0x1400c3a5e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400c3a3e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400c3a4d
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 + 0x227]
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 0x1400c3ac0
sub rsp, 0xffffffffffffff80
jmp 0x14008b2e0
Function at 0x4081a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x005a00a0], 0
je 0x408258
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040f6b0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x005800d8]
call fcn.0040f6b0
mov rcx, rsi
mov rdx, qword [0x005800d8]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.0040f6b0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40826b
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x40ca10
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.0040d060
mov esi, eax
test sil, sil
jne 0x40cbc5
test ebx, ebx
je 0x40cbc5
xor edi, edi
test r13d, r13d
jle 0x40caf1
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40cad5
cmp ebx, 0xffffffff
je 0x40ca83
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40ca83
xor esi, esi
jmp 0x40cbc5
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40cad5
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40cac3
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40cac3
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40cbc5
lea rcx, [rbp + 0x3c]
call fcn.0040c5b0
sub r13d, 1
test r13d, r13d
jg 0x40ca6a
nop
cmp ebx, 0xffffffff
je 0x40caf1
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40caef
xor esi, esi
jmp 0x40cbc5
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40ca2d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40caf1
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040cc70
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x005a0998]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40cb54
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40cb52
sub ebx, eax
jmp 0x40cb54
xor ebx, ebx
test sil, sil
je 0x40cb86
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40cb83
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 0x40cb59
mov dil, 1
nop
jmp 0x40cba3
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 0x40cb86
mov dil, 1
test dil, dil
je 0x40cb14
nop
test sil, sil
je 0x40cbc5
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 0x40e8d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005a00a0], 0
je 0x40e96a
cmp word [0x005a03b0], 0xd7b2
jne 0x40e903
cmp dword [0x005a03b8], 0
jbe 0x40e903
lea rcx, [0x005a03a8]
call qword [0x005a03d0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00581e04]
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, [0x0040e9a0]
call fcn.0040fce0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40e98b
cmp byte [0x0058005a], 0
jne 0x40e98b
xor ecx, ecx
lea rdx, [0x00581e04]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40ec50
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 [0x00580060], 0
je 0x40ec81
mov rcx, rsi
mov rdx, rdi
call qword [0x00580060]
mov r13, rax
jmp 0x40ec96
mov ecx, 0x10
call fcn.004091a0
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x005a00a1], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040ebe0]
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 0x40ecdb
mov rcx, r13
call fcn.004091d0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x413d60
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x005a4ef8]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x005a4f20], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x005a4ef0], al
cmp byte [0x005a4ef0], 0
je 0x413dff
lea rcx, [0x00413e04]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00413e1e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x005a4ed8], rax
lea rcx, [0x00413e04]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00413e3c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x005a4ee0], rax
lea rcx, [0x00413e04]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00413e5a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x005a4ee8], rax
add rsp, 0x28
ret
Function at 0x4140a0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x1d8
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov word [rbp + 0x56], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x48]
call fcn.0040ee50
movzx rax, word [rbp + 0x56]
cmp word [0x005827c8], ax
ja 0x414176
movzx rax, word [rbp + 0x56]
cmp ax, word [0x00582bc8]
mov word [rbp + 0x56], ax
ja 0x414176
mov eax, 0x40
xor ecx, ecx
cmp eax, ecx
jb 0x414175
mov edx, eax
add edx, ecx
shr edx, 1
mov r8d, edx
lea r9, [0x005827c8]
mov r10, r8
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x414134
mov eax, edx
sub eax, 1
jmp 0x414171
lea rcx, [0x005827c8]
mov r9, r8
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [rcx + r9*8], r10w
jae 0x414154
mov ecx, edx
add ecx, 1
jmp 0x414171
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea rax, [0x005827d0]
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.00413f50
jmp 0x414175
cmp eax, ecx
jae 0x41410a
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x41424b
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41424b
movzx rbx, word [rbp + 0x56]
movzx ebx, bx
mov ecx, ebx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
mov ecx, ebx
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.00410280
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00410280
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00410280
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00414298]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x004142a8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.004106f0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040ef30
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret