joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fe0c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
test rcx, rcx
je 0x1400fe0db
lea rax, [rcx + 0x1b0]
lea rdx, [0x1401a6890]
mov qword [rax], rdx
jmp fcn.140183b10
lea rdx, [0x1401a6890]
xor eax, eax
mov qword [rax], rdx
jmp fcn.140183b10

Function at 0x1400fe760
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rbx, rcx
lea rax, [0x1401b5588]
mov qword [rcx], rax
mov rcx, qword [rcx + 0x70]
test rcx, rcx
je 0x1400fe79e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
lea rcx, [rbx + 0x508]
call fcn.1400ad6c0
nop
lea rcx, [rbx + 0x348]
xor edi, edi
test rcx, rcx
je 0x1400fe7c2
lea rax, [rcx + 0x1b0]
jmp 0x1400fe7c5
mov rax, rdi
lea rsi, [0x1401a6890]
mov qword [rax], rsi
call fcn.140183b10
nop
lea rcx, [rbx + 0x188]
test rcx, rcx
je 0x1400fe7ea
lea rax, [rcx + 0x1b0]
jmp 0x1400fe7ed
mov rax, rdi
mov qword [rax], rsi
call fcn.140183b10
nop
lea rcx, [rbx + 0x158]
call fcn.140092970
nop
lea rcx, [rbx + 0x148]
call fcn.1400959c0
nop
lea rcx, [rbx + 0x120]
call fcn.140092970
nop
lea rcx, [rbx + 0xe8]
test rcx, rcx
je 0x1400fe82f
lea rax, [rcx + 0x30]
jmp 0x1400fe832
mov rax, rdi
lea rsi, [0x140190ba0]
mov qword [rax], rsi
call fcn.140092970
nop
lea rcx, [rbx + 0xb0]
test rcx, rcx
je 0x1400fe854
lea rax, [rcx + 0x30]
jmp 0x1400fe857
mov rax, rdi
mov qword [rax], rsi
call fcn.140092970
nop
lea rcx, [rbx + 0x78]
test rcx, rcx
je 0x1400fe86d
lea rdi, [rcx + 0x30]
mov qword [rdi], rsi
call fcn.140092970
nop
mov rcx, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140092240
Function at 0x1400ff750
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140229498]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rcx
xor edi, edi
mov qword [rsp + 0x48], rdi
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, str._userprofile_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14007ba40
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rdi
xor ecx, ecx
call fcn.14011e0c0
mov qword [rsp + 0x48], rbx
mov rcx, qword [rsp + 0x40]
call fcn.14011e0c0
test rbx, rbx
je 0x1400ff878
mov rdx, rbx
mov rcx, rsi
call fcn.14007b4c0
test al, al
je 0x1400ff878
mov rax, rsi
mov rdi, rbx
sub rdi, rsi
nop
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x1400ff823
add rax, 1
test ecx, ecx
jne 0x1400ff810
test edx, edx
je 0x1400ff878
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
movsxd rax, ecx
cmp byte [rax + rsi], 0x5c
jne 0x1400ff845
add ecx, 1
movsxd rcx, ecx
add rcx, rsi
or edx, 0xffffffff
call fcn.14007b6e0
mov rdi, rax
cmp byte [rax], 0
je 0x1400ff870
xor ecx, ecx
call fcn.14011e0c0
nop
mov rcx, rbx
call fcn.14011e0c0
mov rax, rdi
jmp 0x1400ff891
mov rcx, rax
call fcn.14011e0c0
or edx, 0xffffffff
mov rcx, rsi
call fcn.14007b6e0
mov rdi, rax
mov rcx, rbx
call fcn.14011e0c0
mov rax, rdi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14011f1c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401042a0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x490
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x4a0], rsi
mov rax, qword [0x140229498]
xor rax, rsp
mov qword [rsp + 0x480], rax
xor r9d, r9d
lea r8, str.SHGetSpecialFolderPathW
lea rdx, str.shell32
lea rcx, [rsp + 0x48]
call fcn.140086de0
nop
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14010435c
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x270]
xor ecx, ecx
call rax
test eax, eax
je 0x140104408
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x40]
call fcn.14007ba40
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x40], rsi
xor ecx, ecx
call fcn.14011e0c0
nop
lea rcx, [rsp + 0x48]
call fcn.140086c30
mov rax, rdi
jmp 0x140104454
mov r8d, 0x104
lea rdx, [rsp + 0x270]
lea rcx, str._userprofile_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rsi, [rsp + 0x270]
lea rdi, str._userprofile_
mov ecx, recv
repe cmpsw word [rsi], word [rdi]
je 0x140104408
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x40]
call fcn.14007ba40
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x60], esi
mov r8, qword [rsp + 0x40]
lea rdx, str._sDesktop
lea rcx, [rsp + 0x58]
call fcn.14007aa50
mov rdi, qword [rax]
mov qword [rax], rsi
mov dword [rax + 8], esi
mov rcx, qword [rsp + 0x58]
call fcn.14011e0c0
mov rcx, qword [rsp + 0x40]
call fcn.14011e0c0
nop
lea rcx, [rsp + 0x48]
call fcn.140086c30
mov rax, rdi
jmp 0x140104454
mov byte [rsp + 0x70], 0
or r9d, 0xffffffff
lea r8, str.Cannot_obtain_default_download_directory.
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.14007b3b0
lea rcx, [rsp + 0x170]
lea rdx, [rsp + 0x70]
mov r8d, 0x100
call fcn.14011e9b0
lea rdx, [0x14020b7d0]
lea rcx, [rsp + 0x170]
call fcn.14011f050
nop
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14011f1c0
mov rsi, qword [rsp + 0x4a0]
add rsp, 0x490
pop rdi
ret

Function at 0x1401055c0
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x240
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rdx
mov dword [rsp + 0x20], 0
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rcx
lea rcx, [rax + 0x18]
call fcn.14007bc10
nop
mov rbx, qword [rsp + 0x260]
mov rcx, rdi
call fcn.1400efca0
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x260]
call fcn.14011e0c0
test bl, bl
je 0x14010568b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x38], 0
or r9d, 0xffffffff
lea r8, str.setAttributes
mov edx, 0x100
lea rcx, [rsp + 0x38]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.14007f910
lea rcx, [rsp + 0x13c]
lea rdx, [rsp + 0x38]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x13c]
call fcn.14011f050
int3
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x1401056c0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x288], rbx
mov rbx, r9
mov r12, r8
mov rdi, rdx
mov rsi, rcx
call fcn.1400f0ef0
nop
lea rax, [0x1401b64b8]
mov qword [rsi], rax
mov byte [rsi + 0x20], 0
mov qword [rsi + 0x28], rbx
or edx, 0xffffffff
mov rcx, rdi
call fcn.14007b6e0
mov qword [rsi + 0x30], rax
lea rcx, [rsi + 0x38]
mov rdx, rdi
call fcn.14010f2f0
nop
mov rax, qword [0x14023d138]
mov rbx, qword [rax]
cmp rbx, rax
jne 0x140105735
call fcn.14011ef50
lea rcx, [rsi + 0x40]
mov edx, dword [rbx + 0x1c]
call fcn.140179380
nop
xor ebx, ebx
mov qword [rsi + 0x90], rbx
mov byte [rsi + 0x98], bl
mov qword [rsi + 0xa0], rbx
cmp qword [rsi + 0x28], rbx
jne 0x140105783
lea r9d, [rbx + 0x2e]
lea r8, str..FileStream.cxx
lea rdx, str.callback
lea rcx, [rsp + 0x40]
call fcn.140086ab0
mov rcx, rax
call fcn.140086a30
nop
mov dword [rsp + 0x20], ebx
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, qword [rsi + 0x30]
lea rcx, [rsp + 0x298]
call fcn.14007bc10
nop
mov rbx, qword [rsp + 0x298]
mov rcx, r12
call fcn.1400efca0
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x298]
call fcn.14011e0c0
test bl, bl
je 0x140105834
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x40], 0
or r9d, 0xffffffff
lea r8, str.setAttributes
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14007f910
lea rcx, [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x158]
call fcn.14011f050
nop
jmp 0x14010583e
mov rax, rsi
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop r12
pop rdi
pop rsi
ret
Function at 0x140107f00
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x240
cmp byte [rcx + 0x68], 0
mov rbx, rcx
jne 0x14010800a
cmp dword [rcx + 0x48], 0x103
mov qword [rsp + 0x258], rdi
lea rdi, [rcx + 0x48]
je 0x140108002
nop
mov r8d, dword [rbx + 0x70]
sub r8d, dword [rbx + 0x10]
add r8d, 0x4000
je 0x140108002
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x30]
lea r9, [rsp + 0x250]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140107f8c
mov ecx, dword [rbx + 0x58]
mov edx, dword [rsp + 0x250]
add qword [rbx + 0x10], rdx
lea eax, [rcx + rdx]
cmp eax, ecx
mov dword [rbx + 0x58], eax
jae 0x140107f80
add dword [rbx + 0x5c], 1
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x140107f30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x140107ffe
cmp eax, 0x3e5
je 0x140108002
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140196720]
lea rcx, [rsp + 0x30]
or r9d, 0xffffffff
mov edx, 0x100
mov byte [rsp + 0x30], 0
mov ebx, eax
call fcn.14007b3b0
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.14007f910
lea rcx, [rsp + 0x134]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x134]
call fcn.14011f050
int3
mov byte [rbx + 0x68], 1
mov rdi, qword [rsp + 0x258]
add rsp, 0x240
pop rbx
ret
Function at 0x140113609
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rcx, rcx
je 0x140113760
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140229498]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r10d, r10d
mov rdi, rdx
mov rbx, rcx
lea r9, [rsp + 0x20]
lea rdx, [0x1401b8298]
mov r8d, r10d
mov r11, r10
nop
nop
nop
nop
movzx ecx, byte [rbx + r11 + 0x144]
add r11, 1
lea eax, [rcx - 0x41]
cmp eax, 0x39
ja 0x14011367c
cmp ecx, 0x5a
jle 0x14011366f
cmp ecx, 0x61
jl 0x14011367c
mov byte [r9], cl
add r8d, 1
add r9, 1
jmp 0x1401136aa
mov al, cl
mov byte [r9], 0x5b
add r8d, 4
sar al, 4
and eax, 0xf
movzx eax, byte [rax + rdx]
mov byte [r9 + 1], al
mov al, cl
and eax, 0xf
add r9, 4
movzx eax, byte [rax + rdx]
mov byte [r9 - 2], al
mov byte [r9 - 1], 0x5d
cmp r11, 4
jl 0x140113650
test rdi, rdi
movsxd rax, r8d
je 0x1401136f7
mov byte [rsp + rax + 0x20], 0x3a
add r8d, 1
mov rcx, r10
movsxd rax, r8d
add r8d, 1
mov byte [rsp + rax + 0x20], 0x20
movsxd rax, r8d
lea rdx, [rsp + rax + 0x20]
movzx eax, byte [rcx + rdi]
test al, al
je 0x1401136f4
add rcx, 1
mov byte [rdx], al
add r8d, 1
add rdx, 1
cmp rcx, 0x3f
jl 0x1401136d8
movsxd rax, r8d
test dword [rbx + 0x48], 0xc0000
mov byte [rsp + rax + 0x20], r10b
je 0x140113729
cmp byte [rsp + 0x20], 0x23
jne 0x140113729
mov eax, 1
mov r10d, eax
cmp byte [rsp + rax + 0x20], 0x20
je 0x140113729
add rax, 1
add r10d, 1
cmp rax, 0xf
jl 0x140113714
mov r8, qword [rbx + 8]
test r8, r8
je 0x140113740
movsxd rax, r10d
mov rcx, rbx
lea rdx, [rsp + rax + 0x20]
call r8
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14011f1c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret 0

Function at 0x14011ee40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14023d258]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.14012aee0
test rax, rax
je 0x14011ee94
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x14011ef29
mov ecx, 2
call fcn.14012d510
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14011f1f0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14011ef15
test ebx, ebx
jne 0x14011ef15
lea ecx, [rax + 2]
call fcn.14012d510
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14011ef50
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x14023d258]
call fcn.14012aee0
test rax, rax
je 0x14011ef85
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.14012d510
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14011f1f0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14011f00e
test ebx, ebx
jne 0x14011f00e
lea ecx, [rax + 2]
call fcn.14012d510
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x140127bf0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.140120350
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x140127d94
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.140120350
cmp rax, 0xffffffffffffffff
je 0x140127d94
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x140127d13
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x140127c99
call fcn.1401205b0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
call fcn.1401205b0
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.140127030
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.1401299a0
cmp eax, 0xffffffff
je 0x140127cd5
cdqe
sub rbx, rax
test rbx, rbx
jg 0x140127cb0
jmp 0x140127cee
call fcn.1401205e0
cmp dword [rax], 5
jne 0x140127cea
call fcn.1401205b0
mov dword [rax], reloc.WS2_32.dll_listen
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.140127030
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x140127d6c
test rbx, rbx
jns 0x140127d76
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.140120350
cmp rax, 0xffffffffffffffff
je 0x140127c7a
mov ecx, esi
call fcn.14012fb80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x140127d76
call fcn.1401205b0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1401205e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x140127c7a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.140120350
cmp rax, 0xffffffffffffffff
je 0x140127c7a
xor eax, eax
jmp 0x140127c81
call fcn.1401205b0
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret

Function at 0x1401290f0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140129117
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140129117
mov ecx, eax
call fcn.140120610
or eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x14012cfa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.WS2_32.dll_bind
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14012cfde
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14012cfc0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14012d1c5
mov ecx, 3
call fcn.140138e60
cmp eax, 1
je 0x14012d17c
mov ecx, 3
call fcn.140138e60
test eax, eax
jne 0x14012d015
cmp dword [reloc.WS2_32.dll_bind], 1
je 0x14012d17c
cmp edi, 0xfc
je 0x14012d1c5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14023d310]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140123d80
test eax, eax
je 0x14012d059
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14011eda0
lea rdx, [0x14023d329]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14023d42d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14012d0a9
lea r8, str._program_name_unknown_
lea rcx, [0x14023d329]
mov edx, 0x2fb
call fcn.140123d80
test eax, eax
je 0x14012d0a9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14011eda0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14023d329]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14012d0f8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14023d624]
lea r9d, [rax + 3]
lea r8, [0x1401905e0]
sub rdx, rcx
call fcn.140124040
test eax, eax
je 0x14012d0f8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14011eda0
lea r8, [0x1401b9ef0]
mov edx, 0x314
mov rcx, rbp
call fcn.140124240
test eax, eax
je 0x14012d124
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14011eda0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140124240
test eax, eax
je 0x14012d154
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14011eda0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140138940
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14012d1c5
cmp rax, 0xffffffffffffffff
je 0x14012d1c5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14012d1e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140138e60
cmp eax, 1
je 0x14012d212
mov ecx, 3
call fcn.140138e60
test eax, eax
jne 0x14012d2c6
cmp dword [reloc.WS2_32.dll_bind], 1
jne 0x14012d2c6
mov qword [rsp + 0x48], rbx
lea rbx, reloc.WS2_32.dll_bind
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14012d23e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14012d228
jmp 0x14012d2b2
cmp edi, 0x17
jae 0x14012d2b2
mov ecx, 3
call fcn.140138e60
cmp eax, 1
je 0x14012d269
mov ecx, 3
call fcn.140138e60
test eax, eax
jne 0x14012d2b2
cmp dword [reloc.WS2_32.dll_bind], 1
jne 0x14012d2b2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14012d2b2
cmp rax, 0xffffffffffffffff
je 0x14012d2b2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.14012cfa0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x14012d5c7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140229498]
jne 0x14011f1da
rol rcx, 0x10
test cx, 0xffff
jne 0x14011f1d6
repz ret
ror rcx, 0x10
jmp 0x14012d520
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14023d6e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14023d7d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14012d5a5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14023d6e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14012d5c7
mov rax, qword [rsp + 0x88]
mov qword [0x14023d7d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14023d778], rax
mov rax, qword [0x14023d7d8]
mov qword [0x14023d650], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14023d760], rax
mov dword [0x14023d640], 0xc0000409
mov dword [0x14023d644], 1
mov rax, qword [0x140229498]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1402294a0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14023d6d8], eax
mov ecx, 1
call fcn.14012d510
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1401baeb8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14023d6d8], 0
jne 0x14012d64e
mov ecx, 1
call fcn.14012d510
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret