joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10428c0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x10428cd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x10428dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x10428c5
lea eax, [rcx + 1]
jmp 0x10428eb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x10428fe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x10428e4
sub eax, 3
jb 0x104291e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x104296d
sar eax, 1
movsxd rbp, eax
jb 0x1042954
jmp 0x104292c
add ebx, ebx
jne 0x104292a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1042954
inc ecx
add ebx, ebx
jne 0x104293a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1042954
call r11
adc ecx, ecx
add ebx, ebx
jne 0x104294d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x104293c
add ecx, 2
jmp 0x1042959
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01042882
jmp 0x10428cd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xc34000]
mov eax, dword [rdi]
or eax, eax
je 0x10429c9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc42000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1042979
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x10429c3
mov qword [rbx], rax
add rbx, 8
jmp 0x1042999
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1042a0d
cmp al, 0xef
ja 0x10429f5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x10429d5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x10429e4
mov eax, dword [rdi]
add rdi, 4
jmp 0x10429e4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1042a61
sub rsp, 0xffffffffffffff80
jmp 0x468380
Function at 0x140011398
Capabilities:
Terminate process

Disassembly:
jmp 0x1400172d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x140011474
Capabilities:
Create process on windows

Disassembly:
jmp 0x140016ed0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x488
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x4a8]
mov rax, qword [0x140025040]
xor rax, rbp
mov qword [rbp + 0x428], rax
lea rcx, [0x14002b0f6]
call fcn.140011672
nop
cmp dword [rbp + 0x450], 1
jle 0x140016fa2
mov eax, 8
imul rax, rax, 1
lea rdx, str.child
mov rcx, qword [rbp + 0x458]
mov rcx, qword [rcx + rax]
call fcn.14001171c
test eax, eax
jne 0x140016fa2
lea rcx, [rbp + 8]
call fcn.1400116a4
nop
lea rdx, str.IP:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110c8
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.1400115dc
lea rdx, [0x14001104b]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov dword [rbp + 0x3f4], 0
lea rcx, [rbp + 8]
call fcn.140011140
mov eax, dword [rbp + 0x3f4]
jmp 0x1400170c8
mov r8d, 0x104
lea rdx, [rbp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x180]
call fcn.1400114f1
nop
mov dword [rbp + 0x180], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x208]
call fcn.1400114f1
nop
lea rdx, str.cmd.exe__c
lea rcx, [rbp + 0x238]
call fcn.1400112d5
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x238]
call fcn.14001108c
nop
lea rdx, str._child
lea rcx, [rbp + 0x238]
call fcn.14001108c
nop
lea rcx, [rbp + 0x238]
call fcn.1400110a5
lea rcx, [rbp + 0x208]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400170ac
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x208]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rbp + 0x414], 0
lea rcx, [rbp + 0x238]
call fcn.140011140
mov eax, dword [rbp + 0x414]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x1400210c0]
call fcn.140011564
mov rax, rdi
mov rcx, qword [rbp + 0x428]
xor rcx, rbp
call fcn.140011325
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret
Function at 0x140011488
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019c80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019ca0
xor al, al
jmp 0x140019d21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019cb3
xor al, al
jmp 0x140019d21
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140019cdd
xor al, al
jmp 0x140019d21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019cf1
xor al, al
jmp 0x140019d21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140019d03
xor al, al
jmp 0x140019d21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140019d1f
xor al, al
jmp 0x140019d21
mov al, 1
add rsp, 0x38
ret
Function at 0x1400116a4
Capabilities:
Capture public ip
Create http request
Read data from internet
Receive data

Disassembly:
jmp 0x140016930
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [0x140025040]
xor rax, rbp
mov qword [rbp + 0x238], rax
mov dword [rbp + 0x224], 0
lea rcx, [0x14002b0f6]
call fcn.140011672
nop
lea rcx, [rbp + 0x108]
call fcn.140011663
nop
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Mon_appl
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400169f7
lea rdx, [0x1400217d8]
mov rcx, qword [rbp + 0x260]
call fcn.1400112d5
mov eax, dword [rbp + 0x224]
or eax, 1
mov dword [rbp + 0x224], eax
lea rcx, [rbp + 0x108]
call fcn.140011140
nop
mov rax, qword [rbp + 0x260]
jmp 0x140016b11
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
lea rdx, str.http:__api.ipify.org
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140016a70
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rdx, str.Erreur_de_connexion
mov rcx, qword [rbp + 0x260]
call fcn.1400112d5
mov eax, dword [rbp + 0x224]
or eax, 1
mov dword [rbp + 0x224], eax
lea rcx, [rbp + 0x108]
call fcn.140011140
nop
mov rax, qword [rbp + 0x260]
jmp 0x140016b11
lea r9, [rbp + 0x44]
mov r8d, 0x7f
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
nop
mov eax, dword [rbp + 0x44]
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0x80
jae 0x140016aa2
jmp 0x140016aa8
call fcn.1400114bf
nop
mov rax, qword [rbp + 0x208]
mov byte [rbp + rax + 0x70], 0
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x108]
call fcn.140011041
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rdx, [rbp + 0x108]
mov rcx, qword [rbp + 0x260]
call fcn.140011618
mov eax, dword [rbp + 0x224]
or eax, 1
mov dword [rbp + 0x224], eax
lea rcx, [rbp + 0x108]
call fcn.140011140
nop
mov rax, qword [rbp + 0x260]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140020f10]
call fcn.140011564
mov rax, rdi
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.140011325
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret
Function at 0x140017fd0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400116b3
movzx eax, al
test eax, eax
jne 0x140017ff0
mov ecx, 7
call fcn.14001156e
nop
mov byte [rsp + 0x20], 0
call fcn.1400115aa
mov byte [rsp + 0x21], al
cmp dword [0x140025b70], 1
jne 0x140018014
mov ecx, 7
call fcn.14001156e
nop
jmp 0x14001806c
cmp dword [0x140025b70], 0
jne 0x140018067
mov dword [0x140025b70], 1
lea rdx, [0x140020660]
lea rcx, [0x140020330]
call fcn.14001130c
test eax, eax
je 0x140018048
mov eax, 0xff
jmp 0x140018171
lea rdx, [0x140020220]
lea rcx, [section..rdata]
call fcn.140011596
mov dword [0x140025b70], 2
jmp 0x14001806c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001155a
call fcn.1400114b0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400180c9
mov rcx, qword [rsp + 0x30]
call fcn.140011276
movzx eax, al
test eax, eax
je 0x1400180c9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002c020]
nop
call fcn.140011500
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400180fd
mov rcx, qword [rsp + 0x38]
call fcn.140011276
movzx eax, al
test eax, eax
je 0x1400180fd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001164f
nop
call fcn.140018220
mov dword [rsp + 0x28], eax
call fcn.140011488
movzx eax, al
test eax, eax
jne 0x14001811c
mov ecx, dword [rsp + 0x28]
call fcn.140011087
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001812b
call fcn.14001165e
nop
xor edx, edx
mov cl, 1
call fcn.140011249
mov eax, dword [rsp + 0x28]
jmp 0x140018171
add rsp, 0x68
ret
Function at 0x1400024e0
Capabilities:
Parse pe header

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

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140009008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140009008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140002310
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor edx, edx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x64], edx
lea r9, [rsp + 0x64]
mov dword [rsp + 0x38], edx
mov rbx, rcx
movabs rcx, 0xad147ab0cf434222
mov qword [rsp + 0x30], rdx
movabs rax, 0x7209e67d1b653f06
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
movabs rax, 0x7209e67d1b390545
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x40]
movdqa xmm0, xmmword [rsp + 0x50]
mov qword [rsp + 0x78], rax
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x20], rdx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x14000240f
mov r8d, dword [rsp + 0x64]
lea r9, [rsp + 0x85]
nop dword [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400023e0
jmp 0x1400024da
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsd xmm1, qword [0x1400086b0]
mov r8d, eax
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x64
sub r8d, ecx
inc r8d
movd xmm0, r8d
cvtdq2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
cvttsd2si r8d, xmm0
lea r9, [rsp + 0x85]
test r8d, r8d
jns 0x1400024b0
neg r8d
nop
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140002470
dec r9
mov byte [r9], 0x2d
jmp 0x1400024da
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400024b0
lea r8, [rsp + 0x85]
mov rdx, r9
mov rcx, rbx
call fcn.1400059a0
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140006040
add rsp, 0xa0
pop rbx
ret
Function at 0x140005ad0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140005b0a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140005b0f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140005b58
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140008380]
cmp byte [rcx + rax], 0
je 0x140005b58
dec r8
sub rdx, 1
jne 0x140005b3e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140006a70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006aba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006aba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006aba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006aba
cmp dword [rcx + 0x84], 0xe
jbe 0x140006aba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006abc
xor al, al
add rsp, 0x28
ret
Function at 0x14000a928
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000a957
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
and qword [rbx + 8], 0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000a97a
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbx + 0x10], 0
lea r8, [0x1403db4a8]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000aac2
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x14000aac2
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14000aac2
mov edx, esi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14000aac2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14000aab3
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call fcn.14028a590
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x58]
and qword [rsp + 0x58], 0
xor edx, edx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x14000aaa9
mov rsi, qword [rsp + 0x58]
lea ecx, [rax + 0x18]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rdi, rax
test rax, rax
je 0x14000aa68
and qword [rsp + 0x50], 0
lea rax, vtable.Gdiplus::Bitmap.0
lea rdx, [rsp + 0x50]
mov qword [rdi], rax
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [rdi + 0x10], eax
mov rax, qword [rsp + 0x50]
mov qword [rdi + 8], rax
jmp 0x14000aa6a
xor edi, edi
mov rcx, qword [rsp + 0x58]
mov qword [rbx + 8], rdi
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14000aaa9
mov ecx, dword [rdx + 0x10]
and dword [rdx + 0x10], 0
test ecx, ecx
jne 0x14000aa91
mov al, 1
jmp 0x14000aac4
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000aaa4
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
and qword [rbx + 8], 0
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbx + 0x10], 0
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400147cc
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 qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x10000
jae 0x14001480b
cmp dword [rcx + 0xe8], 0
jne 0x14001480b
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.140036380
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140014bc4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140014868
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov rbx, rdx
mov r15, rcx
xor edi, edi
call fcn.140036380
lea r8d, [rdi + 5]
mov rdx, rbx
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400148c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.1400148fc
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400157bc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x40
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x140475fd0]
test eax, eax
je 0x14001580e
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140475fd0]
test eax, eax
jne 0x140015817
call fcn.140015924
test eax, eax
je 0x140015833
lea rdx, [rsp + 0x30]
mov rcx, qword [0x14046a4b0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14001583b
xor eax, eax
jmp 0x140015893
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rsi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rsi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
test rsi, rsi
sete bl
test ebx, ebx
je 0x140015875
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140015877
xor edi, edi
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140015890
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret

Function at 0x140017e64
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x140017ede
xor r8d, r8d
call fcn.140018124
mov rsi, rax
test rax, rax
jne 0x140017e9a
mov eax, edi
jmp 0x140017ef4
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x140017e96
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret