joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400017ac
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, r9
mov r14, r8
mov r12d, edx
mov r15, rcx
mov dword [rbp - 0x20], 0x78563412
cmp dword [rcx + 0x58], 1
jbe 0x14000198d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor esi, esi
mov qword [rbp - 8], rsi
mov byte [rbp + 0x30], sil
mov al, byte [rcx + 0x5c]
neg al
sbb rdx, rdx
and edx, 4
cmp r8, 0x7e
sbb rax, rax
not rax
and eax, 2
add rdx, rax
cmp r8, 0x10000
sbb rax, rax
and rax, 0xfffffffffffffffa
add rax, 8
add rdx, rax
lea r8, [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1400023f0
mov dl, 0x80
or r12b, dl
mov rdi, qword [rbp - 0x18]
mov byte [rdi], r12b
mov al, byte [r15 + 0x5c]
cmp r14, 0x7e
jae 0x140001869
neg al
sbb al, al
and al, dl
or al, r14b
mov byte [rdi + 1], al
cmp byte [r15 + 0x5c], sil
je 0x1400018f5
mov dword [rdi + 2], 0x78563412
jmp 0x1400018f5
mov rcx, r14
shr rcx, 8
cmp r14, 0x10000
jae 0x14000189a
neg al
sbb al, al
and al, dl
add al, 0x7e
mov byte [rdi + 1], al
mov byte [rdi + 2], cl
mov byte [rdi + 3], r14b
cmp byte [r15 + 0x5c], sil
je 0x1400018f5
mov dword [rdi + 4], 0x78563412
jmp 0x1400018f5
neg al
sbb al, al
and al, dl
add al, 0x7f
mov byte [rdi + 1], al
mov rax, r14
shr rax, 0x38
mov byte [rdi + 2], al
mov rax, r14
shr rax, 0x30
mov byte [rdi + 3], al
mov rax, r14
shr rax, 0x28
mov byte [rdi + 4], al
mov rax, r14
shr rax, 0x20
mov byte [rdi + 5], al
mov rax, r14
shr rax, 0x18
mov byte [rdi + 6], al
mov rax, r14
shr rax, 0x10
mov byte [rdi + 7], al
mov byte [rdi + 8], cl
mov byte [rdi + 9], r14b
cmp byte [r15 + 0x5c], sil
je 0x1400018f5
mov dword [rdi + 0xa], 0x78563412
lea r12, [r15 + 0x20]
mov r9, qword [rbp - 0x10]
sub r9, rdi
mov rdx, qword [r15 + 0x28]
mov r8, rdi
mov rcx, r12
call fcn.1400013d8
mov r9, qword [rbp + 0x50]
sub r9, rbx
mov rdx, qword [r15 + 0x28]
mov r8, rbx
mov rcx, r12
call fcn.1400013d8
cmp byte [r15 + 0x5c], sil
je 0x14000195d
mov r8, qword [r12 + 8]
sub r8, qword [r12]
sub r8, r14
test r14, r14
je 0x14000195d
mov rdx, qword [r12]
add rdx, rsi
mov cl, byte [rdx + r8]
mov rax, rsi
and eax, 3
xor cl, byte [rbp + rax - 0x20]
mov byte [rdx + r8], cl
inc rsi
cmp rsi, r14
jne 0x14000193c
mov rdx, qword [rbp - 8]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140001985
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019a6
mov rcx, rdi
call fcn.14002f7e8
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140036134
int3
Function at 0x140002c1c
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140095098]
xor rax, rsp
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
lea r8, [0x14005b5c0]
mov rbx, rcx
mov r9d, edx
movups xmmword [rsp + 0x48], xmm0
or rdi, 0xffffffffffffffff
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x78]
movups xmmword [rsp + 0x58], xmm0
lea edx, [rdi + 0x11]
movups xmmword [rsp + 0x68], xmm0
call fcn.1400016f4
cmp qword [rbx + 0x18], 0x10
jb 0x140002c7d
mov rbx, qword [rbx]
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140002ce9
and qword [rsp + 0x30], 0
lea rbx, [0x140096d80]
mov r9d, 0x400
mov r8d, eax
mov dword [rsp + 0x28], r9d
xor edx, edx
mov ecx, 0x12ff
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, 2
call fcn.1400362cc
mov r8, rbx
lea rdx, str.getaddrinfo:__s_n
mov rcx, rax
call fcn.1400032c0
mov eax, 1
jmp 0x140002d49
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140002d3d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002d2f
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140002d38
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or rdi, 0xffffffffffffffff
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140002cf3
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002fcc0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x140003de4
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140003e12
xor eax, eax
jmp 0x140003ef8
cmp qword [rcx + 0x68], 0
je 0x140003e23
call fcn.1400034b0
jmp 0x140003ef8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003e3a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003e3c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003e6e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140031610
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140003ef2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140003ea5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140003ece
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400415fc
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140003ef2
cmp rsi, rbx
ja 0x140003eac
test rsi, rsi
je 0x140003ef2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400415fc
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001fff8
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x140020185
cmp ecx, 0x7c
je 0x140020185
cmp ecx, 0x29
jne 0x140020072
cmp dword [rdi + 0x1c], 0
jne 0x140020185
lea rbx, [rdi + 0x80]
test dword [rbx], 0x10000000
je 0x14002019e
cmp ecx, 0x5d
jne 0x14002004f
test dword [rbx], 0x10000000
je 0x1400201ac
mov dl, byte [rdi + 0x78]
lea rcx, [rdi + 0x40]
call fcn.14001f618
mov rcx, rdi
call fcn.1400238cc
mov rcx, rdi
call fcn.140023b6c
mov ecx, dword [rdi + 0x7c]
mov al, 1
jmp 0x14002000a
lea rbx, [rdi + 0x80]
cmp ecx, 0x2e
jne 0x140020089
lea rcx, [rdi + 0x40]
call fcn.14001f890
jmp 0x14002005b
cmp ecx, 0x5c
jne 0x1400200d7
mov rcx, rdi
call fcn.1400238cc
test byte [rbx], 0x80
je 0x1400200cd
mov al, byte [rdi + 0x78]
cmp al, 0x62
jne 0x1400200b5
lea rcx, [rdi + 0x40]
call fcn.14001ffec
mov rcx, rdi
call fcn.1400238cc
jmp 0x14002006b
cmp al, 0x42
jne 0x1400200cd
lea rcx, [rdi + 0x40]
call fcn.14001ffec
lea rcx, [rdi + 0x40]
call fcn.140023868
jmp 0x1400200ab
mov rcx, rdi
call fcn.1400201c8
jmp 0x140020063
cmp ecx, 0x5b
jne 0x140020102
mov rcx, rdi
call fcn.1400238cc
mov rcx, rdi
call fcn.1400209fc
mov edx, 0x5d
mov rcx, rdi
lea r8d, [rdx - 0x59]
call fcn.140021fbc
jmp 0x140020063
cmp ecx, 0x28
jne 0x140020137
mov rcx, rdi
call fcn.1400238cc
mov rcx, rdi
call fcn.1400243c8
mov edx, 0x29
mov rcx, rdi
mov bl, al
lea r8d, [rdx - 0x24]
call fcn.140021fbc
test bl, bl
je 0x14002006b
jmp 0x140020063
cmp ecx, 0x5e
jne 0x14002014a
lea rcx, [rdi + 0x40]
call fcn.14001f60c
jmp 0x1400200ab
cmp ecx, 0x24
jne 0x14002015d
lea rcx, [rdi + 0x40]
call fcn.14001f980
jmp 0x1400200ab
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400201ba
cmp ecx, 0x3f
je 0x1400201ba
cmp ecx, 0x7b
je 0x1400201ba
cmp ecx, 0x7d
jne 0x14002003e
test dword [rbx], 0x10000000
je 0x140020190
jmp 0x14002004f
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 6
mov rcx, rdi
call fcn.140021f3c
int3
mov edx, 5
mov rcx, rdi
call fcn.140021f3c
int3
mov edx, 4
mov rcx, rdi
call fcn.140021f3c
int3
mov edx, 0xa
mov rcx, rdi
call fcn.140021f3c
int3
Function at 0x140030550
Capabilities:
Parse pe header

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

Function at 0x1400444f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400442f0
Function at 0x14004b700
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.140030390
sub rsp, rax
mov rax, qword [0x140095098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400484e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004b74f
mov rax, rbp
jmp 0x14004b857
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 + 0x987c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004c820
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x987c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004b853
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 0x14004b853
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004c820
test rax, rax
js 0x14004b853
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004b853
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004b845
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004b845
cmp byte [rcx], 0xd
jne 0x14004b82b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004b83a
cmp byte [rcx + 1], 0xa
jne 0x14004b83a
inc rcx
jmp 0x14004b83a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x954a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004b80d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004b857
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002fcc0
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 0x14004ba78
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004ba8e
mov al, 1
jmp 0x14004baee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004ba9f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004baec
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400514b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004baec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004baec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004baec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004baee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004bbc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400987c0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14004bc17
cmp word [rdx], r13w
jne 0x14004bc17
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004bc1c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004bd41
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004bd62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004bc55
mov rdx, r9
mov word [rbx], cx
jmp 0x14004bc7c
cmp r9, r8
jae 0x14004bc8c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14004bc36
jmp 0x14004bd41
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004bd36
cmp dword [rsp + 0x80], esi
je 0x14004bd36
lea r8, [0x1400987c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004bd0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004bcde
mov word [rbx], r13w
jmp 0x14004bd3e
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14004bceb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004bd3e
cmp word [rsp + 0x70], r13w
jne 0x14004bd1b
cmp rbx, r14
je 0x14004bcd8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004c828
cmp word [rsp + 0x70], r13w
je 0x14004bd41
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400987c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004bd3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004bd41
Function at 0x1400508ac
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 0x1400508dc
xor eax, eax
jmp 0x14005099f
mov rbp, rbx
cmp word [rax], si
je 0x140050901
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400508e8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400508e4
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.14004efec
movsxd r14, eax
test eax, eax
jne 0x14005093f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400508d5
mov rcx, r14
call fcn.14004865c
mov rdi, rax
test rax, rax
jne 0x140050958
xor ecx, ecx
call fcn.1400476ec
jmp 0x140050934
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.14004efec
test eax, eax
jne 0x140050989
mov rcx, rdi
call fcn.1400476ec
jmp 0x140050993
xor ecx, ecx
call fcn.1400476ec
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 0x140053a04
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.140047314
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 0x140053aa5
cmp ebx, dword [rsp + 0x30]
je 0x140053a9e
test esi, esi
je 0x140053a9e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140053a79
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140053a86
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140053a63
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140053a8a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140053aa7
mov eax, 1
jmp 0x140053aa7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005768c
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.14003b570
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140057716
cmp byte [rbp - 0x21], r15b
je 0x140057711
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005774c
call fcn.1400479f0
test eax, eax
jne 0x140057738
cmp byte [rbp - 0x21], r15b
je 0x140057730
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005774c
cmp byte [rbp - 0x21], r15b
je 0x140057749
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.140043a28
test eax, eax
jne 0x1400577ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003b570
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005778b
cmp byte [rbp - 0x21], r15b
je 0x1400577c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400577c0
call fcn.1400479f0
test eax, eax
jne 0x1400577ac
cmp byte [rbp - 0x21], r15b
je 0x1400577a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400577c0
cmp byte [rbp - 0x21], r15b
je 0x1400577bd
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.140043a28
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400577ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400577ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400577fd
mov rcx, rdi
call fcn.1400476ec
cmp byte [rbp + 0x3f], r15b
je 0x14005780c
mov rcx, qword [rbp + 0x27]
call fcn.1400476ec
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 0x1400589f0
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.14004c828
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004c828
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140058b40
cmp rax, 0xffffffffffffffff
je 0x140058b40
xor edi, edi
test rbp, rbp
jle 0x140058aeb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140047674
mov rbx, rax
test rax, rax
jne 0x140058a78
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140058ae1
mov edx, 0x8000
mov ecx, r14d
call fcn.140045384
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.14004af78
cmp eax, 0xffffffff
je 0x140058ac1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140058a88
mov edx, r15d
mov ecx, r14d
call fcn.140045384
jmp 0x140058ae1
cmp byte [rsi + 0x38], dil
je 0x140058ad8
cmp dword [rsi + 0x34], 5
jne 0x140058ad8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x140058ae1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400476ec
jmp 0x140058b54
jns 0x140058b54
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004c828
cmp rax, 0xffffffffffffffff
jne 0x140058b0c
cmp byte [rsi + 0x30], dil
je 0x140058b54
mov edi, dword [rsi + 0x2c]
jmp 0x140058b54
mov ecx, r14d
call fcn.1400514b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140058b54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x140058b54
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140058b4d
mov eax, dword [rsi + 0x2c]
jmp 0x140058b52
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004c828
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 0x180014a18
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180014a2e
mov al, 1
jmp 0x180014a8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180014a3f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180014a8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180012b10
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180014a8c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180014a8c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180014a8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180014a8e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180016e74
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180016eec
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180016eec
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x180016eec
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180016ee0
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180016efe
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180016ece
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180016eee

Function at 0x1800173b0
Capabilities:
Parse pe header

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