joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d9a4
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rdx, [rbp + 0x27]
mov bl, dil
call qword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
nop dword [rax + rax]
test eax, eax
jne 0x14007daa8
cmp dword [rbp + 0x27], edi
je 0x14007daa8
lea ebx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rbp + 0x37]
mov r8d, ebx
mov rcx, rax
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14007daa8
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x3f], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 2]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
mov dl, bl
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x43], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14007da98
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x2b]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14007da88
cmp dword [rbp + 0x2b], edi
cmovne ebx, edi
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14007e560
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14007e2c0
Capabilities:
Terminate process

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 r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14009f780], rbx
je 0x14007e327
cmp rax, rbx
jne 0x14007e31a
mov ebx, 1
mov esi, ebx
jmp 0x14007e32c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14007e2ff
mov ebx, 1
mov eax, dword [0x14009f788]
cmp eax, ebx
jne 0x14007e344
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14007e3b0
mov eax, dword [0x14009f788]
test eax, eax
jne 0x14007e3a5
mov dword [0x14009f788], ebx
lea r15, [0x1400878c0]
lea rdi, [0x1400878a8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14007e397
test eax, eax
jne 0x14007e39b
cmp qword [rdi], r14
je 0x14007e38c
mov rax, qword [rdi]
mov rcx, qword [0x140087880]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14007e36e
test eax, eax
je 0x14007e3ab
mov eax, 0xff
jmp 0x14007e506
mov dword [0x14009ea14], ebx
mov edi, 0x1f
mov eax, dword [0x14009f788]
cmp eax, ebx
jne 0x14007e3d7
lea rdx, [0x1400878a0]
lea rcx, [0x140087888]
call sub.msvcrt.dll__initterm
mov dword [0x14009f788], 2
test esi, esi
jne 0x14007e3e5
mov rax, r14
xchg qword [0x14009f780], rax
cmp qword [0x14009f790], r14
je 0x14007e418
lea rcx, [0x14009f790]
call fcn.14007ee10
test eax, eax
je 0x14007e418
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009f790]
mov r9, qword [0x140087880]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14007e431
mov eax, 0xff
jmp 0x14007e506
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14007e4b7
test ax, ax
je 0x14007e44c
test edx, edx
jne 0x14007e4b7
sub ax, bx
cmp ax, di
ja 0x14007e462
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14007e44c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140022e4c
mov dword [0x14009ea10], eax
cmp dword [0x14009ea30], r14d
jne 0x14007e4a0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14009ea14], r14d
jne 0x14007e4b5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14009ea10]
jmp 0x14007e506
cmp ax, 0x22
jne 0x14007e4cb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14007e43a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140133000
add rsp, 0x28
jmp 0x14007e2c0
Function at 0x14007e8f8
Capabilities:
Print debug messages

Disassembly:
jmp 0x14007e904
push rbx
sub rsp, 0x540
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14007e981
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14007e9a1
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14007e560
add rsp, 0x540
pop rbx
ret

Function at 0x14007e904
Capabilities:
Print debug messages

Disassembly:
jmp 0x14007e904
push rbx
sub rsp, 0x540
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14007e981
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14007e9a1
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14007e560
add rsp, 0x540
pop rbx
ret

Function at 0x14007ecfc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14007ed48
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007ed40
cmp dword [rcx + 0x3c], edx
jl 0x14007ed40
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14007ed40
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14007ed48
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140af7058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140af71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140af7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140af706f
add dl, dl
jne 0x140af7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140af70f6
xor eax, eax
add dl, dl
jne 0x140af70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140af71ad
add dl, dl
jne 0x140af70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140af70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140af70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140af70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140af70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140af707e
mov eax, 1
add dl, dl
jne 0x140af7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140af7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140af70fb
sub eax, ebx
mov ebx, 1
jne 0x140af714c
mov ecx, 1
add dl, dl
jne 0x140af712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140af713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140af7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140af707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140af7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140af7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140af715d
cmp eax, 0x7d00
jae 0x140af719b
cmp eax, 0x500
jb 0x140af7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140af707e
cmp eax, 0x7f
ja 0x140af719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140af707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140af71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140af707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001a95c
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x10], 0
mov rax, qword [0x1400e44b8]
lea rdx, str.Chrome_v3
mov qword [r11 - 0x18], rax
and qword [r11 - 0x20], 0
and qword [r11 - 0x28], 0
mov eax, 0x80000000
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov r9d, 0xcf0000
mov r8, rdx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
and qword [rsp + 0x58], 0
mov rcx, qword [0x1400e44b8]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [0x1400ab2e0]
mov r9d, 0x50b008c4
xor r8d, r8d
xor ecx, ecx
mov qword [0x1400e4510], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [0x1400e4510]
xor edx, edx
mov qword [0x1400e4508], rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400e4510]
xor edx, edx
add rsp, 0x68
jmp qword [sym.imp.USER32.dll_ShowWindow]
Function at 0x14007b4cc
Capabilities:
Create directory
Delete directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x4ff68]
mov eax, 0x50050
call fcn.140038c40
sub rsp, rax
mov sil, r9b
mov rdi, r8
mov rcx, rdx
lea r9, [rsp + 0x40]
lea r8, [rbp + 0xff50]
mov edx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor r14d, r14d
test eax, eax
jne 0x14007b521
xor eax, eax
jmp 0x14007b661
lea r8, [rbp + 0xff50]
lea rdx, [0x1400d0b10]
lea rcx, [rsp + 0x50]
call fcn.1400279e0
lea rcx, [rsp + 0x50]
call fcn.140026c38
mov rbx, rax
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x14007b55c
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x14007b55c
mov word [rsp + rax*2 + 0x4e], r14w
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14007b570
test sil, sil
je 0x14007b51a
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007b5b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14007b51a
lea rcx, [rbp + 0x1ff50]
xor edx, edx
mov r8d, 0x2fffa
call fcn.140026e60
add bx, bx
lea rdx, [rsp + 0x50]
mov word [rbp + 0x1ff5a], bx
lea rcx, [rbp + 0x1ff60]
add bx, 2
mov r8d, 0x7fff
mov dword [rbp + 0x1ff50], 0xa0000003
mov word [rbp + 0x1ff5c], bx
call fcn.140028470
movzx eax, word [rbp + 0x1ff5a]
mov qword [rsp + 0x38], r14
add ax, 0xc
lea r8, [rbp + 0x1ff50]
mov edx, 0x900a4
movzx r9d, ax
mov word [rbp + 0x1ff54], ax
lea rax, [rbp + 0x4ff70]
mov qword [rsp + 0x30], rax
add r9d, 8
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
test eax, eax
jne 0x14007b656
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007b5a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea r11, [rsp + 0x50050]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1403902c0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140390447
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1403902f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1403902d7
add dl, dl
jne 0x1403902fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14039035e
xor eax, eax
add dl, dl
jne 0x14039030d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140390415
add dl, dl
jne 0x14039031e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14039032b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140390338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140390345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140390352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1403902e6
mov eax, 1
add dl, dl
jne 0x14039036e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14039037b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140390363
sub eax, ebx
mov ebx, 1
jne 0x1403903b4
mov ecx, 1
add dl, dl
jne 0x140390396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1403903a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14039038b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1403902e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1403903d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1403903dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1403903c5
cmp eax, 0x7d00
jae 0x140390403
cmp eax, 0x500
jb 0x1403903fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1403902e6
cmp eax, 0x7f
ja 0x140390406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1403902e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14039043a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1403902e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x142fbd91c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x142fbd926
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x142fbd94f
pop rbp
sub rbp, 0x33
sub rbp, 0x2fbd91c
sub rsp, 0x20
jmp 0x142fbd96e
mov rax, 0x2fbd91c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff86ae3027
xor byte [rax], dl
inc rax
dec rcx
jne 0x142fbd98d
jmp 0x142fbd9a4
outsd dx, dword [rsi]
scasb al, byte [rdi]
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005730]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005740]
mov dword [rax], 1
mov rax, qword [0x140005750]
mov dword [rax], 1
mov rax, qword [0x140005720]
mov dword [rax], 1
mov rax, qword [0x1400055f0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140005710]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400056d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400056b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400055a0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001a12
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x150], rcx
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
setne al
movzx eax, al
add rsp, 0x1c0
pop rbp
ret

Function at 0x140001a4f
Capabilities:
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov dword [rbp - 0x2c], 0
mov dword [rbp - 0x28], 1
mov dword [rbp - 0x24], 6
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 0x18]
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
mov r10, rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
mov rcx, rax
lea rax, [rbp - 0x30]
mov r9, rdx
mov r8, rax
mov rdx, r10
mov rax, qword [sym.imp.WS2_32.dll_getaddrinfo]
call rax
test eax, eax
setne al
movzx eax, al
add rsp, 0x50
pop rbp
ret

Function at 0x140001b89
Capabilities:
Connect socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x10]
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
mov rdx, qword [rax + 0x20]
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
sete al
movzx eax, al
add rsp, 0x20
pop rbp
ret
Function at 0x140001cc1
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x18]
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002840
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x1400028b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400080b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140002a60
mov rax, qword [0x1400080b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400028fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002987
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400028e0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140002abd
mov rax, qword [0x1400080b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400080b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002aa2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002980
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002a10
add dword [0x1400080b4], 1
cmp ebx, 8
jae 0x1400029b8
test bl, 4
jne 0x140002a70
test ebx, ebx
je 0x1400029a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140002a90
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400029a9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400029ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400080b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002980
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140002907
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400029a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400029a9
mov rax, qword [0x1400080b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]