joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10086d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100b8dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x2c4]
mov eax, dword [esp + 0x3c]
test ecx, ecx
je 0x10086dd0
cmp eax, 0x300
jne 0x10086dd0
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x10086eb2
cmp eax, 0x70b
jne 0x10086eb2
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10086eb2
mov ecx, dword [eax + 0xc]
cmp ecx, 0x201
je 0x10086dfe
cmp ecx, 0x203
jne 0x10086eb2
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x2c8]
mov eax, dword [ecx]
cmp eax, ecx
je 0x10086e62
nop
cmp dword [eax + 0x78], edx
je 0x10086e4d
mov eax, dword [eax]
cmp eax, ecx
jne 0x10086e40
jmp 0x10086e62
add eax, 0x44
lea ecx, [esp + 0x10]
cmp ecx, eax
je 0x10086e62
push 0xffffffffffffffff
push 0
push eax
call fcn.10007c60
cmp dword [esp + 0x20], 0
je 0x10086e80
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call fcn.1001d140
add esp, 4
mov dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x24], 8
jb 0x10086e9b
push dword [esp + 0x10]
call fcn.10034183
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10033901
add esp, 0x30
ret 8
Function at 0x1008c910
Capabilities:
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x100b96c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push dword [esp + 0x28]
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1008c97c
xorps xmm0, xmm0
movq qword [esp + 8], xmm0
push esi
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
test eax, eax
jne 0x1008c98f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x18], 0xffffffff
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call fcn.10037100
add esp, 0xc
mov dword [esp + 0x18], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x1008c9d8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x1008ca00
Capabilities:
Open clipboard

Disassembly:
push 0xffffffffffffffff
push 0x100b96f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1008ca4e
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x1008ca52
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
jmp 0x1008cacd
lea eax, [esp + 0xc]
mov ecx, esi
push eax
xor bl, bl
call fcn.1008cba0
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1008ca93
cmp dword [esp + 0x20], 8
lea ecx, [ecx*2 + 2]
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push ecx
push eax
push 0xd
call fcn.1008c910
add esp, 0xc
mov bl, al
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1008cab4
push dword [esp + 0xc]
call fcn.10034183
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10033901
add esp, 0x28
ret
Function at 0x1008d060
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x100b9760
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x1008d0a7
xor al, al
jmp 0x1008d16c
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1008d0a0
push 0xd
xor bl, bl
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x1008d164
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x1c]
push ebp
call fcn.10007750
mov byte [esp + 0x40], 1
mov ecx, dword [edi + 0x4c]
call fcn.10077d70
test al, al
je 0x1008d114
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.1008ce80
test al, al
je 0x1008d122
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
mov bl, 1
call fcn.1008d210
mov byte [esp + 0x40], 0
cmp dword [esp + 0x30], 8
jb 0x1008d13a
push dword [esp + 0x1c]
call fcn.10034183
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x40], 0xffffffff
test ebp, ebp
je 0x1008d164
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10033901
add esp, 0x30
ret

Function at 0x1008dbc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100b9879
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea eax, [edi + 8]
mov dword [edi + 4], 0
mov dword [esp + 0x10], eax
mov dword [eax + 0xc], 0
mov dword [esp + 0x1c], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [esp + 0x1c], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 0x20], eax
mov dword [esp + 0x1c], 4
lea ecx, [edi + 0x28]
call fcn.100429d0
mov byte [esp + 0x1c], 5
lea ecx, [edi + 0x28]
push dword [esp + 0x24]
mov dword [edi], vtable.RC::RCMiniUISimpleWindow.1.0
mov dword [edi + 0x28], vtable.RC::RCMiniUISimpleWindow.2.0
mov dword [edi + 0x30], vtable.RC::RCMiniUISimpleWindow.0
call fcn.1008be60
mov dword [esp + 0x1c], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x1008dce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b9929
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x28]
mov dword [esi], vtable.RC::RCMiniUISimpleWindow.1.0
mov dword [ecx], vtable.RC::RCMiniUISimpleWindow.2.0
mov dword [esi + 0x30], vtable.RC::RCMiniUISimpleWindow.0
mov dword [esp + 0x14], 0
call fcn.10042f50
mov dword [esp + 0x14], 0xffffffff
lea eax, [esi + 8]
mov dword [esp + 8], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008dd4f
push eax
call fcn.1008fc71
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x1008dd70
Capabilities:
Access peb ldr_data

Disassembly:
sub ecx, 0x28
jmp method.RC::RCMiniUISimpleWindow.1.virtual_4
push 0xffffffffffffffff
push 0x100b9929
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x28]
mov dword [esi], vtable.RC::RCMiniUISimpleWindow.1.0
mov dword [ecx], vtable.RC::RCMiniUISimpleWindow.2.0
mov dword [esi + 0x30], vtable.RC::RCMiniUISimpleWindow.0
mov dword [esp + 0x14], 0
call fcn.10042f50
mov dword [esp + 0x14], 0xffffffff
lea eax, [esi + 8]
mov dword [esp + 8], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008dddf
push eax
call fcn.1008fc71
test byte [esp + 0x1c], 1
je 0x1008ddef
push esi
call fcn.10034183
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x10095ba9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4011e6
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x114
mov eax, 0x41151e
call fcn.0040d65c
xor ebx, ebx
push 0x103
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x113]
mov esi, ecx
push ebx
mov dword [ebp - 0x11c], ebx
push eax
mov dword [ebp - 0x120], esi
mov byte [ebp - 0x114], bl
call fcn.00409e50
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0x26
push ebx
mov dword [ebp - 0x118], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40125c
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0x118]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], bl
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
call fcn.004018e5
mov dword [ebp - 4], ebx
push 0x415bf4
mov eax, esi
mov dword [ebp - 0x11c], 1
call fcn.0040180f
push 0x415ba8
mov eax, esi
call fcn.0040180f
cmp byte [edi + 0x14], bl
je 0x4012a5
push dword [edi + 0x38]
mov eax, esi
call fcn.0040180f
mov eax, esi
call fcn.0040d6a6
ret
Function at 0x4012ad
Capabilities:
Create process on windows

Disassembly:
push 0x320
mov eax, 0x411a6a
call fcn.0040d65c
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x208]
call fcn.00401545
and dword [ebp - 4], 0
cmp dword [ebx + 0x7c], 0
je 0x4014d2
lea eax, [ebp - 0x328]
push eax
call fcn.00402a9e
push str.clm.exe
mov byte [ebp - 4], 1
call fcn.004029ec
push str.clmtj.exe
call fcn.004029ec
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call esi
push 0x7d0
call esi
lea eax, [ebp - 0x1c0]
push eax
push ebx
call fcn.004014e9
mov byte [ebp - 4], 2
mov eax, dword [eax]
push 0xffffffffffffffff
lea ecx, [ebp - 0x9c]
push eax
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 0x9c], 0
call fcn.004018e5
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 4
call fcn.004017fe
lea ecx, [ebp - 0x58]
mov edi, ebx
call fcn.004011e6
push 0x415bf4
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0040180f
push dword [ebp - 0xa0]
lea eax, [ebp - 0x58]
call fcn.0040180f
push 0xffffffffffffffff
push dword [ebp - 0x58]
lea esi, [ebx + 0x80]
call fcn.004018e5
sub esp, 0x44
lea ecx, [ebp - 0x58]
mov eax, esp
mov dword [ebp - 0x32c], esp
push ecx
call fcn.004017dd
mov ecx, dword [ebx + 0x7c]
call fcn.00401edf
mov esi, dword [ebx + 0x7c]
call fcn.00401f28
lea eax, [ebp - 0x174]
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0
mov byte [ebp - 4], 6
push dword [ebp - 0x58]
lea edi, [ebp - 0x178]
push str._sDatauser2.ini
call fcn.00401be7
pop ecx
pop ecx
push 0xffffffffffffffff
lea eax, [ebp - 0xe4]
push 0x415c0c
lea esi, [ebp - 0xe8]
mov dword [ebp - 0xe8], eax
mov byte [ebp - 0xe4], 0
call fcn.004018e5
mov byte [ebp - 4], 7
push dword [ebp - 0xa0]
mov eax, esi
call fcn.0040180f
push dword [ebp - 0x178]
push dword [ebp - 0xe8]
push 0x415c10
push 0x415c14
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebx + 0x7c]
call fcn.0040252b
movzx eax, byte [ebx + 0x34]
mov ecx, dword [ebx + 0x7c]
push eax
push eax
call fcn.0040220b
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x12c], 0
mov byte [ebp - 4], 8
push dword [ebx + 4]
lea edi, [ebp - 0x130]
push dword [ebp - 0x58]
push str._s_s__tuopan
call fcn.00401be7
add esp, 0xc
push 5
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, edi
mov byte [ebp - 4], 7
call fcn.004017fe
mov eax, esi
mov byte [ebp - 4], 6
call fcn.004017fe
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 5
call fcn.004017fe
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.004017fe
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.004017fe
lea eax, [ebp - 0x328]
push eax
mov byte [ebp - 4], 0
call fcn.00402dfa
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x208]
call fcn.004017fe
call fcn.0040d6a6
ret 4
Function at 0x4015a8
Capabilities:
Terminate process

Disassembly:
push 0x48
mov eax, 0x411817
call fcn.0040d65c
call fcn.00401728
mov eax, dword [0x41c214]
push dword [eax + 8]
call fcn.0040164d
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
xor ebx, ebx
push ebx
push 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, ebx
je 0x4015e2
push ebx
push eax
call edi
mov eax, dword [0x41c214]
push dword [eax + 4]
call fcn.0040164d
push eax
push ebx
push 1
call esi
cmp eax, ebx
je 0x4015fd
push ebx
push eax
call edi
mov eax, dword [0x41c214]
push dword [eax + 0x10]
call fcn.0040164d
push eax
push ebx
push 1
call esi
cmp eax, ebx
je 0x401618
push ebx
push eax
call edi
mov edi, 0x415c6c
lea ecx, [ebp - 0x54]
call fcn.00401d9d
push str.Unins.exe
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x415c26
mov dword [ebp - 4], ebx
call fcn.00401ab1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
call fcn.004017fe
call fcn.0040d6a6
ret

Function at 0x40164d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.0040cab0
mov eax, dword [0x418024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x1110], eax
lea eax, [ebp - 0x110c]
push eax
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1108]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x401710
mov eax, dword [ebp - 0x110c]
push ebx
push edi
shr eax, 2
xor edi, edi
test eax, eax
jle 0x40170c
push dword [ebp + edi*4 - 0x1108]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
lea eax, [ebp - 0x1114]
push eax
push esi
lea eax, [ebp - 0x2114]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x2114]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
push dword [ebp - 0x1110]
lea eax, [ebp - 0x108]
push eax
call fcn.00406640
pop ecx
pop ecx
test eax, eax
jne 0x40171f
mov eax, dword [ebp - 0x110c]
inc edi
shr eax, 2
cmp edi, eax
jl 0x4016a1
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004061ea
leave
ret 4
mov eax, dword [ebp + edi*4 - 0x1108]
jmp 0x40170e
Function at 0x401728
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x418024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401753
xor eax, eax
jmp 0x4017a9
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401773
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40174f
mov eax, dword [ebp - 0x20]
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x401768
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004061ea
leave
ret

Function at 0x401cc4
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push str.SetupApp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401d31
push 0xd0
call fcn.004067fa
pop ecx
test eax, eax
je 0x401d01
push eax
call fcn.0040105b
mov esi, eax
jmp 0x401d03
xor esi, esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [0x41c214]
call fcn.004012ad
test esi, esi
je 0x401d20
push esi
call fcn.00401d3a
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401d9d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x418024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x107]
push ebx
mov dword [ebp - 0x110], ebx
push eax
mov esi, ecx
mov byte [ebp - 0x108], bl
call fcn.00409e50
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e4c
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push str.UninstallString
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
test eax, eax
jne 0x401e46
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], bl
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
call fcn.004018e5
jmp 0x401e5a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push 0x415c26
mov eax, esi
call fcn.004017bd
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004061ea
leave
ret
Function at 0x401f28
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [esi]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f34
sub eax, edi
jne 0x401f43
xor al, al
jmp 0x401f75
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401f5b
push 0
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ecx, dword [esi]
sub esp, 0x44
mov eax, esp
mov dword [ebp - 4], esp
push 0xffffffffffffffff
push ecx
call fcn.004017bd
push esi
call fcn.00401f78
mov al, 1
pop edi
leave
ret

Function at 0x401f78
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x13c
mov eax, 0x4119eb
call fcn.0040d65c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x148], eax
push 0x415cec
xor ebx, ebx
push 0x66
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x40208c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x144], eax
push esi
cmp eax, ebx
jne 0x401fcb
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40208c
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x40208c
push edi
call fcn.00406631
pop ecx
mov dword [0x41c1e0], eax
cmp eax, ebx
je 0x402008
push edi
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x41c1e0]
call fcn.0040b810
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x140]
push ebx
push eax
call fcn.00409e50
add esp, 0xc
push edi
call fcn.0040611c
mov edi, eax
pop ecx
cmp edi, ebx
je 0x402085
lea eax, [ebp - 0x140]
push eax
push 0xffffffffffffffff
mov eax, edi
call fcn.0040617d
pop ecx
pop ecx
cmp eax, ebx
jne 0x402085
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40205f
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x44
lea ecx, [ebp + 0xc]
mov eax, esp
mov dword [ebp - 0x144], esp
push ecx
call fcn.004017dd
push dword [ebp - 0x140]
mov esi, dword [ebp - 0x148]
push edi
call fcn.004020a0
mov esi, edi
call fcn.004061ac
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0xc]
call fcn.004017fe
call fcn.0040d6a6
ret 0x48
Function at 0x4020a0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push 0x188
mov eax, 0x4119bb
call fcn.0040d65c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x190], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x98]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
cmp eax, ebx
je 0x4020d9
push ebx
push dword [ebp + 0xc]
push 0x52c
push eax
call edi
mov dword [ebp - 0x18c], ebx
cmp dword [ebp + 0xc], ebx
jle 0x4021e3
push 0x12c
lea eax, [ebp - 0x188]
push ebx
push eax
call fcn.00409e50
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x18c]
mov eax, dword [ebp - 0x190]
call fcn.0040617d
pop ecx
pop ecx
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x58]
call fcn.004017dd
push 0x415bf4
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040180f
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x58]
call fcn.0040180f
test byte [ebp - 0x80], 0x10
je 0x402153
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x190]
cmp eax, ebx
jne 0x402169
mov dword [0x41c210], 0x10000
jmp 0x402190
cmp dword [eax], 1
je 0x40217a
mov dword [0x41c210], 0x80000
jmp 0x402190
push dword [ebp - 0x58]
mov ecx, dword [eax + 4]
push dword [ebp - 0x18c]
call fcn.00405ea7
mov dword [0x41c210], eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4021aa
and eax, 0xfffffffe
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 0x98]
cmp eax, ebx
je 0x4021c3
push ebx
push dword [ebp - 0x18c]
push 0x52d
push eax
call edi
lea eax, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.004017fe
inc dword [ebp - 0x18c]
mov eax, dword [ebp - 0x18c]
cmp eax, dword [ebp + 0xc]
jl 0x4020e8
mov eax, dword [esi + 0x98]
cmp eax, ebx
je 0x4021f7
push ebx
push ebx
push 0x52e
push eax
call edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x10]
call fcn.004017fe
call fcn.0040d6a6
ret 0x4c