joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408480
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, eax
push str.extract_resource_file
mov edi, ecx
push str.INFO
mov ecx, ebx
call fcn.0040c980
cmp dword [edi + 0x14], 8
jb 0x4084a8
mov eax, dword [edi]
jmp 0x4084aa
mov eax, edi
push eax
push str.INFO
mov ecx, ebx
call fcn.0040c980
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
push eax
push ecx
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x408569
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp dword [edi + 0x14], 8
mov dword [ebp - 8], eax
mov dword [ebp + 8], 0
jb 0x4084fd
mov edi, dword [edi]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408548
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp + 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov bl, 1
test eax, eax
jne 0x408538
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push str.Cant_create_file
push str.ERROR
mov ecx, ebx
call fcn.0040c980
push ebx
call fcn.0040c8f0
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Resource_file_not_found
push str.ERROR
mov ecx, ebx
call fcn.0040c980
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408590
Capabilities:
Get common file path
Get disk information
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f600
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 0x18], 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, ecx
lea edx, [ebp - 0x224]
push edx
xor ecx, ecx
push 0x104
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x438], eax
mov word [ebx], cx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [ebp - 0x224]
push eax
push str._shd.vbs
mov ecx, eax
push 0x104
push ecx
call edi
add esp, 0x10
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov byte [ebp - 0x42d], 0
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x408720
push 0
lea eax, [ebp - 0x440]
push eax
push 0xf5
push str.Set_objWMIService__GetObject__winmgmts:._rootcimv2____n_Set_colItems__objWMIService.ExecQuery____n___Select__from_Win32_DiskDrive___n_For_Each_objItem_in_colItems__n_Wscript.Echo_objItem.SerialNumber__n_exit_for___do_the_first_cpu_only___n_Next
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
mov dword [ebp - 0x43c], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x43c], 0
je 0x408720
lea ecx, [ebp - 0x224]
push ecx
push str.cscript___NoLogo__s
lea edx, [ebp - 0x42c]
push 0x104
push edx
call edi
push 0x100
call fcn.0043723a
mov esi, eax
mov eax, dword [ebp - 0x438]
add esp, 0x14
push eax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00407c80
add esp, 8
test eax, eax
jne 0x408717
push 0x200
push eax
push ebx
call fcn.0043c0c0
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4086c8
push 0x200
push ebx
sub eax, edx
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
call fcn.00407670
test eax, eax
jle 0x408717
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4086f1
sub eax, edx
sar eax, 1
cmp eax, 5
jbe 0x408717
mov ecx, ebx
call fcn.00407700
test al, al
jne 0x408717
mov byte [ebp - 0x42d], 1
push esi
call fcn.00437245
add esp, 4
cmp byte [ebp - 0x42d], 0
jne 0x408774
jmp 0x408737
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x434]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov ecx, dword [ebp - 0x434]
mov eax, 0x5f
push 0xa
mov word [ebx], ax
push 0xff
add ebx, 2
push ebx
push ecx
call fcn.00437c1c
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret
Function at 0x408980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x208
call fcn.0043723a
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push str.Software_s
push 0x104
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4089ef
mov edx, dword [ebp - 4]
push 4
push 0x458b0c
push 1
push eax
push str.license
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00437245
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408a00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str._sTest
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
je 0x408a76
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0043722b
mov esp, ebp
pop ebp
ret
Function at 0x40c880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
jne 0x40c8ad
push esi
lea esi, [ebx + 4]
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push edi
push esi
push 0x459618
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
pop esi
jmp 0x40c8c3
lea edx, [ebx + 4]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c8b4
push 0x459624
lea eax, [ebx + 0x20c]
push 0x458e0c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, ebx
pop ebp
ret 4
Function at 0x40c980
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4002c
call fcn.00446fd0
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40020], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
push edi
mov dword [ebp - 0x4001c], esi
mov dword [ebp - 0x40024], eax
test eax, eax
je 0x40cb8b
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 0
push 0
push 4
push 0
push 0
push 0x40000000
add esi, 4
push esi
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40cb8b
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
je 0x40ca1e
and eax, 0xfffffc00
cmp eax, 0x32000
jbe 0x40ca1e
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 0
push 4
push 0
push 0
push 0x40000000
push esi
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40cb8b
lea ecx, [ebp - 0x40018]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
mov eax, dword [ebp - 0x40020]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ca40
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [ebp - 0x40024]
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ca60
sub eax, esi
sar eax, 1
lea edi, [eax + edx + 0x400]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043723a
mov ecx, dword [ebp - 0x40024]
mov edx, dword [ebp - 0x4001c]
push ecx
mov esi, eax
xor eax, eax
mov word [esi], ax
movzx ecx, word [ebp - 0x4000a]
mov eax, dword [ebp - 0x40020]
add edx, 0x20c
push edx
movzx edx, word [ebp - 0x4000c]
push eax
movzx eax, word [ebp - 0x4000e]
push ecx
movzx ecx, word [ebp - 0x40010]
push edx
movzx edx, word [ebp - 0x40012]
push eax
movzx eax, word [ebp - 0x40016]
push ecx
movzx ecx, word [ebp - 0x40018]
push edx
push eax
push ecx
push str.__d__d__d__d:_d:_d:_d___s_:___s__:__s_r_n
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x38
lea edx, [ebp - 0x4001c]
push edx
push 0
push 0x40000
lea eax, [ebp - 0x40008]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
cmp eax, 0x40000
jae 0x40cb2b
mov byte [ebp + eax - 0x40008], 0
jmp 0x40cb38
cmp byte [ebp - 9], 0
je 0x40cb38
mov byte [ebp - 0x40008], 0
lea eax, [ebp - 0x40008]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cb41
push 2
push 0
push 0
sub eax, edx
push ebx
mov edi, eax
mov dword [ebp - 0x40028], 0
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea ecx, [ebp - 0x40028]
push ecx
push edi
lea edx, [ebp - 0x40008]
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call fcn.00437245
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043722b
mov esp, ebp
pop ebp
ret 8
Function at 0x40ceb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x208], 1
test al, 1
je 0x40cee3
mov edi, 3
test al, 4
je 0x40cef4
mov dword [ebp - 0x208], 0x21
or edi, 4
mov ecx, dword [ebx + 4]
push 0x100
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
je 0x40cf63
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf20
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [esi + 0x1c]
push edx
mov edx, dword [ebx + 0x28]
push 0
push 0x25
sar eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push 1
push ecx
push edx
call dword [sym.imp.UxTheme.dll_DrawThemeText]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret 4
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf63
sub eax, edx
lea ecx, [ebp - 0x210]
push ecx
sar eax, 1
push eax
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf94
sub eax, edx
mov edx, dword [ebp - 0x208]
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push edx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x20c]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x210]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043722b
mov esp, ebp
pop ebp
ret 4
Function at 0x40d010
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x408], 1
test al, 1
je 0x40d043
mov ebx, 3
test al, 4
je 0x40d054
mov dword [ebp - 0x408], 0x21
or ebx, 4
mov ecx, dword [edi + 4]
push 0x100
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x2c], 0
jne 0x40d0c6
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
je 0x40d0c6
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d083
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [esi + 0x1c]
push edx
mov edx, dword [edi + 0x28]
push 0
push 0x25
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
push 1
push ecx
push edx
call dword [sym.imp.UxTheme.dll_DrawThemeText]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
test byte [esi + 0x10], 4
mov dword [ebp - 0x40c], eax
je 0x40d0e3
mov eax, 0x828282
jmp 0x40d0f3
movzx eax, byte [edi + 0x2c]
neg eax
sbb eax, eax
and eax, 0xfefff8
add eax, 8
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 0x18]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [edi + 4]
push 0x100
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d130
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [ebp - 0x414]
push edx
sar eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d161
sub eax, edx
mov edx, dword [ebp - 0x408]
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push edx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x410]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x414]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 0x40c]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043722b
mov esp, ebp
pop ebp
ret 4
Function at 0x40e270
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov byte [esi + 0x4c], 1
call edx
cmp byte [eax + 0xd], 0
je 0x40e2a3
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov ecx, dword [esi + 4]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x40e2c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x48], 0
je 0x40e2cd
mov al, 1
pop esi
ret
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi - 4]
mov eax, dword [edx + 0x30]
lea ecx, [esi - 4]
call eax
xor al, al
pop esi
ret

Function at 0x40e2f0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov byte [esi + 0x4c], 1
call edx
cmp byte [eax + 0xc], 0
je 0x40e352
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
cmp byte [eax + 0xd], 0
jne 0x40e352
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
mov esi, eax
mov eax, dword [esi + 0x10]
mov byte [esi + 0xe], 1
test eax, eax
je 0x40e36f
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], 0
test ecx, ecx
je 0x40e36f
mov edx, dword [ecx]
mov eax, dword [edx + 8]
pop esi
jmp eax
mov esi, dword [esi + 8]
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov edx, dword [esi + 4]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x40e400
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push edi
call edx
cmp byte [eax + 0xd], 0
mov edi, 2
je 0x40e4e1
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
cmp byte [eax + 0xe], 0
jne 0x40e4e1
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
cmp dword [eax + 0x993c], edi
je 0x40e4e1
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
mov edx, dword [esi]
test al, al
mov eax, dword [edx + 0x34]
mov ecx, esi
je 0x40e4d5
call eax
mov dword [eax + 0x17f0], 0
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x40]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
cmp byte [eax + 8], 0
je 0x40e4c4
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
push eax
call fcn.00410480
jmp 0x40e4e1
call eax
mov dword [eax + 0x17f0], 3
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
cmp dword [eax + 0x993c], edi
jne 0x40e505
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
mov dword [eax + 0x17f0], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
mov cl, byte [eax + 0xe]
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov byte [ebp - 4], cl
mov ecx, esi
call eax
push 0x80000
mov esi, eax
call fcn.0043723a
mov edx, dword [ebp - 4]
add esp, 4
mov edi, eax
push edx
xor ecx, ecx
push edi
mov word [edi], cx
call fcn.00410a20
push edi
mov ebx, esi
call fcn.00411360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ead0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fc9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x469090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x24
call fcn.004372a1
add esp, 4
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x40eb2e
mov ecx, dword [edi - 0x808]
mov ecx, dword [ecx + 8]
mov esi, dword [ecx + 0x20]
mov ecx, dword [ecx + 4]
mov edx, dword [esi + 4]
push esi
push ecx
mov ecx, dword [edi + 0x1c]
mov ebx, eax
call fcn.00418220
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [esi + 0x1c]
mov eax, dword [edx]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov ecx, dword [esi + 8]
push 5
push ecx
call ebx
mov edx, dword [edi + 0x20]
add edx, 0x17f8
push edx
call fcn.00408980
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450698
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x14], 8
jb 0x40ef33
mov eax, dword [edi]
jmp 0x40ef35
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ef45
test al, 0x10
je 0x40efad
xor eax, eax
mov word [ebp - 0x2c], ax
push 4
mov eax, str.fne_
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00402510
push 0
push edi
or eax, 0xffffffff
mov dword [ebp - 4], 0
call fcn.00402420
mov ecx, esi
push 0
push ecx
lea esi, [ebx + 0xb56c]
or eax, 0xffffffff
call fcn.00402420
mov ecx, eax
push 1
mov eax, 0x45b178
call fcn.00402190
cmp dword [ebp - 0x18], 8
jb 0x40efad
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00437245
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret
Function at 0x40efd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450698
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x14], 8
jb 0x40f003
mov eax, dword [edi]
jmp 0x40f005
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f015
test al, 0x10
jne 0x40f07d
xor eax, eax
mov word [ebp - 0x2c], ax
push 4
mov eax, str.dne_
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00402510
push 0
push edi
or eax, 0xffffffff
mov dword [ebp - 4], 0
call fcn.00402420
mov ecx, esi
push 0
push ecx
lea esi, [ebx + 0xb56c]
or eax, 0xffffffff
call fcn.00402420
mov ecx, eax
push 1
mov eax, 0x45b178
call fcn.00402190
cmp dword [ebp - 0x18], 8
jb 0x40f07d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00437245
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret

Function at 0x40f390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebx], 0
mov eax, dword [ebp + 0xc]
push edi
je 0x40f471
push eax
push str._sinit.xml
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push str.write_init_xml_to
push str.INFO
mov ecx, esi
call fcn.0040c980
lea ecx, [ebp - 0x210]
push ecx
push str.INFO
mov ecx, esi
call fcn.0040c980
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f43d
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 0x414]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.createInitXml__d
lea edx, [ebp - 0x410]
push 0x100
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
push str.ERROR
mov ecx, esi
call fcn.0040c980
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043722b
mov esp, ebp
pop ebp
ret