joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180121350
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1801214fe
push rbp
push rdi
push r14
sub rsp, 0x30
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdi, qword [rbp + 0x1f8]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x180121399
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801213a7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801213b5
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x1801213ef
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x180121406
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180121414
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x180121426
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180121434
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180121442
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.180120a80
mov rcx, qword [r14 + 0x238]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x1801214aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180100920
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1801211d0
mov rcx, qword [r14 + 0x238]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1801214f6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180100920
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x180122720
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x18040b070]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x748]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1801227bc
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.180134bb0
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xe8], rsi
cmp r8d, 4
jge 0x180122817
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.180100920
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180133f80
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rax, qword [rbx + 0x168]
movzx ecx, byte [rax]
movzx edx, byte [rax + 1]
shl ecx, 8
or edx, ecx
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x1801228a9
sub edx, 1
je 0x180122923
sub edx, 1
je 0x18012287d
cmp edx, 1
je 0x180122860
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x180172850]
call fcn.180100920
jmp 0x180122923
add r8d, 0xfffffffe
lea rdx, [rax + 2]
mov rcx, rbx
call fcn.180122450
test eax, eax
je 0x180122923
jmp 0x1801227e9
movzx ecx, byte [rax + 2]
lea rdx, [0x18016bf7c]
movzx eax, byte [rax + 3]
mov r8, qword [rbx + 0x168]
shl ecx, 8
add r8, 4
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rdi
call fcn.180100a20
jmp 0x180122923
cmp r8d, 4
jle 0x180122923
movzx ecx, byte [rax + 2]
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x180122923
lea eax, [r8 - 4]
mov edx, 1
mov r8, qword [rbx + 0x168]
mov rcx, r14
add r8, 4
movsxd r9, eax
call fcn.1801007a0
mov esi, eax
test eax, eax
je 0x180122902
mov edx, 5
mov rcx, rbx
call fcn.180123340
mov eax, esi
jmp 0x1801227e9
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.18010e200
mov rcx, r14
call fcn.18010e590
test eax, eax
je 0x1801227e7
mov edx, 5
mov rcx, rbx
call fcn.180123340
mov eax, Ordinal_46
jmp 0x1801227e9
Function at 0x180127640
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x18040b070]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.180144428
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1801276a6
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1801276a6
lea rcx, [rsp + 0x20]
call qword [case.0x1800f7b16.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180133f80
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180133f80
add rsp, 0x148
ret
jmp 0x180127640

Function at 0x1801276c0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x18040b070]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.180144428
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1801276a6
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1801276a6
lea rcx, [rsp + 0x20]
call qword [case.0x1800f7b16.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180133f80
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180133f80
add rsp, 0x148
ret
jmp 0x180127640

Function at 0x180130050
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x180130070
test rbx, rbx
je 0x18013008a
lea rcx, [rbx + rbx]
call qword [fcn.1801409e8]
jmp 0x180130097
lea rcx, [0x18015adea]
call qword [case.0x1800f7b16.0]
mov rdi, rax
test rax, rax
jne 0x1801300a7
lea eax, [rdi + 0x1b]
jmp 0x180130172
xor ecx, ecx
test rbx, rbx
je 0x1801300c4
nop
movzx eax, byte [rcx + rsi]
mov byte [rdi + rcx*2], al
mov byte [rdi + rcx*2 + 1], 0
inc rcx
cmp rcx, rbx
jb 0x1801300b0
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x18013015f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180130152
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbp + 0x10], eax
mov byte [rbp + 0x14], al
call qword [fcn.1801409e0]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180132a50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.1801409e8]
mov rdi, rax
test rax, rax
jne 0x180132a92
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x180132ad5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x180132b32
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x180132af0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x180132b73
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x180177c9a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x180177c9b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180132b40
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x180141c88
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180141c65
call fcn.1801382ac
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.18013815c
or eax, 0xffffffff
jmp 0x180141c82
sub dword [rcx + 0x10], 1
jns 0x180141c74
add rsp, 0x28
jmp fcn.18014f248
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x180141c44
Function at 0x18014f248
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18014f0e8
call fcn.1801382ac
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.18013815c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18014f0d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18014f0d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18014f11a
lock or dword [rax + 0x14], 0x10
jmp 0x18014f0d0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18014f137
mov rcx, qword [rbp + 0x10]
call fcn.18014f43c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18014daf8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18014a804
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18014f18e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x18014f0d0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18014f1fa
mov rcx, qword [rbp + 0x10]
call fcn.18014daf8
cmp eax, 0xffffffff
je 0x18014f1e1
mov rcx, qword [rbp + 0x10]
call fcn.18014daf8
cmp eax, 0xfffffffe
je 0x18014f1e1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18014daf8
movsxd rdi, eax
lea rsi, [0x18040da30]
mov rcx, rbx
sar rdi, 6
call fcn.18014daf8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18014f1e8
lea rax, [0x18040b500]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18014f1fa
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18014f230
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18014f22c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18014f22c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18014f0d3
jmp 0x18014f0a0
Function at 0x140001010
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbx
push rdi
push r12
push r14
sub rsp, 0x78
xor edi, edi
mov ebx, r8d
mov r14, r9
mov dword [rax - 0x50], 0x8004
mov r12, rdx
mov qword [rax - 0x48], rdi
xor r8d, r8d
mov dword [rax - 0x40], edi
lea r9d, [rdi + 0x18]
mov qword [rax - 0x38], rdi
xor edx, edx
mov dword [rax - 0x30], edi
lea rcx, [rax - 0x60]
mov dword [rax - 0x78], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000121d
mov qword [rsp + 0xa8], rbp
lea ecx, [rdi + 0x40]
lea ebp, [rbx + 0xc]
mov qword [rsp + 0xb0], rsi
mov edx, ebp
mov qword [rsp + 0x70], r15
mov r15, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400011fb
mov r8d, ebx
mov dword [rax], 0x208
lea rcx, [rax + 0xc]
mov dword [rax + 4], 0x6602
mov rdx, r12
mov dword [rax + 8], ebx
call fcn.14000b100
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x20], 0x100
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x1400011fb
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov edx, 0x8009
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400011f0
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
xor r9d, r9d
lea edx, [rdi + 5]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x1400011e5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, dword [rsp + 0xc0]
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400011e5
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0xa0]
xor r8d, r8d
mov dword [rsp + 0x20], edi
lea edx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400011e5
mov edx, dword [rsp + 0xa0]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400011e5
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0xa0]
mov r8, rax
mov dword [rsp + 0x20], edi
lea edx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0xc8]
mov r8d, 0x14
cmp dword [rsp + 0xa0], r8d
mov rdx, rbx
mov edi, eax
cmovb r8d, dword [rsp + 0xa0]
call fcn.14000b100
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r15, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov eax, edi
add rsp, 0x78
pop r14
pop r12
pop rdi
pop rbx
ret
Function at 0x1400033d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rbx, [0x140024ab0]
mov edi, 2
nop word [rax + rax]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x1400033fe
call rcx
add rbx, 8
sub rdi, 1
jne 0x1400033f0
mov rcx, qword [0x140030d80]
xor ebx, ebx
test rcx, rcx
je 0x140003423
call qword [sym.imp.msasn1.dll_ASN1_CloseDecoder]
mov qword [0x140030d80], rbx
mov rcx, qword [0x140030d78]
test rcx, rcx
je 0x14000343c
call qword [sym.imp.msasn1.dll_ASN1_CloseEncoder]
mov qword [0x140030d78], rbx
mov rcx, qword [0x140030d70]
test rcx, rcx
je 0x140003455
call qword [sym.imp.msasn1.dll_ASN1_CloseModule]
mov qword [0x140030d70], rbx
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [0x140030d98]
test rcx, rcx
je 0x14000346c
call fcn.14000e260
xor edx, edx
mov qword [0x140030d98], rbx
lea rcx, [0x1400034e0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 1
call fcn.14000df5c
mov rcx, rax
call fcn.14000e4e4
mov edx, dword [0x140031120]
mov ecx, eax
call fcn.14000e30c
mov ecx, 2
call fcn.14000df5c
mov rcx, rax
call fcn.14000e4e4
mov edx, dword [0x140031118]
mov ecx, eax
call fcn.14000e30c
mov ecx, dword [0x14003111c]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1400037f0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400038a3
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x140003893
mov edx, esi
mov qword [rsp + 0x38], rdi
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000387e
mov r8d, esi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
je 0x140003854
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rax
test rdi, rdi
je 0x14000387e
mov rcx, rdi
call fcn.1400038b0
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x38]
mov eax, ebx
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x38]
mov eax, 0xc0000001
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rsi, qword [rsp + 0x30]
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret
Function at 0x1400038b0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r14d, r14d
lea rdx, [rsp + 0x58]
mov r12d, r14d
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, r14d
mov r13d, r14d
mov r15, rax
test rax, rax
je 0x140003a3f
cmp dword [rsp + 0x58], esi
jle 0x140003a3f
mov rcx, qword [rax]
lea rdx, [0x14002906c]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
call fcn.14000a6e4
mov rcx, qword [r15]
mov rbp, rax
test rax, rax
je 0x140003978
mov rdx, rax
sub rdx, rcx
lea ecx, [r14 + 0x40]
sar rdx, 1
lea rdx, [rdx*2 + 2]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14000397b
mov rdx, qword [r15]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rdx + rdi*2], r12w
jne 0x140003941
mov rbx, rbp
mov rcx, rax
sub rbx, rdx
mov r8, rbx
sar r8, 1
add r8, r8
call fcn.14000b100
lea rcx, [rbx + 4]
sar rcx, 1
lea r13, [rbp + 4]
mov ecx, ecx
cmp rcx, rdi
cmovae r13, r14
jmp 0x14000397b
mov r13, rcx
movzx ebx, r14w
lea rbp, [0x140024ab0]
cmp bx, 2
jae 0x140003a19
movzx edi, bx
test rsi, rsi
je 0x1400039b1
mov rdx, qword [rbp + rdi*8]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.14000dbdc
test eax, eax
je 0x1400039b1
inc bx
jmp 0x140003986
test r13, r13
je 0x140003a19
movzx ebx, r14w
lea r14, [rdi*8]
add r14, rbp
mov rdx, qword [r14]
cmp bx, word [rdx + 0x18]
jae 0x140003a19
mov rdx, qword [rdx + 0x20]
movzx eax, bx
lea rcx, [rax + rax*2]
mov rdx, qword [rdx + rcx*8 + 8]
lea rbp, [rcx*8]
mov rcx, r13
call fcn.14000dbdc
xor edi, edi
test eax, eax
sete dil
test eax, eax
jne 0x140003a12
mov rax, qword [r14]
lea rdx, [r15 + 8]
mov ecx, dword [rsp + 0x58]
dec ecx
mov r8, qword [rax + 0x20]
call qword [r8 + rbp]
mov r12d, eax
inc bx
test edi, edi
je 0x1400039c5
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
test rsi, rsi
je 0x140003a36
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r12d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14000ffcc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000fd30
Function at 0x1400012fd
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400a2c00
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140135b90]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140135b88]
call fcn.1400a2520
mov rsi, rax
test rax, rax
je 0x1400a2c4c
mov rcx, rax
call fcn.140004ae3
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x1400a2c57
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001361
Capabilities:
Query environment variable

Disassembly:
jmp 0x140106260
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x140106334
mov rsi, rax
cmp word [rax], r14w
je 0x1401062b3
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14010629b
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x140106297
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x140106334
mov rcx, rbp
call fcn.140003576
mov rdi, rax
test rax, rax
je 0x140106327
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140106327
mov rsi, rdi
mov rdi, r14
jmp 0x14010632a
mov rsi, r14
mov rcx, rdi
call fcn.140008bf7
jmp 0x140106337
mov rsi, r14
test rbx, rbx
je 0x140106345
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000141a
Capabilities:
Check os version

Disassembly:
jmp 0x14006f6e4
sub rsp, 0x178
mov rax, qword [0x14016b098]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14006f7bd
mov eax, dword [rsp + 0x44]
sub eax, 5
je 0x14006f76d
cmp eax, 1
je 0x14006f732
mov dword [0x1401710b0], 6
jmp 0x14006f7a3
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14006f74b
cmp eax, 1
jne 0x14006f726
mov dword [0x1401710b0], 4
jmp 0x14006f7a3
mov dword [0x1401710b0], 3
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14000828d
add rsp, 0x178
ret
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14006f7d9
sub eax, 1
je 0x14006f793
cmp eax, 1
jne 0x14006f78b
mov dword [0x1401710b0], 2
jmp 0x14006f755
mov eax, dword [0x1401710b0]
jmp 0x14006f79e
mov eax, 1
mov dword [0x1401710b0], eax
cmp eax, 4
jl 0x14006f755
call fcn.140005029
call fcn.140003bc5
cmp dword [0x1401710b0], 6
jl 0x14006f755
call fcn.140005632
jmp 0x14006f755
lea rcx, [rsp + 0x20]
call fcn.140005173
lea rdx, [0x140169a30]
lea rcx, [rsp + 0x20]
call fcn.14000763a
int3
and dword [0x1401710b0], 0
lea rcx, [rsp + 0x20]
call fcn.140005173
lea rdx, [0x140169a30]
lea rcx, [rsp + 0x20]
call fcn.14000763a
int3