joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100682f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006f330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005b3d8
mov dword [ebp - 0x14], eax
cmp dword [0x10ca7edc], esi
jne 0x100683e8
push 0x800
push esi
push 0x100076bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10068375
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100684c8
push esi
push esi
push 0x100076bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100684c8
push 0x100076d4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100684c8
push eax
call ebx
push 0x100076e0
push edi
mov dword [0x10ca7edc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076f0
push edi
mov dword [0x10ca7ee0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007704
push edi
mov dword [0x10ca7ee4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10ca7eec], eax
test eax, eax
je 0x100683e5
push 0x10007720
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10ca7ee8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006840d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10068400
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10068422
push 4
pop eax
jmp 0x100684ca
cmp dword [ebp - 0x14], esi
je 0x10068422
push dword [0x10ca7edc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10068407
mov eax, dword [0x10ca7ee8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10068480
cmp dword [0x10ca7eec], edi
je 0x10068480
push eax
call ebx
push dword [0x10ca7eec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10068480
test eax, eax
je 0x10068480
call ecx
test eax, eax
je 0x10068475
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10068475
test byte [ebp - 8], 1
jne 0x10068480
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100684b0
mov eax, dword [0x10ca7ee0]
cmp eax, edi
je 0x100684ad
push eax
call ebx
test eax, eax
je 0x100684ad
call eax
mov esi, eax
test esi, esi
je 0x100684ad
mov eax, dword [0x10ca7ee4]
cmp eax, edi
je 0x100684ad
push eax
call ebx
test eax, eax
je 0x100684ad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10ca7edc]
call ebx
test eax, eax
je 0x100684c8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100684ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10057f0b
mov esp, ebp
pop ebp
ret
Function at 0x402004
Capabilities:
Encode data using xor

Disassembly:
dec edx
mov esi, esi
mov bl, al
mov edx, edi
neg ebx
cmp ebp, 0x97a2
movsx edi, di
push edx
push esi
add eax, 0x8587ebef
mov bl, ch
inc ebx
mov ah, dh
mov edx, 0x82ef1
movzx edi, bh
add edx, 0x9d8
mov ah, 0xbb
cmp edi, ebx
jno 0x40203f
mov esi, edx
test ebx, 0x4fe56342
mov ah, al
inc ah
xor al, dl
test ch, 0x9b
lea edi, [edx]
cmp edi, 0x5981
jo 0x402056
mov al, 0x9f
sub al, dl
and al, 0x8f
movsx eax, bx
sub eax, edi
add esi, 0x793e957e
sub esi, 0x891bc6ef
out dx, eax
invalid
sbb ecx, dword [ecx + 0x7161668]
add byte [0x9d6e], bh
jbe 0x40207b
add al, 0xfd
mov ah, 0x55
not al
pop eax
add eax, 0x29f
neg esi
lea ebp, [eax]
js 0x40208a
test al, ch
inc eax
sub ebp, 0x718b5
test al, 0x83
xchg edi, ebp
cmp esi, 0xfde2
jae 0x4020a2
imul edi, ecx
mov esi, ebp
mov esi, 0x6911940f
push ebp
dec ebx
pop ebx
dec eax
cmp ecx, 0xfc7e
jno 0x4020ba
mov ebp, ebp
and esi, ebx
push ebx
mov ch, 0xd5
pop ecx
or dh, 0x68
xor ecx, 0x83292
mov dl, ah
test esi, 0xea29fa6f
mov edi, esi
mov eax, 0x1f5
mov ebx, edi
xor eax, 0x1fb
inc edx
add eax, 0xa34
sub ecx, eax
add ecx, 0xa41
mov bh, dl
mov eax, 0x6d905ea5
sbb edi, esi
cmp ecx, 0x277
jae 0x4020c7
mov ah, dh
adc dh, bl
call 0x402156
dec ebp
lea eax, [0x2b18d0c9]
mov ebx, 0xc3d87362
add esi, esi
test dl, 0xf9
mov ebx, 0x3e394b1d
test eax, edi
lea edx, [0x895dc272]
lea esi, [0xee2]
add eax, 0xaded2698
sub esi, 0x73f
lea eax, [0xad76226]
jmp 0x402140
sub esi, 1
add ebp, esi
lea eax, [0xcb01ba90]
cmp esi, 0x2eb
jae 0x402136
xchg edx, ecx
mov bh, 0x12
jne 0x40215f
mov cl, dh
cmp ebp, 0xa71
pop ecx
movd mm2, ecx
sbb eax, 0xc48e07aa
mov edi, 0x8637c58e
test esi, ebp
cmp ebp, 0x62d3
movd edi, mm2
lea edx, [0xe741b0e4]
lea ebp, [0x29eda2e]
xchg al, ch
add edi, 0x2008c
sub edi, 0x149
mov dh, 0xe3
inc ebp
imul ebp, ebx, 0x62fbfb61
push 0x6f1c61
push 0x5bf6df
push edi
and ebp, edx
xchg ah, ah
sub ecx, edx
and esi, ecx
cmp ebp, 0x4538
jae 0x4021cc
imul esi, edx
xor al, 0x82
test edx, 0x94db73e
inc ebx
add al, cl
ret
Function at 0x4027ea
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40b028]
je 0x402805
inc edi
cmp edi, 0x17
jb 0x4027f6
cmp edi, 0x17
jae 0x402985
push ebp
push 3
call fcn.00404650
cmp eax, 1
pop ecx
je 0x402951
push 3
call fcn.00404650
test eax, eax
pop ecx
jne 0x402839
cmp dword [0x40b010], 1
je 0x402951
cmp ebx, 0xfc
je 0x402984
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40c058
push ebp
call fcn.004045eb
add esp, 0xc
test eax, eax
je 0x40286f
push esi
push esi
push esi
push esi
push esi
call fcn.00403c89
add esp, 0x14
push 0x104
mov esi, 0x40c071
push esi
push 0
mov byte [0x40c175], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4028b3
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004045eb
add esp, 0xc
test eax, eax
je 0x4028b3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403c89
add esp, 0x14
push esi
call fcn.00404560
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4028f8
push esi
call fcn.00404560
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40c36c
push 0x408934
sub ecx, eax
push ecx
push eax
call fcn.004044a3
add esp, 0x14
test eax, eax
je 0x4028f8
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403c89
add esp, 0x14
jmp 0x4028fa
xor esi, esi
push 0x408930
push ebx
push ebp
call fcn.00404432
add esp, 0xc
test eax, eax
je 0x40291a
push esi
push esi
push esi
push esi
push esi
call fcn.00403c89
add esp, 0x14
push dword [edi*8 + 0x40b02c]
push ebx
push ebp
call fcn.00404432
add esp, 0xc
test eax, eax
je 0x40293c
push esi
push esi
push esi
push esi
push esi
call fcn.00403c89
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00404275
add esp, 0xc
jmp 0x402984
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x402984
cmp ebp, 0xffffffff
je 0x402984
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40b02c]
push dword [esi]
call fcn.00404560
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5e5b3c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e5b57
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124aad7c]
pop edx
test eax, eax
je 0x5e5c29
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e5c18
test dword [ebp - 0x2a8], 1
jne 0x5e5c18
and dword [ebp - 0x2a8], 0x100
jne 0x5e5c18
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2b6b]
pop edx
pop esi
test eax, eax
je 0x5e5bbb
jmp 0x5e5c18
cmp word [esi], 0x5a4d
jne 0x5e5c18
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e5c18
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2b9f]
pop edx
test eax, eax
je 0x5e5c18
lea eax, [ebp - 0x28c]
push eax
call fcn.005e5a98
test eax, eax
jne 0x5e5c11
jmp 0x5e5c18
mov eax, esi
jmp 0x5e5c29
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e5b57
pop esi
leave
ret 4
Function at 0x401080
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 0x401099
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4010d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4010d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4010d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010c0
cmp esi, eax
jb 0x4010da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x401d10
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
push edi
push str.SETUPAPI.DLL
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401d67
push str.SetupUninstallOEMInfA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401d60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call edi
test eax, eax
je 0x401d53
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov al, bl
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x10]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
test eax, eax
je 0x401da4
push str..PNF
push 0x2e
push esi
call fcn.00440407
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call edi
test eax, eax
je 0x401da4
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x406010
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x34c
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
push esi
mov esi, dword [esp + 0x35c]
push edi
mov edi, dword [esp + 0x364]
push esi
lea eax, [esp + 0x258]
push str._s.INF
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4060c3
lea esp, [esp]
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [esp + 0x158]
push str._s_s
push ecx
call ebx
lea edx, [esp + 0x160]
push edi
push edx
call fcn.00405860
add esp, 0x18
test al, al
je 0x4060ac
lea eax, [esp + 0x150]
push 1
push eax
call fcn.00401d10
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406070
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x358]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0044017c
add esp, 0x34c
ret

Function at 0x4060e0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x2b0
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x2ac], eax
mov eax, dword [str.INFOTHER]
mov ecx, dword [0x462988]
mov dx, word [0x46298c]
push edi
mov edi, dword [esp + 0x2b8]
mov dword [esp + 0x9c], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x464e49
mov dword [esp + 0xa4], ecx
mov word [esp + 0xa8], dx
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40615b
xor al, al
pop edi
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.0044017c
add esp, 0x2b0
ret
push esi
push 0x104
lea ecx, [esp + 0x1b4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x40622f
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1b4]
push eax
lea ecx, [esp + 0xb4]
push str._s_s
push ecx
call esi
lea edx, [esp + 0xbc]
push edi
push edx
call fcn.00406010
add esp, 0x18
test al, al
je 0x4061e9
cmp dword [esp + 0x1c], 1
jne 0x40622f
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x1b4]
push ecx
lea edx, [esp + 0xb4]
push str._s_s
push edx
call esi
lea eax, [esp + 0xbc]
push edi
push eax
call fcn.00406010
add esp, 0x18
test al, al
jne 0x406202
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.0044017c
add esp, 0x2b0
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1b4]
push edx
lea eax, [esp + 0xb4]
push str._s_sDRVIDX.BIN
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x2b4]
pop esi
pop edi
xor ecx, esp
mov al, 1
call fcn.0044017c
add esp, 0x2b0
ret
Function at 0x406920
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45b9e1
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4772c4]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x6c]
push eax
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x68]
push ecx
call edi
lea eax, [esp + 0x68]
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406984
sub eax, ebp
push eax
lea edx, [esp + 0x6c]
push edx
lea ecx, [esi + 0xf0]
call fcn.00402bb0
lea eax, [esp + 0x16c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x16c]
push ecx
call edi
mov ebp, 0xf
lea eax, [esp + 0x16c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4069d8
sub eax, edi
push eax
lea edx, [esp + 0x170]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402bb0
push 0x462a70
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x288], ebx
call fcn.00406860
push str._ESINST_TEMP
push eax
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x294], 1
call fcn.00406860
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x10c]
mov byte [esp + 0x288], 2
call fcn.00402ad0
mov edi, 0x10
cmp dword [esp + 0x64], edi
jb 0x406a5a
mov eax, dword [esp + 0x50]
push eax
call fcn.0042f233
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x406a79
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f233
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x406a98
mov edx, dword [esp + 0x18]
push edx
call fcn.0042f233
add esp, 4
cmp dword [esi + 0x104], ebx
je 0x406aac
cmp dword [esi + 0x120], ebx
je 0x406aac
mov al, 1
jmp 0x406aae
xor al, al
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0044017c
add esp, 0x26c
ret
Function at 0x407bb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x44
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x40], eax
cmp dword [0x478a54], 1
mov eax, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
push eax
push 0x40
jne 0x407bfe
cmp byte [0x478a60], 0
je 0x407bed
lea eax, [esp + 0xc]
push eax
push 0x462917
push str.NTx64_Ver
jmp 0x407c0d
lea ecx, [esp + 0xc]
push ecx
push 0x462917
push str.NT_Ver
jmp 0x407c0d
lea edx, [esp + 0xc]
push edx
push 0x462917
push str.9X_Ver
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x407c80
mov eax, dword [0x478a54]
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov cl, byte [0x478a60]
lea edx, [esp + 4]
push 0x462b70
push edx
mov byte [esi + 0xc], cl
call fcn.004419d6
add esp, 8
test eax, eax
je 0x407c80
push 0xa
push 0
push eax
call fcn.004419ac
push 0x462b6c
push 0
mov dword [esi + 4], eax
call fcn.004419d6
add esp, 0x14
test eax, eax
je 0x407c80
push 0xa
push 0
push eax
call fcn.004419ac
add esp, 0xc
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x44]
pop esi
xor ecx, esp
mov al, 1
call fcn.0044017c
add esp, 0x44
ret 8

Function at 0x407d00
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x124]
push 0
push edi
push esi
mov dword [esp + 0x1c], eax
call ebp
test eax, eax
jne 0x407dc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x407d5a
mov eax, 7
jmp 0x407dcf
cmp eax, 0x20
jne 0x407dca
lea ecx, [esp + 0x14]
push ecx
push 0
push str._ESTMP
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x407d9f
push 0
lea edx, [esp + 0x18]
push edx
push esi
call ebp
test eax, eax
je 0x407dca
cmp dword [0x478a54], 0
jne 0x407da6
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0042d2a0
add esp, 8
test al, al
jne 0x407dbf
mov eax, 8
jmp 0x407dcf
push 5
push edi
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x407dbf
mov eax, 8
jmp 0x407dcf
mov edx, dword [esp + 0x10]
mov byte [edx], 1
xor eax, eax
jmp 0x407dcf
mov eax, 9
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044017c
add esp, 0x10c
ret 0x10
Function at 0x408a50
Capabilities:
Create process on windows
Get common file path
Get file version info

Disassembly:
sub esp, 0x374
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push 0x104
lea eax, [esp + 0x170]
push eax
mov byte [esp + 0xf], 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x408bcb
push ebp
push esi
push edi
push str.HHCTRL.OCX
lea ecx, [esp + 0x17c]
push ecx
lea edx, [esp + 0x7c]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x78]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
push edi
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x408bae
push esi
push edi
push 0
lea edx, [esp + 0x80]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x408b17
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x462a70
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], 0x4004a
jae 0x408b19
cmp dword [eax + 0xc], 0x22ab0000
jae 0x408b19
mov bl, 1
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test bl, bl
je 0x408bae
cmp dword [0x478ab8], 0x10
mov eax, dword [0x478aa4]
jae 0x408b40
mov eax, 0x478aa4
push str.LIBHHUPD.EXE__Q
push eax
lea edx, [esp + 0x284]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x40
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00440530
add esp, 0x1c
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x29c]
push eax
push 0
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov al, 1
jne 0x408bb2
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.0044017c
add esp, 0x374
ret
mov ecx, dword [esp + 0x374]
pop ebx
xor ecx, esp
xor al, al
call fcn.0044017c
add esp, 0x374
ret
Function at 0x40b280
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x250], eax
cmp dword [0x478ab4], 0
push esi
mov esi, dword [esp + 0x25c]
push edi
mov edi, ecx
mov dword [esp + 0xc], esi
jne 0x40b2b3
xor al, al
jmp 0x40b405
cmp dword [0x478ab8], 0x10
mov eax, dword [0x478aa4]
jae 0x40b2c6
mov eax, 0x478aa4
push 0x462c70
push 0x462c4c
push eax
lea eax, [esp + 0x160]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x40b3eb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
nop
test byte [esp + 0x1c], 0x10
je 0x40b3c6
push 0x462c60
lea eax, [esp + 0x4c]
push eax
call ebx
test eax, eax
je 0x40b3c6
push 0x462c5c
lea ecx, [esp + 0x4c]
push ecx
call ebx
test eax, eax
je 0x40b3c6
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jne 0x40b3c6
push 0x10
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.004419ac
movzx ebp, ax
add esp, 0xc
mov dword [esp + 0x18], ebp
xor esi, esi
lea ecx, [ecx]
mov ecx, dword [edi + 0x8f8]
test ecx, ecx
je 0x40b3b0
mov eax, dword [edi + 0x8fc]
sub eax, ecx
sar eax, 1
cmp esi, eax
jae 0x40b3b0
test ecx, ecx
je 0x40b39a
mov eax, dword [edi + 0x8fc]
sub eax, ecx
sar eax, 1
cmp esi, eax
jb 0x40b39f
call fcn.004402b5
mov ecx, dword [edi + 0x8f8]
cmp bp, word [ecx + esi*2]
je 0x40b3c6
add esi, 1
jmp 0x40b370
test bp, bp
je 0x40b3c6
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
add ecx, 4
call fcn.0040ae60
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b310
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
pop ebp
pop ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x40b2ac
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 1
je 0x40b2ac
mov al, 1
mov ecx, dword [esp + 0x258]
pop edi
pop esi
xor ecx, esp
call fcn.0044017c
add esp, 0x254
ret 4