joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000328c
Capabilities:
Parse pe header

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

Function at 0x14000fc60
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 0x14000facb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000facb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000facb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000facb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000facb
cmp dword [rcx + 0x84], 0xe
jbe 0x14000facb
cmp dword [rcx + 0xf8], 0
je 0x14000facb
mov ecx, ebx
call fcn.14000fb7c
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.14000f958
nop
cmp dword [rbp + 0x20], 0
je 0x14000fb19
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fb24
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa5c

Function at 0x1400107cc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400344c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140028d10]
mov rbp, rcx
call fcn.140019638
xor edi, edi
test rax, rax
je 0x1400108b2
mov ebx, edi
call fcn.140013724
mov r14d, dword [rax]
call fcn.140013724
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140019584
mov rsi, rax
test rax, rax
je 0x140010843
call fcn.140013724
mov dword [rax], r14d
jmp 0x14001086d
call fcn.140013724
cmp dword [rax], 0x22
jne 0x1400108aa
call fcn.140013724
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140019584
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400108aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140010871
cmp rax, 3
je 0x14001088c
mov rcx, rsi
call fcn.140010728
test al, al
je 0x14001089d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14001089d
mov dil, 1
mov rcx, rbx
call fcn.14000f93c
mov al, dil
jmp 0x1400108b4
mov rcx, rbx
call fcn.14000f93c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400028a0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140012424
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x14001245f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140013698
call fcn.140013724
mov eax, dword [rax]
jmp 0x1400124d6
cmp rdi, qword [rbx + 0x18]
ja 0x14001246b
mov qword [rbx + 0x20], rdi
jmp 0x1400124d4
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x140012482
mov rcx, qword [rbx + 0x10]
call fcn.1400137bc
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.140015f58
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x1400124d6
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x140012449
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140016120
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140016140
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140013698
or eax, 0xffffffff
jmp 0x140016142
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001b9a0
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 0x14001b9d0
xor eax, eax
jmp 0x14001ba93
mov rbp, rbx
cmp word [rax], si
je 0x14001b9f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b9dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b9d8
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.14001b8c0
movsxd r14, eax
test eax, eax
jne 0x14001ba33
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001b9c9
mov rcx, r14
call fcn.140015f58
mov rdi, rax
test rax, rax
jne 0x14001ba4c
xor ecx, ecx
call fcn.1400137bc
jmp 0x14001ba28
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.14001b8c0
test eax, eax
jne 0x14001ba7d
mov rcx, rdi
call fcn.1400137bc
jmp 0x14001ba87
xor ecx, ecx
call fcn.1400137bc
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 0x14001bab0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001bb37
mov rsi, rbx
cmp word [rax], bp
je 0x14001baf6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001bae0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001badc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140015f58
mov rdi, rax
test rax, rax
je 0x14001bb24
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140004850
mov rbp, rdi
xor ecx, ecx
call fcn.1400137bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d1bc
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.14000745c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001d246
cmp byte [rbp - 0x21], r15b
je 0x14001d241
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001d27c
call fcn.140013a0c
test eax, eax
jne 0x14001d268
cmp byte [rbp - 0x21], r15b
je 0x14001d260
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001d27c
cmp byte [rbp - 0x21], r15b
je 0x14001d279
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.1400072e0
test eax, eax
jne 0x14001d31c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000745c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001d2bb
cmp byte [rbp - 0x21], r15b
je 0x14001d2f0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001d2f0
call fcn.140013a0c
test eax, eax
jne 0x14001d2dc
cmp byte [rbp - 0x21], r15b
je 0x14001d2d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001d2f0
cmp byte [rbp - 0x21], r15b
je 0x14001d2ed
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.1400072e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001d31c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001d31f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001d32d
mov rcx, rdi
call fcn.1400137bc
cmp byte [rbp + 0x3f], r15b
je 0x14001d33c
mov rcx, qword [rbp + 0x27]
call fcn.1400137bc
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 0x14001d430
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001d450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140013698
or eax, 0xffffffff
jmp 0x14001d452
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001d780
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, [0x140036440]
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 0x14001d7d7
cmp word [rdx], r13w
jne 0x14001d7d7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001d7dc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001d901
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001d922
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001d815
mov rdx, r9
mov word [rbx], cx
jmp 0x14001d83c
cmp r9, r8
jae 0x14001d84c
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 0x14001d7f6
jmp 0x14001d901
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 0x14001d8f6
cmp dword [rsp + 0x80], esi
je 0x14001d8f6
lea r8, [0x140036440]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001d8ce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001d89e
mov word [rbx], r13w
jmp 0x14001d8fe
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 0x14001d8ab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001d8fe
cmp word [rsp + 0x70], r13w
jne 0x14001d8db
cmp rbx, r14
je 0x14001d898
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400165d0
cmp word [rsp + 0x70], r13w
je 0x14001d901
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, [0x140036440]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001d8fb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001d901
Function at 0x1400204d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400204ee
mov al, 1
jmp 0x14002054e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400204ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002054c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019cd4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002054c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002054c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002054c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002054e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002179c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400344c8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400217e6
call fcn.140013704
mov dword [rax], 0xf
call fcn.140013724
mov dword [rax], 0xd
call fcn.1400135e8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400028a0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400217f1
lea eax, [rbx + 1]
jmp 0x1400217d3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400217d1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400217d3

Function at 0x1400234b8
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.1400165d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400165d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140023608
cmp rax, 0xffffffffffffffff
je 0x140023608
xor edi, edi
test rbp, rbp
jle 0x1400235b3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140013744
mov rbx, rax
test rax, rax
jne 0x140023540
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400235a9
mov edx, 0x8000
mov ecx, r14d
call fcn.140011848
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.140015788
cmp eax, 0xffffffff
je 0x140023589
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140023550
mov edx, r15d
mov ecx, r14d
call fcn.140011848
jmp 0x1400235a9
cmp byte [rsi + 0x38], dil
je 0x1400235a0
cmp dword [rsi + 0x34], 5
jne 0x1400235a0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400235a9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400137bc
jmp 0x14002361c
jns 0x14002361c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400165d0
cmp rax, 0xffffffffffffffff
jne 0x1400235d4
cmp byte [rsi + 0x30], dil
je 0x14002361c
mov edi, dword [rsi + 0x2c]
jmp 0x14002361c
mov ecx, r14d
call fcn.140019cd4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002361c
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 0x14002361c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140023615
mov eax, dword [rsi + 0x2c]
jmp 0x14002361a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400165d0
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 0x140024a70
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140012f00
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 0x14001127b
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x1400118b0
push rbp
push rdi
sub rsp, 0x4c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xca
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001d008]
xor rax, rbp
mov qword [rbp + 0x498], rax
lea rcx, [0x1400230a4]
call fcn.140011384
movzx eax, byte [0x14001acf0]
mov byte [rbp + 0x10], al
lea rax, [rbp + 0x11]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov qword [rbp + 0x128], 0
lea rdx, [rbp + 0x150]
mov cx, 0x101
call fcn.140011208
mov edx, pe_nt_image_headers64
lea rcx, [rbp + 0x10]
call fcn.1400112c6
lea rcx, [rbp + 0x10]
call fcn.140011361
mov qword [rbp + 0x128], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov ecx, dword [rax]
call fcn.1400111db
mov qword [rbp + 0x308], rax
lea rcx, str.__________________n
call fcn.14001119a
mov rdx, qword [rbp + 0x308]
lea rcx, [0x14001ad28]
call fcn.14001119a
lea rcx, str.__________________n
call fcn.14001119a
call fcn.140011195
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001acc0]
call fcn.14001131b
mov eax, edi
mov rcx, qword [rbp + 0x498]
xor rcx, rbp
call fcn.1400111b3
lea rsp, [rbp + 0x4a8]
pop rdi
pop rbp
ret

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014250
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014270
xor al, al
jmp 0x1400142f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014283
xor al, al
jmp 0x1400142f1
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 0x1400142ad
xor al, al
jmp 0x1400142f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400142c1
xor al, al
jmp 0x1400142f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400142d3
xor al, al
jmp 0x1400142f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400142ef
xor al, al
jmp 0x1400142f1
mov al, 1
add rsp, 0x38
ret
Function at 0x140002b54
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, qword [0x140047c40]
mov rdi, rcx
mov rax, qword [0x140047c48]
mov ebx, 1
jmp 0x140002c06
test ebx, ebx
js 0x140002cfe
mov r14, qword [rsi]
test r14, r14
je 0x140002c02
and qword [rsp + 0x50], 0
cmp qword [r14 + 0x10], 0
jne 0x140002ba1
xor ebx, ebx
jmp 0x140002c02
mov rcx, qword [r14 + 0x18]
lea r8, [rsp + 0x50]
mov rax, qword [r14 + 0x10]
lea rdx, [0x14003e9f0]
call qword [0x14003e228]
mov ebx, eax
test eax, eax
js 0x140002be4
mov rdx, qword [rsp + 0x50]
lea rax, [r14 + 0x28]
mov rcx, qword [r14]
mov r9d, 5
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002bfb
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003e228]
mov rax, qword [0x140047c48]
add rsi, 8
cmp rsi, rax
jb 0x140002b80
test ebx, ebx
js 0x140002cfe
jne 0x140002cfa
cmp byte [rdi + 0x60], 0
je 0x140002cb0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x50], rax
test rax, rax
je 0x140002ca9
lea rax, [rsp + 0x58]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140003430]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140002c75
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rsi, rsi
je 0x140002ca9
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x140002c9e
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov edx, dword [rdi + 0x58]
mov rcx, rsi
add edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140002cb8
mov ebx, 0x80004005
jmp 0x140002cbc
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x140002cfe
mov rdi, qword [0x140047c40]
xor eax, eax
mov rcx, qword [0x140047c48]
jmp 0x140002cf3
test eax, eax
jne 0x140002cfe
mov rdx, qword [rdi]
test rdx, rdx
je 0x140002cef
cmp dword [rdx + 0x28], eax
je 0x140002cef
mov ecx, dword [rdx + 0x28]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevokeClassObject]
mov rcx, qword [0x140047c48]
add rdi, 8
cmp rdi, rcx
jb 0x140002cce
jmp 0x140002cfe
mov byte [rdi + 0x60], 0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140009238
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x1400471f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebx, ebx
lea r8, [rsp + 0x30]
mov r12, rdx
mov r14, rcx
mov r13d, 0x400
mov ebp, ebx
mov ecx, r13d
mov edi, ebx
lea esi, [rbx + 4]
mov r9d, esi
lea edx, [rbx + 0xe]
lea r15d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400092a6
lea r8, [0x14003ee78]
mov edx, esi
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov rsi, r14
cmp r14, r13
jb 0x1400092c7
cmp edi, 4
jae 0x1400092c7
mov ebp, esi
add edi, r15d
and ebp, 0x3ff
shr rsi, 0xa
cmp rsi, r13
jae 0x1400092ae
test edi, edi
je 0x1400092fb
sub edi, r15d
je 0x1400092f4
sub edi, r15d
je 0x1400092ed
sub edi, r15d
je 0x1400092e6
cmp edi, r15d
jne 0x1400092fb
mov edx, 0x324
jmp 0x140009308
mov edx, 0x323
jmp 0x140009308
mov edx, 0x322
jmp 0x140009308
mov edx, 0x321
jmp 0x140009308
mov rsi, r14
mov ebp, ebx
mov r15d, ebx
mov edx, 0x325
mov rcx, qword [0x140047868]
lea r8, [rsp + 0xc0]
mov edi, 0x40
mov r9d, edi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
test eax, eax
jne 0x14000933f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400093aa
lea rcx, [rsp + 0x40]
mov r9, rsi
mov rdx, rdi
test r15d, r15d
je 0x1400093d7
imul eax, ebp, 0x64
lea r8, str._I64u_s_02d
shr eax, 0xa
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_swprintf_s]
test eax, eax
jle 0x1400093a5
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
jne 0x1400093a5
lea r8, [rsp + 0xc0]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscat_s]
test eax, eax
je 0x1400093aa
mov ebx, 0x80004005
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14003b910
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str._I64u
call qword [sym.imp.msvcrt.dll_swprintf_s]
jmp 0x140009374