joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004f320
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004f419
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x50], rcx
mov ecx, 8
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x50]
xor esi, esi
mov edi, esi
movzx eax, word [rcx + 0x14]
lea rbx, [rcx + 0x18]
add rbx, rax
cmp si, word [rcx + 6]
jae 0x14004f3d2
nop word [rax + rax]
mov edx, Ordinal_41
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov edx, Ordinal_41
mov byte [rbx], al
mov rcx, rbx
mov byte [rbx + 1], sil
mov qword [rbx + 8], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x50]
inc edi
add rbx, 0x28
movzx ecx, word [rax + 6]
cmp edi, ecx
jb 0x14004f380
mov edx, 8
lea r9, [rsp + 0x48]
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov edx, 8
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
Function at 0x140050390
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400505da
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x14017640c], 1
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140050447
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140050447
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140050442
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140050420
cmp r8d, 0xcded1a85
je 0x14005044c
test r9d, r9d
jne 0x140050400
mov rax, qword [rax]
jmp 0x1400503d0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
add rax, r10
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400504f7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400504f7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1400504f2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x1400504d0
cmp r8d, 0xe80fd3a
je 0x1400504fc
test r9d, r9d
jne 0x1400504b0
mov rax, qword [rax]
jmp 0x140050480
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
add rax, r10
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400505a7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400505a7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400505a2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140050580
cmp r8d, 0xa52bcaf9
je 0x1400505ac
test r9d, r9d
jne 0x140050560
mov rax, qword [rax]
jmp 0x140050530
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
call rax
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov dword [0], 0xdead
add rsp, 0x28
ret
Function at 0x140050a30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov eax, 0x824e
xor ebx, ebx
mov word [rbp - 0x30], ax
mov r9d, ebx
mov eax, 0x8259
movabs r10, 0x2708afa85b89822e
mov word [rbp - 0x2e], ax
mov r11d, 0x7dd2
mov eax, 0x8256
lea edi, [rbx + 0xf]
mov word [rbp - 0x2c], ax
mov eax, 0x8255
mov word [rbp - 0x2a], ax
mov eax, 0x8257
mov word [rbp - 0x28], ax
mov eax, 0x8215
mov word [rbp - 0x26], ax
mov eax, 0x825b
mov word [rbp - 0x24], ax
mov eax, 0x825c
mov word [rbp - 0x22], ax
mov eax, 0x8252
mov word [rbp - 0x20], ax
mov eax, 0x823d
mov word [rbp - 0x1e], ax
movzx eax, word [rbp - 0x30]
nop dword [rax + rax]
movzx r8d, word [rbp + r9*2 - 0x30]
mov rcx, r9
and ecx, edi
movzx eax, r9w
cmp rcx, rdi
mov rdx, r10
cmovae rcx, rdi
sub ax, r11w
shl cl, 2
shr rdx, cl
and dx, di
xor dx, ax
xor dx, r8w
mov word [rbp + r9*2 - 0x30], dx
inc r9
cmp r9, 0xa
jb 0x140050ac0
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r10, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140050bf2
mov byte [rbp - 0x1c], 0x3e
movabs r11, 0x86e3acae7258ae70
mov byte [rbp - 0x1b], 2
mov r9, r11
mov byte [rbp - 0x1a], Ordinal_50
mov byte [rbp - 0x19], Ordinal_30
mov byte [rbp - 0x18], 8
mov byte [rbp - 0x17], reloc.WS2_32.dll_gethostname
mov byte [rbp - 0x16], reloc.WLDAP32.dll_Ordinal_26
mov byte [rbp - 0x15], reloc.WLDAP32.dll_Ordinal_22
mov byte [rbp - 0x14], Ordinal_26
mov byte [rbp - 0x13], 1
mov byte [rbp - 0x12], reloc.WLDAP32.dll_Ordinal_27
mov byte [rbp - 0x11], reloc.WS2_32.dll_recv
mov byte [rbp - 0x10], ntohl
mov byte [rbp - 0xf], reloc.WLDAP32.dll_Ordinal_26
mov byte [rbp - 0xe], reloc.WS2_32.dll_socket
mov byte [rbp - 0xd], Ordinal_26
mov byte [rbp - 0xc], 0xd4
mov byte [rbp - 0xb], 0xee
mov byte [rbp - 0xa], 0xfe
mov byte [rbp - 9], 0xec
mov byte [rbp - 8], 0xed
mov byte [rbp - 7], 0xe4
mov byte [rbp - 6], 0x84
movzx eax, byte [rbp - 0x1c]
lea rax, [rbp - 0x1c]
sub r9, rax
nop dword [rax + rax]
mov rcx, rbx
lea rdx, [rbp - 0x1c]
add rdx, rbx
and ecx, edi
cmp rcx, rdi
mov rax, r11
cmovae rcx, rdi
movzx r8d, byte [rdx]
add dl, r9b
shl cl, 2
shr rax, cl
and al, dil
xor al, dl
xor al, r8b
mov byte [rbp + rbx - 0x1c], al
inc rbx
cmp rbx, 0x17
jb 0x140050b90
lea rdx, [rbp - 0x1c]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140050bf2
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 0x11]
call rbx
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x140050ee0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ecx, 0xbeef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140050efe
test ebx, ebx
je 0x14005111f
mov byte [0x14017640c], 1
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140050f96
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140050f96
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140050f88
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140050f70
cmp r8d, 0xcded1a85
je 0x140050f9b
test r9d, r9d
jne 0x140050f50
mov rax, qword [rax]
jmp 0x140050f20
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
xor ecx, ecx
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140051046
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140051046
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140051038
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140051020
cmp r8d, 0xe80fd3a
je 0x14005104b
test r9d, r9d
jne 0x140051000
mov rax, qword [rax]
jmp 0x140050fd0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
xor ecx, ecx
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400510f6
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400510f6
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0x811c9dc5
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400510e8
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x1400510d0
cmp r8d, 0xa52bcaf9
je 0x1400510fb
test r9d, r9d
jne 0x1400510b0
mov rax, qword [rax]
jmp 0x140051080
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
call rax
mov dword [0], 0xdead
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140051190
Capabilities:
Enumerate pe sections
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov byte [rsp + 0x10], dl
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov r15, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test rax, rax
je 0x14005128a
mov r12d, 0x5a4d
cmp word [rax], r12w
jne 0x14005128a
movsxd rbp, dword [rax + 0x3c]
add rbp, rax
cmp dword [rbp], 0x4550
jne 0x14005128a
movzx ebx, word [rbp + 0x14]
add rbx, 0x18
mov dword [rsp + 0x188], 0x104
add rbx, rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x188]
xor edx, edx
mov rcx, rax
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
xor edi, edi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov r13d, 1
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov r8d, r13d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14005128a
mov qword [rsp + 0x28], rdi
lea r8d, [rdi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test rax, rax
jne 0x1400512ad
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r9, rax
test rax, rax
je 0x14005128a
cmp word [rax], r12w
jne 0x1400513b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400513b6
mov eax, dword [rbp + 8]
cmp dword [rcx + 8], eax
jne 0x1400513b6
movzx edx, word [rcx + 6]
cmp dx, word [rbp + 6]
jne 0x1400513b6
movzx r10d, word [rcx + 0x14]
xor bpl, bpl
add r10, 0x18
mov r11d, edx
add r10, rcx
test edx, edx
je 0x14005139b
nop
mov r8, r15
mov rax, rbx
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140051343
inc rax
test ecx, ecx
jne 0x140051330
test edx, edx
jne 0x140051350
test dword [rbx + 0x24], 0x20000000
jne 0x140051361
inc edi
add rbx, 0x28
add r10, 0x28
cmp edi, r11d
jl 0x140051320
jmp 0x14005139b
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x14005139b
mov edx, dword [rbx + 0xc]
mov ecx, eax
mov r8d, dword [r10 + 0x14]
add rdx, r14
add r8, r9
nop word [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 + 1]
cmp byte [rdx], al
lea rdx, [rdx + 1]
movzx ebp, bpl
cmovne ebp, r13d
sub rcx, r13
jne 0x140051380
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
jmp 0x14005128c
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r13b
jmp 0x14005128c
Function at 0x140053230
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rbp - 0x20], 0x24
xor r9d, r9d
mov byte [rbp - 0x1f], 5
movabs r11, 0xde419f38cf883e60
mov byte [rbp - 0x1e], ntohl
mov r10, r11
mov byte [rbp - 0x1d], 0x35
mov byte [rbp - 0x1c], 5
lea ebx, [r9 + 0xf]
mov byte [rbp - 0x1b], 0x3f
mov byte [rbp - 0x1a], ntohl
mov byte [rbp - 0x19], 6
mov byte [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x17], reloc.WLDAP32.dll_Ordinal_30
mov byte [rbp - 0x16], 0
mov byte [rbp - 0x15], reloc.WLDAP32.dll_Ordinal_32
mov byte [rbp - 0x14], Ordinal_32
mov byte [rbp - 0x13], ntohl
mov byte [rbp - 0x12], 1
mov byte [rbp - 0x11], 9
mov byte [rbp - 0x10], Ordinal_26
mov byte [rbp - 0xf], Ordinal_26
mov byte [rbp - 0xe], 0x7c
movzx eax, byte [rbp - 0x20]
lea rax, [rbp - 0x20]
sub r10, rax
nop dword [rax + rax]
mov rcx, r9
lea rdx, [rbp - 0x20]
add rdx, r9
and ecx, ebx
cmp rcx, rbx
mov rax, r11
cmovae rcx, rbx
movzx r8d, byte [rdx]
add dl, r10b
shl cl, 2
shr rax, cl
and al, bl
xor al, dl
xor al, r8b
mov byte [rbp + r9 - 0x20], al
inc r9
cmp r9, 0x13
jb 0x1400532b0
mov rax, qword [0x140176448]
test rax, rax
jne 0x140053308
lea rcx, [0x14010bc00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x140176448], rax
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14005334f
mov edx, 4
lea r9, [rbp + 0x10]
mov rcx, rax
lea r8d, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rbp + 0x10]
lea r9, [rbp + 0x10]
mov edx, 4
mov dword [rbx], 0x1ee7c0de
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
Function at 0x1400554e0
Capabilities:
Encode data using xor
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rdi
sub rsp, 0x140
mov rbx, rcx
mov dword [rax + 0x10], 0x101
lea rcx, [rsp + 0x30]
xor edi, edi
lea rdx, [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140055543
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x140055530
lea rdx, [rsp + 0x30]
jmp 0x140055636
mov byte [rsp + 0x160], reloc.WS2_32.dll_setsockopt
movabs r11, 0x96a7c1363d77b4e
mov byte [rsp + 0x161], Ordinal_41
mov r10, r11
mov byte [rsp + 0x162], Ordinal_50
mov r9, rdi
mov byte [rsp + 0x163], Ordinal_60
mov byte [rsp + 0x164], Ordinal_60
mov byte [rsp + 0x165], reloc.WLDAP32.dll_Ordinal_41
mov byte [rsp + 0x166], reloc.WS2_32.dll_gethostname
mov byte [rsp + 0x167], 0x53
movzx eax, byte [rsp + 0x160]
lea rax, [rsp + 0x160]
mov qword [rsp + 0x150], rsi
sub r10, rax
mov esi, reloc.WS2_32.dll_ntohs
nop dword [rax]
nop word [rax + rax]
mov rcx, r9
lea rdx, [rsp + 0x160]
add rdx, r9
and ecx, esi
cmp rcx, rsi
mov rax, r11
cmovae rcx, rsi
movzx r8d, byte [rdx]
add dl, r10b
shl cl, 2
shr rax, cl
and al, sil
xor al, dl
xor al, r8b
mov byte [rsp + r9 + 0x160], al
inc r9
cmp r9, 8
jb 0x1400555c0
mov rsi, qword [rsp + 0x150]
lea rax, [rsp + 0x160]
xorps xmm0, xmm0
mov r8, 0xffffffffffffffff
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
inc r8
cmp byte [rax + r8], dil
jne 0x140055625
lea rdx, [rsp + 0x160]
mov rcx, rbx
call fcn.140064780
mov rax, rbx
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
ret
Function at 0x140061ea0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140061ec8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140061eee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140061ef0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140061f49
test ecx, ecx
jle 0x140061f29
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140061f49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140061f49
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140061f70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140061fa1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140061fbf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140061fdb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140061fdd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140062019
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400620ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140062054
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14006208e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400620ae
cmp rbx, rax
ja 0x140062060
test rbx, rbx
je 0x1400620ae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400624f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140062514
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140062557
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140062557
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140062688
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14006259a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400625c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14006268d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14006263a
sub eax, 1
je 0x14006263a
cmp eax, 2
jne 0x140062688
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14006268d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14006266b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140062688
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14006268d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret