joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1400545ca
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400545c0
cmp r11, r10
ja 0x140054646
cmp r10, rdx
ja 0x140054658
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1400545c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400545a0
jmp 0x140054627
ja 0x1400545ca
mov r11, r10
cmp rax, r8
jne 0x140054567
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14005462b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140054600
mov r8, r10
sub ecx, r9d
jns 0x14005461e
jmp 0x14005462d
cmp r10, rdx
je 0x14005463a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14005462d
xor al, 1
cmp r8, rdx
jne 0x1400545e0
jmp 0x14005462d
xor eax, eax
jmp 0x14005462d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400588d0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140058d50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140058d40
int3

Function at 0x140056078
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140004430]
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x1400043e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400019c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002692
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140007108]
test eax, eax
je 0x14000272a
lea rax, [0x1400070e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140007110]
mov qword [rbp - 8], rax
jmp 0x14000270e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002702
cmp qword [rbp - 0x10], 0
je 0x140002702
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400026c8
lea rax, [0x1400070e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000272b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000771c
Capabilities:
Parse pe header

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

Function at 0x1400113b4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400114fc

Function at 0x1400114fc
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400114fc
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 0x14001156b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001156b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001156b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001156b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001156b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001156b
cmp dword [rcx + 0xf8], 0
je 0x14001156b
mov ecx, ebx
call fcn.140011434
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.140011690
nop
cmp dword [rbp + 0x20], 0
je 0x1400115b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400114c8
int3

Function at 0x140012690
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400126b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400126b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140018cfc
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 0x140018d83
mov rsi, rbx
cmp word [rax], bp
je 0x140018d42
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018d2c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018d28
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140015528
mov rdi, rax
test rax, rax
je 0x140018d70
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400219b0
mov rbp, rdi
xor ecx, ecx
call fcn.1400145d8
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 0x14001d578
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001d58e
mov al, 1
jmp 0x14001d5ee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001d59f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001d5ec
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400191f4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d5ec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001d5ec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001d5ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001d5ee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400035f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r9
mov rsi, rcx
mov rdi, qword [rsp + 0x80]
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov rcx, qword [rcx + 8]
cmp qword [r9], rcx
je 0x140003647
call qword [sym.imp.USER32.dll_GetParent]
cmp qword [rbx], rax
je 0x140003647
mov dword [rdi], ebp
mov eax, 1
jmp 0x140003797
mov eax, dword [rbx + 0x10]
add eax, 0xd5
cmp eax, 0xd
ja case.0x140003669.211
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x37c4]
add rcx, rdx
jmp rcx
lea rax, [0x140091e18]
mov rcx, qword [0x140091e18]
cmp rcx, rax
je 0x140003699
test byte [rcx + 0x1c], 8
je 0x140003699
mov edx, reloc.WS2_32.dll_ntohl
lea r8, [0x14007e980]
mov rcx, qword [rcx + 0x10]
call fcn.140001790
mov rcx, rsi
call fcn.140002ef0
jmp case.0x140003669.213
lea rax, [0x140091e18]
mov rcx, qword [0x140091e18]
cmp rcx, rax
je 0x1400036d5
test byte [rcx + 0x1c], 8
je 0x1400036d5
mov edx, reloc.WS2_32.dll_ntohs
lea r8, [0x14007e980]
mov rcx, qword [rcx + 0x10]
call fcn.140001790
nop
mov qword [rsp + 0x38], rbp
call fcn.140003e40
mov rcx, rax
test rax, rax
je 0x1400037b9
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rbx, [0x14007e830]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140004f50
mov rdi, 0xffffffffffffffff
test al, al
jne 0x140003739
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140003720
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400051a0
nop
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x38]
lea rcx, str.ProxyHelpUrl
call fcn.14001df20
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbp
xor r9d, r9d
mov rbx, qword [rsp + 0x38]
mov r8, rbx
lea rdx, [0x14007e948]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg case.0x140003669.213
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp case.0x140003669.213
mov dword [rdi], ebp
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400022e0
int3
Function at 0x140004810
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rcx
lea rax, [0x140091e18]
mov rcx, qword [0x140091e18]
cmp rcx, rax
je 0x140004864
test byte [rcx + 0x1c], 8
je 0x140004864
mov edx, reloc.WS2_32.dll_listen
lea r8, [0x14007ea40]
mov rcx, qword [rcx + 0x10]
call fcn.140001790
mov rax, qword [rsi + 0xd0]
mov rbp, qword [rax + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, qword [rsi + 0xa8]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
sete al
mov byte [rbp + 0x20], al
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
sete al
mov byte [rbp + 0x21], al
call fcn.140003e40
mov rcx, rax
test rax, rax
je 0x140004992
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsi + 0xb8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
test edi, edi
js 0x14000499d
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000490e
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1400040b0
mov rbx, qword [rsp + 0x20]
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rsi + 0xb8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
jne 0x140004932
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14003ccd0
test eax, eax
js 0x14000499d
cmp eax, dword [rbx - 0xc]
jg 0x14000499d
mov dword [rbx - 0x10], eax
cdqe
xor ecx, ecx
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.14003d7b8
mov word [rbp + 0x22], ax
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000496e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400022e0
nop
mov ecx, 0x80070057
call fcn.1400022e0
int3
Function at 0x140004ba0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, r9
mov rbp, rcx
mov rbx, qword [rsp + 0x80]
xor edi, edi
mov dword [rsp + 0x30], edi
mov rcx, qword [rcx + 8]
cmp qword [r9], rcx
je 0x140004bf7
call qword [sym.imp.USER32.dll_GetParent]
cmp qword [rsi], rax
je 0x140004bf7
mov dword [rbx], edi
mov eax, 1
jmp 0x140004d19
mov eax, dword [rsi + 0x10]
add eax, 0xd5
cmp eax, 0xd
ja case.0x140004c19.211
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x4d48]
add rcx, rdx
jmp rcx
mov rcx, rbp
call fcn.140004810
movsxd rdi, eax
jmp case.0x140004c19.213
lea rax, [0x140091e18]
mov rcx, qword [0x140091e18]
cmp rcx, rax
je 0x140004c5a
test byte [rcx + 0x1c], 8
je 0x140004c5a
mov edx, reloc.WS2_32.dll_ntohl
lea r8, [0x14007ea40]
mov rcx, qword [rcx + 0x10]
call fcn.140001790
nop
mov qword [rsp + 0x38], rdi
call fcn.140003e40
mov rcx, rax
test rax, rax
je 0x140004d3b
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rbx, [0x14007e830]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140004f50
mov rsi, 0xffffffffffffffff
test al, al
jne 0x140004cba
mov r8, rsi
inc r8
cmp word [rbx + r8*2], 0
jne 0x140004ca1
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400051a0
nop
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x38]
lea rcx, [0x14007e990]
call fcn.14001df20
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov rbx, qword [rsp + 0x38]
mov r8, rbx
lea rdx, [0x14007e948]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg case.0x140004c19.213
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp case.0x140004c19.213
mov dword [rbx], edi
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400022e0
int3
Function at 0x140005030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, r8d
mov rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x140005153
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140005091
xor edi, edi
mov ebx, edi
jmp 0x1400050e9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x1400050a8
xor edi, edi
mov ebx, edi
jmp 0x1400050e9
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400050d5
nop
cmp rbx, rcx
jae 0x1400050da
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400050c0
cmp rbx, rcx
jb 0x1400050e0
xor edi, edi
mov ebx, edi
jmp 0x1400050e9
xor edi, edi
cmp word [rbx], di
cmove rbx, rdi
test rbx, rbx
je 0x140005153
mov rax, qword [r14]
mov ecx, 1
movzx esi, word [rbx]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, esi
or ecx, eax
jge 0x14000510f
mov edx, esi
mov rcx, r14
call fcn.1400040b0
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rsi
call fcn.14004036c
test eax, eax
je 0x14000513a
cmp eax, 0xc
je 0x140005186
cmp eax, 0x16
je 0x140005170
cmp eax, 0x22
je 0x140005170
cmp eax, 0x50
jne 0x14000517b
mov rcx, qword [r14]
cmp esi, dword [rcx - 0xc]
jg 0x140005170
mov dword [rcx - 0x10], esi
mov eax, 1
mov rcx, qword [r14]
mov word [rcx + rsi*2], di
jmp 0x140005155
xor eax, eax
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
mov ecx, 0x80070057
call fcn.1400022e0
int3
mov ecx, 0x80004005
call fcn.1400022e0
int3
mov ecx, 0x8007000e
call fcn.1400022e0
int3

Function at 0x140005360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400053d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400053d8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400053c5
nop
cmp rbx, rcx
jae 0x1400053d8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400053b0
cmp rbx, rcx
jae 0x1400053d8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x1400053da
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005a30
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0x98]
xor edi, edi
mov dword [rsp + 0x30], edi
cmp dword [rsp + 0xa0], edi
jne 0x140005a92
cmp r8d, 0x4e
jne 0x140005a92
mov esi, 1
mov rcx, qword [rcx + 8]
mov rbx, qword [rsp + 0x90]
cmp qword [rbx], rcx
je 0x140005ab7
call qword [sym.imp.USER32.dll_GetParent]
cmp qword [rbx], rax
je 0x140005ab7
mov qword [r14], rsi
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rbx + 0x10]
add eax, 0xd5
cmp eax, 0xd
ja case.0x140005ad9.211
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x5be8]
add rcx, rdx
jmp rcx
lea rax, [0x140091e18]
mov rcx, qword [0x140091e18]
cmp rcx, rax
je 0x140005b0a
test byte [rcx + 0x1c], 8
je 0x140005b0a
mov edx, reloc.WS2_32.dll_listen
lea r8, [0x14007ec00]
mov rcx, qword [rcx + 0x10]
call fcn.140001790
nop
mov qword [rsp + 0x38], rdi
call fcn.140003e40
mov rcx, rax
test rax, rax
je 0x140005bdc
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rbx, [0x14007e830]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140004f50
mov rbp, 0xffffffffffffffff
test al, al
jne 0x140005b6a
mov r8, rbp
inc r8
cmp word [rbx + r8*2], 0
jne 0x140005b51
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400051a0
nop
mov dword [rsp + 0x30], esi
lea rdx, [rsp + 0x38]
lea rcx, str.HelpUrl
call fcn.14001df20
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov rbx, qword [rsp + 0x38]
mov r8, rbx
lea rdx, [0x14007e948]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg case.0x140005ad9.213
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [r14], rdi
test esi, esi
setne dil
mov eax, edi
jmp 0x140005a94
mov esi, edi
mov qword [r14], rdi
test esi, esi
setne dil
mov eax, edi
jmp 0x140005a94
mov ecx, 0x80004005
call fcn.1400022e0
int3
Function at 0x1400061f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov ecx, dword [rcx + 0x90]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x14000626e
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], rcx
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
movsxd rcx, eax
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x40], 0xfffffffe
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, qword [rdi + 8]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
movsxd r8, eax
lea r9, [rsp + 0x30]
mov edx, 0x4e
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
jmp 0x1400062f5
shr ecx, 2
test cl, 1
je 0x1400062a9
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rdi, qword [rdi + 8]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
movzx r8d, ax
mov r9, rdi
mov edx, 0x111
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
jmp 0x1400062f5
mov r8, qword [rdi + 0x50]
lea rdx, [0x14007e948]
mov dword [rsp + 0x28], 1
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
seta bl
jbe 0x1400062f2
or byte [rdi + 0x94], 2
xor edx, edx
mov rcx, qword [rdi + 8]
mov r8d, 1
call qword [sym.imp.USER32.dll_InvalidateRect]
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140007830
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0x98]
xor edi, edi
mov dword [rsp + 0x30], edi
cmp dword [rsp + 0xa0], edi
jne 0x140007892
cmp r8d, 0x4e
jne 0x140007892
mov esi, 1
mov rcx, qword [rcx + 8]
mov rbx, qword [rsp + 0x90]
cmp qword [rbx], rcx
je 0x1400078b7
call qword [sym.imp.USER32.dll_GetParent]
cmp qword [rbx], rax
je 0x1400078b7
mov qword [r14], rsi
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rbx + 0x10]
add eax, 0xd5
cmp eax, 0xd
ja case.0x1400078d9.211
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x79e8]
add rcx, rdx
jmp rcx
lea rax, [0x140091e18]
mov rcx, qword [0x140091e18]
cmp rcx, rax
je 0x14000790a
test byte [rcx + 0x1c], 8
je 0x14000790a
mov edx, reloc.WS2_32.dll_listen
lea r8, [0x14007ec58]
mov rcx, qword [rcx + 0x10]
call fcn.140001790
nop
mov qword [rsp + 0x38], rdi
call fcn.140003e40
mov rcx, rax
test rax, rax
je 0x1400079dc
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rbx, [0x14007e830]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140004f50
mov rbp, 0xffffffffffffffff
test al, al
jne 0x14000796a
mov r8, rbp
inc r8
cmp word [rbx + r8*2], 0
jne 0x140007951
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400051a0
nop
mov dword [rsp + 0x30], esi
lea rdx, [rsp + 0x38]
lea rcx, str.StatusHelpUrl
call fcn.14001df20
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov rbx, qword [rsp + 0x38]
mov r8, rbx
lea rdx, [0x14007e948]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg case.0x1400078d9.213
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [r14], rdi
test esi, esi
setne dil
mov eax, edi
jmp 0x140007894
mov esi, edi
mov qword [r14], rdi
test esi, esi
setne dil
mov eax, edi
jmp 0x140007894
mov ecx, 0x80004005
call fcn.1400022e0
int3