joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, eax
push 0
call fcn.00404d60
mov eax, dword [edi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
je 0x404ea9
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageW]
lea ebx, [ebx]
cmp byte [edi + 0xc], 0
jne 0x404ea8
mov eax, dword [edi + 4]
lea edx, [ebp - 0x1c]
push edx
push eax
call ebx
test eax, eax
jne 0x404e98
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x404e70
pop ebx
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, 0x458d28
call fcn.00418ee0
mov edx, dword [0x459568]
mov eax, dword [edx + 4]
push eax
mov ecx, 0x459564
call fcn.00419320
mov eax, dword [0x459568]
mov dword [eax + 4], eax
mov eax, dword [0x459568]
mov dword [eax], eax
mov eax, dword [0x459568]
mov dword [eax + 8], eax
mov dword [0x45956c], 0
mov eax, dword [edi + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404f00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442c8b
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], ebx
mov word [ebp - 0x830], cx
mov dword [ebp - 4], ebx
mov edx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push edx
call edi
mov esi, eax
cmp esi, ebx
je 0x404fbf
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
lea esp, [esp]
push 0x400
lea eax, [ebp - 0x814]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x830]
push ecx
lea edx, [ebp - 0x814]
push edx
mov ecx, 0x458d28
call fcn.00418dd0
cmp dword [ebp - 0x81c], 8
mov eax, dword [ebp - 0x830]
jae 0x404fb0
lea eax, [ebp - 0x830]
push eax
push esi
call ebx
push 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x404f70
cmp dword [ebp - 0x81c], 8
jb 0x404fd7
mov eax, dword [ebp - 0x830]
push eax
call fcn.0042d224
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 - 0x14]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret 4
Function at 0x4062b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4563d4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
sub eax, 0x110
push edi
mov esi, ecx
je 0x40641c
dec eax
je 0x4062fc
sub eax, 0x27
jne 0x406318
push eax
call dword [sym.imp.GDI32.dll_GetStockObject]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042d215
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
movzx ecx, word [ebp + 0xc]
mov dword [esi + 0x10], ecx
mov byte [esi + 0xc], 1
jmp 0x406400
cmp ebx, 0x110
ja 0x4063f4
je 0x406364
mov eax, ebx
sub eax, 2
je 0x406354
dec eax
je 0x4063a5
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004050d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042d215
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x38]
test eax, eax
je 0x406330
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x406330
mov eax, dword [0x458d08]
call fcn.00409650
test al, al
je 0x4063a5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [esi + 4]
push eax
push 0
push edx
push 0x1e
push 0x5a
push 0
push 0
push 0x90000000
push str.Exit
push str.Button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x38], eax
cmp dword [esi + 0x38], 0
je 0x406330
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x1c]
push eax
push ecx
call edi
mov eax, dword [esi + 0x38]
lea edx, [esp + 0xc]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0x15
push 0
push 0
lea eax, [ecx + edx - 0xe]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x38]
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x406330
cmp ebx, 0x111
jne 0x406330
mov eax, dword [esi + 0x38]
test eax, eax
je 0x406330
cmp dword [ebp + 0x10], eax
jne 0x406330
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405b50
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0042d215
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407310
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442417
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, 7
xor ebx, ebx
xor edx, edx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x21c], edi
mov word [edi], dx
mov dword [ebp - 4], ebx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x2c], ebx
mov word [edi + 0x1c], dx
lea esi, [edi + 0x38]
mov dword [esi + 0x14], ecx
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [esi], cx
mov edx, dword [ebp + 0xc]
push edx
push eax
lea eax, [ebp - 0x218]
push str._S___d_
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x218]
add esp, 0x10
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4073a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.004047c0
mov eax, edi
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.0042d215
mov esp, ebp
pop ebp
ret 8

Function at 0x407590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 1
push 0
push 0
push str.SoftwareIntelSetup_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4075e5
mov edx, dword [ebp + 8]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
mov eax, dword [ebp - 4]
push edx
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4088e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 8]
push str.IIF_CACHELOC
lea edi, [edi + 4]
call fcn.00413b40
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0042dc9b
add esp, 0xc
push str.Prop.data
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Deleting_private_properties_file
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 8
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop edi
call fcn.0042d215
mov esp, ebp
pop ebp
ret 4
Function at 0x40f320
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440f8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4563d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042c7e4
push 4
mov dword [ebp - 4], 0
call fcn.0042d34e
mov edi, eax
add esp, 4
test edi, edi
je 0x40f39c
call fcn.0042cc36
mov dword [edi], eax
call fcn.0042c9f5
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042c92a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40f392
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042c952
jmp 0x40f39e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4135e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4433c0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4563d4]
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 esi, ecx
push str.Name
lea ecx, [ebp - 0x2c]
mov ebx, edx
push ecx
push ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], eax
call fcn.0041f400
mov edi, eax
mov dword [ebp - 4], 0
call fcn.004030d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x41364e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042d224
add esp, 4
push 0x44c440
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.0041f400
mov esi, dword [ebp - 0x4c]
add esi, 0x1c
mov edi, eax
mov dword [ebp - 4], 1
call fcn.004030d0
or ebx, 0xffffffff
mov edi, 8
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], edi
jb 0x41368d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042d224
add esp, 4
cmp dword [esi + 0x14], edi
jb 0x413696
mov eax, dword [esi]
jmp 0x413698
mov eax, esi
mov edx, dword [ebp - 0x50]
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.004140b0
mov edi, eax
mov dword [ebp - 4], 2
call fcn.004030d0
mov dword [ebp - 4], ebx
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jb 0x4136cc
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042d224
add esp, 4
cmp dword [esi + 0x14], ebx
jb 0x4136d5
mov eax, dword [esi]
jmp 0x4136d7
mov eax, esi
push 6
push str.REG:
push eax
call fcn.0042e849
add esp, 0xc
test eax, eax
jne 0x413726
cmp dword [esi + 0x14], ebx
jb 0x4136f4
mov eax, dword [esi]
jmp 0x4136f6
mov eax, esi
lea edx, [ebp - 0x48]
lea ecx, [eax + 0xc]
push edx
call fcn.004137b0
add esp, 4
mov edi, eax
mov dword [ebp - 4], 3
call fcn.004030d0
cmp dword [ebp - 0x34], ebx
jb 0x413785
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042d224
add esp, 4
jmp 0x413785
cmp dword [esi + 0x14], ebx
jb 0x41372f
mov eax, dword [esi]
jmp 0x413731
mov eax, esi
push 6
push str.FIL:
push eax
call fcn.0042e849
add esp, 0xc
test eax, eax
jne 0x413785
cmp dword [esi + 0x14], ebx
jb 0x41374e
mov eax, dword [esi]
jmp 0x413750
mov eax, esi
add eax, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, 0x448a3c
jne 0x413768
mov eax, 0x44967c
mov ecx, eax
lea edi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x413770
sub ecx, edi
sar ecx, 1
push ecx
call fcn.004047c0
mov ecx, dword [ebp - 0x4c]
xor eax, eax
cmp dword [ecx + 0x2c], eax
setne al
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.0042d215
mov esp, ebp
pop ebp
ret 4
Function at 0x417180
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
push eax
push 0x104
mov esi, ecx
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x44c958
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417205
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.004047c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042d215
mov esp, ebp
pop ebp
ret

Function at 0x417240
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
push edi
lea edx, [ebp - 0x58]
push edx
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x41736d
push ebx
push edi
call fcn.0042c6dc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417357
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0x449510
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
push str._d._d._d._d
push ecx
call edi
lea eax, [ebp - 0x44]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4172d6
mov esi, dword [ebp - 0x50]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.004047c0
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0x14]
movzx ecx, word [eax + 0x16]
push edx
movzx edx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
push str._d._d._d._d
push ecx
call edi
lea eax, [ebp - 0x44]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417320
mov esi, dword [ebp - 0x4c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.004047c0
push ebx
call fcn.0042d224
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x417390
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x50]
push ecx
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x417460
push ebx
push edi
call fcn.0042c6dc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41744a
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0x449510
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax + 0x10]
movzx edx, word [eax + 0x12]
push ecx
push edx
lea eax, [ebp - 0x44]
push str._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x44]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417413
mov esi, dword [ebp - 0x48]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.004047c0
push ebx
call fcn.0042d224
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x417520
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor eax, eax
cmp dword [ebp - 4], 1
jne 0x41758a
push 0xe
push str._ProgramFiles_
push esi
call fcn.00403140
cmp eax, 0xffffffff
je 0x4175c8
jmp 0x417560
push 0xe
push str._ProgramW6432_
push eax
mov eax, 0xe
mov ecx, esi
call fcn.0040e620
push 0xe
push str._ProgramFiles_
push esi
xor eax, eax
call fcn.00403140
cmp eax, 0xffffffff
jne 0x417560
jmp 0x4175c8
push 0x13
push str._ProgramFiles_x86__
push esi
call fcn.00403140
cmp eax, 0xffffffff
je 0x4175c8
lea esp, [esp]
push 0xe
push str._ProgramFiles_
push eax
mov eax, 0x13
mov ecx, esi
call fcn.0040e620
push 0x13
push str._ProgramFiles_x86__
push esi
xor eax, eax
call fcn.00403140
cmp eax, 0xffffffff
jne 0x4175a0
cmp dword [esi + 0x14], 8
jb 0x4175d2
mov eax, dword [esi]
jmp 0x4175d4
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
mov ebx, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c6dc
mov edi, eax
add esp, 4
test edi, edi
je 0x417640
cmp dword [esi + 0x14], 8
jb 0x41760a
mov eax, dword [esi]
jmp 0x41760c
mov eax, esi
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417620
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004047c0
push edi
call fcn.0042e6d9
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417650
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 0x41775e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ebx, [esi + 2]
push ebx
call fcn.0042c6dc
mov edi, eax
add esp, 4
test edi, edi
jne 0x4176b6
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.004367d0
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 0x417744
cmp byte [edi], 0xff
jne 0x417709
cmp byte [edi + 1], 0xfe
jne 0x417709
mov ecx, dword [ebp + 8]
lea eax, [edi + 2]
push ecx
call fcn.00403070
push edi
call fcn.0042e6d9
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 0x417710
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004047c0
push edi
call fcn.0042e6d9
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 0x417770
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 0x417822
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x417816
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.0042c6dc
mov esi, eax
add esp, 4
test esi, esi
je 0x41780a
push edi
push 0
push esi
call fcn.004367d0
mov eax, dword [ebp - 4]
push ebx
push eax
push esi
call fcn.0042ee00
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4177e5
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
push esi
call fcn.00411e30
push esi
call fcn.0042d224
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 0x417830
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 0x4178ea
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x4178de
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.0042c6dc
mov edi, eax
add esp, 4
test edi, edi
je 0x4178d2
push esi
push 0
push edi
call fcn.004367d0
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call fcn.0042ee00
mov eax, edi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4178a6
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004047c0
push edi
call fcn.0042d224
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