joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4221d0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42226d
push ebx
push esi
call fcn.00422199
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00420e1e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42221a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42226c
push edi
push eax
call fcn.0041baee
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42223a
call fcn.0041b886
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42226b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00420e1e
add esp, 0x20
test eax, eax
jne 0x422259
push edi
call fcn.0041b886
jmp 0x422261
push ebx
call fcn.0041b886
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x429440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42946d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42946d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42a26f
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x451630
mov esi, eax
push edi
call fcn.0042a1ae
push ebx
push edi
push esi
call fcn.0040aff0
add esp, 0x14
call fcn.0042a194
push ebp
push ebp
push 0x436030
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41515f
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x41c024]
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 ebx, ecx
mov dword [ebp - 0x84], ebx
mov dword [0x41df40], ebx
xor esi, esi
mov dword [ebp - 4], esi
lea edi, [ebx + 0x38]
lea eax, [edi + 4]
mov dword [ebx], str.fmol
mov dword [ebx + 4], str.fmol.exe
mov dword [ebx + 8], str.YySRV.exe
mov dword [ebx + 0xc], 0x418320
mov dword [ebx + 0x10], str.PlayerUpdate.exe
mov byte [ebx + 0x14], 0
mov dword [ebx + 0x30], 0xa
mov word [ebx + 0x34], si
mov byte [ebx + 0x36], 0
mov dword [edi], eax
mov byte [eax], 0
lea ecx, [ebx + 0x80]
lea eax, [ecx + 4]
mov dword [ebx + 0x7c], esi
mov dword [ebp - 0x6c], ecx
mov dword [ecx], eax
mov byte [eax], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
mov dword [ebx + 0xc4], 0x1010101
mov dword [ebx + 0xc8], esi
mov dword [ebx + 0xcc], esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x16]
movzx edx, word [ebp - 0x18]
movzx eax, word [ebp - 0x1a]
push ecx
movzx ecx, word [ebp - 0x1e]
push edx
movzx edx, word [ebp - 0x20]
push eax
push ecx
push edx
push str.__d_02d_02d_02d_02d
call fcn.00403350
add esp, 0x18
push ebx
call fcn.00401170
push 0xa0
call fcn.00408e0c
add esp, 4
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 3
cmp eax, esi
je 0x401102
push eax
call fcn.004036a0
jmp 0x401104
xor eax, eax
lea esi, [ebp - 0x68]
mov dword [ebx + 0x7c], eax
call fcn.00401600
mov esi, dword [ebp - 0x6c]
call fcn.00402f20
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
cmp eax, ecx
je 0x40112a
push eax
call fcn.004093a1
add esp, 4
xor eax, eax
push eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
push edx
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x7c], 1
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, ebx
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.00408b8e
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4150bb
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x41c024]
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
xor edi, edi
mov dword [ebp - 0x15c], edi
lea eax, [ebp - 0x154]
mov esi, ecx
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401568
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x160], eax
cmp eax, edi
jle 0x401568
push eax
call fcn.00408b83
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x164]
add esp, 4
mov ebx, eax
push ebx
push ecx
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40155f
lea ecx, [ebp - 0x160]
push ecx
lea edx, [ebp - 0x15c]
push edx
push 0x418384
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40155f
mov eax, dword [ebp - 0x15c]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
lea edi, [ebp - 0x158]
call fcn.00403350
push ebx
call fcn.00408db0
add esp, 0x18
mov eax, edi
push eax
call fcn.00402cf0
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x154]
cmp eax, ecx
jmp 0x4015cd
push ebx
call fcn.00408db0
add esp, 4
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
mov eax, dword [ebp - 0x158]
mov ebx, eax
cmp eax, edi
jne 0x401581
mov ebx, 0x41840e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401586
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x4015ac
lea edx, [edi + 1]
push edx
push 0
mov dword [esi], 0
call fcn.00409671
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
push ebx
push eax
call fcn.00409387
mov ecx, dword [esi]
mov byte [edi + ecx], 0
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
add esp, 0xc
cmp eax, edx
je 0x4015d8
push eax
call fcn.004093a1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408b8e
mov esp, ebp
pop ebp
ret
Function at 0x401600
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040d540
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x26
push 0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401670
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401681
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x4016a8
lea edx, [edi + 1]
push edx
push 0
mov dword [esi], 0
call fcn.00409671
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.00409387
mov edx, dword [esi]
add esp, 0xc
push 0x418384
mov eax, esi
mov byte [edi + edx], 0
call fcn.00402d80
push str.fmol
mov eax, esi
call fcn.00402d80
cmp byte [ebx + 0x14], 0
pop edi
je 0x4016eb
mov eax, dword [ebx + 0x38]
push eax
mov eax, esi
call fcn.00402d80
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00408b8e
mov esp, ebp
pop ebp
ret
Function at 0x4021f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.00410660
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x110c]
push ecx
push 0x1000
lea edx, [ebp - 0x1108]
push edx
mov dword [ebp - 0x1110], eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40223d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408b8e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x110c]
push ebx
push esi
push edi
shr eax, 2
xor edi, edi
test eax, eax
jle 0x4022c4
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + edi*4 - 0x1108]
push ecx
push 0
push 0x410
call ebx
lea edx, [ebp - 0x1114]
push edx
mov esi, eax
push 0x1000
lea eax, [ebp - 0x2114]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov edx, dword [ebp - 0x2114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov eax, dword [ebp - 0x1110]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00408c10
add esp, 8
test eax, eax
jne 0x4022d9
mov edx, dword [ebp - 0x110c]
inc edi
shr edx, 2
cmp edi, edx
jl 0x402255
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408b8e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + edi*4 - 0x1108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408b8e
mov esp, ebp
pop ebp
ret 4

Function at 0x402300
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402346
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402356
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408b8e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4023a4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408b8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00408b8e
mov esp, ebp
pop ebp
ret
Function at 0x402ac0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], edx
call fcn.00410bf6
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
push 0x4162fc
push 1
push 0
push 0x41630c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x402c29
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x41c]
push ecx
push 0x41631c
push eax
call edx
test eax, eax
js 0x402c1b
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test ebx, ebx
jne 0x402b5f
mov edx, dword [0x41d1f0]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x402b66
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test esi, esi
je 0x402b7b
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
jmp 0x402b88
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test edi, edi
je 0x402b9d
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x402bb6
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x402bf1
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.00408e8c
add esp, 0x10
jmp 0x402c7b
push 0x5c
test ebx, ebx
je 0x402bfa
push ebx
jmp 0x402c01
mov edx, dword [0x41d1f0]
push edx
call fcn.00409200
add esp, 8
test eax, eax
jne 0x402c3c
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408b8e
mov esp, ebp
pop ebp
ret 8
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.00408e8c
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c61
sub eax, edx
lea eax, [ebp + eax - 0x108]
mov word [eax - 3], 0x6e6c
mov byte [eax - 1], 0x6b
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x414]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setns al
xor ecx, ebp
pop esi
call fcn.00408b8e
mov esp, ebp
pop ebp
ret 8
Function at 0x4034c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push str.SetupApp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403511
push 0xd0
call fcn.00408e0c
add esp, 4
test eax, eax
je 0x4034fa
mov ecx, eax
call section..text
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 8]
mov ecx, dword [0x41df40]
push eax
call fcn.00401700
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040d540
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403624
mov ecx, dword [ebp - 0x10c]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.UninstallString
push ecx
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403617
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4035c6
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x4035ed
lea eax, [edi + 1]
push eax
push 0
mov dword [esi], 0
call fcn.00409671
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push edx
call fcn.00409387
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
pop edi
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408b8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 4]
push 0
push 0x41840e
push eax
mov dword [esi], eax
mov byte [eax], 0
call fcn.00409387
mov ecx, dword [ebp - 4]
mov edx, dword [esi]
xor ecx, ebp
add esp, 0xc
mov byte [edx], 0
mov eax, esi
call fcn.00408b8e
mov esp, ebp
pop ebp
ret
Function at 0x403740
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403753
sub eax, edi
jne 0x403769
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403782
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov eax, dword [esi]
sub esp, 0x44
mov esi, esp
lea ecx, [esi + 4]
mov dword [ebp - 4], esp
mov dword [esi], ecx
mov byte [ecx], 0
mov ebx, eax
test eax, eax
jne 0x40379f
mov ebx, 0x41840e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4037a4
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x4037ca
lea ecx, [edi + 1]
push ecx
push 0
mov dword [esi], 0
call fcn.00409671
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edi
push ebx
push edx
call fcn.00409387
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
add esp, 0xc
push ecx
mov byte [edi + eax], 0
call fcn.00403800
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403800
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415258
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x41c024]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x144], eax
push 0x41854c
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x403860
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x403950
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x40387b
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x403948
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x403896
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x403950
push edi
call fcn.00408b83
add esp, 4
mov dword [0x41df0c], eax
test eax, eax
je 0x4038c0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x41df0c]
push eax
push edx
call fcn.0040f330
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.0040d540
add esp, 0xc
push edi
call fcn.00408a90
mov edi, eax
add esp, 4
test edi, edi
je 0x403943
push 0xffffffffffffffff
lea edx, [ebp - 0x140]
call fcn.00408b00
add esp, 4
test eax, eax
jne 0x403943
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40391b
mov edx, dword [ebp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x44
lea eax, [ebp + 0xc]
mov esi, esp
mov dword [ebp - 0x148], esp
push eax
call fcn.00402cf0
mov ecx, dword [ebp - 0x140]
push ecx
mov ecx, dword [ebp - 0x144]
mov edx, edi
call fcn.00403980
call fcn.00408b40
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x40395b
push eax
call fcn.004093a1
add esp, 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.00408b8e
mov esp, ebp
pop ebp
ret 0x48
Function at 0x403980
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415220
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x41c024]
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, ecx
mov esi, edx
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x190], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x98]
cmp eax, ebx
je 0x4039de
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0x52c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 8], ebx
jle 0x403b67
jmp 0x4039f6
mov esi, dword [ebp - 0x190]
push 0x12c
lea edx, [ebp - 0x188]
push 0
push edx
call fcn.0040d540
add esp, 0xc
test esi, esi
jne 0x403a1c
mov dword [0x41df3c], 0x10000
jmp 0x403a41
cmp dword [esi], 1
je 0x403a2d
mov dword [0x41df3c], 0x80000
jmp 0x403a41
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x188]
call fcn.00408070
mov dword [0x41df3c], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
test edi, edi
jne 0x403a57
mov edi, 0x41840e
mov ecx, edi
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403a60
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x403a88
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0x58], 0
call fcn.00409671
add esp, 8
mov dword [ebp - 0x58], eax
push esi
push edi
push eax
call fcn.00409387
mov ecx, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + ecx], 0
push 0x418384
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00402d80
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x58]
call fcn.00402d80
test byte [ebp - 0x80], 0x10
je 0x403acc
mov eax, dword [ebp - 0x58]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x190]
test eax, eax
jne 0x403ae2
mov dword [0x41df3c], 0x10000
jmp 0x403b05
cmp dword [eax], 1
je 0x403af3
mov dword [0x41df3c], 0x80000
jmp 0x403b05
mov edx, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
push edx
push ebx
call fcn.00408760
mov dword [0x41df3c], eax
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x403b21
mov ecx, dword [ebp - 0x58]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x98]
test eax, eax
je 0x403b40
push 0
push ebx
push 0x52d
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x403b57
push eax
call fcn.004093a1
add esp, 4
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x4039f0
mov edi, dword [ebp - 0x18c]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x403b81
push 0
push 0
push 0x52e
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x403b94
push eax
call fcn.004093a1
add esp, 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.00408b8e
mov esp, ebp
pop ebp
ret 0x48