joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000d260
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x40], 0x2000
mov rcx, qword [rsp + 0x40]
call fcn.18001fa38
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18000d2d6
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
jne 0x18000d2f3
lea rcx, str.EnumProcessModulesEx_failed
call fcn.180003370
mov rcx, qword [rsp + 0x38]
call fcn.18001fa40
xor eax, eax
jmp 0x18000d403
mov dword [rsp + 0x30], 0
jmp 0x18000d307
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov ecx, dword [rsp + 0x68]
xor edx, edx
mov eax, ecx
mov ecx, 8
div rcx
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
jae 0x18000d3f7
movsxd rax, dword [rsp + 0x30]
mov r9d, 0x104
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
jne 0x18000d368
lea rcx, str.GetModuleBaseName_failed
call fcn.180003370
jmp 0x18000d2fd
mov rdx, qword [rsp + 0x2a8]
lea rcx, [rsp + 0x70]
call fcn.180021708
test eax, eax
jne 0x18000d3f2
movsxd rax, dword [rsp + 0x30]
mov r9d, 0x18
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x18000d3c3
lea rcx, str.GetModuleInformation_failed
call fcn.180003370
mov rcx, qword [rsp + 0x38]
call fcn.18001fa40
xor eax, eax
jmp 0x18000d403
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x2b8]
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x38]
call fcn.18001fa40
mov eax, 1
jmp 0x18000d403
jmp 0x18000d2fd
mov rcx, qword [rsp + 0x38]
call fcn.18001fa40
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.18000da20
add rsp, 0x298
ret

Function at 0x180029648
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18002965e
mov al, 1
jmp 0x1800296be
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18002966f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800296bc
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002f694
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800296bc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800296bc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800296bc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800296be
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18002acdc
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.180036d90
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180026bbc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002ad2b
mov rax, rbp
jmp 0x18002ae33
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4d550]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002a918
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x4d550]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002ae2f
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 0x18002ae2f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002a918
test rax, rax
js 0x18002ae2f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002ae2f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002ae21
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002ae21
cmp byte [rcx], 0xd
jne 0x18002ae07
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002ae16
cmp byte [rcx + 1], 0xa
jne 0x18002ae16
inc rcx
jmp 0x18002ae16
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4b490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002ade9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002ae33
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000da20
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 0x18002af5c
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, [0x18004d550]
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 0x18002afb3
cmp word [rdx], r13w
jne 0x18002afb3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002afb8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18002b0dd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18002b0fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18002aff1
mov rdx, r9
mov word [rbx], cx
jmp 0x18002b018
cmp r9, r8
jae 0x18002b028
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 0x18002afd2
jmp 0x18002b0dd
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 0x18002b0d2
cmp dword [rsp + 0x80], esi
je 0x18002b0d2
lea r8, [0x18004d550]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002b0aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18002b07a
mov word [rbx], r13w
jmp 0x18002b0da
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 0x18002b087
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002b0da
cmp word [rsp + 0x70], r13w
jne 0x18002b0b7
cmp rbx, r14
je 0x18002b074
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002a920
cmp word [rsp + 0x70], r13w
je 0x18002b0dd
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, [0x18004d550]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002b0d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18002b0dd
Function at 0x18002d570
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 0x18002d5a0
xor eax, eax
jmp 0x18002d663
mov rbp, rbx
cmp word [rax], si
je 0x18002d5c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002d5ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002d5a8
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.1800290b8
movsxd r14, eax
test eax, eax
jne 0x18002d603
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002d599
mov rcx, r14
call fcn.1800258bc
mov rdi, rax
test rax, rax
jne 0x18002d61c
xor ecx, ecx
call fcn.180024bb4
jmp 0x18002d5f8
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.1800290b8
test eax, eax
jne 0x18002d64d
mov rcx, rdi
call fcn.180024bb4
jmp 0x18002d657
xor ecx, ecx
call fcn.180024bb4
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 0x18003349c
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.180027298
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 0x18003353d
cmp ebx, dword [rsp + 0x30]
je 0x180033536
test esi, esi
je 0x180033536
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180033511
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18003351e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800334fb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180033522
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18003353f
mov eax, 1
jmp 0x18003353f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180036428
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.18002a920
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18002a920
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180036578
cmp rax, 0xffffffffffffffff
je 0x180036578
xor edi, edi
test rbp, rbp
jle 0x180036523
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180024b3c
mov rbx, rax
test rax, rax
jne 0x1800364b0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180036519
mov edx, 0x8000
mov ecx, r14d
call fcn.1800362ac
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.18002a3a8
cmp eax, 0xffffffff
je 0x1800364f9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800364c0
mov edx, r15d
mov ecx, r14d
call fcn.1800362ac
jmp 0x180036519
cmp byte [rsi + 0x38], dil
je 0x180036510
cmp dword [rsi + 0x34], 5
jne 0x180036510
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180036519
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180024bb4
jmp 0x18003658c
jns 0x18003658c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18002a920
cmp rax, 0xffffffffffffffff
jne 0x180036544
cmp byte [rsi + 0x30], dil
je 0x18003658c
mov edi, dword [rsi + 0x2c]
jmp 0x18003658c
mov ecx, r14d
call fcn.18002f694
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003658c
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 0x18003658c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180036585
mov eax, dword [rsi + 0x2c]
jmp 0x18003658a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18002a920
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 0x180036e80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180036ea8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180036ea8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1406bd658
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406bd7df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406bd689
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd66f
add dl, dl
jne 0x1406bd696
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd6f6
xor eax, eax
add dl, dl
jne 0x1406bd6a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd7ad
add dl, dl
jne 0x1406bd6b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd6c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd6d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd6dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406bd6ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406bd67e
mov eax, 1
add dl, dl
jne 0x1406bd706
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd713
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd6fb
sub eax, ebx
mov ebx, 1
jne 0x1406bd74c
mov ecx, 1
add dl, dl
jne 0x1406bd72e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406bd73b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd723
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd67e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406bd768
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406bd775
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd75d
cmp eax, 0x7d00
jae 0x1406bd79b
cmp eax, 0x500
jb 0x1406bd796
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd67e
cmp eax, 0x7f
ja 0x1406bd79e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd67e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406bd7d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406bd67e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180757058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1807571df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180757089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18075706f
add dl, dl
jne 0x180757096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807570f6
xor eax, eax
add dl, dl
jne 0x1807570a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807571ad
add dl, dl
jne 0x1807570b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807570c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807570d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807570dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807570ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18075707e
mov eax, 1
add dl, dl
jne 0x180757106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180757113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807570fb
sub eax, ebx
mov ebx, 1
jne 0x18075714c
mov ecx, 1
add dl, dl
jne 0x18075712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18075713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180757123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18075707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180757168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180757175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18075715d
cmp eax, 0x7d00
jae 0x18075719b
cmp eax, 0x500
jb 0x180757196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18075707e
cmp eax, 0x7f
ja 0x18075719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18075707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807571d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18075707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x10000124c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.100001180
add rsp, 0x28
jmp 0x100001270
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [section..data], rdi
jne 0x10000169f
mov eax, dword [0x100003014]
cmp eax, 1
je 0x1000016bf
mov eax, dword [0x100003014]
cmp eax, ebx
jne 0x1000016d6
mov dword [0x100003014], 1
lea r13, [0x100002168]
lea rdi, [0x100002150]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000131c
cmp eax, ebx
jne 0x10000131c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x100001311
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1000012fa
cmp eax, ebx
jne 0x1000016cc
mov eax, dword [0x100003014]
cmp eax, 1
jne 0x10000134c
lea rdx, [0x100002148]
lea rcx, [0x100002138]
call fcn.100154000
mov dword [0x100003014], 2
cmp r12d, ebx
jne 0x10000135b
mov rax, rbx
xchg qword [section..data], rax
cmp qword [0x1000035d8], rbx
jne 0x1000016e5
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x10000170e
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [rcx], 0x20
jbe 0x1000013ab
cmp word [rcx], 0x22
je 0x100001741
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100001390
cmp word [rcx], bx
je 0x1000013b4
cmp edx, ebx
jne 0x100001396
cmp word [rcx], bx
je 0x1000013ca
cmp word [rcx], 0x20
ja 0x1000013ca
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1000013b4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100001400
nop
jmp 0x100001715
cmp rax, rdi
jne 0x1000016af
mov r12d, 1
jmp 0x1000012ba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000012a9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x100001324
mov eax, 0xff
jmp 0x100001780
mov dword [0x1000036e4], 1
jmp 0x100001324
lea rcx, [0x1000035d8]
call fcn.1000018fc
cmp eax, ebx
je 0x100001368
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1000035d8]
nop
jmp 0x100001368
mov eax, 0xff
jmp 0x100001780
mov dword [0x1000036e0], eax
cmp dword [0x100003008], ebx
jne 0x10000172b
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000036e4], ebx
jne 0x10000173f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000036e0]
jmp 0x100001780
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x1000013a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x193ccb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x193ccbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x193cccd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x193ccb5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x193cce5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x193ccd2
sub eax, 3
jb 0x193ccff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x193cd36
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x193cd26
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x193cd24
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x193cd13
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.0193cc72
jmp 0x193ccbd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1522000]
mov eax, dword [rdi]
or eax, eax
je 0x193cd92
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x153c000]
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 0x193cd42
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 0x193cd8c
mov qword [rbx], rax
add rbx, 8
jmp 0x193cd62
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 0x193cdd6
cmp al, 0xef
ja 0x193cdbe
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x193cd9e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x193cdad
mov eax, dword [rdi]
add rdi, 4
jmp 0x193cdad
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 + 0x1af]
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 0x193ce2a
sub rsp, 0xffffffffffffff80
jmp 0x47ac40
Function at 0x1400037f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x28], Ordinal_79
mov byte [rsp + 0x29], 0x45
mov byte [rsp + 0x2a], 0x52
mov byte [rsp + 0x2b], Ordinal_79
mov byte [rsp + 0x2c], 0x45
mov byte [rsp + 0x2d], Ordinal_79
mov byte [rsp + 0x2e], 0x33
mov byte [rsp + 0x2f], reloc.WLDAP32.dll_Ordinal_50
mov byte [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_46
mov byte [rsp + 0x31], 0x64
mov byte [rsp + 0x32], WSASetLastError
mov byte [rsp + 0x33], WSASetLastError
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x14008e5d4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x50]
call qword [rsp + reloc.WLDAP32.dll_Ordinal_32]
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007c450
add rsp, 0x48
ret
Function at 0x1400043f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x58]
call fcn.140001880
nop
mov edx, Ordinal_41
lea rcx, [rsp + 0x78]
call fcn.1400043b0
mov r8d, 1
lea rdx, str.country_:__CN_
lea rcx, [rsp + 0x78]
call fcn.140008c80
nop
mov edx, reloc.WS2_32.dll_WSASetLastError
lea rcx, [rsp + 0xa0]
call fcn.1400043b0
lea rcx, [rsp + 0xa0]
call fcn.140008bc0
nop
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x138]
call fcn.14000bdb0
movzx eax, al
test eax, eax
je 0x1400044cf
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xa0]
call fcn.140008b70
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.140009800
lea rcx, [rsp + 0x38]
call fcn.140001780
jmp 0x1400044e0
lea rdx, [0x14008e5d3]
lea rcx, [rsp + 0x58]
call fcn.140009780
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x130]
call fcn.1400017b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0xa0]
call fcn.1400043d0
nop
lea rcx, [rsp + 0x78]
call fcn.140008c40
nop
lea rcx, [rsp + 0x58]
call fcn.140001780
nop
mov rcx, qword [rsp + 0x138]
call fcn.140001780
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14007c450
add rsp, 0x128
ret