Function at 0x1400ad190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0xf8], rax
mov rbx, r8
mov qword [rsp + 0x38], rbx
mov r15, rdx
mov qword [rsp + 0x40], rdx
mov r13, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov rax, qword [rcx + 0x158]
lea r12, [rsi - 1]
test rax, rax
jne 0x1400ad60a
mov qword [rbp + 0xe8], rsi
mov qword [rbp + 0xf0], rsi
mov qword [rbp + 0xe8], rsi
mov qword [rbp + 0xf0], 7
mov word [rbp + 0xd8], si
mov qword [rbp - 0x58], 0x107
mov qword [rbp - 0x50], 0xa
lfence
mov ecx, 0x210
call fcn.140002680
mov rdx, rax
mov qword [rbp + 0xe8], 0x104
mov qword [rbp + 0xf0], 0x107
movzx eax, si
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], si
mov qword [rbp + 0xd8], rdx
lea rcx, [rbp + 0xd8]
cmp qword [rbp + 0xf0], 8
cmovae rcx, qword [rbp + 0xd8]
mov rdx, qword [rbp + 0xe8]
call fcn.1401960f0
test al, al
je 0x1400ad8de
lea rax, [rbp + 0xd8]
mov r9, qword [rbp + 0xd8]
mov rdi, qword [rbp + 0xf0]
cmp rdi, 8
cmovae rax, r9
mov rdx, r12
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400ad2b1
mov rcx, qword [rbp + 0xe8]
cmp rdx, rcx
ja 0x1400ad2e3
lea rax, [rbp + 0xd8]
cmp rdi, 8
cmovae rax, r9
mov qword [rbp + 0xe8], rdx
mov word [rax + rdx*2], si
jmp 0x1400ad336
sub rdx, rcx
mov rax, rdi
sub rax, rcx
cmp rdx, rax
ja 0x1400ad324
lea r10, [rcx + rdx]
mov qword [rbp + 0xe8], r10
lea r8, [rbp + 0xd8]
cmp rdi, 8
cmovae r8, r9
lea rdi, [r8 + rcx*2]
test rdx, rdx
je 0x1400ad31d
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
mov word [r8 + r10*2], si
jmp 0x1400ad336
lfence
mov r9, rdx
lea rcx, [rbp + 0xd8]
call fcn.140011300
mov rsi, qword [rbp + 0xe8]
test rsi, rsi
je 0x1400ad8de
lea rax, [rbp + 0xd8]
mov r15, qword [rbp + 0xd8]
mov r14, qword [rbp + 0xf0]
cmp r14, 8
cmovae rax, r15
cmp word [rax + rsi*2 - 2], 0x5c
je 0x1400ad4be
cmp rsi, r14
jae 0x1400ad3a1
lea rax, [rsi + 1]
mov qword [rbp + 0xe8], rax
lea rax, [rbp + 0xd8]
cmp r14, 8
cmovae rax, r15
mov dword [rax + rsi*2], 0x5c
mov r15, qword [rbp + 0xd8]
jmp 0x1400ad4b0
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rsi
cmp rax, 1
jb 0x1400ad9ae
lea rcx, [rsi + 1]
or rcx, 7
mov qword [rbp - 0x48], rcx
cmp rcx, rdi
ja 0x1400ad408
mov rdx, r14
shr rdx, 1
mov rax, rdi
sub rax, rdx
cmp r14, rax
ja 0x1400ad408
lea rax, [r14 + rdx]
mov qword [rbp - 0x40], rax
mov rdi, rcx
cmp rcx, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400ad9b4
jmp 0x1400ad412
movabs rcx, 0x7fffffffffffffff
lfence
add rcx, rcx
call fcn.140002680
mov r15, rax
lea rax, [rsi + 1]
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], rdi
add rsi, rsi
mov r8, rsi
mov rcx, r15
cmp r14, 8
jb 0x1400ad495
mov rdi, qword [rbp + 0xd8]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsi + r15], 0x5c
lea rdx, [r14*2 + 2]
cmp rdx, 0x1000
jb 0x1400ad481
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1400ad48e
mov rdi, rcx
lfence
mov rcx, rdi
call fcn.140007ea0
jmp 0x1400ad4a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [rbp + 0xd8]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsi + r15], 0x5c
mov qword [rbp + 0xd8], r15
mov r14, qword [rbp + 0xf0]
mov rsi, qword [rbp + 0xe8]
mov rax, r14
sub rax, rsi
cmp rax, 0xa
jb 0x1400ad507
lea rbx, [rsi + 0xa]
mov qword [rbp + 0xe8], rbx
lea rdi, [rbp + 0xd8]
cmp r14, 8
cmovae rdi, r15
lea rcx, [rdi + rsi*2]
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.cfgRes.dll
call sub.VCRUNTIME140.dll_memmove
xor esi, esi
mov word [rdi + rbx*2], si
mov rbx, qword [rsp + 0x38]
jmp 0x1400ad52d
lfence
mov qword [rsp + 0x20], 0xa
lea r9, str.cfgRes.dll
mov edx, 0xa
lea rcx, [rbp + 0xd8]
call fcn.1400033b0
xor esi, esi
lea rdx, [rbp + 0xd8]
cmp qword [rbp + 0xf0], 8
cmovae rdx, qword [rbp + 0xd8]
mov r8d, 0xe7
mov rcx, qword [r13 + 0xd68]
call fcn.1401611b0
test eax, eax
jne 0x1400ad8de
lea rcx, [rbp + 0xd8]
cmp qword [rbp + 0xf0], 8
cmovae rcx, qword [rbp + 0xd8]
xor edx, edx
lea r8d, [rax + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x1400ad8de
xor eax, eax
lock cmpxchg qword [r13 + 0x158], rcx
mov qword [rsp + 0x38], rax
je 0x1400ad5a6
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rdx, qword [rbp + 0xf0]
cmp rdx, 8
jb 0x1400ad5ec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ad5e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ad91b
call fcn.140007ea0
mov qword [rbp + 0xe8], rsi
mov qword [rbp + 0xf0], 7
mov word [rbp + 0xd8], si
mov r15, qword [rsp + 0x40]
mov rcx, qword [r13 + 0x158]
mov esi, 1
lea r8d, [rsi + 0x16]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400ad940
mov rcx, qword [r13 + 0x158]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x1400ad940
mov rcx, qword [r13 + 0x158]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x40], edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400ad940
mov ecx, edi
call fcn.1401c538c
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x38], rax
mov r8d, edi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r8d, edi
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140150d20
lea rax, [rbp - 0x28]
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov qword [rbp + 0x10], r14
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov r8d, edi
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x20]
call fcn.1400334b0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x64], 0x10000
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
movdqu xmmword [rsp + 0x70], xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r14
mov rax, r12
nop dword [rax + rax]
inc rax
cmp byte [r15 + rax], 0
jne 0x1400ad710
mov dword [rbp - 0x60], eax
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x20]
call fcn.140031520
mov dword [rsp + 0x30], esi
xor edx, edx
mov rcx, rax
call fcn.140031110
mov r14, rax
and esi, 0xfffffffe
mov dword [rsp + 0x30], esi
lea rcx, [rbp + 0x80]
call fcn.14000b680
nop
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x1400ad7a4
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400ad7a4
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x14003c8e9.0]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400ad7a4
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x14003c8e9.0]
nop
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1400ad7e8
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400ad7e8
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x14003c8e9.0]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400ad7e8
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x14003c8e9.0]
nop
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400ad82a
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400ad82a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x14003c8e9.0]
lock xadd dword [rdi + 0xc], r12d
cmp r12d, 1
jne 0x1400ad82a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x14003c8e9.0]
test r14, r14
je 0x1400ad993
mov rcx, qword [r13 + 0x158]
movzx edx, r14w
mov r8d, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400ad993
mov rcx, qword [r13 + 0x158]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400ad993
mov rcx, qword [r13 + 0x158]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400ad993
mov esi, edi
mov ecx, edi
call fcn.1401c538c
mov rdi, rax
mov qword [rbp - 0x30], rax
mov r8d, esi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r8d, esi
xor edx, edx
mov rcx, rdi
call fcn.140150d20
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400ad96c
add r8, qword [rbx]
mov rdx, qword [rbx]
jmp 0x1400ad972
mov rdx, qword [rbp + 0xf0]
cmp rdx, 8
jb 0x1400ad927
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ad922
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ad922
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ea0
mov qword [rbp + 0xe8], rsi
mov qword [rbp + 0xf0], 7
mov word [rbp + 0xd8], si
xor al, al
mov rcx, qword [rbp + 0xf8]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0x248]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
add r8, rbx
mov rdx, rbx
lea rax, [rsi + rdi]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov rcx, rbx
call fcn.14003ffe0
movzx ebx, al
mov rcx, rdi
call fcn.140007ea0
jmp 0x1400ad995
xor bl, bl
lea rcx, [rbp + 0x20]
call fcn.14000b680
nop
mov rcx, qword [rsp + 0x38]
call fcn.140007ea0
movzx eax, bl
jmp 0x1400ad942
call fcn.140002460
int3
call fcn.140002660
int3