joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400034f4
Capabilities:
Parse pe header

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

Function at 0x140007e5c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140007ecb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007ecb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007ecb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007ecb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007ecb
cmp dword [rcx + 0x84], 0xe
jbe 0x140007ecb
cmp dword [rcx + 0xf8], 0
je 0x140007ecb
mov ecx, ebx
call fcn.140007fd0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140007c90
nop
cmp dword [rbp + 0x20], 0
je 0x140007f19
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007f24
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007e5c

Function at 0x1400080bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007e5c
Function at 0x140013c50
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.140009f00
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 0x140013cf1
cmp ebx, dword [rsp + 0x30]
je 0x140013cea
test esi, esi
je 0x140013cea
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140013cc5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140013cd2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140013caf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140013cd6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140013cf3
mov eax, 1
jmp 0x140013cf3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140014f88
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 0x140014fb8
xor eax, eax
jmp 0x14001507b
mov rbp, rbx
cmp word [rax], si
je 0x140014fdd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140014fc4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140014fc0
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.140015280
movsxd r14, eax
test eax, eax
jne 0x14001501b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014fb1
mov rcx, r14
call fcn.14000a984
mov rdi, rax
test rax, rax
jne 0x140015034
xor ecx, ecx
call fcn.140008cb4
jmp 0x140015010
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.140015280
test eax, eax
jne 0x140015065
mov rcx, rdi
call fcn.140008cb4
jmp 0x14001506f
xor ecx, ecx
call fcn.140008cb4
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 0x140015098
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 0x14001511f
mov rsi, rbx
cmp word [rax], bp
je 0x1400150de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400150c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400150c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000a984
mov rdi, rax
test rax, rax
je 0x14001510c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140023360
mov rbp, rdi
xor ecx, ecx
call fcn.140008cb4
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 0x14001d2b8
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.14000dea8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001d342
cmp byte [rbp - 0x21], r15b
je 0x14001d33d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001d378
call fcn.14000bc24
test eax, eax
jne 0x14001d364
cmp byte [rbp - 0x21], r15b
je 0x14001d35c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001d378
cmp byte [rbp - 0x21], r15b
je 0x14001d375
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.14000ef48
test eax, eax
jne 0x14001d418
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000dea8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001d3b7
cmp byte [rbp - 0x21], r15b
je 0x14001d3ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001d3ec
call fcn.14000bc24
test eax, eax
jne 0x14001d3d8
cmp byte [rbp - 0x21], r15b
je 0x14001d3d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001d3ec
cmp byte [rbp - 0x21], r15b
je 0x14001d3e9
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.14000ef48
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001d418
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001d41b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001d429
mov rcx, rdi
call fcn.140008cb4
cmp byte [rbp + 0x3f], r15b
je 0x14001d438
mov rcx, qword [rbp + 0x27]
call fcn.140008cb4
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 0x14001f9d0
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, [0x140167310]
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 0x14001fa27
cmp word [rdx], r13w
jne 0x14001fa27
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001fa2c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001fb51
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001fb72
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001fa65
mov rdx, r9
mov word [rbx], cx
jmp 0x14001fa8c
cmp r9, r8
jae 0x14001fa9c
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 0x14001fa46
jmp 0x14001fb51
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 0x14001fb46
cmp dword [rsp + 0x80], esi
je 0x14001fb46
lea r8, [0x140167310]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001fb1e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001faee
mov word [rbx], r13w
jmp 0x14001fb4e
mov ecx, reloc.WS2_32.dll_listen
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 0x14001fafb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001fb4e
cmp word [rsp + 0x70], r13w
jne 0x14001fb2b
cmp rbx, r14
je 0x14001fae8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140020f64
cmp word [rsp + 0x70], r13w
je 0x14001fb51
mov ecx, reloc.WS2_32.dll_listen
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, [0x140167310]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001fb4b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001fb51
Function at 0x1400307b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.1400382c0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1400a2850
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x1400307e3
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140038370

Function at 0x140031130
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov esi, edx
mov rbx, rcx
test rcx, rcx
je 0x140031202
mov qword [rsp + 0x40], rbp
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
nop
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x140031160
mov eax, 1
xor r15d, r15d
sub eax, esi
mov ebp, r15d
add ecx, eax
cmovns ebp, ecx
mov rcx, rbx
call fcn.1400383a0
mov edx, edi
mov ecx, ebp
mov r14d, eax
call fcn.1400382c0
mov rdi, rax
test r14d, r14d
je 0x1400311a3
mov ecx, r14d
call fcn.1400383e0
mov rbx, rax
mov r14, qword [rsp + 0x48]
mov ecx, ebp
test rbx, rbx
je 0x1400311e7
cmp esi, 1
jle 0x1400311c5
cmp word [rbx], r15w
je 0x1400311c5
add rbx, 2
dec esi
cmp esi, 1
jg 0x1400311b4
movzx eax, word [rbx]
test ax, ax
je 0x1400311e7
sub rbx, rdi
test ecx, ecx
je 0x1400311e7
mov word [rdi], ax
dec ecx
movzx eax, word [rbx + rdi + 2]
add rdi, 2
test ax, ax
jne 0x1400311d0
call fcn.140038370
mov rbp, qword [rsp + 0x40]
mov word [rdi], r15w
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov ecx, edi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp fcn.140038410

Function at 0x140031560
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x30
mov ebp, r9d
mov rbx, rcx
test r8, r8
je 0x140031659
movzx r12d, word [r8]
test r12w, r12w
je 0x140031659
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x28], r14
mov eax, r13d
mov qword [rsp + 0x20], r15
cmovns eax, edx
test rcx, rcx
je 0x1400315d9
cmp word [rcx], r13w
je 0x1400315d9
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x1400315c0
cmp edi, eax
mov esi, r13d
cmovg edi, eax
sub eax, edi
cmovns esi, eax
jmp 0x1400315de
mov edi, r13d
mov esi, eax
call fcn.1400383a0
lea ecx, [rdi + rsi]
mov edx, ebp
mov r15d, eax
call fcn.1400382c0
mov r14, rax
test r15d, r15d
je 0x140031603
mov ecx, r15d
call fcn.1400383e0
mov rbx, rax
movsxd r15, edi
test edi, edi
je 0x14003161d
movsxd rcx, esi
lea r8, [r15 + r15]
mov rdx, rbx
lea rcx, [r14 + rcx*2]
call fcn.140023360
test esi, esi
je 0x140031632
mov rdi, r14
mov edx, esi
mov rax, r12
mov ecx, esi
rep stosw word [rdi], ax
lea r14, [r14 + rdx*2]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov word [r14 + r15*2], r13w
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rbp
pop rbx
ret
mov ecx, ebp
add rsp, 0x30
pop r12
pop rbp
pop rbx
jmp fcn.140038410
Function at 0x140031c7c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor edi, edi
mov r13, r8
cmp dword [rcx + 0x20], 1
mov rbx, rdx
mov r15, rcx
mov r12d, edi
jne 0x140031e31
test rdx, rdx
je 0x140031e31
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 7]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140031e31
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x140166468]
xor edx, edx
mov eax, eax
mov r8d, 0x200000
mov qword [rsp + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140031e28
call fcn.140073ba0
mov rsi, rax
test rax, rax
je 0x140031e16
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400c6358
mov edx, 0x1a4
mov rcx, rsi
call fcn.140074140
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140074850
mov rax, qword [r15 + 0x48]
mov ecx, dword [rax + 0x10]
dec ecx
test ecx, 0xfffffffd
je 0x140031d74
mov rdx, r13
mov rcx, rsi
call fcn.1400734f0
jmp 0x140031d92
mov rcx, r13
call fcn.1400a3150
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call fcn.140074130
mov rcx, rbx
call fcn.1400a3140
mov rbx, qword [rsp + 0xc8]
mov rcx, rsi
mov rdx, rbx
call fcn.140074180
mov edx, 0x8000
mov rcx, rsi
call fcn.140073f50
mov rcx, qword [r15]
mov rdx, rsi
call fcn.140074840
jmp 0x140031ddd
mov rcx, qword [r15]
mov rdx, r14
movsxd r8, eax
call fcn.1400747c0
movsxd rcx, dword [rsp + 0xb0]
cmp rax, rcx
jne 0x140031e07
add r12, rcx
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x20], rdi
mov r8d, 0x200000
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0xb0]
test eax, eax
jg 0x140031dbf
mov rcx, rsi
call fcn.140073860
cmp r12, rbx
sete dil
mov rcx, qword [0x140166468]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xb8]
mov rax, rdi
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400329b0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x1400328cc]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.1400360e0
xor r8d, r8d
mov qword [0x140167dc8], rax
xor edx, edx
mov ecx, ebx
call fcn.140035e08
xor ebx, ebx
mov qword [0x14016d260], rax
cmp word [0x140167dc0], bx
jne 0x140032ad3
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140032a18
movzx eax, di
jmp 0x140032a1a
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x140167dc0], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140167dd0], rax
test rax, rax
je 0x140032ad3
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140167dd0]
lea rdx, str.freeaddrinfo
mov qword [0x140167da0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140167dd0]
lea rdx, str.getnameinfo
mov qword [0x140167da8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140167dd0]
lea rdx, str.WSAStringToAddressA
mov qword [0x140167db0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140167da0], rbx
mov qword [0x140167db8], rax
je 0x140032ad3
cmp qword [0x140167da8], rbx
je 0x140032ad3
cmp qword [0x140167db0], rbx
je 0x140032ad3
mov ecx, dword [0x140167dc4]
test rax, rax
cmovne ecx, edi
mov dword [0x140167dc4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x1400354a0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x14016d2c0]
call fcn.140035fb0
mov rbx, rax
test rax, rax
je 0x1400354f3
cmp qword [rax + 8], 0
je 0x1400354d2
cmp dword [rax + 0x1c], 0
jne 0x1400354d2
mov rcx, rax
call fcn.140035620
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x140035500
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 0
mov rdx, rcx
mov rbx, r8
mov rcx, qword [0x14016d2c0]
call fcn.140035fb0
test rax, rax
je 0x140035568
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x14003554e
mov r8, rbx
mov rcx, rax
call fcn.140035820
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140035580
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x14016d2c0]
jne 0x1400355a0
add rsp, 0x30
pop rdi
jmp fcn.140035f0c
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.140035fb0
mov rbx, rax
test rax, rax
je 0x140035615
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400355fd
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x1400355ea
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x140166468]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016d2c0]
mov rdx, rdi
call fcn.140035f44
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140035620
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140035664
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x1400356b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x14016d2c0]
call fcn.140035fb0
mov rbx, rax
test rax, rax
je 0x140035700
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.140035970
mov r8d, dword [rbx + 0x20]
lea rdx, [0x14011e3c8]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140035970
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140035820
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov r15, rdx
mov r14, rcx
cmp dword [rcx + 0x1c], ebp
jne 0x140035857
call fcn.140035620
mov dword [r14 + 0x1c], 1
mov dword [r14 + 0x14], ebp
movsxd r12, dword [r14 + 0x14]
mov eax, dword [r14 + 0x18]
mov rbx, r12
sub eax, r12d
movsxd rdx, eax
add rdx, qword [r14 + 8]
cmp r12, rdi
jl 0x1400358d0
mov rax, rdi
sub rax, 1
je 0x1400358c1
sub rax, 1
je 0x1400358ae
cmp rax, 2
je 0x14003589d
mov r8, rdi
mov rcx, r15
call fcn.140023360
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14003594a
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14003594a
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14003594a
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14003594a
mov r8, rbx
mov rcx, r15
call fcn.140023360
movsxd r8, dword [r14 + 0x10]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
add r15, rbx
sub rdi, rbx
mov qword [rsp + 0x20], rbp
cmp rdi, r8
jl 0x140035910
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
add eax, r12d
mov dword [r14 + 0x14], ebp
jmp 0x140035948
mov rdx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r14 + 8]
cmp rdi, rax
mov rbx, rax
mov dword [r14 + 0x14], eax
cmovle rbx, rdi
mov dword [r14 + 0x18], eax
mov r8, rbx
call fcn.140023360
sub dword [r14 + 0x14], ebx
lea eax, [rbx + r12]
cdqe
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret