joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403380
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x110c
call fcn.0044ef90
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x1108], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
lea ecx, [esp + 0x914]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.0044e060
add esp, 0xc
push 0x800
lea edx, [esp + 0x114]
push 0
push edx
call fcn.0044e060
add esp, 0xc
lea eax, [esp + 0x910]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0044e060
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor esi, esi
jmp 0x403410
lea edx, [esp + 0x10]
push 0x80
push edx
call fcn.00403290
add esp, 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x914]
push ecx
lea edx, [esp + 0x118]
push edx
call ebx
lea eax, [esp + 0x110]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x403443
mov ecx, dword [str..tmp]
mov edx, dword [0x4776bc]
mov dword [eax], ecx
mov cx, word [0x4776c0]
mov dword [eax + 4], edx
lea edx, [esp + 0x110]
push edx
mov word [eax + 8], cx
call edi
test eax, eax
je 0x403496
inc esi
cmp esi, 0xa
jl 0x403410
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.0044e04c
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4034a0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x110]
mov ebx, eax
mov eax, dword [esp + 0xc]
push ecx
call fcn.00402c50
mov ecx, dword [esp + 0x1114]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044e04c
mov esp, ebp
pop ebp
ret

Function at 0x4034e0
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 0x10], 0
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0xc], edi
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x10], edi
mov edi, dword [esp + 0x20]
lea eax, [esi + 8]
mov dword [esi], vtable.CSimpleThread.0
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 4], 0
mov dword [eax], 0xffffffff
mov dword [esi + 0x14], edi
je 0x40353c
test ecx, ecx
je 0x40353c
push eax
push 0
push edx
push ecx
push 0
push 0
call fcn.0045051e
add esp, 0x18
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
ret 0x18
Function at 0x403970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40399f
pop edi
pop esi
pop ebx
ret 0x14
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4039bd
pop ebp
pop edi
pop esi
pop ebx
ret 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx + 4], ebp
pop ebp
pop edi
mov dword [ebx], eax
pop esi
mov eax, 1
pop ebx
ret 0x14

Function at 0x4039e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46b9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x14], vtable.CResourceUnpack.0
mov edx, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [0x4891e8]
push edx
mov edx, dword [ecx + 0x28]
push eax
push 0x4891e8
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call edx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp eax, ebx
je 0x403aa7
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x34], 1
call fcn.0040d7f0
test eax, eax
jne 0x403abd
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403aa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 0x18
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x403ad0
lea eax, [esi - 0x10]
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403aff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 0x18
Function at 0x403b80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
push 0x1418
call fcn.0043afe0
mov esi, eax
add esp, 4
test esi, esi
je 0x403bee
mov eax, dword [ebp + 8]
push 0x1000
lea edi, [esi + 4]
push 0
push edi
mov dword [esi], eax
mov dword [esi + 0x1414], 1
call fcn.0044e060
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403bd6
push 0x800
push eax
push edi
call fcn.0044effb
add esp, 0xc
push 0x410
lea ecx, [esi + 0x1004]
push 0
push ecx
call fcn.0044e060
add esp, 0xc
jmp 0x403bf0
xor esi, esi
xor eax, eax
mov edx, 0x403c60
mov edi, vtable.CSimpleThread.0
mov dword [esp + 8], edi
mov dword [esp + 0x20], 0x403c60
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
test edx, edx
je 0x403c45
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x403c60
push 0
push 0
call fcn.0045051e
add esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
test eax, eax
je 0x403c54
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x403cd0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x410], eax
cmp word [esi], 0
mov eax, dword [esp + 0x418]
je 0x403d86
test eax, eax
je 0x403d2c
cmp word [eax], 0
je 0x403d2c
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x403d86
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0044e04c
add esp, 0x414
ret 4
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0044e060
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0xc]
push edx
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x403d86
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0044e04c
add esp, 0x414
ret 4
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.0044e04c
add esp, 0x414
ret 4
Function at 0x403eb0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x46b961
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x830]
mov dword fs:[0], eax
mov edi, dword [esp + 0x840]
mov eax, dword [esp + 0x844]
mov ecx, dword [esp + 0x848]
mov edx, dword [esp + 0x84c]
mov dword [esp + 0x20], vtable.CResourceUnpack.0
lea esi, [esp + 0x18]
push esi
push edx
push ecx
xor ebx, ebx
mov dword [esp + 0x844], ebx
push eax
mov eax, dword [0x4891e8]
mov ecx, dword [eax + 0x28]
push 0x4891e8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
cmp eax, ebx
je 0x403fa5
mov edx, dword [0x487cf8]
mov eax, dword [edx + 0xc]
mov ecx, 0x487cf8
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x844], 1
call fcn.0040d7f0
test eax, eax
jne 0x403fac
mov byte [esp + 0x838], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40408d
push 0x800
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.0044e060
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0x4776f4
push esi
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x83c], 2
call fcn.00403380
mov ebp, dword [esp + 0x1c]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call fcn.0040dd30
add edi, 0x2a4
lea eax, [esp + 0x18]
call fcn.00402bf0
mov eax, dword [edi]
push eax
call fcn.0043b1e0
mov edi, dword [edi]
add esp, 4
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x10]
mov byte [esp + 0x838], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404065
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x838], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404088
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x830]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.0044e04c
add esp, 0x828
ret 0x10
Function at 0x4046d0
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x404701
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404706
push esi
call fcn.00404600
add esp, 4
test eax, eax
jne 0x404706
call fcn.0044dbe0
push eax
push esi
call fcn.0044ddf0
add esp, 8
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x404710
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x404741
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404748
push esi
call fcn.00404600
add esp, 4
test eax, eax
jne 0x404748
call fcn.0044dbe0
push eax
push esi
call fcn.0044ddf0
add esp, 8
xor eax, eax
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ecx
ret 4

Function at 0x404b60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
cmp dword [eax + 8], 5
jne 0x404c13
cmp dword [eax + 0xc], 1
jb 0x404c13
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0044e060
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404c13
lea edx, [esp + 8]
push str.Service_Pack_2
push edx
call fcn.0044ee88
add esp, 8
test eax, eax
jl 0x404c13
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0044e04c
add esp, 0x214
ret 4
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.0044e04c
add esp, 0x214
ret 4

Function at 0x404c30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push esi
lea ecx, [esp + 0xc]
push ecx
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x404c7a
mov edx, dword [esp]
push edx
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404cb6
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c80
sub eax, edx
sar eax, 1
mov dword [esp], eax
cmp word [esi + eax*2 - 2], 0x5c
je 0x404cad
mov ecx, 0x5c
mov word [esi + eax*2], cx
mov eax, dword [esp]
xor edx, edx
mov word [esi + eax*2 + 2], dx
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x404cc0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.0044ef90
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x200c], eax
push 0x1fff
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.0044e060
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x404d59
cmp eax, 0x1fff
ja 0x404d59
lea edx, [esp + 0xc]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404d59
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0x477918
lea edx, [esp + 0x18]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404d59
mov eax, dword [esp]
movzx ecx, word [eax + 0xa]
mov dword [edi], ecx
mov eax, 1
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0044e04c
add esp, 0x2010
ret
mov ecx, dword [esp + 0x200c]
xor ecx, esp
xor eax, eax
call fcn.0044e04c
add esp, 0x2010
ret

Function at 0x404ed0
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x487540]
test eax, eax
jl 0x404f0d
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044e04c
add esp, 0x144
ret 4
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [esp + 0x30]
push edx
mov dword [0x487540], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.0044e060
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x404f7d
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x404fd1
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404fd1
lea edx, [esp + 4]
push edx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x404faf
cmp ax, 6
jne 0x404fd1
mov eax, 1
mov dword [0x487540], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044e04c
add esp, 0x144
ret 4
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044e04c
add esp, 0x144
ret 4
Function at 0x407450
Capabilities:
Access peb ldr_data
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46b6bb
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.0044ef90
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 0x13c]
push 0x477630
xor ebx, ebx
mov eax, ebp
call fcn.00402c50
lea eax, [esi + 0x138]
push 0x477630
mov dword [esp + 0x24], eax
call fcn.00402c50
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x800
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x103c], ebx
call fcn.0044e060
mov eax, dword [esi + 0x134]
mov ecx, dword [esi + 0x130]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esi + 0xfc]
push ecx
mov ebx, 1
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x407556
lea eax, [edi - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40754f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407641
cmp dword [esp + 0x18], ebx
jne 0x407528
cmp word [esp + 0x24], 0
je 0x407528
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x24]
push ecx
call ebx
test eax, eax
jne 0x407592
lea eax, [edi - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x407543
lea edx, [esp + 0x24]
lea edi, [esp + 0x14]
call fcn.00402b90
mov ecx, dword [esi + 0x11c]
mov edi, dword [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
jne 0x4075ec
mov ecx, dword [esi + 0x118]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
jne 0x4075ec
lea ecx, [esp + 0x14]
call fcn.00402b70
xor eax, eax
jmp 0x407641
push 0x800
lea ecx, [esp + 0x828]
push 0
push ecx
call fcn.0044e060
add esp, 0xc
mov ecx, 0x400
lea edi, [esp + 0x824]
lea esi, [esp + 0x24]
call fcn.0040dc30
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x14]
call fcn.00402bf0
lea edx, [esp + 0x824]
mov edi, ebp
call fcn.00402b90
lea ecx, [esp + 0x14]
call fcn.00402b70
mov eax, 1
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.0044e04c
add esp, 0x1020
ret
Function at 0x408020
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46b90b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100c
call fcn.0044ef90
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x1018]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0044e060
mov esi, dword [esi + 0x138]
add esp, 0xc
push str.i18ni18n.ini
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x800
lea edx, [esp + 0x810]
push 0
push edx
call fcn.0044e060
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0x814]
push ecx
push 0x477bf4
push str.Language
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x810]
call fcn.00408150
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1024], 0
call fcn.00405370
mov esi, eax
mov dword [esp + 0x1024], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408125
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1018]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0044e04c
mov esp, ebp
pop ebp
ret 4

Function at 0x408ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408ae7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408b18
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x408b14
cmp esi, eax
jae 0x408b18
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x408b04
cmp esi, eax
jb 0x408b1e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40a0d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46b5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x44]
mov eax, dword [0x489470]
mov ecx, dword [eax + 8]
push 0x489470
lea esi, [ebp + 4]
call ecx
mov edi, eax
test edi, edi
jne 0x40a11f
mov eax, 0x80004005
jmp 0x40a23a
mov eax, dword [esi]
test eax, eax
je 0x40a12d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi], 0
mov ecx, dword [edi]
mov edx, dword [ecx + 0x78]
push esi
push edi
call edx
mov dword [esp + 0x44], eax
test eax, eax
jge 0x40a149
jmp 0x40a23a
lea edi, [ebp + 8]
call fcn.00409fe0
xor edi, edi
mov dword [ebp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
jne 0x40a166
push 0x80004003
call fcn.0043d930
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esi]
cmp eax, edi
jne 0x40a180
push 0x80004003
call fcn.0043d930
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [ebx]
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x40a197
mov eax, dword [eax]
jmp 0x40a199
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a206
mov ecx, ebx
lea edi, [esp + 0x1c]
call fcn.00404850
mov dword [esp + 0x3c], 2
mov edx, dword [esi]
test edx, edx
jne 0x40a1c7
push 0x80004003
call fcn.0043d930
mov ebx, dword [eax]
mov edi, dword [edx]
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [edi + 0x30]
push edx
call ecx
lea edx, [esp + 0x1c]
push edx
mov edi, eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40a20a
mov edi, dword [esp + 0x44]
cmp word [esp + 0x18], 0
jne 0x40a220
mov dword [esp + 0x44], 0x80004005
mov edi, dword [esp + 0x44]
jmp 0x40a224
test edi, edi
jge 0x40a238
mov eax, dword [esi]
test eax, eax
je 0x40a238
mov dword [esi], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4