joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417950
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x417a5e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ebx, [esi + 2]
push ebx
call fcn.0042bb49
mov edi, eax
add esp, 4
test edi, edi
jne 0x4179b6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0xe]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0
push edi
call fcn.00435c00
mov ebx, dword [ebp - 8]
add esp, 0xc
push 0
lea edx, [ebp - 0xc]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417a44
cmp byte [edi], 0xff
jne 0x417a09
cmp byte [edi + 1], 0xfe
jne 0x417a09
mov ecx, dword [ebp + 8]
lea eax, [edi + 2]
push ecx
call fcn.004034d0
push edi
call fcn.0042db19
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417a10
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00404910
push edi
call fcn.0042db19
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [ebp - 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x417b22
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x417b16
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edi, [ebx + 2]
push edi
mov dword [ebp - 4], eax
call fcn.0042bb49
mov esi, eax
add esp, 4
test esi, esi
je 0x417b0a
push edi
push 0
push esi
call fcn.00435c00
mov eax, dword [ebp - 4]
push ebx
push eax
push esi
call fcn.0042e230
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417ae5
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
push esi
call fcn.00412040
push esi
call fcn.0042c691
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0xb
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x417bea
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x417bde
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [ebx + 2]
push esi
mov dword [ebp - 4], eax
call fcn.0042bb49
mov edi, eax
add esp, 4
test edi, edi
je 0x417bd2
push esi
push 0
push edi
call fcn.00435c00
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call fcn.0042e230
mov eax, edi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417ba6
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00404910
push edi
call fcn.0042c691
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xe
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417c00
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x417df6
cmp word [edi], si
je 0x417df6
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0042d2d5
add esp, 0xc
push 0x44b8d0
lea ecx, [esp + 0x46c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417c90
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
mov ecx, 0x44b704
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417cc6
test dx, dx
je 0x417cc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417cc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x417ca0
xor eax, eax
jmp 0x417ccb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417da5
mov ecx, 0x44b8d4
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417d06
test dx, dx
je 0x417d02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417d06
add eax, 4
add ecx, 4
test dx, dx
jne 0x417ce0
xor eax, eax
jmp 0x417d0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417da5
push edi
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.0042d2d5
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [esp + 0x10], 0x10
je 0x417d77
lea ecx, [esp + 0x260]
push ecx
call fcn.00417c00
mov esi, eax
add esp, 4
test esi, esi
je 0x417da5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417dc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x417dca
cmp esi, 0x12
jne 0x417c90
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp esi, 0x12
jne 0x417ddf
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 3
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x417e10
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x417e61
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x417e77
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0042c682
mov esp, ebp
pop ebp
ret

Function at 0x417ea0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4553d4]
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 0x417f1d
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x417f1d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x4182b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00435c00
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push esi
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41832f
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0xc]
push edx
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41838d
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
push esi
push 0x104
push edi
call fcn.0042d2d5
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.0042c682
mov esp, ebp
pop ebp
ret

Function at 0x4183b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push esi
mov bl, 1
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x41840d
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042d2d5
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
setne bl
test bl, bl
je 0x41845b
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
je 0x41845b
movzx eax, word [esi]
test ax, ax
je 0x41845b
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
lea esp, [esp]
test bl, bl
je 0x418448
push eax
call edi
test al, 0xb
movzx eax, word [esi + 2]
setne bl
add esi, 2
test ax, ax
jne 0x418430
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x418470
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], edi
mov byte [ebp - 0x20d], 0
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x224], edi
call fcn.0042d2d5
push str..bak
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0042d53c
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x18
push edi
push edi
push 4
push edi
push edi
push SysReAllocString
push esi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x41861c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x300000
jbe 0x4185cf
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x20c]
push edx
call ebx
mov ebx, eax
mov dword [ebp - 0x21c], ebx
cmp ebx, 0xffffffff
je 0x4185d9
push 0
push 0
add edi, 0xffd00000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x8000
call fcn.0042bb49
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418589
mov edx, dword [ebp - 0x218]
push 0
lea ecx, [ebp - 0x224]
push ecx
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4185a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x214], ebx
test ebx, ebx
jne 0x4185b0
mov ebx, dword [ebp - 0x21c]
cmp dword [ebp - 0x218], 0
ja 0x418553
mov ebx, dword [ebp - 0x214]
push edi
call fcn.0042db19
mov eax, dword [ebp - 0x21c]
add esp, 4
push eax
mov byte [ebp - 0x20d], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4185df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4185df
mov ebx, dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x20d], 0
je 0x418609
test ebx, ebx
jne 0x418609
mov ecx, dword [ebp - 0x220]
push 1
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x418990
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441429
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x2c], esi
mov word [esi], cx
push 9
mov dword [ebp - 4], eax
movzx eax, word [edi + 2]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [ebp - 0x24]
push edx
push 0x59
push eax
mov dword [ebp - 0x28], 1
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x418a00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418a00
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
call fcn.00404910
push 1
mov eax, 0x44ba14
mov ecx, esi
call fcn.0040f490
movzx edx, word [edi + 2]
push 9
lea ecx, [ebp - 0x24]
push ecx
push 0x5a
push edx
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x418a40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418a40
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
call fcn.0040f490
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret

Function at 0x418c60
Capabilities:
Delete file
Get common file path
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 0x424], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov byte [esp + 0x10], 1
test di, di
jne 0x418cd3
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov ecx, 0x105
cmp ax, cx
je 0x418caf
mov edx, 0x205
cmp ax, dx
je 0x418caf
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x418cb5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
movzx eax, di
push eax
push str.Current_UI_language:__04X
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 0xc
mov eax, edi
and eax, 0x3ff
cmp ax, 3
je 0x418cec
cmp ax, 0x2d
je 0x418cec
cmp ax, 0x56
jne 0x418cf1
mov edi, 0xc0a
lea ecx, [esp + 0x220]
push ecx
push 0x104
mov word [esp + 0x10], di
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esi + 4]
push edi
push 0
push 0x44b870
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
push str.Language_folder:__s
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0xa
lea edx, [esp + 0x10]
mov ecx, 0x418770
call fcn.0041de00
add esp, 8
test eax, eax
jne 0x418d8c
movzx eax, word [esp + 0x12]
push eax
push str.Loading_language__04X
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov eax, dword [esp + 0x1e]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call fcn.00418da0
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x418da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
lea ecx, [esi + 0x61c]
push 0x104
push ecx
mov word [esi + 2], ax
call fcn.0042d2d5
add esp, 0xc
push edi
lea ebx, [esi + 0x20c]
push 0x104
push ebx
call fcn.0042d2d5
add esp, 0xc
push str.IntelCommon.dll
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp + 8]
push edx
lea edi, [esi + 0x414]
push 0x104
push edi
call fcn.0042d2d5
add esp, 0xc
push str.resource.dll.mui
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418e19
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp byte [esi], 0
je 0x418e36
push ebx
push str.Loading_common_language_resource___s_
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 0xc
push 2
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov dword [esi + 0x824], eax
test eax, eax
jne 0x418e5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
pop ecx
pop ebp
ret 4
cmp byte [esi], 0
je 0x418e77
push edi
push str.Loading_language_resource___s_
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 0xc
push 2
push 0
push edi
call ebx
mov dword [esi + 0x828], eax
test eax, eax
je 0x418e4d
pop edi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41a0e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042bb49
add esp, 4
push ebx
mov edi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x10
or eax, 0x400
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0xffffffffffffffff
push edi
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call fcn.0042db19
add esp, 4
push 0x80
lea edx, [ebp - 0x108]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, str.Button
lea eax, [ebp - 0x108]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a1d6
test dx, dx
je 0x41a1d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a1d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41a1b0
xor eax, eax
jmp 0x41a1db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41a204
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0xb
jle 0x41a204
push 0x47
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x110]
add ecx, eax
mov dword [ebp - 0x110], ecx
jmp 0x41a20a
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 0x114]
sub ecx, dword [ebp - 0x118]
push 6
inc eax
push eax
inc ecx
push ecx
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c682
mov esp, ebp
pop ebp
ret 8
Function at 0x41a7e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00435c00
add esp, 0xc
lea ecx, [ebp - 0x14c]
push ecx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x14c]
cmp ax, 9
jne 0x41a843
test ebx, ebx
js 0x41a850
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x41a832
test ebx, 0x40000000
je 0x41a832
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 2
mov edx, ebx
shr edx, 8
push 0
and edx, 0xff
push 0
mov dword [ebp - 0x124], edx
call esi
push 3
push 1
movzx ecx, bl
push edx
push eax
mov dword [ebp - 0x120], ecx
call esi
mov ecx, 3
test ebx, 0x10000000
je 0x41a895
mov byte [ebp - 0xe], 1
jmp 0x41a8a8
test ebx, 0x20000000
je 0x41a8a2
mov byte [ebp - 0xe], cl
jmp 0x41a8a8
cmp byte [ebp - 0xe], 0
jbe 0x41a8b8
push 1
push 0x80
push edx
push eax
call esi
mov ecx, 0x83
push edx
push eax
push ecx
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, 1
jne 0x41a832
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, al
pop esi
call fcn.0042c682
mov esp, ebp
pop ebp
ret