joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [esi + 0x10], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x401b70
push 0
push 0
call fcn.00487a23
add esp, 0x18
xor edx, edx
test eax, eax
mov ecx, 0x8000ffff
mov dword [esi + 0x34], eax
cmovne ecx, edx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x405e30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x405f20
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [esi + 0x644]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x3e8
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x405f0a
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
cmp dword [esi + 0xd4c], 0
jne 0x405ee9
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x405ea8
pop edi
pop ebx
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0xd4c]
pop esi
mov esp, ebp
pop ebp
ret
push 1
push dword [esi + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop ebx
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0xd4c]
pop esi
mov esp, ebp
pop ebp
ret
push str.DoModal_fail___NO_window_handle
call fcn.00413860
mov eax, dword [esi + 0xd4c]
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4070e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 2
je 0x4071f0
sub eax, 0x111
je 0x40712a
sub eax, 0x3ed
je 0x407118
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.00409030
pop esi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [esi + 0xd4c], eax
xor eax, eax
pop esi
pop ebp
ret 0x10
cmp dword [ebp + 0x10], 1
jne 0x40721c
dec dword [esi + 0xd2c]
mov edx, dword [esi + 0xd2c]
test edx, edx
jle 0x4071a5
push edi
mov edi, 1
xor eax, eax
lea ecx, [esi + 0xd34]
cmp dword [ecx], edx
jle 0x407161
inc eax
add ecx, 4
cmp eax, 5
jl 0x407152
jmp 0x40716d
mov eax, dword [esi + eax*4 + 0xd34]
test eax, eax
cmovne edi, eax
mov eax, edi
cmp edi, edx
jge 0x407179
add eax, edi
cmp eax, edx
jl 0x407173
pop edi
cmp dword [esi + 0xd30], eax
je 0x40721c
push 0
push 0
push 0x503
push dword [esi + 0xc]
mov dword [esi + 0xd30], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop esi
pop ebp
ret 0x10
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0
push 0x503
push dword [esi + 0xc]
mov dword [esi + 0xd30], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xd48]
mov dword [esi + 0xd4c], eax
xor eax, eax
pop esi
pop ebp
ret 0x10
push dword [ebp + 0x14]
mov eax, dword [esi]
push dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x1c]
push 1
push dword [esi + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x407800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x407815
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 8]
mov dword [esi + 4], 0
test eax, eax
je 0x40783a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], 0
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x407932
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x407932
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407932
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x407932
mov edi, dword [ebp + 0xc]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
test eax, eax
je 0x407932
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x407922
push edi
push ebx
push eax
call fcn.00488240
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [esi + 8]
mov dword [ebp + 0xc], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x407919
push eax
push dword [ebp + 0xc]
call fcn.004075a0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
add esp, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x407919
mov eax, dword [ecx + 8]
mov dword [ecx + 8], 0
test eax, eax
jne 0x407905
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x407912
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], 0
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
Function at 0x409af0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x409bc2
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [esi + 0x644]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov byte [esi + 0xd44], 1
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x409b8b
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ecx]
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
cmp dword [esi + 0xd40], 0
jne 0x409b96
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x409b60
pop edi
pop ebx
mov eax, dword [esi + 0xd40]
pop esi
mov esp, ebp
pop ebp
ret
push 1
push dword [esi + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0xd40]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push str.DoModal_fail___NO_window_handle
call fcn.00413860
mov eax, dword [esi + 0xd40]
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409e50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 2
je 0x409eba
sub eax, 0x4fe
je 0x409e7d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.00409030
pop esi
pop ebp
ret 0x10
cmp byte [esi + 0xd44], 0
je 0x409e98
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [esi + 0xd40], eax
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 8]
test eax, eax
je 0x409ee6
push dword [ebp + 0x14]
push 0x500
push 0x507
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop esi
pop ebp
ret 0x10
push dword [ebp + 0x14]
mov eax, dword [esi]
push dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x1c]
push 1
push dword [esi + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x40bf10
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
test esi, esi
jne 0x40bf46
pop esi
mov eax, 0x80070057
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0xfb
je 0x40c09d
sub eax, 0x16
jne 0x40c089
push edi
lea eax, [ebp - 0x810]
push eax
push str.http_shellopencommand
xor edi, edi
push SysReAllocString
mov dword [ebp - 0x810], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40c01f
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x814]
push eax
push edi
push edi
push dword [ebp - 0x810]
mov dword [ebp - 0x814], 1
mov dword [ebp - 0x80c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c01f
mov eax, dword [ebp - 0x80c]
add eax, eax
cmp eax, 0x802
jae 0x40c0b4
xor ecx, ecx
mov word [ebp + eax - 0x808], cx
lea eax, [ebp - 0x808]
push 0x22
push eax
call fcn.004870a4
mov edi, eax
add esp, 8
test edi, edi
je 0x40c01d
add edi, 2
push 0x22
push edi
call fcn.004870a4
add esp, 8
test eax, eax
je 0x40c01d
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c01d
mov edi, 1
jmp 0x40c01f
xor edi, edi
cmp dword [esi + 8], 5
jne 0x40c043
mov eax, dword [esi]
mov ecx, 1
mov eax, dword [eax + 0x38]
mov word [eax], cx
mov eax, dword [esi]
lea ecx, [ebx - 0x6ac]
neg ecx
sbb ecx, ecx
and ecx, ebx
mov dword [eax + 0x48], ecx
test edi, edi
pop edi
jne 0x40c071
push 0
push 0
push 0x496
push dword [ebx - 0x698]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [esi]
push 1
push 0
push 0
push dword [eax + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0x80004001
pop ebx
call fcn.00487c50
mov esp, ebp
pop ebp
ret 0x24
call fcn.0048697a
int3
Function at 0x410ff0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x411024
pop edi
mov eax, 0x80070057
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret
xor eax, eax
push ebx
mov word [esi], ax
lea eax, [ebp - 0x120]
push eax
mov ebx, 0x80004005
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
ja 0x411063
push 0x400
push 0x104
push esi
push 0xfb
jmp 0x41108f
cmp eax, 0xa
jb 0x41107a
push 0x400
push 0x104
push esi
push 0x103
jmp 0x41108f
cmp eax, 6
jb 0x411098
push 0x400
push 0x104
push esi
push 0xfa
push edi
call fcn.00412610
add esp, 0x14
lea ecx, [esi + 2]
jmp 0x4110a0
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4110a0
sub esi, ecx
mov ecx, dword [ebp - 4]
xor eax, eax
sar esi, 1
cmovne ebx, eax
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00487c50
mov esp, ebp
pop ebp
ret
Function at 0x412210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x40c]
push eax
push 0
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00489834
add esp, 0x14
xor ecx, ecx
jmp 0x412260
movzx eax, word [ecx + str.SoftwareCyberLink_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x412260
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412282
mov ecx, 6
mov esi, 0x4a68c8
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x410]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
movsw word es:[edi], word [esi]
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x414], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
jne 0x412319
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push str.DumpMSG
push dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41230d
cmp dword [ebp - 0x414], eax
seta bl
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00487c50
mov esp, ebp
pop ebp
ret

Function at 0x412610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x412620
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push esi
mov esi, eax
shr eax, 4
mov edx, 0x400
and esi, 0xf
inc eax
cmp cx, dx
jne 0x412641
movzx ecx, word [0x4c8644]
push ebx
movzx ebx, ax
push ecx
push ebx
push 6
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x41269a
push 0x409
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x41269a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x412676
mov ecx, eax
jmp 0x41267f
movzx ecx, ax
or ecx, 0x80070000
push ecx
push eax
push str.FindResourceEx
push str._s_failed__error___d__0x_x_
call fcn.00413860
add esp, 0x10
pop ebx
pop esi
xor eax, eax
pop edi
pop ebp
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x412693
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test esi, esi
je 0x4126c4
movzx eax, word [ecx]
add ecx, 2
test eax, eax
je 0x4126c1
lea ecx, [ecx + eax*2]
dec esi
jne 0x4126b4
test ecx, ecx
je 0x412693
movzx esi, word [ecx]
mov edx, dword [ebp + 0x14]
add ecx, 2
lea eax, [edx - 1]
cmp eax, esi
jge 0x4126db
lea esi, [edx - 1]
push esi
push ecx
push edi
call fcn.00487152
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x412700
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x412711
sub edi, ecx
sar edi, 1
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048614e
mov ebx, eax
mov edx, ebx
add esp, 4
sub edx, esi
movzx ecx, word [esi]
mov word [edx + esi], cx
lea esi, [esi + 2]
test cx, cx
jne 0x412742
xor eax, eax
mov dword [ebx + edi*2], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov eax, 0x14
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xe], 0
mov dword [ebp - 0xa], 0
mov dword [ebp - 6], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push ebx
mov esi, eax
call fcn.004866e2
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4127b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x620], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
mov byte [ebp - 0x615], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x614]
push eax
push 0
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00489834
add esp, 0x14
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ecx + str.SoftwareCyberLink_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x412810
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412831
mov ecx, 6
mov esi, 0x4a68c8
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x61c], 0
call fcn.004866f0
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
mov dword [ebp - 0x624], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
jne 0x412907
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push str.DebugUrl
push dword [ebp - 0x61c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x61c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x412907
mov esi, dword [ebp - 0x620]
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00487152
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2 - 2], ax
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x615]
pop esi
xor ecx, ebp
pop ebx
call fcn.00487c50
mov esp, ebp
pop ebp
ret
Function at 0x412920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.Shell32.dll
mov dword [ebp - 0x214], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412a31
push str.SHGetKnownFolderPath
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x412a2b
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x4ba9fc
mov dword [ebp - 0x210], esi
call edi
test eax, eax
js 0x41298d
mov esi, 1
jmp 0x4129c6
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x4baa2c
call edi
test eax, eax
js 0x4129aa
mov esi, 2
jmp 0x4129c6
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x4baa0c
call edi
mov ecx, 3
test eax, eax
cmovns esi, ecx
mov edi, dword [ebp - 0x210]
test edi, edi
je 0x412a1f
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4129d5
sub edx, ecx
mov ecx, dword [ebp + 0xc]
sar edx, 1
dec ecx
cmp edx, ecx
jae 0x412a00
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4129f1
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov edi, dword [ebp - 0x214]
push edi
call fcn.00487152
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x412a25
mov edi, dword [ebp - 0x214]
test esi, esi
jne 0x412a9e
jmp 0x412a31
mov edi, dword [ebp - 0x214]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004866f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 5
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x412a9e
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a70
mov eax, dword [ebp + 0xc]
sub ecx, edx
dec eax
sar ecx, 1
cmp ecx, eax
cmovb eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00487152
add esp, 0xc
mov esi, 2
test ebx, ebx
je 0x412aa9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487c50
mov esp, ebp
pop ebp
ret
Function at 0x412ac0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
lea ecx, [ebp - 0x428]
push ecx
push eax
mov dword [ebp - 0x424], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [ebp - 0x418], edi
call fcn.004866f0
add esp, 0xc
test edi, edi
je 0x412c51
push edi
call fcn.0048614e
mov edi, eax
add esp, 4
test edi, edi
jne 0x412b5d
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00487152
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2 - 2], ax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x418]
push 0
push dword [ebp - 0x424]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x41c], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412c48
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004866f0
mov ecx, dword [ebp - 0x420]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xProductVersion
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00401690
add esp, 0x20
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
mov dword [ebp - 0x418], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412c48
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x412c48
cmp dword [ebp - 0x41c], 0
je 0x412c48
push eax
push 0x4a6650
lea eax, [esi - 1]
push eax
push esi
push ebx
call fcn.00486606
push edi
call fcn.004866e2
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret
push edi
call fcn.004866e2
add esp, 4
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00487152
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2 - 2], ax
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00487c50
mov esp, ebp
pop ebp
ret

Function at 0x4137b0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x4137c1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x4137c7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push dword [ebp + 8]
movzx eax, ax
push eax
call fcn.00412ca0
push dword [ebp + 8]
push str.GetUserDefaultLanguageFromCurrentOSSetting:_s
call fcn.00413860
add esp, 0x10
pop ebp
ret