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

Disassembly:
push rbx
sub rsp, 0x1a0
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rax, qword [0x140108b40]
lea rcx, [rsp + 0x70]
mov dword [rax + 0x12ca374], 0
call fcn.14002a05c
lea rcx, [rsp + 0x70]
call fcn.14002a3c8
mov r8, qword [0x140108b40]
mov rbx, rax
movups xmm0, xmmword [rax]
cmp dword [r8 + 0x12ca35c], 0
movups xmmword [r8 + 0x41746d0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r8 + 0x41746e0], xmm1
mov ecx, dword [rax + 0x20]
mov dword [r8 + 0x41746f0], ecx
jne 0x1400106b3
cmp dword [r8 + 0x12ca370], 0
je 0x140010859
add r8, 0xbb0be0
lea rdx, str._sLogFile
lea rcx, [rsp + 0x90]
call fcn.140001190
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
cmp eax, 1
je 0x1400106f1
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [0x140108b40]
cmp dword [rax + 0x12ca39c], 0
jne 0x140010761
cmp dword [rax + 0x12ca360], 2
jne 0x140010761
mov edx, dword [rbx + 0x10]
lea rcx, [rax + 0xbb0ce0]
mov eax, dword [rbx]
lea r8, [rsp + 0x90]
mov r9d, dword [rbx + 0x14]
inc edx
mov dword [rsp + 0x48], gethostbyname
add r9d, 0x76c
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str._slog__04d__02d_02d__02d_02d_02d_RAW_cbin
call fcn.140001190
jmp 0x140010806
cmp dword [rax + 0x41746f8], 1
lea rcx, [0x140047d68]
lea rdx, [0x140047d64]
cmovne rdx, rcx
lea rcx, [rsp + 0x78]
call fcn.140001190
mov rax, qword [0x140108b40]
lea r10, [rsp + 0x78]
mov r8d, dword [rbx + 0x10]
mov r9d, dword [rbx + 0x14]
inc r8d
mov dword [rsp + 0x60], gethostbyname
add r9d, 0x76c
movsd xmm0, qword [rax + 0x18]
lea rcx, [rax + 0xbb0ce0]
mov eax, dword [rax + 0x5c]
mulsd xmm0, qword [0x140049258]
mov qword [rsp + 0x58], r10
mov dword [rsp + 0x50], eax
mov eax, dword [rbx]
cvttsd2si edx, xmm0
mov dword [rsp + 0x48], edx
lea rdx, str._slog__04d__02d_02d__02d_02d_02d_R_05d_Th_02d__s_ccsv
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r8, [rsp + 0x90]
call fcn.140001190
mov rax, qword [0x140108b40]
xorps xmm0, xmm0
mov dword [rax + 0x41746cc], 1
movups xmmword [rax + 0xbb0b50], xmm0
movups xmmword [rax + 0xbb0b60], xmm0
movups xmmword [rax + 0xbb0b70], xmm0
movups xmmword [rax + 0xbb0b80], xmm0
movups xmmword [rax + 0xbb0b90], xmm0
movups xmmword [rax + 0xbb0ba0], xmm0
movups xmmword [rax + 0xbb0bb0], xmm0
movups xmmword [rax + 0xbb0bc0], xmm0
movups xmmword [rax + 0xbb0bd0], xmm0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14001d8e0
add rsp, 0x1a0
pop rbx
ret
Function at 0x140015c50
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140108b40]
lea rdx, [0x140047e98]
add rcx, 0xbb0ee0
call fcn.140029210
mov rbx, rax
test rax, rax
jne 0x140015c7e
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x140108b40]
mov edx, 0x80
add rcx, 0xbb12e0
mov qword [rsp + 0x30], rdi
mov r9, rbx
lea r8d, [rdx - 0x7f]
call fcn.14002a670
mov rcx, qword [0x140108b40]
xor edi, edi
add rcx, 0xbb12e0
mov r9, rbx
lea edx, [rdi + 0x20]
lea r8d, [rdi + 1]
call fcn.14002a670
cmp eax, 1
jl 0x140015d3d
mov r8, qword [0x140108b40]
mov r9, rbx
movzx ecx, byte [r8 + 0xbb12e8]
movzx eax, byte [r8 + 0xbb12e9]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0xbb12ea]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0xbb12eb]
shl ecx, 8
or ecx, eax
sub ecx, 0x20
movsxd rdx, ecx
lea rcx, [r8 + 0xbb1300]
mov r8d, 1
call fcn.14002a670
mov rcx, qword [0x140108b40]
mov edx, 0x20
add rcx, 0xbb12e0
mov r9, rbx
inc edi
lea r8d, [rdx - 0x1f]
call fcn.14002a670
cmp eax, 1
jge 0x140015cc6
mov rcx, rbx
call fcn.140029728
mov rcx, rbx
call fcn.140029728
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x1400163c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140108b40]
lea rdx, [0x140047e98]
add rcx, 0xbb0ee0
call fcn.140029210
mov rdi, rax
test rax, rax
jne 0x140016414
mov rax, qword [0x140108b40]
xor esi, esi
mov dword [rax + 0x417477c], esi
mov dword [rax + 0x12ca370], esi
lea eax, [rdi - 1]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [0x140108b40]
mov edx, 0x80
mov qword [rsp + 0x38], rbx
add rcx, 0xbb12e0
mov r9, rdi
mov qword [rsp + 0x40], rbp
lea r8d, [rdx - 0x7f]
call fcn.14002a670
mov rcx, qword [0x140108b40]
xor esi, esi
mov ebp, esi
mov eax, dword [rcx + 0x12ca374]
inc eax
test eax, eax
jle 0x14001657b
nop dword [rax + rax]
mov edx, 0x20
add rcx, 0xbb12e0
mov r9, rdi
lea r8d, [rdx - 0x1f]
call fcn.14002a670
cmp eax, 1
jl 0x140016526
mov rcx, qword [0x140108b40]
mov r9, rdi
mov r8d, 1
movzx eax, byte [rcx + 0xbb12e9]
movzx ebx, byte [rcx + 0xbb12e8]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 0xbb12ea]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 0xbb12eb]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 0xbb12fc]
mov byte [rsp + 0x30], al
movzx eax, byte [rcx + 0xbb12fd]
mov byte [rsp + 0x31], al
movzx eax, byte [rcx + 0xbb12fe]
mov byte [rsp + 0x32], al
movzx eax, byte [rcx + 0xbb12ff]
mov byte [rsp + 0x33], al
lea eax, [rbx - 0x20]
movss xmm0, dword [rsp + 0x30]
cvtps2pd xmm0, xmm0
movsxd rdx, eax
movsd qword [rcx + 0x12ca3d8], xmm0
add rcx, 0xbb1300
call fcn.14002a670
mov rcx, qword [0x140108b40]
inc ebp
mov eax, dword [rcx + 0x12ca374]
inc eax
cmp ebp, eax
jl 0x140016460
jmp 0x14001657f
mov rcx, rdi
call fcn.140029728
mov rax, qword [0x140108b40]
mov dword [rax + 0x417477c], esi
cmp dword [rax + 0x12ca370], esi
jle 0x14001654d
mov dword [rax + 0x12ca670], 5
mov dword [rax + 0x12ca370], esi
or dword [rax + 0xbb0b44], 0x1000
or dword [rax + 0xbb0b48], 0x40000
mov dword [rax + 0x41746b8], esi
or dword [rax + 0xbb0b44], 0x40
mov eax, 0xffffffff
jmp 0x1400165bb
mov ebx, dword [rsp + 0x30]
mov rcx, rdi
call fcn.140029728
mov rdi, qword [0x140108b40]
add ebx, 0xffffffe0
movsxd r8, ebx
lea rdx, [rdi + 0xbb1300]
lea rcx, [rdi + 0xa0]
call fcn.1400212f0
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [rdi + 0x12ca2e0], eax
call fcn.1400165d0
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140019250
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edi, edi
mov ecx, 0x440
mov r14d, edi
call fcn.14001d908
mov ecx, 0x400
mov rbp, rax
call fcn.14001d908
xor edx, edx
mov r8d, 0x440
mov rcx, rbp
mov rbx, rax
call fcn.14001f1b0
xor edx, edx
mov r8d, 0x400
mov rcx, rbx
call fcn.14001f1b0
mov esi, edi
mov r12, rbp
nop word [rax + rax]
xorps xmm0, xmm0
lea rcx, [0x14003e730]
mov r9d, 2
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
lea r8, [rsp + 0x48]
mov dword [rsp + 0x48], 0x20
mov rcx, rax
mov edx, r14d
mov r15, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140019409
xor r9d, r9d
mov dword [rsp + 0x28], 1
xorps xmm0, xmm0
mov dword [rsp + 0x44], edi
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov rcx, r15
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 1]
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x44]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
lea rdx, str.PortName
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea rcx, [rsp + 0x6b]
call fcn.1400258ac
mov dword [r12], eax
lea rdx, [rsp + 0x48]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x40
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea rcx, [rsp + 0x80]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x1400193d0
movsxd r8, eax
lea rdx, [rsp + 0x80]
movsxd rax, esi
imul rcx, rax, 0x44
add rcx, 4
add rcx, rbp
call fcn.1400212f0
inc r14d
inc esi
add r12, 0x44
cmp esi, 0x10
jl 0x1400192d0
test r14d, r14d
jle 0x14001947a
movsxd rdx, r14d
lea r9, [0x140019220]
mov r8d, 0x44
mov rcx, rbp
call fcn.140024740
mov rsi, rbp
nop dword [rax]
test edi, edi
jne 0x14001943c
mov rcx, rbx
mov r9, rbp
jmp 0x14001945c
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140019443
movsxd rcx, eax
movsxd rax, edi
add rcx, rbx
imul r9, rax, 0x44
add r9, rbp
mov r8d, dword [rsi]
lea rdx, str.COM_d_:__s_n
add r9, 4
call fcn.140001190
inc edi
add rsi, 0x44
cmp edi, r14d
jl 0x140019430
mov r9d, 0x40
lea r8, str.Available_COMM_port
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call fcn.14001d900
mov rcx, rbp
call fcn.14001d900
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001d8e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14001e434
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e47e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e47e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e47e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e47e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e47e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001e480
xor al, al
add rsp, 0x28
ret

Function at 0x14002abd0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002a9c0
Function at 0x140031144
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003b0c0
sub rsp, rax
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002e4b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140031193
mov rax, rbp
jmp 0x14003129b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1082c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140030d88
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1082c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140031297
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140031297
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140030d88
test rax, rax
js 0x140031297
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140031297
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140031289
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140031289
cmp byte [rcx], 0xd
jne 0x14003126f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003127e
cmp byte [rcx + 1], 0xa
jne 0x14003127e
inc rcx
jmp 0x14003127e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x50500]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140031251
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003129b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001d8e0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140031408
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400313e5
call fcn.14002c464
mov dword [rax], socket
call fcn.14002c328
or eax, 0xffffffff
jmp 0x140031402
sub dword [rcx + 0x10], 1
jns 0x1400313f4
add rsp, 0x28
jmp fcn.140033074
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400313c4
Function at 0x140032660
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1401082c0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400326be
cmp word [rdx], r12w
jne 0x1400326be
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400326c4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003281f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400327fa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400326fd
mov rcx, r9
jmp 0x140032720
cmp r9, rdx
jae 0x140032737
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400326e1
jmp 0x14003281f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400327f4
cmp dword [rsp + 0x80], edi
je 0x1400327f4
mov rdx, r14
lea r11, [0x1401082c0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400327cd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400327a0
mov word [rbx], r12w
jmp 0x14003281b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400327a9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14003281b
cmp word [rsp + 0x70], r12w
jne 0x1400327da
cmp rbx, rsi
je 0x14003279a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140030d90
cmp word [rsp + 0x70], r12w
je 0x14003281f
mov word [rbx], r13w
jmp 0x14003281b
lea r11, [0x1401082c0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140032817
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003281f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140033074
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400330a6
call fcn.14002c464
mov dword [rax], socket
call fcn.14002c328
jmp 0x1400331c5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400331c5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400331c5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400330d5
lock or dword [rcx + 0x14], 0x10
jmp 0x1400331c5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400330e9
call fcn.140039014
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002e4b0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140032b0c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400331b3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14003317e
mov rcx, rsi
call fcn.14002e4b0
cmp eax, edi
je 0x140033169
mov rcx, rsi
call fcn.14002e4b0
cmp eax, 0xfffffffe
je 0x140033169
mov rcx, rsi
call fcn.14002e4b0
movsxd rbx, eax
lea r14, [0x1401082c0]
mov rcx, rsi
sar rbx, 6
call fcn.14002e4b0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140033170
lea rdx, [0x140050170]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003317e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400331a2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400331a2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400331a2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400331c8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140034b5c
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 0x140034b8c
xor eax, eax
jmp 0x140034c4f
mov rbp, rbx
cmp word [rax], si
je 0x140034bb1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140034b98
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140034b94
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.140034aac
movsxd r14, eax
test eax, eax
jne 0x140034bef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140034b85
mov rcx, r14
call fcn.14002cf10
mov rdi, rax
test rax, rax
jne 0x140034c08
xor ecx, ecx
call fcn.14002c4fc
jmp 0x140034be4
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.140034aac
test eax, eax
jne 0x140034c39
mov rcx, rdi
call fcn.14002c4fc
jmp 0x140034c43
xor ecx, ecx
call fcn.14002c4fc
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 0x140034c6c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140034cf3
mov rsi, rbx
cmp word [rax], bp
je 0x140034cb2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140034c9c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140034c98
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002cf10
mov rdi, rax
test rax, rax
je 0x140034ce0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400212f0
mov rbp, rdi
xor ecx, ecx
call fcn.14002c4fc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003a6d0
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.140030d90
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140030d90
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003a820
cmp rax, 0xffffffffffffffff
je 0x14003a820
xor edi, edi
test rbp, rbp
jle 0x14003a7cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002c484
mov rbx, rax
test rax, rax
jne 0x14003a758
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003a7c1
mov edx, 0x8000
mov ecx, r14d
call fcn.14002bc54
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.140030564
cmp eax, 0xffffffff
je 0x14003a7a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003a768
mov edx, r15d
mov ecx, r14d
call fcn.14002bc54
jmp 0x14003a7c1
cmp byte [rsi + 0x38], dil
je 0x14003a7b8
cmp dword [rsi + 0x34], 5
jne 0x14003a7b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
cmp byte [rsi + 0x30], dil
je 0x14003a7c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002c4fc
jmp 0x14003a834
jns 0x14003a834
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140030d90
cmp rax, 0xffffffffffffffff
jne 0x14003a7ec
cmp byte [rsi + 0x30], dil
je 0x14003a834
mov edi, dword [rsi + 0x2c]
jmp 0x14003a834
mov ecx, r14d
call fcn.140035bc0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003a834
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, InitCommonControls
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
jmp 0x14003a834
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003a82d
mov eax, dword [rsi + 0x2c]
jmp 0x14003a832
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140030d90
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 0x14003b000
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003b028
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003b028
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140010d30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x1571
mov dword [rcx + 0x1384], 0xffffffff
mov dword [rcx + 4], eax
lea r9, [rcx + 8]
mov r8d, 1
nop dword [rax]
mov edx, eax
lea r9, [r9 + 4]
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
inc r8
mov dword [r9 - 4], eax
cmp r8, 0x270
jb 0x140010d50
mov dword [rcx], 0x270
mov rax, rcx
ret

Function at 0x140012760
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400127c1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140012780
mov ecx, dword [r9]
jmp 0x1400128ab
cmp ecx, 0x4e0
jb 0x1400128ab
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400127e0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140012830
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret