joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4411e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5920d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60fe70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00430af0
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00430af0
mov dword [edi + 8], eax
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00430af0
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [edi + 0x2c], 7
mov dword [edi + 0x28], 0
mov word [edi + 0x18], ax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 7
mov word [edi + 0x30], ax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], 7
mov word [edi + 0x48], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x443a00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x60fe70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x20]
xor eax, eax
push esi
push edi
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.00557390
add esp, 0xc
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x22c
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.00557390
add esp, 0xc
mov dword [ebp - 0x2b0], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x443acc
lea eax, [ebp - 0x2b0]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x443acc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x443aa0
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x28c]
push eax
call edi
test eax, eax
je 0x443af2
lea eax, [ebp - 0x2b0]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x443aa0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x443adf
push dword [ebp + 8]
call fcn.00481ffe
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00555894
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2a8]
push esi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x84]
push eax
push 0x59c6c8
call fcn.005570c0
add esp, 8
mov bl, 1
jmp 0x443ace
Function at 0x443f50
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59270b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x60fe70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x238], 0
call fcn.00557390
add esp, 0xc
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x234]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x443fda
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x444004
xor ecx, ecx
jmp 0x44401f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x444010
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00421fd0
push 0x5f0abc
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.00431750
add esp, 0xc
cmp dword [ebp - 0x21c], 8
jb 0x444065
push dword [ebp - 0x230]
call fcn.00481ffe
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00555894
mov esp, ebp
pop ebp
ret

Function at 0x444090
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp - 8]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4440d0
mov ecx, dword [ebp - 8]
mov bl, 1
mov eax, dword [ebp - 4]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [esi], ecx
jmp 0x4440d2
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x4440e3
push dword [ebp + 8]
call fcn.00481ffe
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4440f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592761
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x60fe70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 1
mov word [esi], ax
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push 0
cmovae eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x34
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x44420a
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005403e7
add esp, 4
mov edi, eax
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push edi
push ebx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x444201
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x444201
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5f0abc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x444201
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x59c798
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov ecx, esi
push edi
call fcn.00423350
push edi
call fcn.00481ffe
add esp, 4
cmp dword [ebp + 0x20], 8
jb 0x44421b
push dword [ebp + 0xc]
call fcn.00481ffe
add esp, 4
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

Function at 0x4444a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x60fe70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], cx
push 0x59c5b0
push eax
call fcn.004452f0
add esp, 0xc
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004220d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00555894
mov esp, ebp
pop ebp
ret
Function at 0x444650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59282b
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x60fe70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x828]
xor eax, eax
mov dword [ebp - 0x834], 0
push eax
push 0x5f0a28
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
call fcn.00421fd0
lea eax, [ebp - 0x82c]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x82c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x444707
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5f0a28
mov ecx, esi
call fcn.004220d0
jmp 0x4447ac
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.00557390
add esp, 0xc
mov dword [ebp - 0x830], 0x800
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push 0x59c74c
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x444792
cmp word [ebp - 0x810], ax
jne 0x444763
xor ecx, ecx
jmp 0x44477f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x444770
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00421fd0
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00421b00
cmp dword [ebp - 0x814], 8
jb 0x4447c3
push dword [ebp - 0x828]
call fcn.00481ffe
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00555894
mov esp, ebp
pop ebp
ret
Function at 0x4447e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592882
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x60fe70]
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]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x218], 0
push ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
mov ecx, eax
push 0x5f0a28
mov dword [ebp - 4], 0
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
call fcn.00421fd0
push esi
push 0x100
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push eax
push 0x5f0a28
push edi
push ebx
mov dword [ebp - 0x218], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4448c7
cmp word [ebp - 0x210], 0
jne 0x44489c
xor ecx, ecx
jmp 0x4448b4
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4448a5
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call fcn.00421fd0
mov eax, dword [ebp - 0x214]
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.00555894
mov esp, ebp
pop ebp
ret

Function at 0x4449a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push str.Kill
call fcn.005570c0
add esp, 8
call fcn.005570a6
push dword [ebp + 8]
push 0
push 0x42b
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x4449d0
xor al, al
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov al, 1
pop ebp
ret

Function at 0x4449e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 1
push 0
push 0
push dword [ebp + 0xc]
push str.Open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x444c60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp byte [ebp + 0xc], 0
je 0x444cc1
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00557390
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], 0x5f0a28
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret
push str.wdc.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WdcRunTaskAsInteractiveUser
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x39
push 0
push dword [ebp + 8]
call eax
mov esp, ebp
pop ebp
ret

Function at 0x447120
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592c4e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x60fe70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00434990
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00434990
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x447248
test dl, 0x10
jne 0x447248
mov eax, 1
jmp 0x44724a
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.0044e090
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x44dc10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x44dc41
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x44dc30
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x44eff0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593330
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x60fe70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.00540ea7
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x10]
xor eax, eax
mov dword [ebx], vtable.._AV___LaunchPad_V___Bind__0A_XV_lambda_3bc57a02792396c7bffc01ea0577bb6f______V_std___std__.0
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], 0
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], edi
mov word [edi], ax
call fcn.00421c60
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00421c60
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, ebx
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 0x450510
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx eax, byte [eax]
add eax, 0xffffffde
cmp eax, 0x59
ja case.0x45052a.35
movzx eax, byte [eax + 0x450594]
jmp dword [eax*4 + 0x450578]
mov dword [ebp + 8], edx
pop ebp
jmp fcn.0044f860
mov dword [ebp + 8], edx
pop ebp
jmp fcn.004504a0
mov dword [ebp + 8], edx
pop ebp
jmp fcn.0044f770
push 0
push dword [ebp + 0xc]
push edx
call fcn.00450180
pop ebp
ret 8
mov dword [ebp + 8], edx
pop ebp
jmp fcn.0044fec0
mov dword [ebp + 8], edx
pop ebp
jmp fcn.0044f600
mov dword [ebp + 8], edx
pop ebp
jmp fcn.0044f8c0

Function at 0x450b30
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5934e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x60fe70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.00421c60
xor eax, eax
mov dword [esi + 0x2c], 7
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
push eax
push dword [ebp + 0xc]
mov word [ecx], ax
call fcn.00421c60
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x452210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [eax], 0
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x452227
sub esi, edx
sar esi, 1
je 0x452241
cmp word [ecx + esi*2 - 2], 0x5c
jne 0x452241
dec esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ecx, [esi*2 + 6]
mov dword [ebp - 4], eax
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x452267
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea edi, [esi + esi]
push edi
push dword [ebp + 8]
push ebx
call fcn.00555d00
add esp, 0xc
mov dword [edi + ebx], 0x2e005c
xor eax, eax
mov word [ebx + esi*2 + 4], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
push 0
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
cmp esi, 0xffffffff
je 0x4522b5
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
mov dword [eax], 1
mov eax, 1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 3
pop esi
setne cl
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.HttpDownloadEnd
push 1
push 0x4a3
push 0x59dcc0
push str.CDuiFrameWnd::DownloadSuccess
mov edi, ecx
call fcn.004962c0
push 0xc
mov dword [ebp - 4], 0
call fcn.005550bb
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4527bd
mov byte [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x4527bf
xor esi, esi
call fcn.00448d30
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x4528b0
push 0
push 0
mov dword [esi + 8], 1
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [edi + 0x6c8], 2
je 0x452830
push str.switch
lea ecx, [edi + 0x2c]
mov dword [edi + 0x6c8], 2
call fcn.0045b2e6
test eax, eax
je 0x452830
push str.UpdateWindowSate:kWindow_Installing
push 1
push 0x2a9
push 0x59dcc0
push str.CDuiFrameWnd::UpdateWindowSate
call fcn.004962c0
add esp, 0x14
mov ecx, edi
call fcn.004560c0
push dword [edi + 0x748]
mov ecx, edi
call fcn.00456a20
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x452d80
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x60fe70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x30], 0
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ebx
push eax
push 0x58
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x452de1
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00555894
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x452dce
cmp dword [esi + 0x14], 8
jb 0x452ded
mov esi, dword [esi]
push 0
push 0x50
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x452dce
cmp dword [edi + 0x14], 8
jb 0x452e08
mov edi, dword [edi]
push 0
push 0
push 0
push 0
push edi
push 0x5f0aa8
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
je 0x452dce
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x452dce
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x452f33
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0x20]
push 0
push eax
push 0
push 0
push 0x13
push ebx
mov dword [ebp - 0x20], 0
call esi
mov eax, dword [ebp - 0x20]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005403e7
mov ecx, dword [ebp - 0x20]
mov edi, eax
inc ecx
push ecx
push 0
push edi
call fcn.00557390
add esp, 0x10
lea eax, [ebp - 0x20]
push 0
push eax
push edi
push 0
push 0x13
push ebx
call esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
push edi
mov esi, eax
call fcn.00556fb1
add esp, 4
cmp esi, 0x12e
jne 0x452dce
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0x20]
push 0
push eax
push 0
push 0
push 0x21
push ebx
call edi
mov eax, dword [ebp - 0x20]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005403e7
mov ecx, dword [ebp - 0x20]
mov esi, eax
inc ecx
push ecx
push 0
push esi
call fcn.00557390
add esp, 0x10
lea eax, [ebp - 0x20]
push 0
push eax
push esi
push 0
push 0x21
push ebx
call edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.004220d0
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00423310
lea ecx, [ebp - 0x1c]
call fcn.004221d0
push esi
call fcn.00556fb1
add esp, 4
jmp 0x452f58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
push 1
push 0xe3
push 0x59dcc0
push str.GetRedirectUrl
call fcn.004962c0
add esp, 0x18
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x28]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00555894
mov esp, ebp
pop ebp
ret
Function at 0x454070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593b28
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x60fe70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
lea ecx, [esi + 0x6e4]
push esp
call fcn.00452a80
lea eax, [ebp - 0x28]
push eax
call fcn.00444e00
add esp, 0x1c
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x45418d
lea eax, [ebp - 0x70]
push eax
lea ecx, [esi + 0x6e4]
call fcn.004418a0
push eax
lea ecx, [esi + 0x53c]
mov byte [ebp - 4], 1
call fcn.00459bd0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044f1b0
push 0x59e868
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.00431750
add esp, 0x18
cmp dword [ebp - 0x2c], 8
jb 0x454118
push dword [ebp - 0x40]
call fcn.00481ffe
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x45413d
push dword [ebp - 0x70]
call fcn.00481ffe
add esp, 4
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0x59e878
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00556e8d
mov esi, eax
add esp, 8
test esi, esi
je 0x45417c
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
push ecx
call fcn.005581c6
push esi
call fcn.00557022
add esp, 0x14
cmp dword [ebp - 0x44], 8
jb 0x45418d
push dword [ebp - 0x58]
call fcn.00481ffe
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x45419e
push dword [ebp - 0x28]
call fcn.00481ffe
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00555894
mov esp, ebp
pop ebp
ret