joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412800
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5154e8
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x414]
lea edi, [ebx + 0x414]
sub eax, 0x10
push eax
call fcn.00403680
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 0
cmp dword [esi - 4], 1
jle 0x412862
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00403270
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esi - 8]
setne cl
push eax
push esi
mov ebp, ecx
call fcn.004df755
add esp, 8
test eax, eax
jl 0x4129b0
cmp eax, dword [esi - 8]
jg 0x4129b0
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4128be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x4128ee
push 0x10
push 0x52cb0c
push 0x52cb18
mov ecx, ebx
call fcn.004cb711
push ebx
call fcn.00415090
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.gameyxdown.dat
lea edx, [ebx + 0x264]
push edx
push ecx
call fcn.00402970
add esp, 0xc
call fcn.004a1391
add esp, 4
test eax, eax
je 0x41299f
mov eax, dword [ebx + 0x408]
cmp dword [eax - 0xc], 0
je 0x41299f
mov eax, dword [edi]
push 0x5c
push eax
call fcn.004dfd64
add esp, 8
test eax, eax
jne 0x41293c
or eax, 0xffffffff
jmp 0x412940
sub eax, dword [edi]
sar eax, 1
inc eax
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00402800
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x410]
mov eax, dword [edi]
push 1
push esi
push edx
push eax
push 0x522a50
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4128db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push 0x10
push 0x52cb0c
push 0x52cb4c
jmp 0x4128ce
push 0x80070057
call fcn.00401ff0
int3

Function at 0x4129c0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x550b54]
add eax, 0xfffffff0
push esi
push eax
call fcn.00403680
add esp, 4
push 1
push 0
mov esi, eax
push 0
add esi, 0x10
push esi
push 0x522a50
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x412a08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret
Function at 0x412a10
Capabilities:
Access peb ldr_data
Create process on windows
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x517170
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x550b60]
add eax, 0xfffffff0
push eax
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 0
mov eax, dword [esi + 0x40c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.004030e0
push 0xa
push str.typemore
lea ecx, [esp + 0x14]
call fcn.004030e0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x3c], 1
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x40], 2
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x44], 3
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x522764
call fcn.00402480
mov byte [esp + 0x44], 4
mov eax, dword [esi + 0x2bc]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov edi, esp
push eax
call fcn.00403680
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [esp + 0x40], esp
push str.gg_gamepack_start_cd10
mov byte [esp + 0x50], 5
call fcn.00402480
mov edi, 0x550b38
mov byte [esp + 0x4c], 0
call fcn.004b9230
mov esi, dword [esp + 0xc]
push 1
push 0
push 0
push esi
push 0x522a50
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x413e10
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x515468
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x20]
call fcn.004c91ad
mov eax, dword [eax + 4]
push 0x52c9f0
push edi
push str.Main
mov ecx, eax
call fcn.004c658e
lea eax, [esp + 0x1c]
lea ecx, [esi + 0x41c]
push eax
call fcn.00403060
lea ecx, [esp + 0x20]
push ecx
lea edx, [esi + 0x264]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.004028b0
add esp, 0xc
lea ecx, [esi + 0x418]
push eax
mov byte [esp + 0x18], 2
call fcn.00403060
mov byte [esp + 0x14], 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413eb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push esi
push 0x414000
push 0
push 0
mov dword [esi + 0x2c8], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret 8

Function at 0x413f40
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x513d58
mov eax, dword fs:[0]
push eax
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [esp + 0x10], 0
lea ecx, [esi + 0x41c]
push 0x522764
mov dword [0x5504c8], 1
mov dword [esi + 0x2c8], eax
call fcn.00403570
lea edx, [esp + 0x14]
lea ecx, [esi + 0x418]
push edx
call fcn.00403060
push 0
push 0
push esi
push 0x414000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413fe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 8
Function at 0x4142e0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x5149f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x521658
push 1
push 0
push 0x521858
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x414354
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0xc
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x264]
sub eax, 0x10
push eax
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 0
mov eax, dword [eax - 0xc]
push 0
dec eax
push eax
lea ecx, [esp + 0x2c]
call fcn.0041aaa0
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x24]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x24]
call eax
test edi, edi
je 0x4143be
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x5217e8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x414416
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414401
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jl 0x4143d7
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41446f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0xc
Function at 0x415090
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5153f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x2c4], 0
je 0x415295
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4150e1
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x41511f
push 0x100
lea ecx, [esp + 0x18]
call fcn.00403630
mov esi, dword [esp + 0x14]
push 0x100
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004df755
add esp, 8
test eax, eax
jl 0x41528b
cmp eax, dword [esi - 8]
jg 0x41528b
xor ecx, ecx
push ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x52c484
call fcn.00402480
push ecx
lea ebp, [esi - 0x10]
mov dword [esp + 0x24], esp
mov edi, esp
push ebp
mov byte [esp + 0x34], 1
call fcn.00403680
add eax, 0x10
lea edx, [esp + 0x1c]
add esp, 4
mov dword [edi], eax
push edx
mov byte [esp + 0x34], 0
call fcn.00495d00
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x2c], 2
call fcn.0041a9c0
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4151bd
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x28], 3
mov edx, dword [ecx + 0x40c]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x550b40]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004039c0
mov esi, dword [esp + 0x28]
add esp, 0x10
push 1
push 0
push 0
push esi
push 0x522a50
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41522f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4152b2
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 4
push 0x80070057
call fcn.00401ff0
mov eax, dword [eax + 0x264]
push 1
push 0
push eax
push str.explorer.exe
push 0x522a50
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 4
Function at 0x419b60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x3dc], 0
push edi
mov edi, dword [ebp + 8]
je 0x419bea
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add edx, dword [esi + 0x3e4]
add edi, dword [esi + 0x3e8]
mov eax, dword [esi + 0x3ec]
mov ecx, dword [esi + 0x3f0]
sub eax, dword [esi + 0x3e4]
sub ecx, dword [esi + 0x3e8]
mov ebx, dword [esi + 0x3dc]
add eax, edx
add ecx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test ebx, ebx
je 0x419bd6
mov ebx, dword [ebx + 0x20]
push 1
sub ecx, edi
push ecx
sub eax, edx
push eax
push edi
push edx
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edi, dword [ebp + 8]
cmp dword [esi + 0x3e0], 0
je 0x419c63
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add edx, dword [esi + 0x3f4]
add edi, dword [esi + 0x3f8]
mov eax, dword [esi + 0x3fc]
mov ecx, dword [esi + 0x400]
sub eax, dword [esi + 0x3f4]
sub ecx, dword [esi + 0x3f8]
mov ebx, dword [esi + 0x3e0]
add eax, edx
add ecx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test ebx, ebx
je 0x419c4f
mov ebx, dword [ebx + 0x20]
push 1
sub ecx, edi
push ecx
sub eax, edx
push eax
push edi
push edx
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x3dc]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test ecx, ecx
je 0x419cb9
call fcn.004cf893
test eax, eax
je 0x419cb9
mov ecx, edi
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
mov ecx, dword [esi + 0x3dc]
call fcn.004cf86c
mov eax, dword [esi + 0x3dc]
mov eax, dword [eax + 0x16c]
test edi, edi
je 0x419cad
test eax, eax
je 0x419cb9
mov edx, dword [eax + 0x40]
push 5
push edx
jmp 0x419cb7
test eax, eax
je 0x419cb9
mov eax, dword [eax + 0x40]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x3e0]
test ecx, ecx
je 0x419d12
call fcn.004cf893
test eax, eax
je 0x419d12
mov ecx, edi
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
mov ecx, dword [esi + 0x3e0]
call fcn.004cf86c
mov esi, dword [esi + 0x3e0]
mov eax, dword [esi + 0x16c]
test edi, edi
je 0x419d06
test eax, eax
je 0x419d12
mov edx, dword [eax + 0x40]
push 5
push edx
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x419d12
mov eax, dword [eax + 0x40]
push 0
push eax
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c8b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
call fcn.004c91ad
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x52d584
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41c8dd
pop edi
pop esi
pop ebp
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41c8fd
pop ebx
pop edi
pop esi
pop ebp
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.004e9720
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0x18]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x41c954
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x41c956
xor esi, esi
push edi
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop ebx
xor eax, eax
cmp dword [ebp], eax
pop edi
pop esi
setne al
pop ebp
ret 8

Function at 0x41cf00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x41cf10
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x41cf20
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41cf50
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x549950]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x41cfca
xor eax, eax
cmp ecx, ebp
je 0x41cfb2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x41cfd8
cmp ecx, ebp
je 0x41d06b
push ecx
jmp 0x41d065
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x41d03a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0041cf50
mov ebx, eax
cmp ebx, ebp
jne 0x41d088
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x41d000
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41d04d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0041cea0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41d06b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004df2ac
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41d097
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x41d06d
Function at 0x41d5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x513ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x549950]
xor eax, ebp
mov dword [ebp + 0x404], 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 + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
jne 0x41d61f
call fcn.0041cc80
mov esi, eax
jmp 0x41d709
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x41d63b
call fcn.0041cc80
jmp 0x41d700
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x41d654
call fcn.0041cc80
jmp 0x41d700
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x41d688
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x41d676
lea eax, [ebp]
call fcn.0041f3b0
lea ecx, [ebp - 0x1c]
call fcn.0041f210
mov eax, 0x8007000e
jmp 0x41d722
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0041f2e0
mov dword [ebp - 4], 1
jmp 0x41d6b9
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x41d6c7
mov esi, 0x8007000e
jmp 0x41d702
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x41d6e5
call fcn.0041cc80
jmp 0x41d700
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0041e400
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x41d720
lea eax, [ebp]
call fcn.0041f3b0
lea esp, [esp]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004df2ac
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc