joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400480b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
mov rbx, rdx
xor eax, eax
lea rdx, [0x14007fd60]
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x30], xmm0
mov rdi, r9
xor esi, esi
movups xmmword [rsp + 0x40], xmm0
call fcn.140003f10
mov r8, rbx
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400482e3
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400482e3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x1400482e3
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1400482e3
mov rcx, qword [rdi + 0x10]
lea r15, [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
movsxd rbp, eax
lea rbx, [rbp + 1]
cmp rbx, rcx
ja 0x14004817d
mov rax, rdi
cmp rdx, 0x10
jb 0x140048177
mov rax, qword [rdi]
mov byte [rax + rbx], sil
jmp 0x1400481c1
mov rax, rdx
sub rbx, rcx
sub rax, rcx
cmp rbx, rax
ja 0x1400481b3
mov rax, rdi
cmp rdx, 0x10
jb 0x140048197
mov rax, qword [rdi]
lea r14, [rax + rcx]
test rbx, rbx
je 0x1400481ad
mov r8, rbx
xor edx, edx
mov rcx, r14
call fcn.1400141d0
mov byte [r14 + rbx], sil
jmp 0x1400481c1
mov r9, rbx
mov rdx, rbx
mov rcx, rdi
call fcn.140006140
cmp qword [rdi + 0x18], 0x10
mov rax, rdi
jb 0x1400481ce
mov rax, qword [rdi]
mov qword [r15], rsi
mov byte [rax], sil
mov r14, qword [rdi + 0x18]
cmp rbp, r14
ja 0x140048200
cmp r14, 0x10
jb 0x1400481e6
mov rdi, qword [rdi]
mov r8, rbp
mov qword [r15], rbp
mov rdx, r12
mov rcx, rdi
call fcn.140013b20
mov byte [rdi + rbp], sil
jmp 0x1400482de
movabs rbx, 0x7fffffffffffffff
cmp rbp, rbx
ja 0x140048304
mov rcx, rbp
or rcx, 0xf
cmp rcx, rbx
ja 0x140048259
mov rdx, r14
mov rax, rbx
shr rdx, 1
sub rax, rdx
cmp r14, rax
ja 0x140048259
lea rax, [rdx + r14]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rax, [rbx + 1]
cmp rax, 0x1000
jb 0x14004827f
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x14004830a
jmp 0x140048263
movabs rcx, 0x8000000000000027
call fcn.140011ab8
test rax, rax
je 0x140048310
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14004828f
test rax, rax
je 0x14004828f
mov rcx, rax
call fcn.140011ab8
mov rsi, rax
mov r8, rbp
mov qword [r15], rbp
mov rdx, r12
mov qword [rdi + 0x18], rbx
mov rcx, rsi
call fcn.140013b20
mov byte [rsi + rbp], 0
cmp r14, 0x10
jb 0x1400482db
mov rcx, qword [rdi]
lea rdx, [r14 + 1]
cmp rdx, 0x1000
jb 0x1400482d6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140048310
mov rcx, r8
call fcn.140011ab0
mov qword [rdi], rsi
mov esi, 1
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call fcn.14000235c
int3
call fcn.140001814
int3
call fcn.14001828c
int3
Function at 0x14004aee0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rdx
mov rdi, rcx
je 0x14004afe8
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x14004af0f
mov rcx, qword [rcx]
lea rdx, [0x14007fce0]
call fcn.1400202ec
mov rbp, rax
test rax, rax
je 0x14004b118
xor r14d, r14d
lea rdx, [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x50], r14
call fcn.140021d54
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbp
call fcn.14002144c
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140021d54
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.140021e80
mov r14d, dword [rsp + 0x50]
mov ecx, r14d
call fcn.140011b20
mov r8d, r14d
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.1400141d0
mov r9, rbp
mov r8d, 1
mov edx, r14d
mov rcx, rsi
call fcn.1400209ac
mov rcx, rbp
call fcn.14001f884
cmp qword [rdi + 0x38], 0
je 0x14004afcd
cmp qword [rdi + 0x40], 0x10
lea rcx, [rdi + 0x28]
jb 0x14004afb2
mov rcx, qword [rcx]
mov r9, rbx
mov r8, r14
mov rdx, rsi
call fcn.140056d70
mov rcx, rsi
call fcn.140011ab0
jmp 0x14004b118
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.140003bf0
mov rcx, rsi
call fcn.140011ab0
jmp 0x14004b118
mov rsi, qword [rcx + 0x58]
test rsi, rsi
je 0x14004b118
cmp qword [rcx + 0x60], 0x10
lea r15, [rcx + 0x48]
jb 0x14004b003
mov r15, qword [r15]
mov rbp, qword [rdx + 0x18]
cmp rsi, rbp
ja 0x14004b033
mov rdi, rbx
cmp rbp, 0x10
jb 0x14004b018
mov rdi, qword [rdx]
mov qword [rdx + 0x10], rsi
mov r8, rsi
mov rdx, r15
mov rcx, rdi
call fcn.140013b20
mov byte [rdi + rsi], 0
jmp 0x14004b118
movabs rdi, 0x7fffffffffffffff
cmp rsi, rdi
ja 0x14004b12d
mov rcx, rsi
or rcx, 0xf
cmp rcx, rdi
ja 0x14004b08c
mov rdx, rbp
mov rax, rdi
shr rdx, 1
sub rax, rdx
cmp rbp, rax
ja 0x14004b08c
lea rax, [rdx + rbp]
mov rdi, rcx
cmp rcx, rax
cmovb rdi, rax
lea rax, [rdi + 1]
cmp rax, 0x1000
jb 0x14004b0b2
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x14004b133
jmp 0x14004b096
movabs rcx, 0x8000000000000027
call fcn.140011ab8
test rax, rax
je 0x14004b139
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14004b0c7
test rax, rax
je 0x14004b0c4
mov rcx, rax
call fcn.140011ab8
mov r14, rax
jmp 0x14004b0c7
xor r14d, r14d
mov r8, rsi
mov qword [rbx + 0x10], rsi
mov rdx, r15
mov qword [rbx + 0x18], rdi
mov rcx, r14
call fcn.140013b20
mov byte [r14 + rsi], 0
cmp rbp, 0x10
jb 0x14004b115
mov rcx, qword [rbx]
lea rdx, [rbp + 1]
cmp rdx, 0x1000
jb 0x14004b110
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004b139
mov rcx, r8
call fcn.140011ab0
mov qword [rbx], r14
mov rax, qword [rbx + 0x10]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14000235c
int3
call fcn.140001814
int3
call fcn.14001828c
int3
Function at 0x140056590
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1090
call fcn.140012230
sub rsp, rax
mov rdi, rcx
call fcn.140053bf0
mov ebx, eax
mov dword [rsp + 0x10b8], eax
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x890]
call fcn.1400141d0
xor eax, eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], eax
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x90]
call fcn.1400141d0
lea rdx, str.3eoB
lea rcx, [rsp + 0x70]
call fcn.140057130
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14004a420
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x14005664c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056647
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056783
call fcn.140011ab0
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov dword [rsp + 0x38], 0x400
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x890]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov byte [rsp + 0x10a8], bl
mov ecx, dword [rsp + 0x40]
mov byte [rsp + 0x10a9], cl
movzx eax, byte [rsp + 0x10b9]
mov byte [rsp + 0x10aa], al
mov eax, ecx
sar eax, 8
mov byte [rsp + 0x10ab], al
movzx eax, byte [rsp + 0x10ba]
mov byte [rsp + 0x10b0], al
mov eax, ecx
sar eax, 0x10
mov byte [rsp + 0x10b1], al
movzx eax, byte [rsp + 0x10bb]
mov byte [rsp + 0x10b2], al
sar ecx, 0x18
mov byte [rsp + 0x10b3], cl
mov eax, dword [rsp + 0x10a8]
rol eax, 3
mov dword [rdi], eax
mov eax, dword [rsp + 0x10b0]
ror eax, 7
mov dword [rdi + 4], eax
mov r8d, 8
mov rdx, rdi
xor ecx, ecx
call fcn.14005a694
mov dword [rdi + 8], eax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14005676a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056765
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005677d
call fcn.140011ab0
mov al, 1
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1090
pop rdi
ret
call fcn.14001828c
int3
call fcn.14001828c
int3

Function at 0x140056790
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, r8
mov rax, qword [r8]
mov qword [r8 + 8], rax
mov dword [rsp + 0x20], ecx
xor eax, eax
mov qword [rsp + 0x24], rax
movdqa xmm0, xmmword [0x140081890]
movdqu xmmword [rsp + 0x34], xmm0
mov word [rsp + 0x24], ax
mov qword [rsp + 0x44], r8
test rdx, rdx
je 0x1400567d7
lea rcx, [rsp + 0x24]
call fcn.1400024d0
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x1400534a0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rdi + 8]
sub rbx, qword [rdi]
sar rbx, 3
mov rdx, qword [rsp + 0x3c]
cmp rdx, 8
jb 0x140056832
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x24]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005682d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005683f
call fcn.140011ab0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.14001828c
int3
Function at 0x140057c24
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov ecx, 0x101
lea rdx, [rbp - 0x50]
xor ebx, ebx
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x140057d36
movzx eax, word [rbp - 0x50]
cmp al, 1
jne 0x140057d36
shr ax, 8
cmp al, 1
jne 0x140057d36
mov rax, qword [str.1.pool.ntp.org]
mov dword [rbp - 0x78], 0x1388
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
test rax, rax
je 0x140057d32
mov edi, ebx
lea r8, [rsp + 0x40]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140063a80
test eax, eax
je 0x140057cfe
lea rcx, [rbp + 0x168]
call fcn.140063f20
lea r8, [rsp + 0x70]
mov rcx, rax
lea rdx, [rbp + 0x160]
call fcn.140063df0
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x160]
call fcn.140064020
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1400528c0
test eax, eax
jne 0x140057d13
inc rdi
lea rax, str.1.pool.ntp.org
mov rax, qword [rax + rdi*8]
test rax, rax
je 0x140057d32
jmp 0x140057c9c
movzx eax, word [rsp + 0x22]
movzx ebx, al
movzx eax, word [rsp + 0x20]
shl eax, 8
or ebx, eax
movzx eax, word [rsp + 0x26]
movzx ecx, al
shl ebx, 8
or ebx, ecx
mov eax, ebx
jmp 0x140057d38
xor eax, eax
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140057d54
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xf40]
mov eax, 0x1040
call fcn.140012230
sub rsp, rax
mov bl, cl
mov edi, 0x800
mov r8d, edi
lea rcx, [rbp + 0x740]
xor edx, edx
call fcn.1400141d0
mov r8d, edi
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400141d0
mov edx, edi
lea rcx, [rbp + 0x740]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, edi
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea rdx, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x38], eax
xor r8d, r8d
mov word [rsp + 0x3c], ax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
call fcn.1400210f8
lea rcx, [rsp + 0x30]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x140057dec
mov eax, dword [0x14007fc78]
mov r8b, 1
mov dword [rcx], eax
mov dl, bl
lea rcx, [rbp + 0x740]
call fcn.140052ac0
test al, al
jne 0x140057e3c
xor r8d, r8d
lea rcx, [rsp + 0x40]
mov dl, bl
call fcn.140052ac0
test al, al
jne 0x140057e3c
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov dl, bl
call fcn.140052ac0
test al, al
jne 0x140057e3c
mov al, 1
jmp 0x140057e3e
xor al, al
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140059870
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
mov r14d, edx
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14005989d
mov rcx, qword [rcx]
call fcn.140047a50
test al, al
je 0x140059962
cmp qword [rbx + 0x18], 8
jb 0x1400598b4
mov rbx, qword [rbx]
lea rdx, [0x14007fce0]
mov rcx, rbx
call fcn.1400202ec
mov rbx, rax
test rax, rax
je 0x140059962
mov rcx, rax
call fcn.1400471c0
mov esi, eax
cmp eax, 0x28
jbe 0x14005995a
mov edx, 0x28
mov dword [rbp - 0x30], 0x48535844
xorps xmm0, xmm0
mov qword [rbp - 0x2c], 0x28
mov r9, rbx
movsd qword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x24], edi
lea r8d, [rdx - 0x27]
mov word [rbp - 0x18], di
mov qword [rbp - 0x14], rdi
mov dword [rbp - 0xc], edi
call fcn.1400209ac
test rax, rax
je 0x14005995a
mov eax, dword [rbp - 0x24]
not eax
ror eax, 3
cmp eax, r14d
jne 0x14005995a
cmp dword [rbp - 0x30], 0x48535844
jne 0x14005995a
cmp dword [rbp - 0x2c], 0x28
jne 0x14005995a
mov eax, dword [rbp - 0x10]
mov ecx, dword [rbp - 0xc]
add rcx, rax
mov eax, dword [rbp - 0x14]
add rcx, rax
movzx eax, word [rbp - 0x18]
add rax, 0x28
add rcx, rax
cmp rcx, rsi
sete dil
mov rcx, rbx
call fcn.14001f884
mov rbx, qword [rsp + 0x60]
mov al, dil
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x14005cc24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov edi, dword [rcx + 0x44]
mov rbx, rcx
mov r9d, dword [rcx + 0x9c]
mov edx, dword [rbx + 0x94]
mov esi, dword [rbx + 0x58]
mov ecx, dword [rbx + 0x44]
sub esi, edx
add ecx, 0xfffffefa
sub esi, r9d
add ecx, edi
cmp edx, ecx
jb 0x14005ccde
mov rcx, qword [rbx + 0x50]
mov r8, rdi
lea rdx, [rdi + rcx]
call fcn.140013b20
mov r9d, dword [rbx + 0x74]
mov rax, qword [rbx + 0x68]
sub dword [rbx + 0x98], edi
sub dword [rbx + 0x94], edi
sub dword [rbx + 0x84], edi
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, di
cmp edx, edi
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x14005cc91
mov rax, qword [rbx + 0x60]
mov r9d, edi
lea r8, [rax + rdi*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, di
cmp edx, edi
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x14005ccbc
add esi, edi
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x14005cd58
mov edx, dword [rbx + 0x9c]
mov r8d, esi
mov eax, dword [rbx + 0x94]
add rdx, rax
add rdx, qword [rbx + 0x50]
call fcn.14005d0b4
add dword [rbx + 0x9c], eax
mov r9d, dword [rbx + 0x9c]
cmp r9d, 3
jb 0x14005cd42
mov eax, dword [rbx + 0x94]
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x7c]
mov dword [rbx + 0x70], r8d
cmp r9d, 0x106
jae 0x14005cd58
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x14005cc46
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140061eb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x40
mov rcx, rdx
mov rbx, r8
mov rdi, rdx
call fcn.1400471c0
movsxd rcx, eax
mov r14d, socket
cmp rcx, r14
jb 0x140061f4c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14002144c
and dword [rsp + 0x2c], 0
lea ebp, [r14 - 0x13]
and dword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
mov r8d, ebp
mov dword [rsp + 0x20], 0x58453144
mov r9, rdi
mov dword [rsp + 0x24], 0x10014
mov edx, r14d
mov byte [rsp + 0x28], 0
call fcn.1400209ac
test rax, rax
je 0x140061f4c
cmp dword [rsp + 0x20], 0x58453144
jne 0x140061f4c
test rbx, rbx
je 0x140061f47
movups xmm0, xmmword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov dword [rbx + 0x10], ecx
mov al, bpl
jmp 0x140061f4e
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret

Function at 0x140063450
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov rsi, rcx
mov qword [rbp + 0x30], rdi
test rdx, rdx
je 0x140063503
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140063480
lea r8d, [rax + 1]
cmp r8d, 0x3fffffff
jg 0x140063503
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400634b4
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140012230
sub rsp, rcx
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x140063503
xor ebx, ebx
mov byte [rdi], 0
lea eax, [r8 + r8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r8, rdx
mov dword [rsp + 0x28], eax
xor edx, edx
lea r9d, [rbx - 1]
mov qword [rsp + 0x20], rdi
lea ecx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x140063507
xor ebx, ebx
mov edi, ebx
mov eax, 2
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov word [rbp], ax
lea ecx, [rax + 0x79]
call qword [sym.imp.WSOCK32.dll_htons]
mov rcx, rdi
mov word [rbp + 2], ax
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
jne 0x14006354f
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x14006357b
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 4], eax
mov rcx, qword [rsi]
lea rdx, [rbp]
mov r8d, reloc.WSOCK32.dll_recv
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
lea rsp, [rbp + 0x10]
pop rbp
ret
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call fcn.10169000
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10007c10
add rsp, 0x28
jmp 0x10007510
Function at 0x180003250
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180003278
xor eax, eax
lea r8, [0x1800030e0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180004960
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180004b80
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180004a67
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800049c4
mov rax, qword [0x18000e008]
cmp qword [rsp + 0x20], rax
ja 0x1800049c4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004986
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800049f3
jmp 0x180004a67
cmp dword [rsp + 0x50], 0x10000
jne 0x180004a4a
cmp qword [rsp + 0x48], 0x10000
jb 0x180004a4a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004a38
mov rax, qword [rsp + 0x28]
jmp 0x180004a69
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004a62
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004b80
mov qword [rsp + 0x20], rax
jmp 0x180004986
xor eax, eax
add rsp, 0x68
ret

Function at 0x180004a70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180004bc0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004b73
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004acb
mov rax, qword [0x18000e008]
cmp qword [rsp + 0x20], rax
ja 0x180004acb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004a8d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180004afa
jmp 0x180004b73
cmp dword [rsp + 0x50], 0x10000
jne 0x180004b51
cmp qword [rsp + 0x48], 0x10000
jb 0x180004b51
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004b3f
mov rax, qword [rsp + 0x28]
jmp 0x180004b75
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004b6e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004bc0
mov qword [rsp + 0x20], rax
jmp 0x180004a8d
xor eax, eax
add rsp, 0x68
ret