joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1809ae52
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x18100118]
push edi
push 0xf0
push eax
xor edi, edi
mov dword [ebp - 0x10c], ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1809afc1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1809afc1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1809afc1
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1809afc0
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x1809af39
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.180256ec
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
inc eax
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x1809afae
push dword [ebp - 0x108]
call fcn.180ac054
pop ecx
jmp 0x1809afae
mov ecx, 0x1234
cmp cx, ax
jne 0x1809afae
or dword [ebp - 0x130], 0xffffffff
lea eax, [ebp - 0x104]
push 3
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x108], eax
call fcn.180256ec
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x1809af8b
push eax
call fcn.180ac054
pop ecx
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x1809afbe
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x1809aeb1
jmp 0x1809afc0
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.180a61d8
leave
ret 4

Function at 0x1809b8d6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp byte [esi], 0
jne 0x1809b94c
push edi
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
movzx ecx, byte [esi + 1]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
cmp byte [esi + 2], cl
setne cl
push ecx
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 3], 0
je 0x1809b94b
cmp byte [esi + 4], 0
je 0x1809b94b
push 1
push edi
push 0x28
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x1809b94b
or eax, 1
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x180a120e
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 0xc
lea edx, [ebx + 0x1c]
lea ecx, [ebx + 0x40]
mov esi, eax
lea eax, [ebx + 0x38]
push edx
push ecx
lea ecx, [ebx + 0x3c]
push ecx
push eax
push edi
push esi
push ecx
lea ecx, [ebp - 0x88]
call fcn.180a109d
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push 0x2c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
push 0x2c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x2c], esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x180a1301
cmp dword [ebp - 0x30], 2
jne 0x180a1301
cmp dword [ebp - 0x2c], esi
je 0x180a1301
cmp dword [ebp - 0x10], esi
je 0x180a1301
cmp dword [ebp - 0xc], esi
je 0x180a1301
cmp dword [ebp - 8], esi
je 0x180a1301
xor eax, eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
lea edi, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x2c
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x3c], esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x5c], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180a1301
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x34], eax
mov al, 1
jmp 0x180a1303
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x180b417e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x180b41bd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x180b41bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x180b41bd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x180b41bd
cmp dword [ecx + 0x74], 0xe
jbe 0x180b41bd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x180bdb47
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x180d31ec
push 0x180d31e4
push str.FlsAlloc
push 0x1f
call fcn.180bd972
mov esi, eax
add esp, 0x10
test esi, esi
je 0x180bdb7b
push dword [ebp + 8]
mov ecx, esi
call dword [0x180ce930]
call esi
jmp 0x180bdb81
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x180bdbc5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x180d31fc
push 0x180d31f4
push str.FlsGetValue
push 0x21
call fcn.180bd972
mov esi, eax
add esp, 0x10
test esi, esi
je 0x180bdbfc
push dword [ebp + 8]
mov ecx, esi
call dword [0x180ce930]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x180bdc04
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x180d3204
push 0x180d31fc
push str.FlsSetValue
push 0x22
call fcn.180bd972
mov esi, eax
add esp, 0x10
test esi, esi
je 0x180bdc3e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x180ce930]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x180c06f8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x180c0795
push ebx
push esi
call fcn.180c06c1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.180c0655
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x180c0742
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x180c0794
push edi
push eax
call fcn.180bc193
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x180c0762
call fcn.180ba3e2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x180c0793
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.180c0655
add esp, 0x20
test eax, eax
jne 0x180c0781
push edi
call fcn.180ba3e2
jmp 0x180c0789
push ebx
call fcn.180ba3e2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x180c0798
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x180c07a9
pop esi
ret
push ebx
push edi
push esi
call fcn.180c06c1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.180bc193
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x180c07d1
push ebx
push esi
push edi
call fcn.180a8cf0
add esp, 0xc
push 0
call fcn.180ba3e2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x180c0ba1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.180c07e6

Function at 0x180c5a86
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.180ba7e3
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180c5af5
cmp esi, dword [ebp - 4]
je 0x180c5af0
cmp dword [ebp + 0xc], 0
je 0x180c5af0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x180c5acd
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.180c55d8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x180c5af7
xor eax, eax
inc eax
jmp 0x180c5af7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x180c5b5c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.180ba7e3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.180ba7e3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x180c5bd3
cmp word [ecx], dx
je 0x180c5bd3
mov eax, dword [0x180d39d4]
push edi
dec eax
push eax
push 0x180d38c0
call fcn.180c5afb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x180c5c46
cmp word [eax], dx
je 0x180c5c46
mov eax, dword [edi]
test eax, eax
je 0x180c5bf7
cmp word [eax], dx
je 0x180c5bf7
lea eax, [ebp - 0x10]
push eax
call fcn.180c54de
jmp 0x180c5c00
lea eax, [ebp - 0x10]
push eax
call fcn.180c5579
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x180c5c70
mov eax, dword [0x180d38bc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x180d35b0
call fcn.180c5afb
add esp, 0xc
test al, al
je 0x180c5c70
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x180c5c3b
cmp word [eax], di
je 0x180c5c3b
lea eax, [ebp - 0x10]
push eax
call fcn.180c54de
pop ecx
jmp 0x180c5c72
lea eax, [ebp - 0x10]
push eax
call fcn.180c5579
jmp 0x180c5c38
mov eax, dword [edi]
test eax, eax
je 0x180c5c5d
cmp word [eax], dx
je 0x180c5c5d
lea eax, [ebp - 0x10]
push eax
call fcn.180c5493
pop ecx
jmp 0x180c5c70
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x180c5d3b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.180c5980
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x180c5d3b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x180c5d3b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x180c5d3b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x180c5cc8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.180bdde0
test ebx, ebx
je 0x180c5d36
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.180bdde0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180c5d3b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180c5d3b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.180c9947
add esp, 0x10
xor eax, eax
inc eax
jmp 0x180c5d3d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret
Function at 0x69041890
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
test byte [0x6907602c], 8
jne 0x69041900
mov eax, dword [0x69076028]
cmp eax, 0xffffffff
je 0x690418c0
mov edx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
leave
ret
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x69076028], eax
cmp eax, 0xffffffff
jne 0x690418a9
test byte [0x6907602c], 1
je 0x690418bc
mov dword [esp + 0xc], str.No_Tls_Space_n
mov dword [esp + 8], str.COMDLG32_SetCommDlgExtendedError
mov dword [esp + 4], 0x6907602c
mov dword [esp], 0
call fcn.690414b0
leave
ret
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__08lx__n
mov dword [esp + 8], str.COMDLG32_SetCommDlgExtendedError
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6907602c
mov dword [esp], 3
call fcn.690414b0
jmp 0x6904189f

Function at 0x69041930
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x28
mov edx, dword [ebp + 8]
mov dword [esp + 4], 8
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x69041963
leave
ret
mov dword [esp], 9
mov dword [ebp - 0xc], eax
call fcn.69041890
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x69042f30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x36]
sub esp, 0x4c
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
mov dword [esp + 8], 0x1e
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextA]
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x69043057
xor edx, edx
xor edi, edi
jmp 0x69042f7d
cmp dword [ebp - 0x3c], edx
jle 0x69042fd5
movzx eax, byte [ebx + edx]
mov esi, edx
add edx, 1
sub eax, 0x30
cmp al, 9
jbe 0x69042f78
mov edi, dword [ebp - 0x3c]
cmp edi, edx
jl 0x69042fc3
mov eax, edx
lea edi, [edi + esi + 1]
lea esi, [esi]
movzx ecx, byte [ebx + eax]
add eax, 1
mov byte [ebx + esi], cl
mov ecx, edi
sub ecx, eax
cmp eax, ecx
jle 0x69042fa0
mov ecx, dword [ebp - 0x3c]
sub ecx, 1
mov eax, ecx
sub eax, esi
shr eax, 1
sub ecx, eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov edi, 1
mov byte [ebp + eax - 0x36], 0
cmp dword [ebp - 0x3c], edx
jg 0x69042f7d
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_atoi]
mov esi, eax
cmp eax, dword [ebp - 0x44]
jg 0x69043070
test edi, edi
je 0x6904304d
mov edx, dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], 0xb0
mov dword [esp], eax
call edx
sub esp, 0x10
mov edi, eax
mov dword [esp + 4], ebx
mov ebx, dword [ebp - 0x40]
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SetWindowTextA]
mov edx, dword [ebp - 0x3c]
sub esp, 8
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb1
mov dword [esp], ebx
call edx
sub esp, 0x10
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_atoi]
mov esi, eax
cmp eax, dword [ebp - 0x44]
jle 0x6904304d
lea esi, [esi]
nop
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], 0x69078180
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.69042ee0
jmp 0x69042fed
Function at 0x69044650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x6907603c], 8
jne 0x69044750
test ebx, ebx
je 0x69044780
mov eax, dword [ebx + 0x14]
test al, 0x40
jne 0x69044790
mov dword [esp + 8], 5
test al, 0x20
jne 0x69044720
mov eax, dword [0x6908d004]
mov dword [esp + 4], str.CHOOSE_COLOR
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
je 0x690447c0
mov dword [esp + 4], eax
mov eax, dword [0x6908d004]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x690447a0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
sub esp, 4
test eax, eax
je 0x690447a0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x69043270
mov edx, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [0x6908d004]
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxIndirectParamW]
sub esp, 0x14
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
je 0x690447c0
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
jmp 0x690446be
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x69078288
mov dword [esp + 8], str.ChooseColorW
mov dword [esp + 4], 0x6907603c
mov dword [esp], 3
call fcn.690430f0
test ebx, ebx
jne 0x69044679
lea esp, [ebp - 8]
xor eax, eax
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [ebx + 8]
jmp 0x690446d2
mov dword [esp], 7
call fcn.69041890
lea esp, [ebp - 8]
xor eax, eax
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp], 6
call fcn.69041890
xor eax, eax
jmp 0x6904470e
Function at 0x690447e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
mov edi, dword fs:[0x18]
sub esp, 0x38
mov esi, dword [ecx]
mov dword [esp + 8], 0x24
mov dword [esp + 4], 8
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
call eax
mov edx, dword [esi + 0x18]
mov dword [eax], 0x24
mov ebx, eax
mov eax, dword [esi + 4]
sub esp, 0xc
mov dword [ebx + 0x18], edx
mov edx, dword [esi + 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x1c], edx
xor edx, edx
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
test al, 0x20
je 0x6904486e
mov edx, dword [esi + 0x20]
test edx, edx
je 0x6904486e
mov eax, edx
shr eax, 0x10
jne 0x690448e8
mov dword [ebx + 0x20], edx
xor edx, edx
mov dword [esp], ebx
mov dword [ebp - 0x1c], edx
call sym.comdlg32.dll_ChooseColorW
mov edx, dword [ebp - 0x1c]
sub esp, 4
test eax, eax
mov edi, eax
je 0x6904488b
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov dword [esp + 8], edx
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword fs:[0x18]
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x24], eax
call eax
sub esp, 0x18
mov dword [ebp - 0x20], eax
add eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov edi, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esi + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], 0
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0x18
mov dword [ebx + 0x20], edx
jmp 0x6904486e
Function at 0x69044cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
sub esp, 0x34
cmp dword [eax], 0x58
jne 0x69044d0a
test byte [eax + 0x54], 1
jne 0x69044d0a
test byte [eax + 0x36], 8
jne 0x69044d18
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x18]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionPoliciesComdlg32
mov ebx, 1
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
sub esp, 0xc
test eax, eax
jne 0x69044d0a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], 4
test eax, eax
je 0x69044d90
lea edx, [ebp - 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.NoPlacesBar
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x18]
jne 0x69044d90
mov edx, dword [ebp - 0x10]
xor ebx, ebx
test edx, edx
sete bl
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x69044d0a