joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002aa9
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140118960
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1401189ed
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1401189ed
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401189ed
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1401189d4
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1401189ce
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1401189d6
add rdx, 0x28
jmp 0x1401189b3
xor edx, edx
test rdx, rdx
jne 0x1401189df
xor al, al
jmp 0x1401189f3
cmp dword [rdx + 0x24], 0
jge 0x1401189e9
xor al, al
jmp 0x1401189f3
mov al, 1
jmp 0x1401189f3
xor al, al
jmp 0x1401189f3
add rsp, 0x18
ret
Function at 0x14000365c
Capabilities:
Terminate process

Disassembly:
jmp 0x140119770
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003ec2
Capabilities:
Parse pe header

Disassembly:
jmp 0x14011a028
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011a073
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011a073
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011a073
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011a073
cmp dword [rcx + 0x84], 0xe
jbe 0x14011a073
cmp dword [rcx + 0xf8], 0
je 0x14011a073
mov al, 1
jmp 0x14011a075
xor al, al
add rsp, 0x28
ret

Function at 0x140003f94
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14003b6c0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402b0318]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx eax, word [0x140190170]
lea rdx, [rsp + 0x40]
movups xmm0, xmmword [str.SoftwareMicrosoftWindows_NTCurrentVersionWinPE]
mov word [rsp + 0x70], ax
xor ebx, ebx
movzx eax, byte [0x140190172]
mov r9d, 0x101
movups xmm1, xmmword [0x140190150]
mov byte [rsp + 0x72], al
lea rax, [rsp + 0x38]
movups xmmword [rsp + 0x40], xmm0
xor r8d, r8d
mov rcx, 0xffffffff80000002
movups xmm0, xmmword [0x140190160]
xor dil, dil
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x50], xmm1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14003b752
xor al, al
jmp 0x14003b792
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
lea rdx, str.Version
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
movzx ebx, dil
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400030c1
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x14000411f
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x14011c4d0
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x14011c50d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140002de2
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14011c60c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140002de2
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x14011c580
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140003dbe
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x14011c64b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x14011c64b
call fcn.14000308a
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x14011c632
mov rcx, r14
call fcn.14000308a
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x14003b6c0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14003b6c0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402b0318]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx eax, word [0x140190170]
lea rdx, [rsp + 0x40]
movups xmm0, xmmword [str.SoftwareMicrosoftWindows_NTCurrentVersionWinPE]
mov word [rsp + 0x70], ax
xor ebx, ebx
movzx eax, byte [0x140190172]
mov r9d, 0x101
movups xmm1, xmmword [0x140190150]
mov byte [rsp + 0x72], al
lea rax, [rsp + 0x38]
movups xmmword [rsp + 0x40], xmm0
xor r8d, r8d
mov rcx, 0xffffffff80000002
movups xmm0, xmmword [0x140190160]
xor dil, dil
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x50], xmm1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14003b752
xor al, al
jmp 0x14003b792
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
lea rdx, str.Version
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
movzx ebx, dil
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400030c1
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14003b7f0
Capabilities:
Get common file path

Disassembly:
jmp 0x14003b7f0
push rbx
sub rsp, 0x430
mov rax, qword [0x1402b0318]
xor rax, rsp
mov qword [rsp + 0x420], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
xor bl, bl
call sub.VCRUNTIME140.dll_memset
mov edx, 0x200
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14003b847
movzx eax, byte [rsp + 0x20]
mov ecx, 1
sub al, 0x58
test al, 0xdf
movzx eax, bl
cmove eax, ecx
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400030c1
add rsp, 0x430
pop rbx
ret
Function at 0x14009eb90
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
jmp 0x14009eb90
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rcx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QObject::constructor_class_QObject____ptr64____ptr64]
nop
lea rax, vtable.MainUIController.0
mov qword [rbx], rax
xor edi, edi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], rdi
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x68], rdi
mov qword [rbx + 0x70], rdi
mov qword [rbx + 0x78], rdi
mov qword [rbx + 0x80], rdi
mov qword [rbx + 0x88], rdi
mov qword [rbx + 0x90], rdi
mov qword [rbx + 0x98], rdi
mov qword [rbx + 0xa0], rdi
mov qword [rbx + 0xa8], rdi
mov qword [rbx + 0xb0], rdi
mov qword [rbx + 0xb8], rdi
mov qword [rbx + 0xc0], rdi
mov byte [rbx + 0xc8], dil
lea rcx, [rbx + 0xd0]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
nop
movabs rax, 0x8000000000000000
mov qword [rbx + 0xd8], rax
mov qword [rbx + 0xe0], rax
lea rcx, [rbx + 0xe8]
call qword [sym.imp.coreframe.dll_public:_void___cdecl_CommunAttribute::constructor_void____ptr64]
nop
mov ecx, 0x340
call fcn.1400012cb
mov qword [rsp + 0x60], rax
xor edx, edx
mov rcx, rax
call fcn.140002c48
nop
mov qword [rbx + 0x108], rax
lea rcx, [rbx + 0x110]
call qword [sym.imp.core7z.dll_public:_void___cdecl_FileSyncGuiData::constructor_void____ptr64]
nop
mov qword [rbx + 0x168], rdi
mov byte [rbx + 0x170], dil
lea rcx, [rbx + 0x178]
call fcn.140002c39
nop
mov dword [rsp + 0x28], 2
lea rax, str.1onNewRequestPlanSuccess__
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str.2newRequestPlanSuccess__
mov rdx, qword [rbx + 0x108]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QMetaObject::Connection___cdecl_QObject::connect_class_QObject_const____ptr64__char_const____ptr64__class_QObject_const____ptr64__char_const____ptr64__enum_Qt::ConnectionType_]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMetaObject::Connection::destructor_void____ptr64]
lea ecx, [rdi + 2]
call fcn.140004ec6
lea rcx, [rsp + 0x30]
call fcn.140003c88
nop
lea rcx, [rsp + 0x30]
call fcn.1400032f1
lea rcx, [rsp + 0x30]
call fcn.140001b86
mov byte [rbx + 0x170], al
lea rcx, [rsp + 0x30]
call fcn.140004dd6
mov ecx, dword [0x1402b2c90]
mov rax, qword gs:[0x58]
mov edx, 0x104
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1402b2aa0], eax
jg 0x14009ed78
lea rcx, [rbx + 0x178]
call fcn.140001bb8
cmp byte [0x1402b2a9c], 0
je 0x14009ed6a
xor edx, edx
lea rcx, [rbx + 0x178]
call fcn.140004723
nop
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rcx, [0x1402b2aa0]
call fcn.140004d4f
cmp dword [0x1402b2aa0], 0xffffffff
jne 0x14009ed46
call fcn.140001f1e
mov byte [0x1402b2a9c], al
lea rcx, [0x1402b2aa0]
call fcn.140004f7f
jmp 0x14009ed46
Function at 0x1400aa5c0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400aa5c0
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.140001c17
sub rsp, rax
mov rax, qword [0x1402b0318]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov rbx, rcx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
nop
mov dword [rsp + 0x34], 0xf003f
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x760]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall045CFCEA_A708_4B03_8D72_5D58ED056BDD
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400aa67d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString____ptr64____ptr64]
jmp 0x1400aa76a
mov dword [rsp + 0x30], 0x800
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x760]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.DisplayName
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400aa74c
lea rdx, [rbp + 0x760]
lea rcx, [0x1401989d0]
call fcn.140001285
mov dword [rsp + 0x30], 0x800
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.InstallLocation
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400aa74c
lea rdx, [rsp + 0x60]
lea rcx, [0x1401989d0]
call fcn.140001285
mov r8d, 0xffffffff
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromUtf16_unsigned_short_int_const____ptr64__int_]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400aa75c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString____ptr64____ptr64]
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rbx
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.1400030c1
mov rbx, qword [rsp + 0x1088]
add rsp, 0x1070
pop rbp
ret
Function at 0x14011c4d0
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x14011c4d0
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x14011c50d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140002de2
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14011c60c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140002de2
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x14011c580
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140003dbe
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x14011c64b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x14011c64b
call fcn.14000308a
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x14011c632
mov rcx, r14
call fcn.14000308a
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x140004e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140004ed0
cmp r11, r10
ja 0x140004f46
cmp r10, rdx
ja 0x140004f58
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140004ed2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140004eb0
jmp 0x140004f34
ja 0x140004eda
mov r11, r10
cmp rax, r8
jne 0x140004e74
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140004f10
mov rdi, r8
sub ecx, edx
jns 0x140004f2b
jmp 0x140004f36
cmp r8, rsi
je 0x140004f67
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140004f36
xor al, 1
cmp rdi, rsi
jne 0x140004ef0
jmp 0x140004f36
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140017ea0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140017c30
lea rcx, str.called__Option::unwrap____on_a__None__value__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140017cb0
int3

Function at 0x140005a9d
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.140005b8b
cmp eax, 0x1edab0ed
jne 0x140005ac5
mov r14, qword [rdi + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x140005b5d
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x140005b5f
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
mov rax, rcx
mov rdx, rax
inc rax
cmp byte [rdx], 0
jne 0x140005b2a
lea r15, [rbp + 1]
sub rdx, rcx
call fcn.140005b8b
cmp eax, esi
jne 0x140005b18
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x140005b7b
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x140005b5f
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:Usersdrishal.cargogitcheckouts_rust_syscalls_37fffce23c87cda7162451a_src_syscall_resolve.rs
mov rdx, rdi
call fcn.140017bb0
int3
Function at 0x140005b8b
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x140005bc7
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x140005ba6
inc r8
jmp 0x140005b93
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x140005ba1
ret

Function at 0x1400094c0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400028f0
cmp rax, rcx
je 0x1400094e5
cmp rdx, 4
jae 0x1400094e8
xor eax, eax
xor r8d, r8d
jmp 0x140009580
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400195a0]
movdqa xmm3, xmmword [0x1400195b0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140009510
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140009597
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140009580
ret
Function at 0x140010cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
test al, al
setne r8b
cmp r9b, 1
ja 0x140010d24
test al, al
jne 0x140010d09
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x140010d09
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
xor r11d, r11d
test r9b, r9b
jne 0x140010d00
cmp sil, 6
je 0x140010d00
mov r11d, 2
cmp rax, 2
jb 0x140010f0d
cmp r11, rax
jne 0x140010e57
xor eax, eax
xor r8d, r8d
xor eax, eax
xor r10d, r10d
add rax, r10
lea rsi, [r10 + r11]
inc rsi
cmp rsi, rax
sete al
movzx r10d, byte [r10 + r11]

Function at 0x140017620
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14001766a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001766a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001766a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001766a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001766a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001766c
xor al, al
add rsp, 0x28
ret
Function at 0x1400010e0
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x410
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140001293
xor eax, eax
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
xorps xmm1, xmm1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x20]
mov dword [rsp + 0x34], 6
lea r8, [rsp + 0x28]
lea rdx, str.http
lea rcx, str.api.ipify.org
lea rdi, [rax - 1]
movdqu xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14000128d
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x1400011cd
nop dword [rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400011bf
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400011c8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, 0xffffffffffffffff
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140001180
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
je 0x14000128d
xor r9d, r9d
lea rdx, str.GET___HTTP_1.1_r_nHost:_api.ipify.org_r_n_r_n
mov rcx, rdi
lea r8d, [r9 + 0x27]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140001284
xor r9d, r9d
lea rdx, [rsp + 0x200]
mov r8d, 0x200
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140001284
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str._r_n_r_n
lea rcx, [rsp + 0x200]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140001293
lea rcx, [rax + 4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rdi, rax
movzx eax, byte [rax]
test al, al
je 0x14000127f
mov rbx, rdi
nop
movsx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
jne 0x140001274
cmp byte [rbx], 0x2e
je 0x140001274
mov byte [rbx], al
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x140001260
mov rax, rdi
jmp 0x140001295
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.140002390
mov rbx, qword [rsp + 0x420]
add rsp, 0x410
pop rdi
ret