joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e6fa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0047e7ed
and dword [ebp - 4], 0
cmp dword [0x4c48c0], 0
mov ebx, eax
jne 0x48e7ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x48e85c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x48e85c
push eax
call fcn.0047e77b
mov dword [esp], 0x4b1068
push edi
mov dword [0x4c48c0], eax
call esi
push eax
call fcn.0047e77b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c48c4], eax
call esi
push eax
call fcn.0047e77b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c48c8], eax
call esi
push eax
call fcn.0047e77b
pop ecx
mov dword [0x4c48d0], eax
test eax, eax
je 0x48e7ab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047e77b
pop ecx
mov dword [0x4c48cc], eax
mov eax, dword [0x4c48cc]
cmp eax, ebx
je 0x48e803
cmp dword [0x4c48d0], ebx
je 0x48e803
push eax
call fcn.0047e7f6
push dword [0x4c48d0]
mov esi, eax
call fcn.0047e7f6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48e803
test edi, edi
je 0x48e803
call esi
test eax, eax
je 0x48e7fa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48e7fa
test byte [ebp - 0xc], 1
jne 0x48e803
or dword [ebp + 0x10], 0x200000
jmp 0x48e83c
mov eax, dword [0x4c48c4]
cmp eax, ebx
je 0x48e83c
push eax
call fcn.0047e7f6
pop ecx
test eax, eax
je 0x48e83c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x48e83c
mov eax, dword [0x4c48c8]
cmp eax, ebx
je 0x48e83c
push eax
call fcn.0047e7f6
pop ecx
test eax, eax
je 0x48e83c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c48c0]
call fcn.0047e7f6
pop ecx
test eax, eax
je 0x48e85c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48e85e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5f855fb8
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x26b03408
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x100082d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [section..bss]
mov esi, dword [0x10016014]
test ebx, ebx
je 0x10008402
mov dword [ebp - 0x14], esi
mov eax, ebx
call fcn.10007560
mov esi, eax
test eax, eax
je 0x100083ed
lea eax, [ebp - 0x10]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x100083d0
lea eax, [ebx + 0x24]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExA]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.cFormatTags
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x100083d0
lea eax, [ebx + 0x20]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.cFilterTags
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x100083d0
lea eax, [ebx + 0x28]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.fdwSupport
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
je 0x10008428
lea esi, [esi]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [0x10016004]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], ebx
call fcn.10008110
mov ebx, eax
test eax, eax
jne 0x100082f0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000841c
mov eax, esi
lea esi, [esi]
nop
mov dword [esp], eax
call fcn.10007b70
test eax, eax
jne 0x10008410
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x24]
shl eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.aFormatTagCache
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x100083d0
Function at 0x10008d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x1020
mov ebp, esp
push edi
push esi
push ebx
call fcn.1000f2a0
sub esp, eax
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 6
mov dword [esp + 4], str.MSACM.
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
je 0x10008d90
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1010]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x10008e00
test byte [0x10010048], 4
je 0x10008d82
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unable_to_open_registry_key___0x_08lx_n
mov dword [esp + 8], 0x10012ee0
mov dword [esp + 4], 0x10010048
mov dword [esp], 2
call fcn.10007510
jmp 0x10008d82
mov dword [ebp - 0x1014], 0x1000
lea eax, [ebp - 0x1014]
lea edi, [ebp - 0x100c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x1010]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
je 0x10008ea8
test byte [0x10010048], 4
jne 0x10008e70
mov eax, dword [ebp - 0x1010]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call fcn.10007280
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unable_to_query_requested_subkey__s___0x_08lx_n
mov dword [esp + 8], 0x10012ee0
mov dword [esp + 4], 0x10010048
mov dword [esp], 2
call fcn.10007510
jmp 0x10008e53
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.10008870
jmp 0x10008e53
Function at 0x401390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 4
call fcn.0040f9e0
mov dword [esp], 0x4fa964
push 0x82
call fcn.00407780
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4013f5
push esi
call fcn.00407780
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4013ee
push esi
call fcn.00407780
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4013ee
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0040f9f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
push ecx
mov eax, esp
mov dword [eax], str.skin_define.xml
call fcn.00401bd4
mov ecx, eax
call fcn.004111e0
pop edi
pop esi
ret

Function at 0x4015df
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x401664
lea ecx, [esp + 8]
call fcn.004a5c73
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.004a6300
sub esp, 0x18
mov ecx, esp
push str.SoftManager
call fcn.00401baf
push 0
push dword [ebp + 8]
call fcn.0040166d
mov ecx, eax
call fcn.004a6b49
lea ecx, [esp + 8]
call fcn.004a5e1c
cmp eax, 1
jg 0x40164b
push ecx
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040140f
pop ecx
pop ecx
jmp 0x401650
call fcn.00401500
call fcn.004017b3
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 8]
call fcn.004a5cc6
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4017b3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5090b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40182a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40182a
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7f49
leave
ret
Function at 0x4021ca
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x2a8
mov eax, 0x4daa2e
call fcn.004a889a
mov edi, ecx
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x2b4]
push edx
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov ecx, esi
push str.windowinit
mov dword [ebp - 4], ebx
call fcn.004153e0
test al, al
jne 0x4022b8
push str.click
mov ecx, esi
call fcn.004153e0
test al, al
je 0x4022b8
push str.sysclosebutton
lea ecx, [ebp - 0x2b4]
call fcn.004158d0
test eax, eax
je 0x402402
push str.btn_ok
lea ecx, [ebp - 0x2b4]
call fcn.004158d0
test eax, eax
je 0x402402
push str.btn_open_web
lea ecx, [ebp - 0x2b4]
call fcn.004158d0
test eax, eax
jne 0x4022d3
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0xf0]
push eax
lea ecx, [ebp - 0x94]
call fcn.00415090
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00415d40
test eax, eax
jle 0x4022aa
push 5
push ebx
push ebx
lea ecx, [ebp - 0x94]
call fcn.004154a0
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], bl
call fcn.00415270
push esi
mov ecx, edi
call fcn.00413d90
lea ecx, [ebp - 0x2b4]
call fcn.00415270
call fcn.004a8855
ret 4
push str.soft_version
lea ecx, [ebp - 0x2b4]
call fcn.004158d0
test eax, eax
jne 0x4023bf
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004bfbc0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004bf59d
pop ecx
pop ecx
xor ecx, ecx
mov word [eax + 2], cx
xor eax, eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], ebx
push eax
mov dword [ebp - 0x21c], 7
call fcn.00401b88
push str.update.exe
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00401963
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4023ac
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.0040198a
jmp 0x4022b8
push str.btn_office_url
lea ecx, [ebp - 0x2b4]
call fcn.004158d0
test eax, eax
jne 0x4023e3
push str.http:__xs_store.xsfaya.com_
call fcn.004a75e2
pop ecx
jmp 0x4022b8
push str.btn_office_priurl
lea ecx, [ebp - 0x2b4]
call fcn.004158d0
test eax, eax
jne 0x4022b8
push str.http:__xs_store.xsfaya.com_privacy
jmp 0x4023d8
push dword [edi - 0x1c]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4022c0
Function at 0x407e40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x407e61
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x407e79
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x407e91
mov edx, dword [ebp - 4]
or edx, 2
mov dword [ebp - 4], edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x407ea7
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x407ebf
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40f200
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xa8]
je 0x40f23e
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x108]
je 0x40f23e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x108]
jne 0x40f251
jmp 0x40f3c5
mov edx, dword [ebp - 4]
cmp dword [edx + 0x108], 0
je 0x40f2e3
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], 0x17
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x14c]
call edx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40f2d6
push 0
push 0
push 0
push str.killfocus
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x108]
push edx
mov ecx, dword [ebp - 4]
call fcn.0040ec60
mov eax, dword [ebp - 4]
mov dword [eax + 0x108], 0
cmp dword [ebp + 8], 0
jne 0x40f2ee
jmp 0x40f3c5
cmp dword [ebp + 8], 0
je 0x40f3c5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
call eax
cmp eax, dword [ebp - 4]
jne 0x40f3c5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x108]
call eax
movzx ecx, al
test ecx, ecx
je 0x40f3c5
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x114]
call edx
movzx eax, al
test eax, eax
je 0x40f3c5
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x108], edx
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], 0x18
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x14c]
call edx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40f3c5
push 0
push 0
push 0
push str.setfocus
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x108]
push edx
mov ecx, dword [ebp - 4]
call fcn.0040ec60
mov esp, ebp
pop ebp
ret 8
Function at 0x4111e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5090b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
test ecx, ecx
je 0x411261
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x3c
jne 0x41123a
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.00459110
movzx edx, al
test edx, edx
jne 0x411238
xor eax, eax
jmp 0x411339
jmp 0x41125c
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.00459190
movzx ecx, al
test ecx, ecx
jne 0x41125c
xor eax, eax
jmp 0x411339
jmp 0x411308
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407780
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x41128b
xor eax, eax
jmp 0x411339
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.00407780
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4112be
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x411339
push 0
mov eax, dword [ebp - 0x218]
push eax
call fcn.00407780
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.00459840
movzx edx, al
test edx, edx
jne 0x4112fb
xor eax, eax
jmp 0x411339
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.00458f90
sub esp, 0x20c
mov ecx, 0x83
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x214]
call fcn.00410d30
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7f49
mov esp, ebp
pop ebp
ret 8
Function at 0x416f20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5090b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x416f54
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416f54
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x416f63
jmp 0x4170cc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
movzx ecx, word [eax]
test ecx, ecx
je 0x416fbe
mov edx, dword [ebp - 0x418]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x416fa1
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x416fad
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
jmp 0x416f78
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0xc]
je 0x41704e
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.004bfe10
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x417017
jmp 0x41701c
call fcn.004a8b0d
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00416f20
add esp, 8
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x424], eax
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x428], edx
cmp dword [ebp - 0x428], 0x208
jae 0x41706a
jmp 0x41706f
call fcn.004a8b0d
xor eax, eax
mov ecx, dword [ebp - 0x428]
mov word [ebp + ecx - 0x20c], ax
cmp dword [ebp + 8], 0
je 0x417098
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004c4da8
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.004c4d77
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4170cc
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7f49
mov esp, ebp
pop ebp
ret
Function at 0x417e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x417e2a
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
je 0x417e34
mov eax, 0x1000000
jmp 0x417f1e
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0x244
push eax
call fcn.004c4cfa
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + eax*2 + 0x242]
mov word [ebp - 8], dx
movzx eax, word [ebp - 8]
cmp eax, 0x5c
je 0x417e92
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x417e92
push 0x4e1a1c
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
call fcn.004c4d77
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x417ed6
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x417eba
mov dword [ebp - 0x10], 1
jmp 0x417ec1
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x417ed6
mov eax, 0x2000000
jmp 0x417f1e
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041cfe0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x417efc
mov eax, dword [ebp - 0x1c]
jmp 0x417f1e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0041dcd0
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x417f1c
mov eax, 0x200
jmp 0x417f1e
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc