joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485ec8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00485d10
mov eax, dword [0x4dca9c]
cmp byte [eax], 0
je 0x485f5b
mov eax, dword [0x4dcaa4]
call fcn.00492e70
call fcn.00492ac8
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.USER32.DLL_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00482818
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x485fa0
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x485f91
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x4dc934]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dcd1c]
call fcn.00495870
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
mov esp, ebp
pop ebp
ret

Function at 0x4869bc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x486a9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00494378
lea eax, [ebp - 0xc]
call fcn.004947f4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004947a4
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x486a84
mov eax, dword [ebp - 0x10]
call fcn.004928fc
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x486a7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004947a4
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x486a67
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x486aa8
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x486a67
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486a84
mov eax, dword [ebp - 0x18]
call fcn.00492918
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486aa1
lea eax, [ebp - 0xc]
call fcn.004942e0
ret
Function at 0x492d58
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004942e0
test esi, esi
jne 0x492d8e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004943d0
jmp 0x492dac
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00492c5c
mov edi, eax
test esi, esi
je 0x492dac
cmp dword [ebx], 0
je 0x492dac
dec esi
jmp 0x492d95
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4934dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d543c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x493574
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x493554
xor eax, eax
push ebp
push 0x49354d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x493590
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493554
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x4d543c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d543c], ax
mov esp, ebp
pop ebp
ret

Function at 0x494160
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ddcfc], 0
je 0x4941c1
cmp word [0x4dded0], 0xd7b2
jne 0x494189
cmp dword [0x4dded8], 0
jbe 0x494189
mov eax, 0x4ddecc
call dword [0x4ddee8]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4941e8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4d5448], 0
jne 0x4941dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x495a8c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x495cbc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x495b0f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x495cbc
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x495b0f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x495cd8
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x495b98
xor eax, eax
push ebp
push 0x495b91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004958c8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x495b76
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x495cf8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x495b76
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495b98
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x495cb2
cmp byte [ebp - 0xd], 0
jne 0x495bdf
cmp byte [ebp - 0x12], 0
je 0x495cb2
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x495bf8
dec ebx
cmp byte [ebx], 0x2e
je 0x495c07
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x495bf7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x495cb2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x495c44
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x495cb2
cmp byte [ebp - 0xd], 0
je 0x495cb2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x495cb2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496438
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4de274], 1
jae 0x4964cc
call fcn.004926d8
mov byte [0x4d5438], 2
mov dword [0x4ddcc0], 0x4cfb0e
mov dword [0x4ddcc4], 0x4cfb20
mov byte [0x4ddcfe], 2
mov dword [0x4ddcac], 0x495274
call fcn.004934ac
test al, al
je 0x496484
call fcn.004934dc
call fcn.004935a0
mov word [0x4ddd04], 0xd7b0
mov word [0x4dded0], 0xd7b0
mov word [0x4de09c], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4ddcf0], eax
call fcn.00490f9c
mov dword [0x4ddcec], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x4de278], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4ddce4], eax
ret

Function at 0x4a8fdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a8ff8
call fcn.004aa140
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4a9017
test bl, 1
je 0x4a9017
call fcn.004b00ec
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4acdb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a7e2c
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004a7ebc
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a7ebc
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x4d9cd5
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a7e2c
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004a7ebc
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004ae01c
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4acec5
push esi
call fcn.004a7ebc
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004a7ebc
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004a7abc
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4ace9c
xor eax, eax
jmp 0x4acf4c
push esi
call fcn.004a7ebc
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004a7ebc
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004a7d84
add esp, 0xc
jmp 0x4acf05
mov edi, dword [ebx + 0x24]
push edi
call fcn.004a7ebc
pop ecx
push eax
push esi
call fcn.004a7ebc
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004a7ebc
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004a7adc
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4acf05
xor eax, eax
jmp 0x4acf4c
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004a7e2c
add esp, 8
push 0x4d9cd7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004a7e2c
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004a7e2c
add esp, 8
push 0x4d9cd9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004a7e2c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b0080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4b00ad
jmp 0x4b00e4
call fcn.004b0030
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004a7ebc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004a7ebc
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b0164
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4da36c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4b023e
cmp dword [0x4da368], 0
jne 0x4b023e
cmp dword [0x4da54c], 0
je 0x4b01f8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004aff30
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b01de
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004aff30
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b01de
lea ebx, [ebp - 0x84]
jmp 0x4b01df
inc ebx
call fcn.004b0120
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4b0279
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4da370
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004a7ebc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4da373
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4b0279
cmp dword [0x4da368], 0
je 0x4b0258
cmp dword [0x4da368], 0xffffffff
je 0x4b0279
push esi
call dword [0x4da368]
pop ecx
mov eax, dword [0x4da36c]
test eax, eax
je 0x4b0279
cmp dword [0x4da36c], 0xffffffff
je 0x4b0279
cmp byte [eax], 0
je 0x4b0279
push esi
push eax
call fcn.004b0080
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0a10
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4e1174], 0
jne 0x4b0a91
cmp dword [0x4e1194], 0
jne 0x4b0a40
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4e1194], eax
test eax, eax
jne 0x4b0a40
push str.GetEnvironmentStrings_failed
call fcn.004b0290
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4e1194]
jmp 0x4b0a54
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004a7ebc
pop ecx
mov edi, eax
test eax, eax
jne 0x4b0a4c
lea edi, [ebp + 1]
push edi
call fcn.004a7abc
pop ecx
mov ebx, eax
mov dword [0x4e1178], ebx
test ebx, ebx
jne 0x4b0a7e
xor eax, eax
jmp 0x4b0b54
push edi
mov edx, dword [0x4e1194]
push edx
push ebx
call fcn.004a7cf0
add esp, 0xc
jmp 0x4b0ab1
xor esi, esi
mov ebx, dword [0x4e1174]
jmp 0x4b0aab
push eax
call fcn.004a7ebc
pop ecx
test eax, eax
jne 0x4b0aa7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b0a9b
lea ebx, [esi + 4]
push 4
mov dword [0x4e117c], ebx
inc ebx
push ebx
call fcn.004a777c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4b0ad4
xor eax, eax
jmp 0x4b0b54
cmp dword [0x4e1174], 0
jne 0x4b0b05
xor esi, esi
mov ebx, dword [0x4e1178]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4b0af6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004a7ebc
pop ecx
mov edi, eax
test eax, eax
jne 0x4b0aec
jmp 0x4b0b36
xor esi, esi
mov ebx, dword [0x4e1174]
mov eax, dword [esp]
mov edi, eax
jmp 0x4b0b30
push eax
call fcn.004a7ebc
pop ecx
test eax, eax
je 0x4b0b25
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4b0b29
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b0b14
mov eax, dword [0x4e1174]
test eax, eax
je 0x4b0b46
push eax
call fcn.004a7acc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4e1174], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4bdcd0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4bdcfe
mov eax, ebx
call fcn.004be784
cmp dword [ebx + 0x40], 0
je 0x4bdcf7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4bdd6f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4bdd61
cmp dword [ebx + 8], 0
je 0x4bdd20
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4bdd32
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4bdd61
cmp dword [ebx + 8], 0
je 0x4bdd13
cmp eax, 3
je 0x4bdd45
dec eax
jne 0x4bdd13
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4bdd13
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4bdd13
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4bdd8d
cmp dword [ebx + 0x14], 0xcc
je 0x4bdd8d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004bdd98
pop ebx
ret
Function at 0x401959
Capabilities:
Check if file exists
Copy file
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x3b4]
sub esp, 0x434
mov eax, dword [0x410eec]
push ebx
push esi
push edi
mov dword [ebp + 0x3b0], eax
xor eax, eax
xor esi, esi
mov word [ebp + 0x39c], si
lea edi, [ebp + 0x39e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp + 0x39c]
push eax
push str.InstallSource
mov dword [ebp - 0x7c], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp + 0x39c]
push 0x40c434
push eax
call fcn.0040483d
test eax, eax
pop ecx
pop ecx
je 0x4019d9
lea eax, [ebp + 0x39c]
push 0x40c430
push eax
call fcn.0040483d
test eax, eax
pop ecx
pop ecx
je 0x401a5c
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x78], esi
mov ebx, 0x40f050
mov esi, 0x208
lea eax, [ebp - 0x74]
push 0x411c40
push eax
call fcn.00404725
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x74]
push eax
call edi
lea eax, [ebp + 0x194]
push 0x411a38
push eax
call fcn.00404725
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x194]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401a49
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
and dword [ebp - 0x7c], eax
je 0x401b0f
add dword [ebp - 0x78], esi
add ebx, esi
cmp dword [ebp - 0x78], 0x1658
jb 0x4019ec
jmp 0x401b0f
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], 0x40f050
mov esi, 0x208
lea eax, [ebp - 0x74]
push 0x411c40
push eax
call fcn.00404725
pop ecx
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call edi
lea eax, [ebp + 0x194]
push 0x411628
push eax
call fcn.00404725
pop ecx
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp + 0x194]
push eax
call edi
lea eax, [ebp + 0x194]
push eax
call ebx
test eax, eax
jne 0x401adb
lea eax, [ebp + 0x194]
push 0x411a38
push eax
call fcn.00404725
pop ecx
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp + 0x194]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
call ebx
test eax, eax
jne 0x401afc
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
and dword [ebp - 0x7c], eax
je 0x401b0f
add dword [ebp - 0x80], esi
add dword [ebp - 0x78], esi
cmp dword [ebp - 0x80], 0x1658
jb 0x401a77
mov ecx, dword [ebp + 0x3b0]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
pop ebx
call fcn.00403dff
add ebp, 0x3b4
leave
ret
Function at 0x41c878
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c51a

