joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466c20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x466c77
push edi
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov edi, eax
test ecx, ecx
je 0x466c68
mov eax, dword [ebp - 4]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
xor eax, eax
test edx, edx
je 0x466c85
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x466c90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x14], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp eax, 1
jae 0x466cbd
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push ebx
push edi
neg ecx
or ecx, eax
push ecx
call fcn.0042935e
add esp, 4
mov edi, eax
push edi
push dword [ebp - 0xc]
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x466dbb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 8], 0x200
mov dword [ebp - 4], 0
call sub.VERSION.dll_VerQueryValueW
xor esi, esi
test dword [ebp - 8], 0xfffffffc
jbe 0x466dbb
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push ebx
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x414]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.0044fe97
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x466d95
mov eax, dword [ebp - 0x10]
push ebx
movzx eax, word [eax + esi*4]
push 0x4e4
push eax
lea eax, [ebp - 0x414]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.0044fe97
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jg 0x466dc4
push edi
call fcn.00429353
mov eax, dword [ebp - 8]
inc esi
shr eax, 2
add esp, 4
cmp esi, eax
jb 0x466d21
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call fcn.00429353
add esp, 4
mov eax, 1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4678b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x14], 0
push esi
push edi
mov esi, 0x200
je 0x467900
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4678f4
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 8], 0
mov eax, 0x100
cmovne esi, eax
lea eax, [ebp - 4]
push eax
or esi, 1
push esi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 4
push dword [ebp + 8]
mov dword [ebp + 0x14], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x467937
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46792f
mov eax, dword [ebp + 0x14]
cmp eax, 1
jbe 0x46792f
inc eax
push eax
push 0x40
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x46792f
lea eax, [ebp + 0x14]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4679a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x14], 0
push esi
push edi
mov esi, 0x200
je 0x4679f0
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4679e4
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 8], 0
mov eax, 0x100
cmovne esi, eax
lea eax, [ebp - 4]
push eax
or esi, 1
push esi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov dword [ebp + 0x14], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x467a27
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push 0
push 0
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x467a1f
mov eax, dword [ebp + 0x14]
cmp eax, 1
jbe 0x467a1f
inc eax
push eax
push 0x40
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x467a1f
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x467a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x467aae
test al, 0x10
mov eax, 1
cmovne esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x467ac0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x467ad6
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 8
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x467b20
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x14
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x467b17
cmp dword [ebp - 8], 4
cmove esi, dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x467b30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474c80
push eax
mov dword fs:[0], esp
sub esp, 0x208
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x467b6a
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x467b9a
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
push ebx
push esi
push edi
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x39
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00408f60
push 9
push str.EnableLUA
lea ecx, [ebp - 0x14]
call fcn.00408f60
mov esi, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, dword [ebp - 0x10]
cmp al, 6
jb 0x467c04
push 1
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004678b0
add esp, 0x10
cmp eax, 1
jne 0x467c04
mov ebx, eax
jmp 0x467c06
xor ebx, ebx
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x467c26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x467c44
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x468140
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 0xc]
jne 0x46819e
lea eax, [ebp - 0x22c]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x22c], xmm0
movlpd qword [ebp - 0x224], xmm0
movlpd qword [ebp - 0x21c], xmm0
call fcn.0043f14a
test eax, eax
je 0x46819e
mov al, byte [ebp - 0x20c]
test al, 1
je 0x46819e
and al, 0xfe
mov byte [ebp - 0x20c], al
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.0043f321
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x468670
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476838
push eax
mov dword fs:[0], esp
sub esp, 0x20c
lea eax, [ebp - 0x218]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x48d00c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4686ce
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4686fe
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
push ebx
push esi
push edi
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46872e
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 2
test esi, esi
jne 0x468758
push 3
push 0x48d028
lea ecx, [ebp - 0x14]
call fcn.00408f60
mov ebx, dword [ebp - 0x14]
cmp dword [ebp + 0xc], 0
jne 0x468770
push 3
push 0x48d030
lea ecx, [ebp - 0x18]
call fcn.00408f60
mov edi, dword [ebp - 0x18]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push ebx
push edi
push str._s_s__s_
push eax
call fcn.00405230
add esp, 0x14
call fcn.00467b30
test eax, eax
je 0x4687af
call fcn.00467ac0
test eax, eax
jne 0x4687af
mov esi, dword [ebp - 0x10]
push esi
lea eax, [ebp - 0x218]
push 1
push eax
call fcn.00469050
add esp, 0xc
jmp 0x4687c7
push esi
mov esi, dword [ebp - 0x10]
push 0
push esi
lea eax, [ebp - 0x218]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4687e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x468804
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x468822
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x468b10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x18], 0
push esi
mov esi, 0x200
je 0x468b61
push edi
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x468b54
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 4], 0
mov eax, 0x100
cmovne esi, eax
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x18]
push eax
push 0
or esi, 0xf003f
push esi
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp + 0x18], 0
push dword [ebp + 8]
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
je 0x468b9d
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x468bd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476888
push eax
mov dword fs:[0], esp
sub esp, 0x10
cmp dword [ebp + 0x18], 0
push ebx
push esi
push edi
mov esi, 0x200
je 0x468c36
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x468c2a
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x10], 0
mov eax, 0x100
cmovne esi, eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.004016a0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004016a0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x18]
push eax
push 0
or esi, 0xf003f
push esi
push 0
push 0
push 0
push dword [ebp - 0x18]
mov dword [ebp + 0x18], 0
push dword [ebp + 8]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x468cb9
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 1]
push eax
push esi
push 1
push 0
push edi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x18]
test eax, eax
je 0x468d0e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x468cda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x468cfb
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x468cbb
Function at 0x469050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x38
lea eax, [ebp - 0x48]
push 0
push eax
mov dword [ebp - 0x4c], 0x3c
call fcn.0044ecf0
add esp, 0xc
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4690b1
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
push esi
push edi
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push str.runas
push eax
mov dword [ebp - 4], 0
call fcn.00405230
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x40], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x469117
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x469113
cmp eax, 2
jne 0x469117
xor edi, edi
jmp 0x46911c
mov edi, 1
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46913d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x469890
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], 2
mov dword [ebp - 0x78], 4
mov dword [ebp - 0x74], 8
mov dword [ebp - 0x70], 0x10
mov dword [ebp - 0x6c], 0x20
mov dword [ebp - 0x68], 0x40
mov dword [ebp - 0x64], 0x80
mov dword [ebp - 0x60], 0x100
mov dword [ebp - 0x5c], 0x200
mov dword [ebp - 0x58], 0x400
mov dword [ebp - 0x54], 0x800
mov dword [ebp - 0x50], 0x1000
mov dword [ebp - 0x4c], 0x2000
mov dword [ebp - 0x48], 0x4000
mov dword [ebp - 0x44], 0x8000
mov dword [ebp - 0x40], 0x10000
mov dword [ebp - 0x3c], 0x20000
mov dword [ebp - 0x38], 0x40000
mov dword [ebp - 0x34], 0x80000
mov dword [ebp - 0x30], 0x100000
mov dword [ebp - 0x2c], 0x200000
mov dword [ebp - 0x28], 0x400000
mov dword [ebp - 0x24], 0x800000
mov dword [ebp - 0x20], 0x1000000
mov dword [ebp - 0x1c], 0x2000000
mov dword [ebp - 0x18], 0x4000000
mov dword [ebp - 0x14], 0x8000000
mov dword [ebp - 0x10], 0x10000000
mov dword [ebp - 0xc], 0x20000000
mov dword [ebp - 8], 0x40000000
mov dword [ebp - 4], SysReAllocString
mov eax, dword [ebp + eax*4 - 0x84]
or dword [ecx], eax
mov eax, dword [ecx]
mov esp, ebp
pop ebp
ret
Function at 0x46a660
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push dword [ebp + 0xc]
movzx ecx, word [ebp + 0x14]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x46a6e5
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x46a6e4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46ba50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476ab0
push eax
mov dword fs:[0], esp
sub esp, 0xc
push edi
mov edi, ecx
call fcn.00467670
mov dword [edi + 0x94], eax
mov dword [edi + 0x8c], eax
test eax, eax
je 0x46bbc1
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46baa3
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46bad3
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
push ebx
push esi
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
or ebx, 0xffffffff
cmp byte [edi + 0x98], 0
mov byte [ebp - 4], 1
jne 0x46bb3d
push 0
push str.Language
call fcn.00469a30
add esp, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.004016a0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46bb21
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bb3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0x8c]
lea eax, [ebp - 0x18]
push eax
call fcn.0046b790
mov esi, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004671c0
add esp, 0x14
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46bb81
push 0x2260
push eax
push 0x482964
push dword [ebp - 0x10]
call fcn.0046a660
add esp, 0x10
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bb9e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
pop esi
test ebx, ebx
pop ebx
jg 0x46bbc1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.0043aac0
mov ecx, edi
call fcn.0046b430
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x90], eax
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46bf30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476b42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.0046b260
lea ecx, [esi + 0xd4]
mov dword [ebp - 4], 0
mov dword [esi], vtable.CFreeWareDlg.0
call fcn.0046be30
mov byte [ebp - 4], 1
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46bf96
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x10c], eax
mov byte [ebp - 4], 2
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46bfc6
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 1
mov dword [esi + 0x108], 0xffffffff
mov dword [esi + 0x118], 0x3b8
mov ecx, dword [0x4a3884]
mov eax, 0x68db8bad
imul ecx
mov eax, dword [0x4a3884]
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
mov ebx, 0x2710
idiv ebx
mov eax, 0x51eb851f
mov byte [ebp - 4], 3
imul edx
mov eax, dword [0x4a3884]
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
cdq
idiv ebx
mov ebx, 0x64
mov eax, edx
cdq
idiv ebx
movzx eax, word [0x4a7fbe]
mov ebx, 1
cmp eax, edx
jg 0x46c080
movzx eax, word [0x4a7fba]
cmp eax, edi
jne 0x46c080
movzx eax, word [0x4a7fb8]
cmp eax, ecx
jne 0x46c080
mov eax, dword [0x4a7fc0]
mov ecx, dword [0x4a81e0]
add eax, 0xfffffff8
cmp ax, 0xa
cmovbe ecx, ebx
mov dword [0x4a81e0], ecx
push 0x4a95f8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46c0a7
push 0x2274
push eax
push 0x482964
push 0x4a95f8
call fcn.0046a660
add esp, 0x10
call fcn.0046e1b0
mov ecx, dword [0x4a81e0]
test eax, eax
cmovne ecx, ebx
pop edi
mov dword [0x4a81e0], ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8