joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a75b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d9c0
push 0x42d9b8
push str.FlsAlloc
push 0x1e
call fcn.0041a61c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a78f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4261f0]
call esi
jmp 0x41a795
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41a7d9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d9d0
push 0x42d9c8
push str.FlsGetValue
push 0x20
call fcn.0041a61c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a810
push dword [ebp + 8]
mov ecx, esi
call dword [0x4261f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41c5eb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c112

Function at 0x41cf74
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x434004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41cfbf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041d113
test al, al
jne 0x41cfb9
sub edx, 2
cmp edx, edi
jne 0x41cf9f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41cfe1
lea eax, [edi + 2]
cmp edx, eax
je 0x41cfe1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041cec0
add esp, 0x10
jmp 0x41d0db
push esi
lea ecx, [ebp - 0x255]
call fcn.0041d113
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d024
push dword [ebp - 0x25c]
jmp 0x41cfd1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41d061
cmp word [ebp - 0x226], 0
je 0x41d082
cmp word [ebp - 0x226], ax
jne 0x41d061
cmp word [ebp - 0x224], 0
je 0x41d082
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041cec0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41d0ce
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41d03b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41d0b6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41d0db
push 0x41ccf0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00422550
add esp, 0x10
jmp 0x41d0ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a277
leave
ret
Function at 0x41d9ea
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 0x41da87
push ebx
push esi
call fcn.0041d9b3
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.0041b5b9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41da34
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41da86
push edi
push eax
call fcn.00419586
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41da54
call fcn.00416d8e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41da85
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b5b9
add esp, 0x20
test eax, eax
jne 0x41da73
push edi
call fcn.00416d8e
jmp 0x41da7b
push ebx
call fcn.00416d8e
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 0x41da8a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41da9b
pop esi
ret
push ebx
push edi
push esi
call fcn.0041d9b3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00419586
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41dac3
push ebx
push esi
push edi
call fcn.0040af10
add esp, 0xc
push 0
call fcn.00416d8e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x423905
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423881
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x423a7d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x423a7d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x423a2c
jg 0x42395e
test eax, eax
je 0x423a22
push 1
push 0x1000
call fcn.0041a48c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423984
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x423a19
push 0x8000
push ebx
call fcn.004130d0
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4239b0
jg 0x4239ab
cmp ecx, 0x1000
jb 0x4239b0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00419009
add esp, 0x10
cmp eax, 0xffffffff
je 0x4239f5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4239ab
jl 0x4239dc
test ecx, ecx
jne 0x42399d
push dword [ebp - 0xc]
push ebx
call fcn.004130d0
push esi
call fcn.00416d8e
add esp, 0xc
xor edi, edi
jmp 0x423a8e
cmp byte [edi + 0x24], 0
je 0x423a0c
cmp dword [edi + 0x20], 5
jne 0x423a0c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423a17
mov edi, dword [edi + 0x18]
jmp 0x423a19
xor edi, edi
push esi
call fcn.00416d8e
pop ecx
jmp 0x423a8e
test ecx, ecx
jg 0x4239ee
jl 0x423a2c
test eax, eax
jae 0x4239ee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004184c4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x423a4f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4239ee
jmp 0x423a86
push ebx
call fcn.0041439a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4239ee
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x423a8e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x423a8b
mov edi, dword [edi + 0x18]
jmp 0x423a8e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004184c4
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42572d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42572d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10002200
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xff8]
mov eax, 0x1078
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0xff4], eax
mov eax, dword [ebp + 0x1004]
push ebx
push esi
mov esi, dword [ebp + 0x1000]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x10072e40]
fld qword [0x10072e38]
fdiv st(1), st(0)
fxch st(1)
call fcn.1003ca30
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1008]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.1003ca30
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x10072e30]
fadd qword [0x10072e28]
call fcn.1003ca30
neg eax
mov dword [ebp - 0x68], eax
mov eax, 0x800
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x1002
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 5
lea eax, [ebp - 0xc]
push 0x10072dd0
push eax
call fcn.1006d75b
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
jne 0x1000232e
push 0x10072ddc
jmp 0x10002331
push dword [ebp - 0x78]
push 0x20
push eax
call fcn.1006d75b
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0xff4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0xff8
leave
ret 0xc
Function at 0x1000a420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x790], eax
push esi
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10073e80
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000a494
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push str.Allow_Unsigned_Installers
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1000a494
xor eax, eax
inc eax
jmp 0x1000a4bf
push str.TOOLKIT_ALLOW_UNSIGNED
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1003dcfa
add esp, 0xc
test eax, eax
jne 0x1000a4bd
cmp dword [ebp - 0x78], esi
je 0x1000a4bd
push dword [ebp - 0x78]
call fcn.1006d75b
pop ecx
jmp 0x1000a48f
xor eax, eax
mov ecx, dword [ebp + 0x790]
xor ecx, ebp
pop esi
call fcn.1003c09c
add ebp, 0x794
leave
ret

Function at 0x1000aaed
Capabilities:
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x811c9dc5
jmp 0x1000ab06
movzx edx, word [ecx]
imul eax, eax, 0x1000193
xor eax, edx
add ecx, 2
cmp ecx, dword [esp + 8]
jne 0x1000aaf8
ret
Function at 0x1000bab6
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x37c4]
mov eax, 0x3844
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x37c0], eax
push ebx
xor ebx, ebx
cmp dword [0x100973a4], ebx
je 0x1000bca9
push esi
push edi
xor eax, eax
mov esi, 0xffe
push esi
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push ebx
push eax
call fcn.1003c260
xor eax, eax
push esi
mov word [ebp + 0xfc0], ax
lea eax, [ebp + 0xfc2]
push ebx
push eax
call fcn.1003c260
push 0x7ff
lea eax, [ebp + 0x2fc1]
push ebx
push eax
mov byte [ebp + 0x2fc0], bl
call fcn.1003c260
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x24
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
push 0x100739d8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x800
call edi
test eax, eax
jne 0x1000bca7
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push 0x10073a30
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x40]
push eax
push 0x10073a50
push 0x10073aa8
lea eax, [ebp + 0xfc0]
push 0x1000
push eax
call fcn.1000b9fb
add esp, 0x14
cmp dword [ebp - 0x74], ebx
jne 0x1000bc9e
lea eax, [ebp - 0x80]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0xfc0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x1000bc9e
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x2fc0]
push eax
push ebx
push ebx
push 0x10073ab4
push dword [ebp - 0x80]
mov edi, 0x800
mov dword [ebp - 0x7c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000bc9e
push esi
mov word [ebp + 0x1fc0], ax
lea eax, [ebp + 0x1fc2]
push ebx
push eax
call fcn.1003c260
lea eax, [ebp + 0x2fc0]
push eax
push str._slib_bundles
lea eax, [ebp + 0x1fc0]
push 0x1000
push eax
call fcn.1000b9fb
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1fc0]
push eax
call fcn.1006d75b
add esp, 0x24
test eax, eax
jne 0x1000bc95
push str._requested.list
lea eax, [ebp + 0x1fc0]
push edi
push eax
mov dword [ebp - 0x74], ebx
call fcn.1006d75b
push 0x10073b08
lea eax, [ebp + 0x1fc0]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1006d75b
add esp, 0x18
test eax, eax
jne 0x1000bc95
mov ecx, dword [0x100973a4]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x1000bc6f
push dword [ebp - 0x74]
sub eax, esi
sar eax, 1
push eax
push 2
push ecx
call fcn.1003e7a9
push dword [ebp - 0x74]
call fcn.1003e5de
add esp, 0x14
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp + 0x37c0]
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x37c4
leave
ret
Function at 0x1000e262
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x70], eax
movzx eax, word [ebp + 0x7c]
push esi
mov esi, dword [0x1009857c]
push 0xf0
push eax
push esi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 1
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x1000e3e6
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1000e3e6
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000e3e6
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1000e3e4
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0xa0], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x1000e359
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.1006d75b
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x9c]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x1000e339
and dword [ebp - 0x98], 0
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x1000e3d1
push dword [ebp - 0x94]
call fcn.1006d75b
pop ecx
jmp 0x1000e3d1
mov ecx, 0x1234
cmp cx, ax
jne 0x1000e3d1
or dword [ebp - 0xc0], 0xffffffff
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0x94], eax
call fcn.1006d75b
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xbc], eax
cmp eax, ecx
je 0x1000e3ab
push eax
call fcn.1006d75b
pop ecx
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0x9c]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x1000e3d1
and dword [ebp - 0x98], 0
add esi, dword [ebp - 0xa0]
cmp dword [ebp - 0x98], 0
jne 0x1000e2d0
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x98]
xor ecx, ebp
pop esi
call fcn.1003c09c
add ebp, 0x74
leave
ret 4
Function at 0x1000f1c2
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1fac]
mov eax, 0x202c
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x1fa8], eax
push ebx
mov ebx, dword [ebp + 0x1fb4]
push esi
push edi
xor eax, eax
mov esi, 0xffe
push esi
mov word [ebp + 0xfa0], ax
xor edi, edi
lea eax, [ebp + 0xfa2]
push edi
push eax
call fcn.1003c260
xor eax, eax
push esi
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push edi
push eax
call fcn.1003c260
add esp, 0x18
lea eax, [ebp + 0xfa0]
push eax
push 0x800
call dword [sym.imp.kernel32.dll_GetTempPathW]
push 3
lea eax, [ebp + 0xfa0]
push eax
lea eax, [ebp + 0x1fa0]
push 4
push eax
call fcn.1006d75b
lea eax, [ebp + 0x1fa0]
push eax
call fcn.1006d75b
add esp, 0x14
cmp eax, 0x64
jae 0x1000f28f
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x80], vtable.ATL::CSimpleDialog_110__1_.0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x80]
call fcn.1000e968
cmp dword [ebp - 0x6c], edi
je 0x1000f288
push dword [ebp - 0x6c]
call fcn.1006d75b
mov eax, 0x80004005
jmp 0x1000f2eb
lea eax, [ebp - 0x60]
push eax
push edi
push 0x10073f80
lea eax, [ebp + 0xfa0]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x1000f303
lea eax, [ebp - 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000f2b0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x68], cx
lea eax, [ebp - 0x60]
push eax
push str._s.exe
push 0x1000
push ebx
call fcn.1000b9fb
push edi
push ebx
call fcn.1006d75b
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1000f28f
xor eax, eax
mov ecx, dword [ebp + 0x1fa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x1fac
leave
ret
call fcn.1006d75b
jmp 0x1000f288
Function at 0x100100c8
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x42c]
sub esp, 0x4ac
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x428], eax
mov eax, dword [ebp + 0x434]
push ebx
mov ebx, dword [ebp + 0x438]
push esi
push edi
mov dword [ebp + 0x14], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x18], ax
xor esi, esi
lea eax, [ebp + 0x1a]
push esi
push eax
call fcn.1003c260
xor eax, eax
push edi
mov word [ebp + 0x220], ax
lea eax, [ebp + 0x222]
push esi
push eax
call fcn.1003c260
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.1003c260
push dword [ebp + 0x14]
mov dword [ebp - 0x80], edi
mov edi, 0x208
lea eax, [ebp + 0x18]
push edi
push eax
call fcn.1000b9fb
push ebx
push dword [ebp + 0x14]
lea eax, [ebp + 0x220]
push str._s__s
push edi
push eax
call fcn.1000b9fb
add esp, 0x44
lea eax, [ebp]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x220]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.1006d75b
add esp, 0x28
cmp eax, esi
jne 0x100101f0
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov ebx, 0x2e4
cmp edi, ebx
jne 0x10010246
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.1003c260
lea eax, [ebp + 0x220]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 0x10073f7c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, esi
je 0x1001020e
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x1001020e
mov dword [ebp], eax
push dword [ebp]
call fcn.10001994
lea eax, [ebp + 0x10]
push eax
push dword [ebp]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
je 0x10010233
mov edi, dword [ebp + 0x10]
jmp 0x1001023b
mov edi, ebx
push dword [ebp + 0x14]
call fcn.1006d75b
pop ecx
mov ecx, dword [ebp + 0x428]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x42c
leave
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push dword [ebp]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10010210
call fcn.1006d75b
jmp 0x10010210
Function at 0x10015ab8
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10016196
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.1006d75b
mov ebx, eax
cmp ebx, esi
je 0x10016209
lea ecx, [ebp - 0x74]
call fcn.100159e6
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10016221
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.10016196
cmp eax, esi
jne 0x10016253
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x10016211
lea ecx, [ebp - 0x74]
call fcn.100159e6
push dword [ebp - 0x78]
mov ecx, edi
call fcn.10015968
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.100159e6
mov eax, esi
jmp 0x100161ef