Function at 0x41c883
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c6a9

Function at 0x41cc7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040bd00
mov eax, dword [0x438010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041a2b2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ccbf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ce1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428750
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4abd38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041de4d
mov ecx, dword [esi*4 + 0x4abd38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ce14
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ce14
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ce14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041de4d
add esp, 0x14
test edx, edx
jl 0x41ce14
jg 0x41cd8a
test eax, eax
jb 0x41ce14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ce14
jl 0x41cda4
cmp dword [ebp - 0x1008], eax
ja 0x41ce14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41cdc2
test ebx, ebx
je 0x41cdfb
cmp ecx, edi
jae 0x41cdfb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41cddc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41cde8
cmp byte [ecx + 1], 0xa
jne 0x41cde8
inc ecx
jmp 0x41cde8
movzx eax, al
movsx eax, byte [eax + 0x4382a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41cdc2
cmp edx, ebx
jne 0x41cdc2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ce19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b18c
leave
ret
Function at 0x41d2eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4abd38]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d32b
cmp byte [ebx], 0xa
jne 0x41d32b
or byte [eax + edi + 0x28], 4
jmp 0x41d330
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d42e
mov al, byte [edx]
cmp al, 0x1a
je 0x41d410
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d35f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d384
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d38e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41d341
jmp 0x41d42e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d40b
cmp dword [ebp - 0xc], 0
je 0x41d40b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4abd38]
test byte [eax + edi + 0x28], 0x48
je 0x41d3e5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d3d0
mov byte [esi], dl
jmp 0x41d3e1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4abd38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d42e
cmp byte [ebp - 1], 0xa
jne 0x41d3f4
cmp esi, ebx
jne 0x41d3f4
mov byte [esi], 0xa
jmp 0x41d42d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041de6b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d42e
mov byte [esi], 0xd
jmp 0x41d42d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4abd38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d42a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d42e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret