joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41f0a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
push edi
xor esi, esi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x10], esi
call fcn.00405340
test eax, eax
je 0x405148
xor ebp, ebp
mov dword [esp + 0x1c], ebp
push 0x427324
lea eax, [esp + 0x2c]
push 0x42abf8
push eax
mov dword [esp + 0x144], ebx
call fcn.00418622
mov ecx, dword [esp + 0x140]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x144], 1
call fcn.00418622
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 3
call fcn.0041841a
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x405125
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
mov ebp, esi
mov dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.DevicePath
push esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], 0x104
call ebx
test eax, eax
jne 0x405121
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x405121
lea edx, [esp + 0x2c]
lea ecx, [edi + 8]
push edx
call fcn.00418557
lea eax, [esp + 0x18]
lea ebp, [edi + 0x10]
push eax
lea ecx, [esp + 0x14]
push ebp
push ecx
push 0
push str.TYPE_ID
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 4
call ebx
test eax, eax
je 0x4050b2
mov dword [ebp], 0xffffffff
lea edx, [esp + 0x18]
lea ebp, [edi + 0xc]
push edx
lea eax, [esp + 0x28]
push ebp
push eax
push 0
push str.Version
push esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 4
call ebx
test eax, eax
jne 0x4050eb
mov eax, dword [ebp]
cmp eax, 2
je 0x4050f2
cmp eax, 3
je 0x4050f2
mov dword [ebp], 0
test esi, esi
je 0x405105
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
jmp 0x405109
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x140]
push ecx
lea ecx, [edi + 4]
call fcn.00418557
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x10]
mov ecx, edi
call fcn.00405360
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 0
call fcn.0041841a
test ebp, ebp
je 0x405148
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x130]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 4
Function at 0x405170
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41f0c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor ebx, ebx
mov eax, dword [ebp + 4]
lea esi, [ebp + 4]
xor edi, edi
mov dword [esp + 0x20], ebp
cmp dword [eax - 8], ebx
je 0x405320
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
push 0x427324
lea ecx, [esp + 0x20]
push 0x42abf8
push ecx
mov dword [esp + 0x38], ebx
call fcn.00418622
push esi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x38], 1
call fcn.004185bc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 3
call fcn.0041841a
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push 0x20006
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x405211
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
jmp 0x40524c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x405271
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], esi
mov edi, dword [ebp + 8]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [edi - 8], ebx
je 0x405293
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.DevicePath
push esi
call ebp
jmp 0x4052a5
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call fcn.0041841a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
cmp dword [esp + 0x14], ebx
jne 0x4052a5
push str.DevicePath
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x4052c9
lea edx, [esp + 0x20]
push 4
push edx
push 4
push ebx
push str.TYPE_ID
push esi
mov dword [esp + 0x38], eax
call ebp
jmp 0x4052db
cmp dword [esp + 0x14], ebx
jne 0x4052db
push str.TYPE_ID
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x20]
push 4
push ecx
push 4
push ebx
push str.Version
push esi
mov dword [esp + 0x38], eax
call ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov edi, 1
je 0x40530c
push esi
call ebp
xor esi, esi
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call fcn.0041841a
cmp esi, ebx
je 0x405320
push esi
call ebp
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x406030
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f1a8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
or ebx, 0xffffffff
mov eax, dword [esi + 4]
cmp dword [eax - 8], edi
je 0x40611c
lea ecx, [esp + 0x14]
call fcn.00401090
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x34], edi
call fcn.00401140
test eax, eax
je 0x406108
lea ecx, [esp + 0x14]
call fcn.004011d0
test eax, eax
je 0x4060fa
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401310
test eax, eax
je 0x4060fa
cmp dword [esp + 0xc], edi
je 0x4060cf
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.00401210
test eax, eax
je 0x4060fa
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
and ebx, 0xff
mov dword [esi + 0x20], edi
call fcn.004011b0
jmp 0x40610b
cmp dword [esi + 0x20], edi
jne 0x4060e8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x14]
mov dword [esi + 0x20], eax
call fcn.004011b0
jmp 0x40610b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x20]
cmp eax, 0x3e8
jbe 0x4060fd
xor ebx, ebx
mov dword [esi + 0x20], edi
lea ecx, [esp + 0x14]
call fcn.004011b0
jmp 0x40610b
mov dword [esi + 0x20], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004010e0
mov ecx, dword [esp + 0x28]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x40b111
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x427f90
cmp edx, dword [eax]
je 0x40b133
add eax, 8
inc ecx
cmp eax, 0x428020
jl 0x40b124
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x427f90]
jne 0x40b261
mov eax, dword [0x42cc20]
cmp eax, 1
je 0x40b23b
test eax, eax
jne 0x40b164
cmp dword [0x427aa4], 1
je 0x40b23b
cmp edx, 0xfc
je 0x40b261
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b19b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040c640
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408720
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b1de
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408720
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x422824
push edi
call fcn.0040dcc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040c640
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040c650
lea eax, [ebp - 0xa0]
push 0x422804
push eax
call fcn.0040c650
push dword [esi + 0x427f94]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040c650
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040dc31
add esp, 0x2c
pop edi
jmp 0x40b261
lea eax, [ebp + 8]
lea esi, [esi + 0x427f94]
push 0
push eax
push dword [esi]
call fcn.00408720
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x412e90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00408a60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x412f5b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x412f5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x412f0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x412f19
or bh, 8
and edi, 0x8000000
je 0x412f34
mov eax, dword [0x42e3bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x412f5b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41335b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41337f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41339a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4144f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x414515
cmp dword [edi + 0x3c], 0
jne 0x414515
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0041db2a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00414542
pop edi
pop esi
pop ebx
ret 8

Function at 0x414882
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41f2ec
call fcn.00407db8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041db2a
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4148c1
call fcn.0041db2a
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4148cf
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4148dd
or eax, 0xffffffff
jmp 0x4149c5
mov ecx, esi
call fcn.004147f8
mov dword [ebp - 0x14], eax
call fcn.00415674
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x414914
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x414914
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00415628
push dword [ebp - 0x14]
call fcn.00415176
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00414590
cmp eax, edi
je 0x414987
test byte [esi + 0x24], 0x10
je 0x414955
push 4
mov ecx, esi
pop ebx
call fcn.00417a71
test ah, 1
je 0x41494d
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00417408
cmp dword [esi + 0x1c], edi
je 0x414987
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00417afd
jmp 0x414987
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41499b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4149b4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4149b4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00414832
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4172b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4172f8
call fcn.0041db2a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4172f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4172ef
xor eax, eax
jmp 0x417300
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00417306
pop edi
pop esi
pop ebx
ret 4

Function at 0x41e347
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41e375
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e393
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e2ad
jmp 0x41e393
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41e393
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041e2ad
test edi, edi
mov eax, edi
jne 0x41e37d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40e5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x414034]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x401556
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [esp + 0x38], 0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0xc]
xor ecx, ecx
push edx
mov word [esp + 0x10], cx
call esi
test eax, eax
jns 0x4014d9
push eax
call fcn.00408730
mov eax, 8
push ebx
mov word [esp + 0x10], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x401512
test ebx, ebx
je 0x401512
mov ecx, 0xa
push 0x8007000e
mov word [esp + 0x10], cx
mov dword [esp + 0x18], 0x8007000e
call fcn.00408730
lea ecx, [esp + 0x1c]
push ecx
push ecx
push ecx
mov byte [esp + 0x44], 1
mov eax, dword [edi + 0x3c]
mov edx, dword [eax]
mov edx, dword [edx + 0xd0]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
call edx
mov edi, eax
lea eax, [esp + 0xc]
push eax
call esi
lea ecx, [esp + 0x1c]
push ecx
call esi
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408950
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
push str.Welcome_Mutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x41541c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408990
mov eax, dword [0x41541c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00408d40
mov edx, dword [ebp + 0x14]
push edx
call fcn.004087e0
add esp, 4
mov esi, eax
call fcn.00408ca0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x41541c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a9f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x414034]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor esi, esi
push ecx
lea edx, [ebp - 0x218]
or eax, 0x2001f
push edx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040a930
mov ebx, eax
cmp ebx, esi
je 0x40aa68
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x40aa53
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d6e0
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x218]
push esi
push esi
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push esi
push eax
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40aaec
lea esp, [esp]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0040a9f0
mov ebx, eax
cmp ebx, esi
jne 0x40aa42
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x218]
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
push edx
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40aaa0
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x40ab03
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
mov ebx, dword [ebp - 0x220]
mov eax, edi
mov dword [ebp - 0x214], esi
call fcn.0040abb0
mov edi, eax
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x40ab29
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d6e0
mov esp, ebp
pop ebp
ret 4
Function at 0x40b750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e8c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x414034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, edi
jne 0x40b7d0
call fcn.00407170
mov edi, eax
jmp 0x40b8e8
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x40b7ef
call fcn.00407170
jmp 0x40b8df
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x40b80b
call fcn.00407170
jmp 0x40b8df
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x40b82c
mov edi, 0x8007000e
jmp 0x40b8e1
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x40b841
cmp eax, 0xffffffff
jbe 0x40b84b
push 0x80070216
call fcn.00408730
cmp eax, 0x400
jbe 0x40b87d
lea ecx, [ebp - 0x418]
push ecx
call fcn.00409c00
jmp 0x40b889
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, edi
jne 0x40b8a1
mov edi, 0x8007000e
jmp 0x40b8e1
push ebx
push eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x40b8be
call fcn.00407170
jmp 0x40b8df
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040b5b0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x40b901
lea eax, [ebp - 0x418]
call fcn.0040a320
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d6e0
mov esp, ebp
pop ebp
ret 0xc