joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412ed0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, dword [0x481d28]
push esi
cmp eax, 2
mov esi, dword [esp + 0x10]
push edi
jne 0x412f27
test esi, esi
jle 0x412f57
mov edi, dword [esp + 0x10]
mov eax, 0x50b0e0
mov ebx, dword [eax]
xor edx, edx
add edi, 8
add eax, 4
mov cl, byte [ebx*2 + 0x50e0e0]
xor cl, 0x80
mov dl, cl
shl edx, 8
mov dword [edi - 8], edx
xor edx, edx
mov cl, byte [ebx*2 + 0x50e0e1]
xor cl, 0x80
mov dl, cl
shl edx, 8
dec esi
mov dword [edi - 4], edx
jne 0x412eee
pop edi
pop esi
pop ebx
ret 8
test esi, esi
jle 0x412f57
mov eax, 0x50b0e0
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
add eax, 4
add ecx, 2
mov dl, byte [edx + 0x50e0e0]
and edx, 0xffff00ff
xor dx, 0xff80
shl dx, 8
dec esi
mov word [ecx - 2], dx
jne 0x412f34
pop edi
pop esi
pop ebx
ret 8
Function at 0x8115fc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x811602
pop ebp
sub ebp, 6
sub ebp, 0x4115fc
jmp 0x811660
jmp 0x811669
mov eax, 0x4115fc
add eax, ebp
add eax, 0x93
mov ecx, 0x5b2
mov edx, 0xd7836828
xor byte [eax], dl
inc eax
dec ecx
jne 0x811680
jmp 0x811693
mov dword [0x14a1a3e5], eax
sub byte [eax], ch
sub byte [ecx + 0x2828d0e9], ch
sub byte [ebx], ch
in eax, 0x90
sub al, 0x28
sub byte [eax], ch
xchg edx, eax
add byte [eax], ch
sub byte [eax], ch
invalid
Function at 0x402427
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x42b028]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x78], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 2
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push eax
push 0x12
mov esi, 0x400
push esi
call edi
mov ebx, dword [sym.imp.MSVCR90.dll__wtoi]
lea eax, [ebp - 0x5c]
push eax
call ebx
pop ecx
push 4
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x20]
push eax
push 0xe
push esi
mov dword [ebp - 0x70], 3
call edi
lea eax, [ebp - 0x20]
push 4
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x14]
push eax
push 0xf
push esi
call edi
lea eax, [ebp - 0x14]
push 2
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x5c]
push eax
push 0x1010
push esi
call edi
lea eax, [ebp - 0x5c]
push eax
call ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
push dword [ebp + 8]
lea eax, [ebp - 0x5c]
push 0x41f98c
push eax
call fcn.00405b04
add esp, 0x14
push 0x100
push dword [ebp - 0x60]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x60]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414918
leave
ret 0xc
Function at 0x402a95
Capabilities:
Check if file exists
Create directory

Disassembly:
push 4
mov eax, 0x4168c0
call fcn.00415302
and dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call dword [0x419724]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
inc eax
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push eax
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call dword [0x419708]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402b05
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
inc eax
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp + 8]
call fcn.004153da
ret 0xc
Function at 0x4043b6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.004152d0
mov eax, dword [0x42b028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
lea ecx, [eax + 2]
push esi
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x4043d3
push 0
push 0
sub eax, ecx
push 0x10000
sar eax, 1
lea ecx, [ebp - 0x10004]
push ecx
inc eax
push eax
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x10004]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40440a
push 0
lea ecx, [ebp - 0x10008]
push ecx
sub eax, esi
push eax
lea eax, [ebp - 0x10004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00414918
leave
ret
Function at 0x414918
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b028]
jne 0x414922
repz ret
jmp fcn.00414e5e
Function at 0x401e90
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5d6ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
xor ebx, ebx
mov word [ebp - 8], 0x500
push eax
push 8
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x401f74
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x10]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x401f73
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x401f73
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401f73
xor esi, esi
cmp dword [ebx], esi
jbe 0x401f73
lea edi, [ebx + 4]
nop dword [eax + eax]
push dword [ebp - 0x18]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401f69
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x401f50
jmp 0x401f6d
mov byte [ebp - 0x19], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
pop esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401f82
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x401f92
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x14]
pop edi
pop ebx
test ecx, ecx
je 0x401fa2
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x19]
xor ecx, ebp
call fcn.00554815
mov esp, ebp
pop ebp
ret
Function at 0x401fd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571c42
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d6ff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x1c], 0
call fcn.00402270
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
test esi, esi
jne 0x402055
call fcn.00410f0c
mov ecx, eax
test ecx, ecx
jne 0x40203c
push 0x80004005
call fcn.00402df0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
mov ebx, 1
jmp 0x40206d
push esi
lea ecx, [ebp - 0x28]
call fcn.00402cd0
mov dword [ebp - 4], 2
mov ebx, 2
mov esi, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ebx
call fcn.00402f30
or edi, 0xffffffff
mov dword [ebp - 4], 4
test bl, 2
je 0x4020a8
mov edx, dword [ebp - 0x28]
and ebx, 0xfffffffd
mov dword [ebp - 0x24], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4020a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
test bl, 1
je 0x4020c8
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4020c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
push eax
call fcn.004021d0
mov esi, eax
push 0x5b4820
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402650
push esi
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
call fcn.004023b0
mov byte [ebp - 4], 6
add esp, 0x18
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402120
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40213e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push 0x5b4824
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40216f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40218d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4021ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00554815
mov esp, ebp
pop ebp
ret 4
Function at 0x402730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402745
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402786
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402782
nop word [eax + eax]
cmp esi, edx
jae 0x402786
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x402770
cmp esi, edx
jb 0x40278b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x405a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5d6ff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
test ecx, ecx
je 0x405adb
test ebx, ebx
je 0x405adb
push edi
lea eax, [ebp - 8]
push eax
push esi
push edx
push esi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x405ac0
mov eax, dword [ebp - 8]
add eax, 2
push eax
call fcn.004100aa
mov esi, eax
add esp, 4
test esi, esi
je 0x405abb
mov ecx, dword [ebp - 8]
add ecx, 2
push ecx
push edi
push esi
call fcn.005577d0
add esp, 0xc
cmp dword [ebp - 8], edi
jbe 0x405ac0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0xc]
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x405ac0
push esi
call fcn.004100b3
mov eax, dword [ebp - 0x14]
add esp, 4
xor esi, esi
mov dword [eax + 4], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00554815
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0xe
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00554815
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov dword [eax + 4], 0x57
xor ecx, ebp
mov eax, esi
pop esi
pop ebx
call fcn.00554815
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c4f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572e79
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5d6ff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
call fcn.00410f0c
mov ecx, eax
test ecx, ecx
jne 0x40c54f
push 0x80004005
call fcn.00402df0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x30], 1
nop word [eax + eax]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0x5b4a04
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40c5c6
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402a50
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], 0x104
mov eax, dword [eax]
test eax, eax
je 0x40c60c
test esi, esi
je 0x40c60c
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x40c600
inc ebx
lea edi, [eax + 1]
jmp 0x40c616
sub edi, 0x103
neg edi
sbb edi, edi
jmp 0x40c616
mov dword [ebp - 0x28], 0x57
or edi, 0xffffffff
mov byte [ebp - 4], 1
push dword [esi - 8]
mov dword [ebp - 0x2c], vtable.CObjBase.0
push esi
call fcn.0055ba8a
add esp, 8
test eax, eax
js 0x40c694
cmp eax, dword [esi - 8]
jg 0x40c694
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, 1
jne 0x40c658
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
call fcn.00407fc0
mov esi, dword [ebp - 0x14]
jmp 0x40c590
mov byte [ebp - 4], cl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c673
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00554815
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00402df0
int3
Function at 0x40d680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573130
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d6ff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5e2138
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push 0x5e2134
push eax
call fcn.004023b0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x5b4924
mov byte [ebp - 4], 1
xor esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x40d719
cmp word [eax], si
je 0x40d719
push esi
lea ecx, [ebp - 0x1c]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
test eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmovne esi, ecx
mov dword [ebp - 0x1c], esi
jmp 0x40d720
mov dword [ebp - 0x20], 0x57
or edi, 0xffffffff
test esi, esi
je 0x40d7c5
mov eax, dword [0x5e213c]
test eax, eax
je 0x40d74c
push 4
push 0x5b4f50
push 4
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x20], eax
jmp 0x40d753
mov dword [ebp - 0x20], 0x57
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
call fcn.0040a960
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.0040b1f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x5e2140]
mov edx, dword [eax - 0xc]
test ecx, ecx
je 0x40d79a
lea edx, [edx*2 + 2]
push edx
push eax
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x20], eax
jmp 0x40d7a1
mov dword [ebp - 0x20], 0x57
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d7c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40d7e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00554815
mov esp, ebp
pop ebp
ret
Function at 0x40d9b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573188
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5d6ff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x110], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 8
push eax
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00412973
push 0
call fcn.00413506
add esp, 4
call fcn.00401e90
test al, al
sete al
test al, al
jne 0x40db95
mov dword [ebp - 4], 0
push dword [0x5e20e0]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x40db85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40db85
cmp eax, 5
je 0x40db85
call fcn.0040dbf0
test al, al
jne 0x40da73
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40db8e
push 0xc
call fcn.00410073
add esp, 4
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40daa4
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00414172
mov edi, eax
jmp 0x40daa6
xor edi, edi
push 0x583c70
mov byte [ebp - 4], 0
call fcn.0041c666
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], vtable.CArray_enum_CommandLineOperationType__enum_CommandLineOperationType_const__.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x109]
mov byte [ebp - 4], 2
call fcn.0040fc20
mov ecx, eax
call fcn.0040ffe0
push 0xd8
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005577d0
add esp, 8
lea ecx, [ebp - 0x108]
call fcn.0040e510
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 3
mov dword [eax + 0x20], ecx
call fcn.00420015
test edi, edi
je 0x40db41
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
lea ecx, [ebp - 0x109]
call fcn.0040fc20
mov edi, eax
cmp byte [edi], 1
jne 0x40db5c
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [edi], 0
call fcn.00420f21
lea ecx, [ebp - 0x48]
call fcn.00423df3
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], vtable.CBrush.0
call fcn.0040e3f0
lea ecx, [ebp - 0x108]
call fcn.0041fa7e
jmp 0x40db8e
call fcn.0040ddc0
test esi, esi
je 0x40db95
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00554815
mov esp, ebp
pop ebp
ret

Function at 0x40ed40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041fc7d
Function at 0x413b5f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x413ba9
call fcn.00426bc4
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x413ba6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x413bf7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x413bd5
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call fcn.00554d14
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x413bd5
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x413bf5
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call fcn.00554d14
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41fce2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00426bc4
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41fd19
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041fd3a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x425725
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x425778
push esi
push dword [ebp + 8]
call fcn.00425918
mov edi, eax
test edi, edi
jne 0x425748
mov eax, dword [ebp + 0x10]
jmp 0x42578a
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x425743
mov eax, dword [ebp - 8]
jmp 0x42578a
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc