joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180118770
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov r14d, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov qword [rdx + 0x10], rsi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x1801187b4
mov rax, qword [rdx]
mov word [rax], si
call fcn.180118890
movzx edi, al
mov byte [rsp + 0x20], al
jmp 0x1801187d9
test dil, dil
jne 0x180118859
cmp r14d, 0x1a
jne 0x180118859
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1801187f5
mov rax, qword [rbx]
mov word [rax], si
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180118830
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.18007da60
movzx edi, dil
mov eax, 1
cmp qword [rbx + 0x10], 0
cmovne edi, eax
movzx eax, dil
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rsi
ret

Function at 0x180118b40
Capabilities:
Query environment variable

Disassembly:
mov rdx, rcx
mov ecx, 0x1a
jmp fcn.180118770

Function at 0x180119a80
Capabilities:
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, edx
mov rbx, rcx
and edi, 0xffffb1af
cmp qword [rcx + 0x18], 8
jb 0x180119abd
mov rcx, qword [rcx]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x180119ad0
mov al, 1
jmp 0x180119b7e
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18011a260
test al, al
je 0x180119b21
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x180119b21
mov bl, 1
jmp 0x180119b23
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180119b68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180119b63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180119b63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x180119ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x180119bd5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180119c86
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x180601b00]
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18011a260
test al, al
je 0x180119c2e
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180119c73
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180119c6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180119c6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
movdqa xmm0, xmmword [0x180601b00]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180119ff0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 8
jb 0x18011a032
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x18011a03c
mov rbx, qword [rbx]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x18011a08c
xor eax, eax
mov r8, 0xffffffffffffffff
mov word [rsp + 0x22a], ax
lea rax, [rsp + 0x20]
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18011a070
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.18007da60
mov al, 1
jmp 0x18011a08e
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret

Function at 0x18011b110
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.1804688ec
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x18011b177
cmp dword [rsp + 0x24], 6
mov rcx, qword [rbx]
setae dl
mov byte [rcx], dl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x150
pop rbx
ret
Function at 0x18011e640
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x68
ret

Function at 0x18011e690
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18011e7f2
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x18011e6f4
jne 0x18011e795
cmp dword [rbx + 8], 2
jb 0x18011e795
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x18011e795
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18011e795
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18011e795
movups xmm0, xmmword [0x1805e5f38]
mov rcx, rax
movups xmm1, xmmword [0x1805e5f48]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x18011e795
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18011e795
cmp word [rdi + 2], ax
jbe 0x18011e795
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x18011e7e6
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x18011e7e6
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x18011e7f4
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x170
pop rbx
ret
Function at 0x180120fb0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, r8d
mov r14, rdx
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov ebx, r12d
mov qword [rsp + 0x48], rbx
lea r13, [r12 - 1]
cmp r8d, 0x3fe
jbe 0x180121083
lea ecx, [rbp + 2]
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.180468de4
mov r14, rax
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x18012104f
cmp eax, ebp
ja 0x18012104f
mov ecx, eax
mov word [rbx + rcx*2], r12w
lea ecx, [rax + 1]
mov word [rbx + rcx*2], r12w
mov ebp, eax
jmp 0x1801210b2
test r14, r14
je 0x18012105c
mov rcx, r14
call fcn.180468ddc
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, rbp
add rax, rax
cmp rax, 0x800
jae 0x1801211e6
mov word [rax + rdx], r12w
lea ecx, [rbp + 1]
add rcx, rcx
cmp rcx, 0x800
jae 0x1801211e0
mov word [rcx + rdx], r12w
mov eax, r12d
mov edi, r12d
test ebp, ebp
je 0x1801211c5
mov rsi, r14
cmp word [rsi], 0
jne 0x1801211b7
cmp eax, edi
je 0x1801211b7
lea rdx, [r14 + rax*2]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
mov r8, r13
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x180121100
lea rcx, [rsp + 0x20]
call fcn.18007da60
nop
mov rdx, qword [r15 + 8]
cmp qword [r15 + 0x10], rdx
je 0x180121154
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], r12
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
add qword [r15 + 8], 0x20
jmp 0x180121162
lea r8, [rsp + 0x20]
mov rcx, r15
call fcn.180099770
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1801211a0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18012119b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801211d9
call fcn.180468ddc
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
lea eax, [rdi + 1]
inc edi
add rsi, 2
cmp edi, ebp
jb 0x1801210c3
test rbx, rbx
je 0x1801211d2
mov rcx, rbx
call fcn.180468ddc
mov al, 1
jmp 0x18012105e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468f40
int3
call fcn.180468f40
int3
Function at 0x180121a00
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], recv
mov byte [rcx], dil
mov dword [rsp + 0x20], 1
mov ebx, edi
test r8d, r8d
je 0x180121c21
mov ecx, edi
nop word [rax + rax]
dec ebp
movzx eax, byte [r14]
mov byte [rsp + rcx + 0x80], al
inc ebx
inc rcx
lea r14, [r14 + 1]
movzx r13d, byte [rsp + 0x82]
movzx r15d, byte [rsp + 0x81]
movzx r12d, byte [rsp + 0x80]
cmp rcx, 3
jne 0x180121b29
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x88], al
movzx ecx, r12b
and cl, 3
shl cl, 4
movzx eax, r15b
shr al, 4
add cl, al
mov byte [rsp + 0x89], cl
movzx ecx, r15b
and cl, 0xf
shl cl, 2
movzx eax, r13b
shr al, 6
add cl, al
mov byte [rsp + 0x8a], cl
movzx eax, r13b
and al, 0x3f
mov byte [rsp + 0x8b], al
mov rbx, rdi
nop dword [rax]
lea rcx, [0x1806c7570]
cmp qword [0x1806c7588], 0x10
cmovae rcx, qword [0x1806c7570]
movzx eax, byte [rsp + rbx + 0x88]
movzx edx, byte [rax + rcx]
mov rcx, rsi
call fcn.180118310
inc rbx
cmp rbx, 4
jl 0x180121af0
mov ebx, edi
mov rcx, rdi
test ebp, ebp
jne 0x180121a60
test ebx, ebx
je 0x180121c21
movsxd rax, ebx
cmp rax, 3
jge 0x180121b74
jae 0x180121c39
mov byte [rsp + rax + 0x80], 0
inc rax
cmp rax, 3
jl 0x180121b42
movzx r13d, byte [rsp + 0x82]
movzx r15d, byte [rsp + 0x81]
movzx r12d, byte [rsp + 0x80]
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x88], al
and r12b, 3
shl r12b, 4
movzx eax, r15b
shr al, 4
add r12b, al
mov byte [rsp + 0x89], r12b
and r15b, 0xf
shl r15b, 2
movzx eax, r13b
shr al, 6
add r15b, al
mov byte [rsp + 0x8a], r15b
and r13b, 0x3f
mov byte [rsp + 0x8b], r13b
lea eax, [rbx + 1]
movsxd rbp, eax
test eax, eax
jle 0x180121c03
nop dword [rax]
lea rcx, [0x1806c7570]
cmp qword [0x1806c7588], 0x10
cmovae rcx, qword [0x1806c7570]
movzx eax, byte [rsp + rdi + 0x88]
movzx edx, byte [rax + rcx]
mov rcx, rsi
call fcn.180118310
inc rdi
cmp rdi, rbp
jl 0x180121bd0
cmp ebx, 3
jge 0x180121c21
mov eax, 3
sub eax, ebx
mov ebx, eax
mov dl, 0x3d
mov rcx, rsi
call fcn.180118310
sub rbx, 1
jne 0x180121c11
mov rax, rsi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180468f40
int3
Function at 0x180122bd0
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [r11 - 0x50], rcx
xor ebp, ebp
mov qword [rcx], rbp
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x30], rbp
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x30], 7
mov word [rsp + 0x30], bp
lea r8d, [rbp + 0x26]
lea rdx, str.98B9F6E6_463F_4E42_874C_927C4C84A8F7
lea rcx, [r11 - 0x48]
call fcn.18007da60
nop
mov qword [rbx + 8], rbp
mov word [rbx + 0x10], bp
cmp qword [rsp + 0x40], rbp
je 0x180122c57
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
jmp 0x180122c5a
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 8], rax
test rax, rax
je 0x180122c7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180122c7e
mov byte [rbx + 0x11], 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180122cc3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180122cbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180122cbe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
lea rcx, [rbx + 0x18]
mov rdx, rdi
call fcn.18007d8c0
nop
lea rcx, [rbx + 0x38]
mov rdx, rsi
call fcn.18007d8c0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x180128990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
test rcx, rcx
je 0x180128b42
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov r14d, r9d
mov rbx, rdx
mov r15, rcx
test rdx, rdx
je 0x180128b2a
lea eax, [r9 - 1]
cmp eax, 3
ja 0x180128b2a
movzx edx, r8w
lea r8, [0x1805e7438]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1801289fc
xor ebx, ebx
jmp 0x180128aff
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
jne 0x180128a15
xor ebx, ebx
jmp 0x180128aff
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180128a2d
xor ebx, ebx
jmp 0x180128aff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180128aff
mov rdx, rbp
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
jne 0x180128a5f
xor ebx, ebx
jmp 0x180128aff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x180128a7d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
jmp 0x180128aff
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x180128af6
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180128af6
call fcn.1801240b0
mov rdi, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
test rdi, rdi
je 0x180128af1
mov ecx, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebx
test ecx, ecx
je 0x180128af1
mov rax, qword [rdi]
lea edx, [rbx + 1]
mov rcx, rdi
call qword [rax]
mov edi, ebx
mov rbx, rdi
jmp 0x180128aff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x180128b18
mov r8d, r14d
mov rdx, rbx
mov rcx, r15
call fcn.1801287c0
nop
test rbx, rbx
je 0x180128b2a
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180128b50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov qword [r11 - 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rdx
mov r12, rcx
mov qword [r11 - 0x40], rdx
test rcx, rcx
je 0x180128cf3
lea rcx, [r11 - 0x60]
call fcn.18007d8c0
mov rsi, rax
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x180128bb7
mov rcx, qword [rax]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180128cbc
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
je 0x180128cb2
mov dword [rsp + 0x48], ebx
mov ecx, r14d
call fcn.180468de4
mov r15, rax
test rax, rax
je 0x180128cb2
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x48]
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180128caa
mov r14d, dword [rsp + 0x48]
mov qword [rsp + 0x40], rbx
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x180128caa
mov edx, r14d
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
call qword [rax + 0x20]
test eax, eax
jne 0x180128c9f
lea ecx, [rax + 0x18]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180128c9f
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.180124050
mov rbx, rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, r15
call fcn.180468ddc
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsi
call fcn.18007d9c0
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x180128ce0
mov r8d, 1
mov rdx, rbx
mov rcx, r12
call fcn.1801287c0
nop
test rbx, rbx
je 0x180128cf3
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov rcx, rdi
call fcn.18007d9c0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1804688c0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180133da0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x30], 0
mov eax, 0x51
mov word [rsp + 0x80], ax
mov eax, 0x69
mov word [rsp + 0x82], ax
mov eax, WSAGetLastError
mov word [rsp + 0x84], ax
mov eax, 0x67
mov word [rsp + 0x86], ax
mov eax, WSAGetLastError
mov word [rsp + 0x88], ax
mov eax, 0x69
mov word [rsp + 0x8a], ax
mov eax, 0x61
mov word [rsp + 0x8c], ax
mov eax, reloc.WS2_32.dll_WSAGetLastError
mov word [rsp + 0x8e], ax
mov eax, 0x20
mov word [rsp + 0x90], ax
mov eax, 0x43
mov word [rsp + 0x92], ax
mov eax, 0x68
mov word [rsp + 0x94], ax
mov eax, WSACleanup
mov word [rsp + 0x96], ax
mov eax, reloc.WS2_32.dll_WSAGetLastError
mov word [rsp + 0x98], ax
mov eax, WSAGetLastError
mov word [rsp + 0x9a], ax
mov eax, 0x65
mov word [rsp + 0x9c], ax
xor eax, eax
mov word [rsp + 0x9e], ax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.18007d860
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180135000
nop
lea rcx, [rsp + 0x60]
call fcn.18007d7e0
lea rcx, [rsp + 0x40]
call fcn.18007d750
movzx eax, al
test eax, eax
je 0x180133f11
lea rdx, [0x1805c3d08]
mov rcx, qword [rsp + 0x2d0]
call fcn.18007d860
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.18007d7e0
mov rax, qword [rsp + 0x2d0]
jmp 0x18013403c
lea rcx, [rsp + 0x40]
call fcn.18010b7a0
movzx eax, al
test eax, eax
jne 0x180133f58
lea rdx, [0x1805c3d08]
mov rcx, qword [rsp + 0x2d0]
call fcn.18007d860
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.18007d7e0
mov rax, qword [rsp + 0x2d0]
jmp 0x18013403c
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.18007d760
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0xa0]
lea r8, [0x1805c3d08]
lea rdx, [0x1805dbd38]
lea rcx, str.AppLoadInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rax, [rsp + 0xa0]
lea rcx, [0x1805c3d08]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x180133fce
add rax, 2
test dx, dx
jne 0x180133fb8
xor eax, eax
jmp 0x180133fd3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x18013400a
lea rdx, [0x1805c3d08]
mov rcx, qword [rsp + 0x2d0]
call fcn.18007d860
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.18007d7e0
mov rax, qword [rsp + 0x2d0]
jmp 0x18013403c
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x2d0]
call fcn.18007d860
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.18007d7e0
mov rax, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x2c0
pop rdi
ret