joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45acc0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ae6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45ae4c
mov dl, 1
mov eax, dword [0x411a30]
call fcn.00403108
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e88
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45ae3b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004487b0
test al, al
je 0x45ae2e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45ae7c
lea eax, [ebp - 0x254]
call fcn.00408af0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45ae2e
xor eax, eax
push ebp
push 0x45ae27
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45aeb4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ae10
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040f8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45ae10
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ae2e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ad31
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041557c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ae72
lea eax, [ebp - 0x260]
call fcn.00403e88
ret

Function at 0x45b7a0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x468bb8]
cmp byte [eax + 0xa5], 0
jne 0x45b811
cmp dword [0x468bd0], 0
jne 0x45b7d2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b75c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x468bd0], eax
cmp dword [0x468bcc], 0
jne 0x45b7ed
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x468bcc], eax
cmp dword [0x468bd4], 0
jne 0x45b811
push esp
push 0
push 0
push 0x45b700
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x468bd4], eax
pop edx
ret
Function at 0x45b908
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b91f
add esp, 0xfffffff0
call fcn.0040345c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041938c
mov eax, dword [0x467104]
cmp word [eax + 2], 0
jne 0x45b947
mov eax, dword [0x467104]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d070
mov eax, dword [0x4671c0]
cmp word [eax + 2], 0
jne 0x45b961
mov eax, dword [0x4671c0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d268
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411614]
call fcn.00403108
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411614]
call fcn.00403108
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b818]
call fcn.00422b20
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45bae8
mov eax, dword [0x467020]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422ef0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d808
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x467020]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c1b8
test eax, eax
je 0x45ba56
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004084e4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c1e0
test eax, eax
je 0x45ba6a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040f8
mov eax, dword [0x466efc]
cmp byte [eax], 0
jne 0x45ba9e
mov eax, ebx
call fcn.0045bc10
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045d9e4
mov eax, ebx
call fcn.0045e3a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45bade
call fcn.004034b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45be90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x468bb8]
cmp dword [eax + 0x30], 0
je 0x45bf3a
cmp dword [ebx + 0x94], 0
jne 0x45bf34
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45be20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45bf34
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45befa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45bf34
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041397c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45bf09
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ca9c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45cad1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f78
jmp 0x45cade
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403edc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45dbc0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45dc01
mov eax, esi
call fcn.00443d34
test al, al
je 0x45dc01
mov eax, dword [ebx + 0x84]
call fcn.00443a30
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45dc01
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443a30
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x460170
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4603d0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4601d3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0045fc88
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040bda4
cmp al, 1
jne 0x4601d3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0045ff50
test al, al
je 0x46035f
cmp dword [ebp - 8], 0
jge 0x4601f1
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0045fc88
mov eax, dword [ebp - 0x210]
call fcn.00404148
cmp ebx, eax
jge 0x46023b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0045fc88
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x46730c]
and eax, 0xff
bt dword [edx], eax
jae 0x46023b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x46024f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046014c
cmp ebx, dword [ebp - 8]
je 0x460351
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x46027b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403334
and eax, 0x7f
movzx eax, word [eax*2 + 0x466ed0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x46033e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403334
and eax, 0x7f
movzx eax, word [eax*2 + 0x466ed0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00443a30
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403334
and eax, 0x7f
movzx eax, word [eax*2 + 0x466ed0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00443a30
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460345
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4603b2
cmp dword [ebp - 8], 0
jge 0x46036a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0045fc88
mov eax, dword [ebp - 0x218]
call fcn.00404148
cmp eax, dword [ebp - 8]
jg 0x4603a4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0045fc88
mov eax, dword [ebp - 0x21c]
call fcn.00404148
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046014c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4603d7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403eac
ret
Function at 0x403a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5c7ed0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 0
push 0x10000000
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x403b0d
cmp edi, 0xffffffff
je 0x403b0d
push ebx
push esi
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push eax
push 4
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
push edi
call ebx
test eax, eax
je 0x403af3
jmp 0x403ad0
add esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], 0
je 0x403af3
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0
push eax
push 4
lea eax, [ebp - 0x3c]
push eax
push edi
call ebx
test eax, eax
jne 0x403ad0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bf68
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0053bf68
mov esp, ebp
pop ebp
ret

Function at 0x403b80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x5c7ed0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x104]
push edi
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x403ba2
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x403bd1
lea eax, [ebp - 0x104]
push eax
call fcn.00403b20
add esp, 4
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403be0
sub ecx, edx
jne 0x403bfb
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bf68
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
je 0x403c1a
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bf68
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x104]
push 0
push eax
call edi
test eax, eax
jne 0x403c08
lea ecx, [ebp - 0x204]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x403c37
lea eax, [ebp - 0x204]
push eax
call fcn.00403b20
lea eax, [ebp - 0x204]
push eax
call fcn.00403b80
add esp, 8
lea eax, [ebp - 0x104]
push 0
push eax
call edi
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.0053bf68
mov esp, ebp
pop ebp
ret
Function at 0x403c80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c7ed0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x5700e8
push 0x5700ec
call fcn.0053d925
mov esi, eax
add esp, 8
test esi, esi
je 0x403d00
lea eax, [ebp - 0x20c]
push eax
call fcn.0053bf17
lea eax, [ebp - 0x20c]
push eax
call fcn.0053ddf7
push eax
push str.Log_start_:__s_n
push esi
call fcn.0053dc20
add esp, 0x14
lea eax, [ebp - 0x204]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x204]
push eax
push str.Current_Directory_:__s_n
push esi
call fcn.0053dc20
push esi
call fcn.0053d7ea
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0053bf68
mov esp, ebp
pop ebp
ret

Function at 0x405690
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e50b
mov eax, dword fs:[0]
push eax
mov eax, 0x1960
call fcn.0053e620
mov eax, dword [0x5c7ed0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.ZGunzLauncherMutex
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x5cdec0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ecx, 1
mov eax, dword [0x5cdec0]
cmove esi, ecx
test eax, eax
je 0x4056f8
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
jne 0x405736
push esi
call fcn.00424700
add esp, 4
call fcn.00420c16
push esi
lea ecx, [ebp - 0x196c]
call fcn.00405f40
lea ecx, [ebp - 0x196c]
mov dword [ebp - 4], esi
call fcn.0042122b
lea ecx, [ebp - 0x196c]
mov dword [ebp - 4], 0xffffffff
call fcn.004055a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053bf68
mov esp, ebp
pop ebp
ret

Function at 0x405b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00420ec5
Function at 0x4065a0
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e700
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c7ed0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [str.unknown]
mov dword [edi], eax
mov eax, dword [0x570e04]
mov dword [edi + 4], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4066e1
push ebx
call fcn.004157ba
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
push esi
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 4], 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4066d8
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0xc]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4066d8
call fcn.00416b7a
push eax
lea ecx, [ebp - 0x10]
call fcn.004159f0
cmp dword [ebp - 0x14], 4
mov byte [ebp - 4], 1
jne 0x40668b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
push eax
mov eax, ecx
shr eax, 0x18
push eax
movzx eax, cl
push eax
shr ecx, 8
lea eax, [ebp - 0x10]
and ecx, 0xff
push ecx
push str.StringFileInfo_02X_02X_02X_02XProductVersion
push eax
call fcn.004064e0
add esp, 0x18
jmp 0x4066a6
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
lea eax, [ebp - 0x10]
push str.StringFileInfo_04X04B0ProductVersion
push eax
call fcn.004064e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4066cd
mov ecx, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x4066c0
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402990
push esi
call fcn.004157c3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4074a0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x880], 1
je 0x407565
cmp byte [esi + 0xac4], 1
je 0x407565
cmp byte [esi + 0x163c], 0
jne 0x4074e7
push 0x570147
push 0x570147
push str.GunZUpdate
push 0x50
push str.127.0.0.1
lea ecx, [esi + 0xcec]
call fcn.004117e0
push ebx
push edi
xor edi, edi
cmp byte [esi + 0x1958], 1
jne 0x407513
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
cmp edi, 0xa
jg 0x40754a
push 0x64
call ebx
inc edi
cmp byte [esi + 0x1958], 1
je 0x407500
push 0
push 0
push 0
push 0
push esi
push 0x408140
mov byte [esi + 0x1958], 1
call fcn.00421a1f
mov dword [esi + 0x1954], eax
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop ebx
lea ecx, [esi + 0x884]
pop esi
jmp fcn.00420a43
push str._APP__ERROR___The_thread_is_not_terminating.
call fcn.00403d10
add esp, 4
mov dword [esi + 0xce8], 1
pop edi
pop ebx
pop esi
ret
mov dword [esi + 0xce8], 8
pop esi
jmp fcn.00408010
Function at 0x407eb0
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0053e620
mov eax, dword [0x5c7ed0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call fcn.00425c78
push 0x570d04
push 0x8b
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x407ff4
push esi
call fcn.00425c78
push edi
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x407ff3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x100c], eax
call fcn.00425c78
push edi
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0x570a74
mov ebx, eax
mov dword [ebp - 0x1008], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407fde
push 0
lea eax, [ebp - 0x1008]
push eax
push ebx
push dword [ebp - 0x100c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, dword [ebp - 0x1008]
jne 0x407fd7
push str._APP__Run_external_updater
call fcn.00403d10
push 0xfff
lea eax, [ebp - 0x1003]
mov byte [ebp - 0x1004], 0
push 0
push eax
call fcn.0053db90
push 0x570a74
lea eax, [ebp - 0x1004]
push str.._s
push eax
call fcn.0053be46
add esp, 0x1c
lea eax, [ebp - 0x1004]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x407feb
push str._APP__Invalid_updater_file
jmp 0x407fe3
push str._APP__Cannot_create_updater_file
call fcn.00403d10
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0053bf68
mov esp, ebp
pop ebp
ret
Function at 0x408010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0053e620
mov eax, dword [0x5c7ed0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5cdfb4]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
test al, 1
jne 0x408049
or eax, 1
mov dword [0x5cdfb4], eax
call edi
mov dword [0x5cdfb0], eax
call edi
sub eax, dword [0x5cdfb0]
cmp byte [0x5cdfb8], 0
jne 0x4080fa
cmp eax, 0x3e8
jbe 0x408128
cmp byte [esi + 0x881], 0
lea ecx, [ebp - 0x1005]
je 0x40807c
push 2
jmp 0x40807e
push 0
call fcn.00401df0
push 0xfff
lea eax, [ebp - 0x1003]
mov byte [ebp - 0x1004], 0
push 0
push eax
call fcn.0053db90
call fcn.0040f570
add eax, 0x400
push eax
push str.Gunz.exe
lea eax, [ebp - 0x1004]
push str.._s___s_
push eax
call fcn.0053be46
lea eax, [ebp - 0x1004]
push eax
call fcn.00403d10
add esp, 0x20
lea eax, [ebp - 0x1004]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov byte [0x5cdfb8], 1
call edi
pop edi
mov dword [0x5cdfb0], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bf68
mov esp, ebp
pop ebp
ret
cmp byte [0x5cdfb9], 0
jne 0x408128
cmp eax, 0x1388
jbe 0x408128
cmp dword [esi + 0xce8], 5
mov byte [esi + 0x848], 1
jne 0x408121
mov ecx, esi
call fcn.00407580
mov byte [0x5cdfb9], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053bf68
mov esp, ebp
pop ebp
ret

Function at 0x408fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408fd5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409014
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x409010
lea ebx, [ebx]
cmp esi, edx
jae 0x409014
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x409000
cmp esi, edx
jb 0x409019
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40a8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
dec eax
cmp eax, 3
ja case.default.0x40a8fe
jmp dword [eax*4 + 0x40a930]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0040a5b0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0040a1f0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0040a770
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0040a400
mov eax, 0x1001
pop ebp
ret

Function at 0x40a960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
dec eax
cmp eax, 3
ja case.default.0x40a96e
jmp dword [eax*4 + 0x40a9a0]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0040a650
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0040a2b0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0040a7c0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0040a460
mov eax, 0x1001
pop ebp
ret
Function at 0x40f420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0040f440