joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a8dcc
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 0x1800a8dfc
xor eax, eax
jmp 0x1800a8ebf
mov rbp, rbx
cmp word [rax], si
je 0x1800a8e21
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800a8e08
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800a8e04
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.1800a54d4
movsxd r14, eax
test eax, eax
jne 0x1800a8e5f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800a8df5
mov rcx, r14
call fcn.1800a2564
mov rdi, rax
test rax, rax
jne 0x1800a8e78
xor ecx, ecx
call fcn.1800a1884
jmp 0x1800a8e54
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.1800a54d4
test eax, eax
jne 0x1800a8ea9
mov rcx, rdi
call fcn.1800a1884
jmp 0x1800a8eb3
xor ecx, ecx
call fcn.1800a1884
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 0x1800a8edc
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 0x1800a8f63
mov rsi, rbx
cmp word [rax], bp
je 0x1800a8f22
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800a8f0c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800a8f08
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800a2564
mov rdi, rax
test rax, rax
je 0x1800a8f50
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800b1870
mov rbp, rdi
xor ecx, ecx
call fcn.1800a1884
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 0x1800a95d4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800a95f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18008eb14
or eax, 0xffffffff
jmp 0x1800a95f6
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800ac4b0
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.18009fb40
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 0x1800ac551
cmp ebx, dword [rsp + 0x30]
je 0x1800ac54a
test esi, esi
je 0x1800ac54a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800ac525
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800ac532
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800ac50f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800ac536
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800ac553
mov eax, 1
jmp 0x1800ac553
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800ae09c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800e8740]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1800ae0e6
call fcn.18008eb80
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.18008eba0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.180090f04
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180082a60
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1800ae0f1
lea eax, [rbx + 1]
jmp 0x1800ae0d3
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 0x1800ae0d1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1800ae0d3

Function at 0x1800afd00
Capabilities:
Parse pe header

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

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
lea rsi, [0x180045030]
mov ebp, 0x800
lea r8, str.._._._..._._._1
mov rcx, rsi
mov r9d, 0x1000
mov edx, ebp
call fcn.180019988
xor r14d, r14d
mov eax, r14d
xor byte [rax + rsi], 0x8a
inc rax
cmp rax, rbp
jl 0x18001989a
lea rcx, [rsp + 0x20]
mov r8d, ebp
mov rdx, rsi
call fcn.180014854
jmp 0x18001994a
lea rcx, [rsp + 0x20]
call fcn.180014900
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.180014900
mov rcx, qword [0x180050100]
movsx rdi, di
mov edx, ebx
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x180019934
dec edx
je 0x18001991d
dec edx
jne 0x18001994a
lea rcx, [rsp + 0x20]
movsx edx, ax
movsx rbx, ax
call fcn.18001489c
mov rcx, qword [0x180050100]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001d860
jmp 0x18001994a
lea rcx, [rsp + 0x20]
call fcn.180014864
mov rcx, qword [0x180050100]
mov dword [rdi + rcx + 8], eax
jmp 0x18001994a
lea rcx, [rsp + 0x20]
call fcn.180014900
mov rdx, qword [0x180050100]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.180014900
movzx edi, ax
test ax, ax
jg 0x1800198bb
mov r8, rbp
xor edx, edx
mov rcx, 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
jmp fcn.18001d470

Function at 0x180019988
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x1800199ce
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov ebx, edx
mov r11, rcx
xor r10d, r10d
movsxd rdi, r9d
mov eax, r10d
mov rcx, rdi
inc r10d
cdq
idiv r9d
movsxd rax, edx
sub rcx, rax
mov al, byte [rcx + r8 - 1]
xor byte [r11], al
inc r11
cmp r10d, ebx
jl 0x1800199a1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x1800199d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10d, r10d
mov ebx, edx
mov r11, rcx
test edx, edx
jle 0x1800199fd
mov eax, r10d
inc r10d
cdq
idiv r9d
movsxd rax, edx
mov cl, byte [rax + r8]
xor byte [r11], cl
inc r11
cmp r10d, ebx
jl 0x1800199e1
mov rbx, qword [rsp + 8]
ret
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400065e0]
mov dword [rax], 1
mov rax, qword [0x1400065f0]
mov dword [rax], 1
mov rax, qword [0x140006600]
mov dword [rax], 1
mov rax, qword [0x1400065a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400014fc
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001d30
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8d, 0x2b
mov edx, 1
lea rcx, str._n_n_Written_by:_Gerald_R._Tamayo__2005_2024_n
mov r9, rax
add rsp, 0x28
jmp sub.ucrtbase.dll_fwrite

Function at 0x140001d70
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov byte [0x14000c0f0], 0
mov qword [0x14000c0f8], 0
mov dword [0x14000c0d0], 0
mov dword [0x14000c0c0], 0
mov ecx, dword [0x140005034]
mov edx, 1
mov rbx, rcx
call sub.ucrtbase.dll_calloc
mov qword [0x14000c100], rax
test rax, rax
je 0x140001dc7
mov qword [0x14000c0f8], rax
add rsp, 0x20
pop rbx
ret
sub ebx, 0x400
mov dword [0x140005034], ebx
jne 0x140001d9b
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8d, 0x19
mov edx, 1
lea rcx, str._nmemory_allocation_error_
mov r9, rax
call sub.ucrtbase.dll_fwrite
xor ecx, ecx
call sub.ucrtbase.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001e10
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov byte [0x14000c0d4], 0
mov qword [0x14000c0e0], 0
mov qword [0x14000c0d8], 0
mov dword [0x14000c0cc], 0
mov ebx, dword [0x140005030]
mov rcx, rbx
mov rsi, rbx
call sub.ucrtbase.dll_malloc
mov qword [0x14000c0e8], rax
mov rcx, rax
test rax, rax
je 0x140001e95
mov r9, qword [0x14000c110]
mov r8, rbx
mov edx, 1
mov qword [0x14000c0e0], rax
call sub.ucrtbase.dll_fread
mov dword [0x14000c0cc], eax
mov eax, eax
add rax, qword [0x14000c0e8]
mov qword [0x14000c0d8], rax
add rsp, 0x28
pop rbx
pop rsi
ret
sub esi, 0x400
mov dword [0x140005030], esi
jne 0x140001e3d
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8d, 0x19
mov edx, 1
lea rcx, str._nmemory_allocation_error_
mov r9, rax
call sub.ucrtbase.dll_fwrite
xor ecx, ecx
call sub.ucrtbase.dll_exit
nop

Function at 0x140001f30
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov edx, dword [0x14000c0d0]
movzx eax, byte [0x14000c0f0]
test edx, edx
jne 0x140001f49
test al, al
je 0x140001fa8
cmp al, 1
mov r9, qword [0x14000c108]
mov rcx, qword [0x14000c0f8]
mov r8d, 1
sbb edx, 0xffffffff
call sub.ucrtbase.dll_fwrite
mov rcx, qword [0x14000c0f8]
xor edx, edx
mov r8d, dword [0x140005034]
mov dword [0x14000c0d0], 0
mov qword [0x14000c100], rcx
mov byte [0x14000c0f0], 0
mov dword [0x14000c0c0], 0
add rsp, 0x28
jmp sub.ucrtbase.dll_memset
add rsp, 0x28
ret

Function at 0x140001fb0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14000c0cc]
test eax, eax
je 0x140002060
mov rdx, qword [0x14000c0e8]
movzx ecx, byte [0x14000c0d4]
movzx eax, byte [rdx]
lea r8d, [rcx + 1]
mov byte [0x14000c0d4], r8b
sar eax, cl
and eax, 1
mov dword [0x14000c0c8], eax
cmp r8b, 8
je 0x140001ff8
add rsp, 0x28
ret
add rdx, 1
cmp rdx, qword [0x14000c0d8]
mov byte [0x14000c0d4], 0
mov qword [0x14000c0e8], rdx
jne 0x140001fef
mov rcx, qword [0x14000c0e0]
mov r9, qword [0x14000c110]
mov edx, 1
mov r8d, dword [0x140005030]
mov qword [0x14000c0e8], rcx
call sub.ucrtbase.dll_fread
mov dword [0x14000c0cc], eax
mov eax, eax
add rax, qword [0x14000c0e8]
mov qword [0x14000c0d8], rax
mov eax, dword [0x14000c0c8]
jmp 0x140001fef
mov eax, 0xffffffff
jmp 0x140001fef

Function at 0x140002100
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000c100]
lea rdx, [rax + 1]
mov qword [0x14000c100], rdx
mov byte [rax], cl
mov eax, dword [0x14000c0d0]
lea edx, [rax + 1]
cmp edx, dword [0x140005034]
mov dword [0x14000c0d0], edx
je 0x140002138
add rsp, 0x28
ret
mov r9, qword [0x14000c108]
mov rcx, qword [0x14000c0f8]
mov r8d, 1
call sub.ucrtbase.dll_fwrite
mov r8d, dword [0x140005034]
add dword [0x14000c0c0], r8d
xor edx, edx
mov rcx, qword [0x14000c0f8]
mov dword [0x14000c0d0], 0
mov qword [0x14000c100], rcx
add rsp, 0x28
jmp sub.ucrtbase.dll_memset
Function at 0x140002190
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdx, qword [0x14000c0e8]
movzx ebp, byte [0x14000c0d4]
mov eax, 8
movzx esi, byte [rdx]
sub eax, ebp
mov ebx, ecx
mov ecx, ebp
sar esi, cl
cmp eax, ebx
jg 0x140002230
add rdx, 1
sub ebx, eax
cmp rdx, qword [0x14000c0d8]
mov byte [0x14000c0d4], 0
mov qword [0x14000c0e8], rdx
je 0x1400022e0
test ebx, ebx
je 0x140002250
mov edi, 8
sub edi, ebp
mov ebp, ebx
and ebp, 0xfffffff8
add ebp, edi
nop dword [rax]
movzx eax, byte [rdx]
mov ecx, edi
shl eax, cl
or esi, eax
cmp edi, ebp
je 0x1400022c0
add rdx, 1
sub ebx, 8
add edi, 8
cmp rdx, qword [0x14000c0d8]
mov qword [0x14000c0e8], rdx
je 0x140002260
test ebx, ebx
jne 0x1400021f0
mov ecx, 0x20
movzx eax, byte [0x14000c0d4]
sub ecx, edi
jmp 0x14000223b
mov ecx, 0x20
lea eax, [rbp + rbx]
sub ecx, ebx
shl esi, cl
mov byte [0x14000c0d4], al
mov eax, esi
shr eax, cl
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx eax, byte [0x14000c0d4]
lea ecx, [rbp + 0x18]
jmp 0x14000223b
mov rcx, qword [0x14000c0e0]
mov r9, qword [0x14000c110]
mov edx, 1
mov r8d, dword [0x140005030]
mov qword [0x14000c0e8], rcx
call sub.ucrtbase.dll_fread
mov rdx, qword [0x14000c0e8]
mov dword [0x14000c0cc], eax
mov eax, eax
add rax, rdx
mov qword [0x14000c0d8], rax
test ebx, ebx
je 0x14000221f
movzx eax, byte [rdx]
mov ecx, edi
shl eax, cl
or esi, eax
cmp edi, ebp
jne 0x140002201
nop dword [rax + rax]
movzx eax, byte [0x14000c0d4]
mov ecx, 0x20
sub ecx, edi
add eax, ebx
sub ecx, ebx
jmp 0x14000223b
mov rcx, qword [0x14000c0e0]
mov r9, qword [0x14000c110]
mov edx, 1
mov r8d, dword [0x140005030]
mov qword [0x14000c0e8], rcx
call sub.ucrtbase.dll_fread
mov rdx, qword [0x14000c0e8]
mov dword [0x14000c0cc], eax
mov eax, eax
add rax, rdx
mov qword [0x14000c0d8], rax
jmp 0x1400021db
Function at 0x140002820
Capabilities:
Terminate process
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [0x140005048]
mov dword [0x1400131a0], 0
test eax, eax
je 0x140002982
mov rsi, qword [0x140012980]
mov byte [rsp + 0x2f], 0
xor ebp, ebp
pxor xmm0, xmm0
lea rcx, [0x1400129a0]
lea r13, [0x14000c140]
mov byte [rsp + 0x2e], 0
mov r9d, dword [0x14000c120]
mov qword [rsp + 0x20], rsi
lea r15, [r13 + 8]
lea rsi, [rcx + rax*8]
mov rdi, qword [0x140012990]
xor eax, eax
lea r14, [0x140012180]
jmp 0x1400028a5
add rcx, 8
cmp rcx, rsi
je 0x140002957
mov r8d, dword [rcx + 4]
test r8d, r8d
je 0x140002898
cmp r9d, 0x200
ja 0x1400029d0
lea rax, [r9 + r9*2]
lea r12d, [r9 + 1]
xor r11d, r11d
shl rax, 4
lea r10, [r13 + rax]
mov dword [r10], 0
mov qword [r10 + 8], 0
movups xmmword [r15 + rax + 0x10], xmm0
movzx ebx, byte [rcx]
mov rax, rdi
mov qword [r10 + 0x28], 0
mov dword [r10 + 0x10], r8d
mov dword [r10 + 0x14], ebx
test rdi, rdi
jne 0x14000291b
jmp 0x1400029b0
mov rdx, qword [rax + 8]
mov r11, rax
test rdx, rdx
je 0x1400029a0
mov rax, rdx
cmp dword [rax + 0x10], r8d
jb 0x140002908
test r11, r11
jne 0x140002993
mov byte [rsp + 0x2e], 1
mov rdi, r10
lea rdx, [r9 + r9*2]
shl rdx, 4
mov qword [r13 + rdx + 8], rax
add rcx, 8
mov qword [r14 + rbx*8], r10
add ebp, 1
mov r9d, r12d
mov eax, 1
cmp rcx, rsi
jne 0x1400028a5
test al, al
je 0x140002a26
cmp byte [rsp + 0x2f], 0
mov dword [0x1400131a0], ebp
jne 0x140002a7d
cmp byte [rsp + 0x2e], 0
jne 0x140002a94
mov dword [0x14000c120], r9d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, rax
mov rax, r11
nop dword [rax]
mov qword [rax + 8], r10
mov rax, rdx
jmp 0x14000292e
cmp qword [rsp + 0x20], 0
je 0x140002a48
mov byte [rsp + 0x2e], 1
mov rdi, r10
jmp 0x14000293b
test al, al
je 0x140002aa0
cmp byte [rsp + 0x2f], 0
mov dword [0x1400131a0], ebp
jne 0x140002a57
cmp byte [rsp + 0x2e], 0
je 0x1400029f3
mov qword [0x140012990], rdi
mov dword [0x14000c120], r9d
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8d, 0x1c
mov edx, 1
lea rcx, str._nMemory_allocation_error____n
mov r9, rax
call sub.ucrtbase.dll_fwrite
xor ecx, ecx
call sub.ucrtbase.dll_exit
cmp byte [rsp + 0x2f], 0
jne 0x140002a65
cmp byte [rsp + 0x2e], 0
je 0x140002982
mov qword [0x140012990], rdi
jmp 0x140002982
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x2f], 1
jmp 0x1400029bc
mov rax, qword [rsp + 0x20]
mov qword [0x140012980], rax
jmp 0x1400029e5
mov rax, qword [rsp + 0x20]
cmp byte [rsp + 0x2e], 0
mov qword [0x140012980], rax
jne 0x140002a38
jmp 0x140002982
mov rax, qword [rsp + 0x20]
cmp byte [rsp + 0x2e], 0
mov qword [0x140012980], rax
je 0x14000297b
mov qword [0x140012990], rdi
jmp 0x14000297b
cmp byte [rsp + 0x2f], 0
jne 0x140002abe
cmp byte [rsp + 0x2e], 0
je 0x1400029fa
mov qword [0x140012990], rdi
jmp 0x1400029fa
mov rax, qword [rsp + 0x20]
cmp byte [rsp + 0x2e], 0
mov qword [0x140012980], rax
jne 0x140002ab2
jmp 0x1400029fa
Function at 0x140003280
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.ucrtbase.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400045e0
call sub.ucrtbase.dll_abort
nop

Function at 0x140003f52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140013288]
test eax, eax
je 0x140003fea
lea rax, [0x140013260]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140013290]
mov qword [rbp - 8], rax
jmp 0x140003fce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140003fc2
cmp qword [rbp - 0x10], 0
je 0x140003fc2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140003f88
lea rax, [0x140013260]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140003feb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400040f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140004118
mov eax, 0
jmp 0x140004166
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140004141
mov eax, 0
jmp 0x140004166
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140004161
mov eax, 0
jmp 0x140004166
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000416c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400041ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400041e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400041e1
mov rax, qword [rbp - 8]
jmp 0x1400041ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400041b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
lea r8, [0x14005bc50]
mov r9d, edx
mov r10d, 8
mov ecx, r9d
mov eax, r9d
shr ecx, 1
mov r9d, ecx
xor r9d, 0xedb88320
test al, 1
cmove r9d, ecx
sub r10, 1
jne 0x140001152
mov dword [r8], r9d
inc edx
add r8, 4
cmp edx, 0x100
jb 0x140001149
mov byte [0x14005bc48], 1
ret

Function at 0x14000118c
Capabilities:
Parse url

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov rbx, rcx
mov esi, 0x68
lea rcx, [rbp - 0x49]
mov r8d, esi
xor edx, edx
call fcn.14001f140
xorps xmm0, xmm0
mov dword [rbp - 0x49], esi
xor eax, eax
mov dword [rbp - 0x29], 1
movups xmmword [rdi], xmm0
mov rcx, rbx
mov qword [rdi + 0x10], rax
mov dword [rbp + 7], 1
mov dword [rbp + 0x17], 1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rbp - 0x49]
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
xor esi, esi
test eax, eax
je 0x14000132e
mov ecx, dword [rbp - 0x29]
lea eax, [rsi + 2]
inc ecx
lea r13, [rsi - 1]
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1400234c4
mov qword [rdi], rax
test rax, rax
je 0x14000132a
mov rdx, qword [rbp - 0x31]
test rdx, rdx
je 0x14000125d
mov r8d, dword [rbp - 0x29]
mov rcx, rax
add r8, r8
call fcn.14001f540
mov ecx, dword [rbp - 0x29]
mov rax, qword [rdi]
mov word [rax + rcx*2], si
mov ecx, dword [rbp + 7]
mov r15d, 0x2f
test ecx, ecx
je 0x14000128a
mov rax, qword [rbp - 1]
test rax, rax
je 0x14000128a
cmp word [rax], r15w
jne 0x14000128a
dec ecx
add rax, 2
mov dword [rbp + 7], ecx
mov qword [rbp - 1], rax
test ecx, ecx
jne 0x14000126e
mov ebx, dword [rbp + 0x17]
mov eax, 2
inc ebx
add ebx, ecx
lea ecx, [rbx + 1]
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1400234c4
mov qword [rdi + 8], rax
test rax, rax
je 0x1400012fd
mov word [rax], r15w
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x1400012d2
mov r8d, dword [rbp + 7]
mov rcx, qword [rdi + 8]
add r8, r8
add rcx, 2
call fcn.14001f540
mov rdx, qword [rbp + 0xf]
test rdx, rdx
je 0x1400012f5
mov ecx, dword [rbp + 7]
mov rax, qword [rdi + 8]
inc rcx
mov r8d, dword [rbp + 0x17]
add r8, r8
lea rcx, [rax + rcx*2]
call fcn.14001f540
mov rax, qword [rdi + 8]
mov word [rax + rbx*2], si
mov eax, dword [rbp + 7]
mov ecx, dword [rbp - 0x35]
inc eax
mov dword [rdi + 0x10], eax
movzx eax, word [rbp - 0x25]
mov word [rdi + 0x14], ax
sub ecx, 3
je 0x140001326
cmp ecx, 1
je 0x140001320
mov byte [rdi + 0x16], sil
jmp 0x14000132a
mov byte [rdi + 0x16], 2
jmp 0x14000132a
mov byte [rdi + 0x16], 1
mov al, 1
jmp 0x140001330
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001c2c0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret