joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x42c298
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x437a60]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [esi + 0x10]
lea ebx, [esi + 0x10]
mov dword [ebp - 0x14], edi
test edi, edi
je 0x404765
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x24]
add esi, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x104
mov byte [ebp - 4], 1
test eax, eax
je 0x404796
mov eax, dword [eax]
test eax, eax
je 0x404796
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x404839
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40481e
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp]
push eax
push 0
push 0
push str.ProgramFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404814
lea eax, [ebp]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4047e0
sub eax, edx
cmp byte [ebp + eax - 1], 0x5c
je 0x404809
lea edi, [ebp]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4047f4
mov dx, word [0x42e614]
mov word [edi], dx
mov edi, dword [ebp - 0x14]
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004037d0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
test eax, eax
je 0x4048aa
mov eax, dword [eax]
test eax, eax
je 0x4048aa
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4048aa
cmp ebx, esi
je 0x404856
mov ecx, ebx
call fcn.00403750
mov eax, dword [esi]
mov dword [ebx], eax
test eax, eax
je 0x404856
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.00403890
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4048a0
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4048a0
mov eax, dword [edi]
test eax, eax
je 0x404887
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x404897
push eax
call fcn.00417eb0
add esp, 4
push edi
call fcn.00417eb0
add esp, 4
mov al, 1
jmp 0x4048b4
lea ecx, [ebp - 0x14]
call fcn.00403750
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00418a11
add ebp, 0x108
mov esp, ebp
pop ebp
ret
Function at 0x4048e0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x42c2c8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x437a60]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [esi + 0x10]
lea ebx, [esi + 0x10]
mov dword [ebp - 0x14], edi
test edi, edi
je 0x404935
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x28]
add esi, 0x28
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
test eax, eax
je 0x40495b
mov eax, dword [eax]
test eax, eax
je 0x40495b
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x4049b0
push 0x104
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x404a21
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404978
sub eax, edx
cmp byte [ebp + eax - 1], 0x5c
je 0x4049a5
lea edi, [ebp]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404990
mov dx, word [0x42e614]
mov word [edi], dx
mov edi, dword [ebp - 0x14]
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004037d0
cmp ebx, esi
je 0x4049cd
mov ecx, ebx
call fcn.00403750
mov eax, dword [esi]
mov dword [ebx], eax
test eax, eax
je 0x4049cd
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.00403890
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x404a17
lea edx, [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x404a17
mov eax, dword [edi]
test eax, eax
je 0x4049fe
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x404a0e
push eax
call fcn.00417eb0
add esp, 4
push edi
call fcn.00417eb0
add esp, 4
mov al, 1
jmp 0x404a2b
lea ecx, [ebp - 0x14]
call fcn.00403750
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00418a11
add ebp, 0x108
mov esp, ebp
pop ebp
ret
Function at 0x4053e0
Capabilities:
Copy file

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
xor esi, esi
test eax, eax
je 0x4053fe
mov eax, dword [eax]
test eax, eax
je 0x4053fe
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x405403
pop edi
mov al, 1
pop esi
ret
mov ecx, edi
call fcn.00405020
test al, al
je 0x405465
mov ecx, edi
call fcn.00402f70
test al, al
je 0x405465
mov esi, dword [edi + 0x10]
push ebx
test esi, esi
je 0x405437
cmp dword [esi + 4], 0
jne 0x405432
mov eax, dword [esi]
push eax
call fcn.00417b60
mov dword [esi + 4], eax
mov ebx, dword [esi + 4]
jmp 0x405439
xor ebx, ebx
mov esi, dword [edi + 0xc]
test esi, esi
je 0x405456
cmp dword [esi + 4], 0
jne 0x405451
mov ecx, dword [esi]
push ecx
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x405458
xor esi, esi
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
pop ebx
xor eax, eax
cmp esi, 1
pop edi
sete al
pop esi
ret

Function at 0x405470
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
dec eax
cmp eax, 4
ja case.default.0x405480
jmp dword [eax*4 + 0x405568]
push 0
push str.Do_Action_perform_Execute.
call fcn.0040ae10
add esp, 8
mov ecx, esi
call fcn.004053e0
test al, al
je 0x4054a8
mov ecx, esi
call fcn.00404310
push 0
push str.Do_Action_completed_Execute_It.
call fcn.0040ae10
add esp, 8
pop esi
ret
push 0
push str.Do_Action_perform_Register.
call fcn.0040ae10
add esp, 8
mov ecx, esi
call fcn.004053e0
test al, al
je 0x4054da
mov ecx, esi
call fcn.00404040
push 0
push str.Do_Action_completed_register_It.
call fcn.0040ae10
add esp, 8
pop esi
ret
push 0
push str.Do_Action_performing_Set_Key.
call fcn.0040ae10
add esp, 8
mov ecx, esi
call fcn.00403470
push 0
push str.Do_Action_completed_Set_Key.
call fcn.0040ae10
add esp, 8
pop esi
ret
push 0
push str.Do_Action_performing_Unzip.
call fcn.0040ae10
add esp, 8
mov ecx, esi
call fcn.004052b0
push 0
push str.Do_Action_completed_Unzip.
call fcn.0040ae10
add esp, 8
pop esi
ret
push 0
push str.Do_Action_performing_Run_Client.
call fcn.0040ae10
add esp, 8
mov ecx, esi
call fcn.004039a0
push 0
push str.Do_Action_completed_Run_Client.
call fcn.0040ae10
add esp, 8
mov ecx, esi
pop esi
jmp fcn.004053e0
Function at 0x407670
Capabilities:
Connect to http server
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1abc], 0
je 0x407680
xor eax, eax
pop esi
ret
mov edx, dword [esi + 0x1258]
mov eax, dword [edx - 0xc]
mov ecx, eax
neg ecx
sbb ecx, ecx
push 0
and ecx, edx
neg eax
push 0
sbb eax, eax
push ecx
and eax, 3
push eax
push str.VCSoapClient
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x1ab8], eax
test eax, eax
je 0x407721
cmp dword [esi + 0x1264], 0
push edi
lea edi, [esi + 0x1264]
je 0x4076ef
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
push edi
push 2
push eax
call ebx
mov eax, dword [esi + 0x1ab8]
push 4
push edi
push 6
push eax
call ebx
mov ecx, dword [esi + 0x1ab8]
push 4
push edi
push 5
push ecx
call ebx
pop ebx
movzx eax, word [esi + 0x122a]
push 0
push 0
push 3
push 0
push 0
push eax
mov eax, dword [esi + 0x1ab8]
lea edx, [esi + 0x25]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x1abc], eax
pop edi
test eax, eax
jne 0x40767c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x1268], eax
call fcn.004064e0
mov eax, 0x80004005
pop esi
ret

Function at 0x409200
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx]
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40928e
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [esp + 0x14]
lea edi, [eax + 1]
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or edx, eax
jge 0x409243
push edi
mov ecx, esi
call fcn.00406fe0
mov eax, dword [esi]
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409268
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40926c
push ecx
push eax
call fcn.0041991c
add esp, 8
test eax, eax
jl 0x409284
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x409284
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
push 0x80070057
call fcn.004057b0
mov ecx, dword [esp + 0xc]
call fcn.00406f10
xor eax, eax
pop ebx
ret 8
Function at 0x411680
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x437a60]
xor eax, esp
mov dword [esp + 0x108], eax
push 0
push str.Entering_SetInstallPath_Method
call fcn.0040ae10
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00418dd0
add esp, 0x14
push 1
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0x26
push str.Select_Install_Path
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00413d30
add esp, 0x18
test al, al
je 0x4117ac
lea eax, [esp + 4]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4116f0
sub eax, edx
cmp byte [esp + eax + 3], 0x5c
je 0x411719
push edi
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411706
mov dx, word [0x42e614]
mov word [edi], dx
pop edi
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARECABC__Inc.Company
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41179d
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411748
sub eax, edx
mov edx, dword [esp]
push eax
lea ecx, [esp + 8]
push ecx
push 1
push 0
push str.InstallPath
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x411793
push eax
push str.Leaving_SetInstallPath_Successfully
call fcn.0040ae10
add esp, 8
mov al, 1
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00418a11
add esp, 0x10c
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.Leaving_SetInstallPath_with_failure
call fcn.0040ae10
add esp, 8
mov ecx, dword [esp + 0x108]
xor ecx, esp
xor al, al
call fcn.00418a11
add esp, 0x10c
ret
Function at 0x412d30
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
mov eax, dword [0x437a60]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push 1
push str.Starting__Unwrap_utility...
call fcn.0040ae10
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 2
mov byte [0x438ec0], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 4]
push eax
push ebx
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x412dec
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ebx, [ebx]
push 0xa
lea ecx, [esp + 0x38]
push str.unwrap.exe
push ecx
call fcn.0041964a
add esp, 4
push eax
call fcn.0041b233
add esp, 0xc
test eax, eax
jne 0x412dda
call esi
cmp dword [esp + 0x18], eax
je 0x412dda
call esi
push eax
push 1
push 0x100001
call edi
push 0
push eax
call ebp
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412da0
pop edi
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x13c]
pop ebx
test eax, eax
jne 0x412e06
mov byte [0x438ec1], al
jmp 0x412e40
mov ecx, str._Startup
jmp 0x412e10
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x412e30
test dl, dl
je 0x412e2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x412e30
add eax, 2
add ecx, 2
test dl, dl
jne 0x412e10
xor eax, eax
jmp 0x412e35
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412e40
mov byte [0x438ec1], 1
call fcn.004110a0
test al, al
je 0x412f20
call fcn.00406710
push 0
test eax, eax
je 0x412eee
push str.User_has_admin_rights.
call fcn.0040ae10
push 0
push str.ParseXML_returned_true.
call fcn.0040ae10
add esp, 0x10
cmp byte [0x438ec0], 0
je 0x412e9e
push 0
push str.Prompt_for_path_set_to_true.
call fcn.0040ae10
call fcn.00411680
push 0
push str.SetInstallPath_completed.
call fcn.0040ae10
add esp, 0x10
call fcn.00412000
test al, al
je 0x412f2f
call fcn.004117d0
test al, al
je 0x412f2f
push 0
push str.Registry_Key_Added_before_reboot.__...
call fcn.0040ae10
add esp, 8
call fcn.00411820
test al, al
je 0x412f2f
push 0
push str.Preparing_to_start_PostInstall.__...
call fcn.0040ae10
call fcn.00411a50
push 0
push str.PostInstall_completed......
call fcn.0040ae10
add esp, 0x10
jmp 0x412f2f
push str.User_does_not_have_admin_rights._Terminating...
call fcn.0040ae10
mov eax, dword [0x437180]
add esp, 8
cmp dword [0x437194], 0x10
jae 0x412f0e
mov eax, 0x437180
push 0x10
push eax
push str.You_do_not_have_sufficient_rights_to_install_this_application
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x412f2f
push 0
push str.Error_in_parsing_InstallWrapCfg.xml_file.
call fcn.0040ae10
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
push str.Application_terminated_...
call fcn.0040ae10
mov ecx, dword [esp + 0x130]
add esp, 8
xor ecx, esp
xor eax, eax
call fcn.00418a11
add esp, 0x12c
ret 0x10
Function at 0x413ba0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x444
mov eax, dword [0x437a60]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
mov ebx, dword [esp + 0x450]
push ebp
mov ebp, dword [esp + 0x450]
push esi
mov esi, dword [esp + 0x460]
push edi
mov edi, dword [esp + 0x460]
test esi, esi
je 0x413d11
cmp dword [esp + 0x468], 0x104
jb 0x413d11
push 0x208
lea eax, [esp + 0x44]
push 0
push eax
mov byte [esi], 0
call fcn.00418dd0
add esp, 0xc
test edi, edi
je 0x413c22
cmp byte [edi], 0
je 0x413c22
push 0x206
lea ecx, [esp + 0x44]
push edi
push ecx
call fcn.0041b577
add esp, 0xc
jmp 0x413c32
lea edx, [esp + 0x40]
push edx
push 0x206
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov cl, byte [esp + 0x46c]
lea eax, [esp + 0x40]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
lea edx, [esp + 0x34]
push eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x40], cl
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], 0x41
mov dword [esp + 0x2c], 0x4139a0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov edi, eax
xor bl, bl
test edi, edi
je 0x413d0d
lea ecx, [esp + 0x248]
push ecx
push edi
mov byte [esp + 0x250], bl
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x413cd9
mov ebx, dword [esp + 0x468]
push ebx
push 0
push esi
call fcn.00418dd0
dec ebx
push ebx
lea edx, [esp + 0x258]
push edx
push esi
call fcn.0041b577
add esp, 0x18
mov bl, 1
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x413d0d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413d0d
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, bl
jmp 0x413d13
xor al, al
mov ecx, dword [esp + 0x450]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418a11
add esp, 0x444
ret

Function at 0x413d30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x437a60]
xor eax, esp
mov dword [esp + 0x108], eax
mov ecx, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x120]
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x103
lea edx, [esp + 0x15]
push 0
push edx
mov byte [esp + 0x1c], 0
call fcn.00418dd0
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
push edx
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push esi
call fcn.00413ba0
mov ecx, dword [esp + 0x12c]
add esp, 0x18
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418a11
add esp, 0x10c
ret
Function at 0x416fb0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
xor esi, esi
push 0x8001
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [esp + 0x18]
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x417066
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x417052
test edi, edi
je 0x417052
push ebp
lea ebp, [edi + 1]
push ebp
call fcn.0041a23d
mov esi, eax
add esp, 4
test esi, esi
je 0x417051
push ebp
push 0
push esi
call fcn.00418dd0
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417048
cmp dword [esp + 0x14], edi
jne 0x417048
mov ecx, dword [esp + 0x18]
push 0
push esi
call fcn.00416f00
mov dword [esp + 0x10], eax
push esi
call fcn.00419dd0
add esp, 4
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x418a11
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437a60]
jne 0x418a1b
repz ret
jmp fcn.0041d9ec

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41b5c2
call fcn.0041aa10
mov dword [eax], esi
call fcn.0041a9fd
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004185a9
add esp, 0x14
push 0x16
pop eax
jmp 0x41b617
test dword [ebp + 0xc], 0xfffffff9
jne 0x41b59e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b5ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041aa23
pop ecx
call fcn.0041a9fd
mov eax, dword [eax]
jmp 0x41b617
test al, 0x10
jne 0x41b615
test al, 1
je 0x41b615
test byte [ebp + 0xc], 2
je 0x41b615
call fcn.0041aa10
mov dword [eax], 5
call fcn.0041a9fd
mov dword [eax], 0xd
jmp 0x41b5e6
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4261b5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041c71f
and dword [ebp - 4], 0
cmp dword [0x4399e4], 0
mov ebx, eax
jne 0x426266
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x426317
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4326bc
push edi
call esi
test eax, eax
je 0x426317
push eax
call fcn.0041c6ad
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4399e4], eax
call esi
push eax
call fcn.0041c6ad
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4399e8], eax
call esi
push eax
call fcn.0041c6ad
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4399ec], eax
call esi
push eax
call fcn.0041c6ad
pop ecx
mov dword [0x4399f4], eax
test eax, eax
je 0x426266
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041c6ad
pop ecx
mov dword [0x4399f0], eax
mov eax, dword [0x4399f0]
cmp eax, ebx
je 0x4262be
cmp dword [0x4399f4], ebx
je 0x4262be
push eax
call fcn.0041c728
push dword [0x4399f4]
mov esi, eax
call fcn.0041c728
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4262be
test edi, edi
je 0x4262be
call esi
test eax, eax
je 0x4262b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4262b5
test byte [ebp - 0xc], 1
jne 0x4262be
or dword [ebp + 0x10], 0x200000
jmp 0x4262f7
mov eax, dword [0x4399e8]
cmp eax, ebx
je 0x4262f7
push eax
call fcn.0041c728
pop ecx
test eax, eax
je 0x4262f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4262f7
mov eax, dword [0x4399ec]
cmp eax, ebx
je 0x4262f7
push eax
call fcn.0041c728
pop ecx
test eax, eax
je 0x4262f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4399e4]
call fcn.0041c728
pop ecx
test eax, eax
je 0x426317
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x426319
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42baf5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x439abc], 0
push esi
jne 0x42ba68
call fcn.0042b98e
test eax, eax
je 0x42baab
mov eax, dword [0x439abc]
cmp eax, 1
jne 0x42ba89
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42baab
pop esi
ret
push eax
call dword [0x439ac4]
test eax, eax
jne 0x42baf3
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42baaf
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x439abc]
call dword [0x439ac4]
mov edi, eax
test edi, edi
je 0x42bad4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42baf0
mov edi, esi
add esi, 0xff0
push edi
push dword [0x439abc]
call dword [0x439ac0]
add edi, 0x10
cmp edi, esi
jb 0x42badc
mov eax, edi
pop edi
pop esi
ret
jmp 0x42ba55