joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x503200
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x55306c]
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 edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x402b18
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x402b18
call fcn.00401d60
mov edi, eax
jmp 0x402c20
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x402b35
call fcn.00401d60
jmp 0x402c13
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x402b50
call fcn.00401d60
jmp 0x402c13
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x402b6e
mov edi, 0x8007000e
jmp 0x402c15
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x402c62
jb 0x402b92
cmp eax, 0xffffffff
ja 0x402c62
cmp eax, 0x400
jbe 0x402bab
push eax
lea ecx, [ebp]
call fcn.00406c00
mov dword [ebp - 4], 1
jmp 0x402bd0
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x402bd0
mov eax, dword [ebp]
test eax, eax
jne 0x402bde
mov edi, 0x8007000e
jmp 0x402c15
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x402bf9
call fcn.00401d60
jmp 0x402c13
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.00403860
mov edi, eax
test esi, esi
je 0x402c20
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x402c34
lea ecx, [ebp]
call fcn.00406bf0
mov dword [ebp - 4], 0xffffffff
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 + 0x404]
xor ecx, ebp
call fcn.004c1e08
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.00401be0
int3
Function at 0x407330
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x55306c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004da2d0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40739a
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x407383
cmp eax, 4
jne 0x40739a
cmp dword [esp + 8], 0x5a
jb 0x40739a
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c1e08
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov al, 1
xor ecx, esp
call fcn.004c1e08
add esp, 0x118
ret

Function at 0x4075e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x55306c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push edi
mov edi, dword [esp + 0x128]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.004da2d0
push 0x110
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0x114
push 0
push eax
call fcn.004da2d0
add esp, 0x18
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407640
cmp dword [esp + 0xc], 6
mov eax, 0x30
jae 0x407645
mov eax, 0x2c
push edi
mov dword [esi], eax
mov dword [esi + 4], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi + 0xc], edi
mov ecx, dword [0x556a88]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x134]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x11c]
pop edi
mov dword [esi + 0x28], 0
pop esi
xor ecx, esp
call fcn.004c1e08
add esp, 0x118
ret 0x18
Function at 0x407ed0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503cf4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x55306c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 3
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 5
mov dword [esi + 0x34], vtable.RC::RCWidgetWindow.0
mov word [esi + 0x38], 0
mov byte [esi + 0x3a], 0
mov dword [esi + 0x3c], 0
mov byte [ebp - 4], 6
lea ecx, [esi + 0x40]
call fcn.004219b0
mov byte [ebp - 4], 7
lea ecx, [esi + 0x80]
mov dword [esi], vtable.RC::RCFeedbackFrameWnd.0
mov dword [esi + 0x34], vtable.RC::RCFeedbackFrameWnd.2.0
mov dword [esi + 0x40], vtable.RC::RCFeedbackFrameWnd.1.0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
call fcn.00416620
mov byte [ebp - 4], 8
mov dword [esi + 0xc4], 0
mov byte [ebp - 4], 9
mov dword [esi + 0xc8], 0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0xd4]
mov dword [esi + 0xcc], 0
xor eax, eax
push 0xa
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x52e55c
mov word [ecx], ax
call fcn.00406aa0
mov byte [ebp - 4], 0xb
xor eax, eax
lea ecx, [esi + 0xf0]
mov dword [esi + 0xec], 0x64
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x529620
mov word [ecx], ax
call fcn.00406aa0
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x108]
push dword [ebp + 8]
call fcn.00406840
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x120]
push dword [ebp + 0xc]
call fcn.00406840
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x138]
push dword [ebp + 0x10]
call fcn.00406840
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x150]
push dword [ebp + 0x14]
call fcn.00406840
mov byte [ebp - 4], 0x10
xor eax, eax
mov word [esi + 0x168], 0x100
mov dword [esi + 0x17c], 0
mov dword [esi + 0x180], 7
mov word [esi + 0x16c], ax
mov byte [ebp - 4], 0x11
mov dword [esi + 0x194], eax
mov dword [esi + 0x198], 7
mov word [esi + 0x184], ax
mov byte [ebp - 4], 0x12
mov dword [esi + 0x19c], 1
mov dword [esi + 0x1a0], eax
mov byte [ebp - 4], 0x13
cmp dword [esi + 0x118], eax
jne 0x4080e6
mov byte [esi + 0x169], al
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4084d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503f20
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x55306c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x40b
call fcn.0040caa0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x464
cmp esi, eax
je 0x40854a
mov dword [eax], 0x464
add eax, 4
mov dword [ebp - 0x18], eax
jmp 0x40855a
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040caa0
mov esi, dword [ebp - 0x14]
push 1
sub esp, 0xc
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.0040b290
mov byte [ebp - 4], 1
push dword [ebx + 4]
mov byte [ebp - 4], 0
call fcn.004be210
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4085d0
sub esi, ecx
mov eax, ecx
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x4085b1
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4086b5
push esi
push ecx
call fcn.004c2683
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push dword [ebx + 4]
call dword [sym.imp.IMM32.dll_ImmAssociateContext]
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xff37ffff
cmp eax, ecx
je 0x4085fe
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebx + 0xec]
mov edi, eax
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push ecx
push edi
call esi
movzx ecx, word [ebx + 0xec]
push ecx
push edi
mov dword [ebx + 0x78], eax
call esi
mov ecx, dword [ebx + 0x78]
mov dword [ebx + 0x7c], eax
test ecx, ecx
je 0x408657
test eax, eax
je 0x408657
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push 1
push 0x80
push dword [ebx + 4]
call esi
push dword [ebx + 0x7c]
push 0
push 0x80
push dword [ebx + 4]
call esi
cmp dword [ebx + 0xe8], 8
lea eax, [ebx + 0xd4]
jb 0x408668
mov eax, dword [eax]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp + 8]
mov ecx, ebx
push dword [eax + 4]
call fcn.004089e0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
mov ecx, ebx
call fcn.00408ed0
push 0
push 0
push 0x40b
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004e546f
int3
Function at 0x4145c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5050b4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x55306c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 4
lea eax, [esi + 0x30]
mov dword [esi], vtable.RC::RCRCOwnerDrawEdit.0
mov dword [ebp - 0x14], eax
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 6
lea eax, [esi + 0x58]
mov dword [ebp - 0x14], eax
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 8
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0xffffff
mov dword [esi + 0x2c], 0x333333
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416d80
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0xfffffffffffffff0
push dword [esp + 0x10]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [esi + 8]
mov edi, eax
test edi, 0x10000000
je 0x416dc2
push dword [esp + 0xc]
or cl, 4
mov byte [esi + 8], cl
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x416dbd
test edi, 0x21000000
jne 0x416dbd
or byte [esi + 8], 2
mov cl, byte [esi + 8]
jmp 0x416dc8
and cl, 0xfd
mov byte [esi + 8], cl
test cl, 2
je 0x416dd9
mov ecx, esi
call fcn.00417520
pop edi
pop esi
ret 4
push 0
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4

Function at 0x418790
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.0041bba0

Function at 0x418a80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x55306c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x418aa8
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call fcn.004da2d0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x418aec
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004c1e08
add esp, 0x418
ret
cmp eax, 0x208
jae 0x418ad4
xor eax, eax
lea edx, [esp + 4]
mov word [esp + 0x414], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x418b04
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00406aa0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.004c1e08
add esp, 0x418
ret
Function at 0x419c80
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x55306c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.004da2d0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x419dc7
cmp dword [esi + 4], 6
push edi
ja 0x419cdb
jne 0x419d63
cmp dword [esi + 8], 2
jb 0x419d63
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x419d63
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x419d63
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x419d63
movups xmm0, xmmword [0x52f570]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x52f580]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x419d63
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x419d63
cmp word [edi + 2], ax
jbe 0x419d63
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x419dae
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004da2d0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x419dae
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004c1e08
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004c1e08
add esp, 0x140
ret

Function at 0x41a520
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x41a558
mov edx, dword [esp + 4]
test edx, edx
je 0x41a558
cmp dword [eax], 0xffffffff
je 0x41a558
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a558
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x41a560
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x41a59a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41a59a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41a59a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a59a
cmp edi, dword [esi]
jne 0x41a59a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x41a5e0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x55306c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x41a643
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41a643
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a61e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a643
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c1e08
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004c1e08
add esp, 8
ret 4
Function at 0x41e980
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5058d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x55306c]
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, edx
mov esi, ecx
and edi, 0xffffb1af
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41e9bf
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x41e9d4
mov al, 1
jmp 0x41ea73
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041f160
test al, al
je 0x41ea1e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x41ea1e
mov bl, 1
jmp 0x41ea20
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41ea5d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ea53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ea8f
push edx
push ecx
call fcn.004c2683
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
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.004c1e08
mov esp, ebp
pop ebp
ret
call fcn.004e546f
int3

Function at 0x41eaa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5058d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x55306c]
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
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41ead6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41eb80
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041f160
test al, al
je 0x41eb2f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41eb6c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41eb62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41eb9d
push edx
push ecx
call fcn.004c2683
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
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.004c1e08
mov esp, ebp
pop ebp
ret
call fcn.004e546f
int3
Function at 0x41eec0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x55306c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.004da2d0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x41eefe
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x41ef06
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41ef66
xor eax, eax
lea edx, [esp + 0xc]
mov word [esp + 0x216], ax
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41ef30
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00406aa0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004c1e08
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c1e08
add esp, 0x210
ret

Function at 0x41ffe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov eax, dword [edi]
test eax, eax
je 0x4200bc
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4200bc
push dword [edi]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4200bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4200bc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4200bc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4200b5
push esi
push ebx
push eax
call fcn.004d97d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4200b5
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4200b5
call fcn.0041fef0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0xc]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x4200ae
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x4200ae
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x438010
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509b3a
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x55306c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00438140
add esp, 8
mov dword [ebp - 4], 1
lea edx, [ebp - 0x234]
push edx
call fcn.0041b980
add esp, 4
movzx eax, al
test eax, eax
jne 0x4380a5
push 0x529620
mov ecx, dword [ebp + 8]
call fcn.004067e0
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004067a0
mov eax, dword [ebp + 8]
jmp 0x438118
push 0x20a
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.004da2d0
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.00406730
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x529620
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004067e0
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004067a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c1e08
mov esp, ebp
pop ebp
ret