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

Disassembly:
and dword [0x45287c], 0
push 1
push dword [esp + 8]
mov byte [0x452871], 1
mov byte [0x452872], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401cc4
cmp dword [0x4486c0], 0
jne 0x423489
cmp byte [0x45287b], 0
je 0x423492
cmp dword [0x452874], 0
jne 0x4234a5
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x423594
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x4395fd
call fcn.00425008
cmp byte [0x45237c], 0
mov esi, dword [ebp + 8]
je 0x42367b
cmp dword [0x452390], 0
je 0x42367b
xor edi, edi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push 0x452380
call fcn.0042152b
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x423640
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x423612
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x42361e
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push edi
push edx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42367b
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
cmp eax, 0x1000
jb 0x423672
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.00424f56
pop ecx
pop ecx
call fcn.00424fb7
ret 4
Function at 0x4261f9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x426238
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426238
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426238
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426238
cmp dword [ecx + 0x74], 0xe
jbe 0x426238
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x438610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43863d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43863d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401760
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x44e1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov eax, dword [0x4677a0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00418923
call fcn.00420cc2
call fcn.00420cc2
mov eax, dword [eax + 0xc]
push 0x68
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov eax, dword [esi + 0x20]
push edi
push 1
push 0x80
push eax
call ebx
mov ecx, dword [esi + 0x20]
push edi
push 0
push 0x80
push ecx
call ebx
call fcn.00420e12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4017ec
push 0x80004005
call fcn.00402bd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x70], 0
mov word [esp + 0x14], cx
push 0x46f0f8
lea edx, [esp + 0x18]
mov ecx, str.DisplayName
call fcn.00402c90
add esp, 4
test eax, eax
jle 0x40183e
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push 0x456464
push eax
call fcn.00402bb0
add esp, 0xc
jmp 0x401850
lea ecx, [esp + 0x10]
push str.for_all_duoduo_v3__
push ecx
call fcn.00402bb0
add esp, 8
mov edi, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.0041f006
push 5
mov ecx, esi
call fcn.0041f0a8
call fcn.00401a60
lea eax, [edi - 0x10]
mov dword [esi + 0x120], 1
mov dword [esp + 0x70], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401898
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00435010
add esp, 0x64
ret

Function at 0x4021a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00418e5f

Function at 0x402380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402399
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4023d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4023d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4023d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4023c0
cmp esi, eax
jb 0x4023da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404060
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x54c]
sub esp, 0x54c
push 0xfffffffffffffffe
push 0x462c30
push 0x437c90
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4677a0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x548], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp + 0x22c], 0x114
lea eax, [ebp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4040ca
xor eax, eax
jmp 0x40425f
mov eax, dword [ebp + 0x23c]
cmp eax, 2
jne 0x4041f1
cmp dword [ebp + 0x230], 4
jne 0x4041f1
mov dword [ebp - 4], ebx
mov eax, 0x400
mov dword [ebp - 0x1c], eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, ebx
je 0x404112
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
add eax, eax
mov dword [ebp - 0x1c], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x4041c6
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4041c6
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], eax
je 0x4040f7
shr dword [ebp - 0x20], 2
mov dword [ebp - 0x2c], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x4041c6
xor eax, eax
mov word [ebp + 0x340], ax
mov ecx, dword [esi + ebx*4]
push ecx
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4041af
lea edx, [ebp - 0x1c]
push edx
push 4
lea eax, [ebp - 0x28]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4041a8
push 0x104
lea ecx, [ebp + 0x340]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
jne 0x4041a8
mov word [ebp + 0x340], ax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x554]
push ecx
mov edx, dword [esi + ebx*4]
push edx
call fcn.00404360
test eax, eax
je 0x4041c6
inc ebx
jmp 0x40414c
mov dword [ebp - 4], 0xfffffffe
call fcn.004041da
jmp 0x40425a
cmp eax, 1
je 0x40420c
cmp eax, 2
jne 0x4040c3
cmp dword [ebp + 0x230], 4
jbe 0x4040c3
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4040c3
mov edi, 0x22c
mov dword [ebp], edi
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40425a
mov ecx, dword [ebp + 0x554]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00404360
test eax, eax
je 0x40425a
mov dword [ebp], edi
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404235
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x548]
xor ecx, ebp
call fcn.00435010
add ebp, 0x54c
mov esp, ebp
pop ebp
ret 4
Function at 0x404290
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x42c], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
je 0x4042ba
push 0x18
jmp 0x4042bc
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40431f
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x404318
nop
cmp word [esp + 0x228], 0
lea esi, [esp + 0x228]
je 0x404309
push esi
push edi
call fcn.0044cbe1
add esp, 8
test eax, eax
je 0x404335
add esi, 2
cmp word [esi], 0
jne 0x4042f2
lea ecx, [esp + 8]
push ecx
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4042e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00435010
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x434]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00435010
mov esp, ebp
pop ebp
ret

Function at 0x4047a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push edi
xor edi, edi
test esi, esi
je 0x40484f
push ebx
xor ecx, ecx
push eax
mov word [esi], cx
push 0x457370
mov ecx, 0x80
lea ebx, [esp + 0x18]
call fcn.00402d10
add esp, 8
lea edx, [esp + 8]
push edx
push 0x20019
push edi
mov eax, ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ebx
test eax, eax
jne 0x404837
mov ecx, dword [esp + 0x118]
lea eax, [esp + 8]
push eax
push esi
push edi
push edi
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x14]
push str.IMEName
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
mov eax, edi
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00435010
add esp, 0x10c
ret
mov ecx, dword [esp + 0x10c]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00435010
add esp, 0x10c
ret
Function at 0x405b00
Capabilities:
Get common file path

Disassembly:
cmp word [0x46f0f8], 0
push esi
mov esi, ecx
jne 0x405b2f
test eax, eax
je 0x405b2b
mov eax, dword [eax + 4]
test eax, eax
je 0x405b2b
mov ecx, dword [esi + 0x468]
push ecx
push 0
push 0x457ea0
call eax
add esp, 0xc
xor eax, eax
pop esi
ret
mov edx, dword [eax]
push edi
mov dword [esi + 0x460], edx
mov ecx, dword [eax + 4]
lea edi, [esi + 0x258]
mov dword [esi + 0x464], ecx
mov edx, dword [eax + 8]
push edi
push 0x104
mov dword [esi + 0x468], edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x405b82
mov eax, dword [esi + 0x464]
test eax, eax
je 0x405b7d
mov ecx, dword [esi + 0x468]
push ecx
push 0
push 0x457eb0
call eax
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405b87
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 0x256], 0x5c
je 0x405bd7
mov ecx, 0x104
mov eax, edi
cmp word [eax], 0
je 0x405bb8
add eax, 2
sub ecx, 1
jne 0x405ba8
jmp 0x405bd7
test ecx, ecx
je 0x405bd7
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [edi + eax*2]
mov eax, 0x457ff4
call fcn.00407450
push 0x28
push 0x46f0f8
call fcn.004047a0
add esp, 8
lea eax, [esi + 0x50]
mov ecx, 0x46f0f8
call fcn.004073f0
pop edi
mov eax, 1
pop esi
ret

Function at 0x4065c0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push 0x218
push 1
mov dword [eax], 0
call fcn.00435da6
mov ebx, eax
add esp, 8
mov dword [esp + 8], ebx
test ebx, ebx
je 0x4066d1
mov ecx, dword [esp + 0x14]
push edi
push 0x458014
push ecx
call fcn.00436549
mov edi, eax
add esp, 8
test edi, edi
je 0x406660
push ebp
push 2
push 0
push edi
call fcn.004363fe
push edi
call fcn.00436306
push edi
mov ebx, eax
call fcn.004360a3
lea ebp, [ebx + 2]
push ebp
push 1
call fcn.00435da6
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x406652
push edi
push 1
push ebx
push esi
mov byte [esi + ebx], 0
mov byte [esi + ebx + 1], 0
call fcn.00436086
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [eax], ebp
mov dword [eax + 0x214], esi
push edi
call fcn.00435c9c
mov ebx, dword [esp + 0x14]
add esp, 4
pop ebp
cmp dword [ebx + 0x214], 0
pop edi
je 0x4066c8
mov esi, dword [esp + 0x14]
lea eax, [ebx + 4]
mov edx, 0x104
sub esi, eax
jmp 0x406680
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4066b0
movzx ecx, word [esi + eax]
test cx, cx
je 0x4066b0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x406680
sub eax, 2
mov word [eax], dx
mov eax, dword [esp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebx]
pop esi
pop ebx
pop ecx
ret
test edx, edx
jne 0x4066b7
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebx]
pop esi
pop ebx
pop ecx
ret
push ebx
call fcn.00435d18
add esp, 4
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4066e0
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x218
push 1
mov edi, eax
call fcn.00435da6
mov esi, eax
add esp, 8
test esi, esi
je 0x4067df
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20c], eax
cmp eax, 0xffffffff
je 0x4067d6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push 0
push 4
mov dword [esi], eax
mov eax, dword [esi + 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x210], eax
test eax, eax
je 0x4067cd
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x214], eax
test eax, eax
je 0x4067c4
lea eax, [esi + 4]
mov edx, 0x104
sub edi, eax
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4067ae
movzx ecx, word [edi + eax]
test cx, cx
je 0x4067ae
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x406780
sub eax, 2
mov word [eax], dx
mov dword [ebp], esi
mov eax, dword [esi]
pop edi
pop esi
pop ebp
pop ebx
ret
test edx, edx
jne 0x4067b5
sub eax, 2
xor edx, edx
mov word [eax], dx
mov dword [ebp], esi
mov eax, dword [esi]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x210]
push eax
call ebx
mov ecx, dword [esi + 0x20c]
push ecx
call ebx
push esi
call fcn.00435d18
add esp, 4
push edi
push ebp
call fcn.004065c0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4072a0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
test ecx, ecx
je 0x407354
cmp word [ecx], 0
je 0x407354
test edi, edi
je 0x407354
push ebx
xor eax, eax
push 0x458014
mov dword [edi], eax
push ecx
mov dword [edi + 4], eax
call fcn.00436549
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40734c
push ebp
push esi
push 2
push 0
push ebx
call fcn.004363fe
push ebx
call fcn.00436306
push ebx
mov ebp, eax
call fcn.004360a3
lea eax, [ebp + 2]
push eax
push 1
call fcn.00435da6
add esp, 0x1c
mov esi, eax
push ebx
test esi, esi
jne 0x407318
call fcn.00435c9c
add esp, 4
lea eax, [esi + 2]
pop esi
pop ebp
pop ebx
pop edi
ret
push 1
push ebp
push esi
mov byte [esi + ebp], 0
mov byte [esi + ebp + 1], 0
call fcn.00436086
mov eax, ebp
mov ecx, esi
call fcn.00407130
push esi
mov dword [edi + 4], eax
call fcn.00435d18
push ebx
call fcn.00435c9c
add esp, 0x18
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret
pop ebx
mov eax, 1
pop edi
ret
or eax, 0xffffffff
pop edi
ret
Function at 0x407e60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push ebx
push eax
push 0x457370
mov ecx, 0x80
lea ebx, [esp + 0x18]
mov dword [esp + 0xc], 0
call fcn.00402d10
add esp, 8
lea eax, [esp + 8]
push eax
push 0x20019
push 0
mov ecx, ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ebx
test eax, eax
jne 0x407eeb
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x458254
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10c]
mov ax, word [esp]
xor ecx, esp
call fcn.00435010
add esp, 0x110
ret
Function at 0x409450
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xa0
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa4]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xb0]
push ecx
push eax
lea edi, [esp + 0x10]
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.00409390
push esi
mov esi, edi
call fcn.004067f0
mov ecx, dword [esp + 0xb0]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.00435010
add esp, 0xa0
ret

Function at 0x409760
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
push ebx
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00436b32
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0xc
lea esi, [esp + 8]
push 0x5c
push esi
call fcn.004367ce
add esp, 8
mov esi, eax
push 0
test esi, esi
je 0x4097c2
lea edx, [esp + 0xc]
xor ecx, ecx
push edx
mov word [esi], cx
call edi
add esi, 2
mov eax, 0x5c
mov word [esi - 2], ax
jne 0x409793
jmp 0x4097c9
lea ecx, [esp + 0xc]
push ecx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x4097db
test al, 0x10
jne 0x4097dd
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00435010
add esp, 0x20c
ret
Function at 0x409a90
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x18
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x1c]
mov esi, eax
push edx
xor eax, eax
push esi
mov word [ecx], ax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x409b41
push edi
push 1
call fcn.00435da6
push edi
push 1
mov ebp, eax
call fcn.00435da6
add esp, 0x10
push ebp
push edi
push 0
push esi
mov ebx, eax
call sub.VERSION.dll_GetFileVersionInfoW
test ebp, ebp
je 0x409b41
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
mov eax, edi
shr eax, 2
xor esi, esi
mov dword [esp + 0x14], eax
test eax, eax
jbe 0x409b41
shr edi, 1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
movzx ecx, word [eax + esi*4 + 2]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push str.StringFileInfo_04x_04x_s
mov ecx, edi
call fcn.00402d10
add esp, 0x10
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x409b4e
inc esi
cmp esi, dword [esp + 0x14]
jb 0x409b02
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edx
mov edx, esi
call fcn.004043e0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x409d40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push esi
push 0x58
mov esi, eax
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00437690
xor ecx, ecx
add esp, 0xc
mov word [esi], cx
mov dword [esp + 8], 0x58
mov dword [esp + 0xc], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x14], 0x45655c
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x38], 0x456584
mov dword [esp + 0x44], 0x456550
mov dword [esp + 0x3c], 0x12
cmp word [0x46fd98], cx
jne 0x409e35
push 0x46fd98
push ecx
push ecx
push 0x8010
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409e2b
mov eax, 0x46fd98
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409dd0
sub eax, edx
sar eax, 1
cmp word [eax*2 + 0x46fd96], 0x5c
je 0x409e2b
mov ecx, 0x104
mov eax, 0x46fd98
cmp word [eax], 0
je 0x409e08
add eax, 2
sub ecx, 1
jne 0x409df4
mov dword [esp + 0x34], ecx
jmp 0x409e3d
test ecx, ecx
je 0x409e2b
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax*2 + 0x46fd98]
mov eax, 0x457ff4
call fcn.00407450
mov dword [esp + 0x34], 0
jmp 0x409e3d
mov dword [esp + 0x34], 0x46fd98
lea edx, [esp + 8]
push edx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x409eaf
mov eax, 0x46fd98
mov edx, 0x104
sub esi, eax
jmp 0x409e60
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x409e80
movzx ecx, word [esi + eax]
test cx, cx
je 0x409e80
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x409e60
jmp 0x409e84
test edx, edx
jne 0x409e87
sub eax, 2
xor edx, edx
push 0x5c
push 0x46fd98
mov word [eax], dx
call fcn.00436cdb
add esp, 8
test eax, eax
je 0x409ea5
xor ecx, ecx
mov word [eax + 2], cx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a300
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push esi
mov esi, eax
push 0x58
lea eax, [esp + 0xc]
push 0
push eax
mov dword [0x46bd08], 0x104
mov dword [0x46bd00], esi
call fcn.00437690
xor ecx, ecx
add esp, 0xc
mov word [esi], cx
mov dword [esp + 8], 0x58
mov dword [esp + 0xc], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x14], 0x45893c
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x38], 0x458614
mov dword [esp + 0x3c], 0x81820
mov dword [esp + 0x4c], 0x40a060
cmp word [0x468c88], cx
je 0x40a388
mov dword [esp + 0x34], 0x468c88
jmp 0x40a411
cmp word [0x46ffa0], cx
jne 0x40a409
push 0x46ffa0
push 0
push 0
push 0x8010
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40a409
mov eax, 0x46ffa0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a3b2
sub eax, edx
sar eax, 1
cmp word [eax*2 + 0x46ff9e], 0x5c
je 0x40a409
mov ecx, 0x104
mov eax, 0x46ffa0
cmp word [eax], 0
je 0x40a3e6
add eax, 2
sub ecx, 1
jne 0x40a3d6
jmp 0x40a409
test ecx, ecx
je 0x40a409
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax*2 + 0x46ffa0]
mov eax, 0x457ff4
call fcn.00407450
mov dword [esp + 0x34], 0x46ffa0
lea edx, [esp + 8]
push edx
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a474
mov eax, 0x46ffa0
mov edx, 0x104
sub esi, eax
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40a460
movzx ecx, word [esi + eax]
test cx, cx
je 0x40a460
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40a434
sub eax, 2
mov word [eax], dx
lea eax, [edx + 1]
pop esi
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x40a467
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [edx + 1]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [esi], ax
pop esi
mov esp, ebp
pop ebp
ret