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

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

Function at 0x437280
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x4372b7
call fcn.004394f0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.004393b4
xor eax, eax
jmp 0x437345
mov rdx, r9
mov rcx, r8
call fcn.0043721c
mov rbx, rax
test rax, rax
je 0x437342
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x00437148]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x43732f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00439464
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x437316
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x437325
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.0043b6b0
jmp 0x437342
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x43733f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x439b68
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x439964
Function at 0x440614
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 0x44069b
mov rsi, rbx
cmp word [rax], bp
je 0x44065a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x440644
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x440640
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.0043b6ec
mov rdi, rax
test rax, rax
je 0x440688
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.00424180
mov rbp, rdi
xor ecx, ecx
call fcn.0043b6b0
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 0x4459c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x4459e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x4459e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x44b79c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xf68]
mov eax, 0x1050
call fcn.00422ec0
sub rsp, rax
xor r15d, r15d
mov r14, r8
mov rbx, rdx
test rdx, rdx
je 0x44b9be
lea rcx, [0x004dbde0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [0x004e0a80]
test rsi, rsi
je 0x44b9b1
mov rdx, rbx
mov rcx, rsi
call fcn.004373a8
test eax, eax
jne 0x44b828
mov edi, dword [rsi + 0x8b0]
cmp edi, 1
jb 0x44b822
mov rax, qword [rsi + 0x8a8]
test rax, rax
je 0x44b822
cmp word [rax], r15w
mov al, r15b
jne 0x44b824
mov al, 1
test al, al
je 0x44b831
mov rsi, qword [rsi + 0x18f8]
jmp 0x44b7ea
lea rax, [rsp + 0x48]
mov ecx, 0x800
mov qword [rsp + 0x38], rax
lea rax, [0x0048d7b0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], r15d
lea eax, [rcx - 1]
mov dword [rsp + 0x44], ecx
mov word [rsp + 0x48], r15w
cmp byte [rsi + 0x80], r15b
je 0x44b870
mov rdx, qword [rsi + 0x8a8]
jmp 0x44b87d
mov edi, dword [rsi + 0x10c8]
mov rdx, qword [rsi + 0x10c0]
cmp edi, ecx
lea rcx, [rsp + 0x48]
cmovae edi, eax
lea rbx, [rdi + rdi]
mov r8, rbx
call fcn.00424180
mov rax, qword [rsp + 0x38]
mov dword [rsp + 0x40], edi
mov word [rbx + rax], r15w
mov byte [rsi + 0x80], r15b
test r14, r14
je 0x44b97c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x44b8e3
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x44b8e7
lea rdx, [0x0048d80c]
call fcn.00423b70
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x44b8e3
sub rax, rcx
sar rax, 1
test eax, eax
jns 0x44b930
mov edx, dword [rsp + 0x40]
test rcx, rcx
je 0x44b97c
lea eax, [rdx + 0xc]
cmp eax, dword [rsp + 0x44]
jae 0x44b934
movups xmm0, xmmword [str._firstfalse]
mov eax, edx
movups xmmword [rcx + rax*2], xmm0
movsd xmm1, qword [0x0048d0d8]
movsd qword [rcx + rax*2 + 0x10], xmm1
mov eax, dword [rsp + 0x40]
add eax, 0xc
mov ecx, eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x38]
mov word [rax + rcx*2], r15w
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x40]
test rcx, rcx
je 0x44b97c
or rbx, 0xffffffffffffffff
inc rbx
cmp word [r14 + rbx*2], r15w
jne 0x44b93d
test ebx, ebx
je 0x44b97c
lea eax, [rdx + rbx]
cmp eax, dword [rsp + 0x44]
jae 0x44b97c
mov eax, edx
mov rdx, r14
mov r8d, ebx
add r8, r8
lea rcx, [rcx + rax*2]
call fcn.00424180
mov eax, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
add eax, ebx
mov dword [rsp + 0x40], eax
mov word [rdx + rax*2], r15w
lea rcx, [0x004dbde0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8, qword [rsp + 0x38]
lea rdx, str.open
xor r9d, r9d
mov dword [rsp + 0x28], 1
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
jmp 0x44b9c0
lea rcx, [0x004dbde0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x453a7c
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
xor ebx, ebx
movzx ebp, r9w
mov rdi, r8
mov rsi, rdx
test rdx, rdx
je 0x453b78
cmp word [rdx], bx
je 0x453b78
movzx r9d, bp
call fcn.0045393c
test al, al
je 0x453ac6
mov al, 1
jmp 0x453b7a
xorps xmm0, xmm0
mov qword [rsp + 0x60], rbx
movups xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x60]
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x20]
mov dword [rsp + 0x2c], 6
xor edx, edx
mov rcx, rsi
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x453b78
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x453b78
mov rax, rcx
cmp dword [rax + 4], ebp
je 0x453b23
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x453b13
jmp 0x453b6e
mov rdx, qword [rax + 0x20]
mov eax, 0x17
cmp bp, ax
jne 0x453b5a
movups xmm0, xmmword [rdx + 8]
mov word [rdi], ax
movdqu xmmword [rdi + 8], xmm0
mov rax, qword [rdi + 8]
sub rax, qword [0x004bb158]
jne 0x453b55
mov rax, qword [rdi + 0x10]
sub rax, qword [0x004bb160]
test rax, rax
jmp 0x453b6b
mov eax, dword [rdx + 4]
mov dword [rdi + 4], eax
mov eax, 2
mov word [rdi], ax
cmp dword [rdx + 4], ebx
setne bl
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov al, bl
jmp 0x453b7a
xor al, al
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x4567b0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x128
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
lea rdx, [rsp + 0x20]
call fcn.004581f0
test al, al
je 0x456802
cmp byte [rsp + 0x20], 0x65
jne 0x4567e3
cmp byte [rsp + 0x21], 0x6e
jne 0x4567e3
cmp byte [rsp + 0x22], 0
je 0x456802
lea r9, [rsp + 0x20]
mov edx, 0x3f
lea r8, str._s_en
lea rcx, [0x004e1914]
call fcn.004090c0
jmp 0x456845
lea rcx, [0x004e1914]
mov edx, 0x3f
lea r8, [0x0048fcf8]
sub r8, rcx
lea rax, [rdx + 0x7fffffbf]
test rax, rax
je 0x456837
mov al, byte [r8 + rcx]
test al, al
je 0x456837
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x456818
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
add rsp, 0x128
ret
Function at 0x45968c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x230]
mov rsi, rcx
xor edi, edi
test rbx, rbx
je 0x459702
mov eax, dword [rbx + 4]
test eax, eax
je 0x4596f6
mov rcx, qword [rsi + 0x228]
xor r8d, r8d
mov rdx, qword [rbx + 0x10]
mov dword [rsp + 0x40], r8d
cmp rcx, 0xffffffffffffffff
je 0x4596ee
test rdx, rdx
je 0x4596ee
and qword [rsp + 0x20], r8
lea r9, [rsp + 0x40]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb r8d, r8d
and r8d, dword [rsp + 0x40]
mov eax, dword [rbx + 4]
cmp r8d, eax
jne 0x4596fe
mov rbx, qword [rbx + 0x18]
add edi, eax
jmp 0x4596a7
xor eax, eax
jmp 0x459704
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x459be8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0x240], 0
mov rdi, rcx
je 0x459ce4
mov dword [rcx + 0x250], r8d
lea r14, [rcx + 0x248]
mov qword [r14], rdx
lea rbx, [rcx + 0x2dc]
test rdx, rdx
jne 0x459c2e
xor eax, eax
jmp 0x459c38
mov ecx, dword [rbx]
mov r8d, r8d
call fcn.00463950
mov dword [rbx], eax
lea rsi, [rdi + 0x2ac]
cmp dword [rdi + 0x250], 0
jbe 0x459ce0
cmp dword [rdi + 0x268], 0
jne 0x459cb5
mov rcx, qword [rdi + 0x228]
xor eax, eax
mov r8d, dword [rsi]
mov rdx, qword [rdi + 0x2d0]
mov dword [rsp + 0x40], eax
cmp rcx, 0xffffffffffffffff
je 0x459c96
test rdx, rdx
je 0x459c96
test r8d, r8d
je 0x459c96
and qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [rsp + 0x40]
cmp eax, dword [rsi]
jne 0x459ce4
mov rax, qword [rdi + 0x2d0]
and dword [rsi], 0
mov qword [rdi + 0x260], rax
mov dword [rdi + 0x268], 0x100000
mov rbx, qword [rdi + 0x270]
xor edx, edx
mov rcx, r14
call fcn.004671c4
mov ecx, dword [rdi + 0x270]
sub ecx, ebx
add dword [rsi], ecx
test eax, eax
je 0x459c41
cmp eax, 2
sete al
jmp 0x459ce6
mov al, 1
jmp 0x459ce6
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x45a358
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
movsxd rbx, r8d
test r8d, r8d
jle 0x45a37c
mov r9d, eax
mov byte [rsp + r9 + 0x40], dl
inc r9
shr rdx, 8
cmp r9, rbx
jl 0x45a36b
mov rcx, qword [rcx + 0x228]
mov dword [rsp + 0x50], eax
cmp rcx, 0xffffffffffffffff
je 0x45a3b4
test r8d, r8d
je 0x45a3b4
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r8d, ebx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x50]
mov eax, ecx
cmp eax, ebx
sete al
add rsp, 0x30
pop rbx
ret

Function at 0x45a3c8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
movsxd rbx, r8d
test r8d, r8d
jle 0x45a3eb
mov r9d, eax
mov byte [rsp + r9 + 0x40], dl
inc r9
shr edx, 8
cmp r9, rbx
jl 0x45a3db
mov rcx, qword [rcx + 0x228]
mov dword [rsp + 0x50], eax
cmp rcx, 0xffffffffffffffff
je 0x45a423
test r8d, r8d
je 0x45a423
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r8d, ebx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x50]
mov eax, ecx
cmp eax, ebx
sete al
add rsp, 0x30
pop rbx
ret
Function at 0x45b96c
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call fcn.00424830
xor r9d, r9d
lea rax, [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rcx, [rbp - 0x60]
call fcn.00413960
test al, al
jne 0x45babf
call fcn.0040bf18
test al, al
je 0x45babf
and dword [rbp + 0x3d0], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x3e0]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45ba40
mov rcx, qword [rbp + 0x3e0]
lea rax, [rbp + 0x3d8]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x3d0]
mov dword [rbp + 0x3d8], r9d
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x3e0]
test eax, eax
jne 0x45ba31
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45ba40
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x3d0], 0
jne 0x45babf
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x70]
call fcn.00424830
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x208
call fcn.00424830
lea rax, [rbp + 0x1b0]
mov dword [rsp + 0x30], WSAStartup
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x1b0]
lea rax, [0x00486284]
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x50], rax
mov r8d, 0x103
lea rax, str.runas
xor ecx, ecx
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
sete al
jmp 0x45bac1
mov al, 1
add rsp, 0x4c0
pop rbp
ret
Function at 0x45cb44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r15
sub rsp, 0x30
mov rbp, rcx
mov ebx, edx
xor ecx, ecx
xor r15b, r15b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
lea r8, [0x00494a48]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x45cd1e
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp eax, 0x10
jbe 0x45cd1e
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x45cd1e
mov edx, ebx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x45cd1e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x45ccf4
and qword [rsp + 0x50], 0
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call fcn.00424180
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x45cceb
mov rbx, qword [rsp + 0x50]
lea ecx, [rax + 0x18]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rdi, rax
test rax, rax
je 0x45cc5f
and qword [rsp + 0x20], 0
lea rax, [0x00494a58]
lea rdx, [rsp + 0x20]
mov qword [rdi], rax
mov rcx, rbx
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [rdi + 0x10], eax
mov rax, qword [rsp + 0x20]
mov qword [rdi + 8], rax
jmp 0x45cc61
xor edi, edi
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + select]
test rdi, rdi
je 0x45cceb
mov r9d, dword [rsp + 0x70]
lea rcx, [rbp + 0x48]
and qword [rsp + 0x28], 0
mov edx, 0x1e0
mov r8d, 0xfc
call fcn.0041b04c
test al, al
je 0x45ccde
mov r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x28]
mov rcx, qword [rdi + 8]
call qword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x45ccb1
mov dword [rdi + 0x10], eax
jmp 0x45ccde
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x45ccde
mov r8d, dword [rsp + 0x70]
mov rdx, rbx
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test rbx, rbx
je 0x45ccdb
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r15b, 1
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r15b, r15b
je 0x45cd1e
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov dword [rbp + 0x58], eax
mov al, 1
mov dword [rbp + 0x5c], 0
mov byte [rbp + 0x60], 0
jmp 0x45cd20
xor al, al
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r13
pop rdi
ret
Function at 0x45e170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call fcn.0045e120
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbx + 0x128], eax
cmp eax, 0x390
jae 0x45e1b1
and dword [rbx + 0x128], 0
xor al, al
jmp 0x45e1f7
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbx + 0x118], rax
test rax, rax
je 0x45e1a6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbx + 0x120], rax
test rax, rax
jne 0x45e1f5
mov rcx, qword [rbx + 0x118]
call qword [sym.imp.KERNEL32.dll_FreeResource]
and qword [rbx + 0x118], 0
jmp 0x45e1a6
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x45f45c
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
or edi, 0xffffffff
test rdx, rdx
je 0x45f4e0
lea r8, [0x0045f094]
lea rcx, [0x004eebc0]
call fcn.0041b240
mov r9, rax
test rax, rax
je 0x45f4e0
mov rdx, qword [0x004eebd0]
mov r8, qword [rax]
test rdx, rdx
je 0x45f4d5
mov r10d, dword [0x004eebe0]
test r10d, r10d
je 0x45f4d5
cmp rax, rdx
jb 0x45f4d5
mov ecx, r10d
imul ecx, dword [0x004eebd8]
add rcx, rdx
cmp rax, rcx
jae 0x45f4d5
sub r9d, edx
mov eax, r9d
cdq
idiv r10d
mov ebx, eax
mov eax, r9d
cdq
idiv r10d
test edx, edx
cmovne ebx, edi
jmp 0x45f4d7
mov ebx, edi
test r8, r8
jne 0x45f5a2
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [0x004eebd8]
xor ebx, ebx
movzx edx, ax
test ecx, ecx
je 0x45f525
mov r9, qword [0x004eebd0]
mov eax, dword [0x004eebe0]
imul eax, ebx
mov r8, qword [rax + r9]
test r8, r8
je 0x45f51f
test edx, edx
je 0x45f51f
cmp dword [r8 + 0x104], edx
je 0x45f5a2
inc ebx
cmp ebx, ecx
jb 0x45f4fc
lea r8, [0x0045f094]
lea rdx, str.English
lea rcx, [0x004eebc0]
call fcn.0041b240
mov r9, rax
test rax, rax
je 0x45f629
mov rdx, qword [0x004eebd0]
mov r8, qword [rax]
test rdx, rdx
je 0x45f597
mov r10d, dword [0x004eebe0]
test r10d, r10d
je 0x45f597
cmp rax, rdx
jb 0x45f597
mov ecx, r10d
imul ecx, dword [0x004eebd8]
add rcx, rdx
cmp rax, rcx
jae 0x45f597
sub r9d, edx
mov eax, r9d
cdq
idiv r10d
mov ebx, eax
mov eax, r9d
cdq
idiv r10d
test edx, edx
cmovne ebx, edi
jmp 0x45f599
mov ebx, edi
test r8, r8
je 0x45f629
mov rcx, r8
call fcn.0045e6fc
test al, al
jne 0x45f61f
lea r8, [0x0045f094]
lea rdx, str.English
lea rcx, [0x004eebc0]
call fcn.0041b240
mov r8, rax
test rax, rax
je 0x45f61d
mov rdx, qword [0x004eebd0]
test rdx, rdx
je 0x45f619
mov r9d, dword [0x004eebe0]
test r9d, r9d
je 0x45f619
cmp rax, rdx
jb 0x45f619
mov ecx, r9d
imul ecx, dword [0x004eebd8]
add rcx, rdx
cmp rax, rcx
jae 0x45f619
sub r8d, edx
mov eax, r8d
cdq
idiv r9d
mov ebx, eax
mov eax, r8d
cdq
idiv r9d
test edx, edx
cmovne ebx, edi
jmp 0x45f61f
mov ebx, edi
jmp 0x45f61f
xor ebx, ebx
mov dword [0x004eebe8], ebx
mov al, 1
jmp 0x45f62b
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x45fcc4
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, r9
mov esi, r8d
mov r15, rdx
mov r14, rcx
test rdx, rdx
je 0x45fd59
test r8d, r8d
je 0x45fd59
test r9, r9
je 0x45fd59
cmp dword [rbp + 0x40], 0
je 0x45fd59
mov rax, qword [rcx]
test rax, rax
je 0x45fd59
cmp qword [rax + 0x18], 0
je 0x45fd59
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rbp + 0x28]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x45fd59
mov rax, qword [r14]
lea r9, [rbp - 0x10]
mov rcx, qword [rbp + 0x28]
mov edx, 0x10001
mov r8, qword [rax + 0x18]
add r8, 0x60
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
mov rcx, qword [rbp + 0x28]
test eax, eax
jne 0x45fd6f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
lea rax, [rbp - 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x45fd9d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp + 0x28]
jmp 0x45fd51
mov rcx, qword [rbp - 8]
xor r9d, r9d
mov r8d, esi
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x45fdca
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x45fd97
and dword [rsp + 0x28], 0
mov rdx, rdi
mov r9, qword [rbp - 0x10]
mov r8d, dword [rbp + 0x40]
mov rcx, qword [rbp - 8]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
mov rcx, qword [rbp - 0x10]
test eax, eax
je 0x45fdb8
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp + 0x28]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
jmp 0x45fd5b

Function at 0x460c7c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
test rcx, rcx
je 0x460cad
test rdx, rdx
je 0x460cad
mov r9b, r8b
mov rax, r8
lea r10, [0x00489ec0]
and eax, 0xf
add r9b, byte [r10 + rax*4]
xor byte [r8 + rcx], r9b
mov r9b, byte [r8 + rcx]
inc r8
cmp r8, rdx
jb 0x460c8c
ret

Function at 0x460d28
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
xor r9d, r9d
mov r11, r8
mov r10, rcx
test r8, r8
je 0x460d6c
test rcx, rcx
je 0x460d78
test edx, edx
je 0x460d78
mov r8b, r9b
mov cl, byte [r10]
mov eax, r9d
and eax, 0xf
inc r9d
add r8b, byte [rax + r11]
xor r8b, cl
mov byte [r10], r8b
inc r10
mov r8b, cl
cmp r9d, edx
jb 0x460d46
add rsp, 0x28
ret
lea r8, [0x00489ec0]
call fcn.00460eb8
add rsp, 0x28
ret
Function at 0x460d84
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor r10d, r10d
mov rdi, r8
mov ebx, edx
mov r11, rcx
test r8, r8
je 0x460dce
test r9d, r9d
je 0x460dce
test rcx, rcx
je 0x460dda
test edx, edx
je 0x460dda
mov r8b, r10b
xor edx, edx
mov eax, r10d
div r9d
inc r10d
add r8b, byte [rdx + rdi]
xor byte [r11], r8b
mov r8b, byte [r11]
inc r11
cmp r10d, ebx
jb 0x460daf
jmp 0x460dda
lea r8, [0x00489ec0]
call fcn.00460e80
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x460e80
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor r9d, r9d
test rcx, rcx
je 0x460eae
test edx, edx
je 0x460eae
mov r10d, r9d
mov r11d, edx
mov rax, r10
inc r10
and eax, 0xf
add r9b, byte [r8 + rax*4]
xor byte [rcx], r9b
mov r9b, byte [rcx]
inc rcx
sub r11, 1
jne 0x460e92
ret

Function at 0x460eb8
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor r9d, r9d
mov r10, rcx
test rcx, rcx
je 0x460eee
test edx, edx
je 0x460eee
mov r11d, r9d
mov edx, edx
mov cl, byte [r10]
mov rax, r11
and eax, 0xf
inc r11
add r9b, byte [r8 + rax*4]
xor r9b, cl
mov byte [r10], r9b
inc r10
mov r9b, cl
sub rdx, 1
jne 0x460ecc
ret

Function at 0x460ef8
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
add rcx, 0x18
lea r8d, [rdx + 0x50]
call fcn.00424830
xor eax, eax
mov dword [rbx], 0x67452301
mov byte [rbx + 0x68], al
mov qword [rbx + 0x10], rax
mov rax, rbx
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
add rsp, 0x20
pop rbx
ret