joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453330
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457741
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x46f940]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push 0x462cd8
mov dword [ebp - 0x18], 0
call fcn.00406110
push 0x462cd8
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00406110
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x45343b
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov esi, dword [ebp - 0x14]
xor eax, eax
test edx, edx
je 0x4533d5
lea ecx, [esi + 8]
cmp dword [ecx], 0
je 0x4533cf
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x4533c0
jmp 0x4533d5
lea eax, [eax + eax*2]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x10], 0
cmp edi, 0xffffffff
je 0x453434
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
push 5
push edi
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x453431
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x453403
xor ecx, ecx
jmp 0x45341f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x453410
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453410
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00406010
push dword [ebp - 0x10]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45345c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
Function at 0x453470
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x46f940]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x824], edx
push ebx
mov word [ebp - 0x81c], ax
mov ebx, ecx
lea eax, [ebp - 0x81c]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4535c1
mov eax, dword [0x462dec]
push esi
mov dword [ebp - 0xc], eax
mov ax, word [0x462df0]
push edi
mov word [ebp - 8], ax
lea edi, [ebp - 0x81c]
mov dword [ebp - 0x820], 0
mov ax, word [edi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4535a1
lea esi, [ebp - 0x214]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x453501
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x4535a1
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.0042241e
add esp, 0xc
test eax, eax
jne 0x45353d
cmp word [ebx + esi*2], 0x5c
jne 0x45353d
lea ecx, [eax + 1]
jmp 0x45353f
xor ecx, ecx
mov dword [ebp - 0x820], ecx
test ecx, ecx
je 0x4535a7
lea eax, [ebx + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00407500
lea ecx, [ebp - 0x41c]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453573
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7ffffffe
jbe 0x453591
xor eax, eax
mov word [ebx], ax
jmp 0x4535a1
push ecx
lea eax, [ebp - 0x41c]
push eax
push ecx
mov ecx, ebx
call fcn.00452de0
mov ecx, dword [ebp - 0x820]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4535a7
test ecx, ecx
jne 0x4535bf
cmp word [edi], cx
jne 0x4534d3
pop edi
pop esi
push ebx
push 0x104
push dword [ebp - 0x824]
call fcn.0042262b
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop ebx
call fcn.00420375
mov esp, ebp
pop ebp
ret
Function at 0x453870
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4577c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x46f940]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4539e9
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push esi
call fcn.00415ee7
test eax, eax
jne 0x4538c7
push str.Fatal_Error:_MFC_initialization_failed_n
jmp 0x4539ee
call fcn.0040d1d0
push 0x462cd8
lea ecx, [ebp - 0x14]
call fcn.00406110
push 0x462cd8
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00406110
mov byte [ebp - 4], 1
mov edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x453919
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00405f30
mov eax, dword [ebp - 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.004209bf
mov edx, eax
add esp, 8
test edx, edx
js 0x4539df
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4539df
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
push 0x5c
mov word [eax + edx*2], cx
push dword [ebp - 0x10]
call fcn.0042187f
add esp, 8
test eax, eax
je 0x45397c
sub eax, dword [ebp - 0x10]
sar eax, 1
test eax, eax
jle 0x45397c
sub esp, 8
call fcn.00453ed0
jmp 0x453989
push str.Cannot_get_root_folder._Quit._n
call fcn.004226ce
add esp, 4
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4539ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4539cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00406610
push str.Fatal_Error:_GetModuleHandle_failed_n
call fcn.004226ce
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x411f5d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x412080
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.Soviet_aristo_baristo
mov ebp, 0x4f9448
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x55
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xbc
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x2f
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x61
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x4c
push ebx
push ebp
call fcn.00403490
add esp, 0x44
push eax
call fcn.004013b6
xor byte [esi + edi], 0xca
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 7
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x95
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x71
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xca
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xef
add esp, 0x40
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x50
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x91
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd0
add esp, 0x24
inc esi
cmp esi, dword [esp + 0x18]
jb 0x411f7b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x402946
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x412674
sub esp, 0x20
mov eax, dword [0x4f7024]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add ebx, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126f3
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401e2e
push str.Hardline
push 0x4f9530
call fcn.00402d60
push eax
call fcn.00406082
lea eax, [esp + 0x20]
push 0x36c
push eax
call fcn.00402cc5
add esp, 0x14
cmp eax, dword [esp + 0x38]
je 0x41270d
lea ecx, [esp + 0x14]
add ebx, 4
call fcn.00402982
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4126a5
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403030
add esp, 0x20
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402982
jmp 0x4126f5
Function at 0x401def
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
call dword [sym.imp.MSVCR80.dll__tempnam]
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
mov ebp, eax
mov dword [esp + 0x1c], ebp
call esi
mov edi, dword [sym.imp.MSVCR80.dll_freopen]
add eax, 0x40
push eax
mov ebx, 0x4078c0
push ebx
push ebp
call edi
call esi
add eax, 0x20
push eax
push ebx
push ebp
call edi
add esp, 0x20
mov ebx, 0x40c920
call fcn.0040595e
mov edi, eax
test edi, edi
jne 0x401e50
push str.Cant_load_Python_for_pre_install_script
call fcn.00401613
or eax, 0xffffffff
jmp 0x401f45
push dword [esp + 0x20]
call fcn.0040595e
pop ecx
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
call esi
mov edi, dword [sym.imp.MSVCR80.dll_fflush]
add eax, 0x40
push eax
call edi
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_fclose]
add eax, 0x40
push eax
call ebp
call esi
add eax, 0x20
push eax
call edi
call esi
add eax, 0x20
push eax
call ebp
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x401f37
push str.Running_the_pre_installation_script_failed_r_n
call sub.MSVCR80.dll_strlen
mov dword [esp], 0x407860
push dword [esp + 0x18]
mov edi, eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
mov ebx, eax
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push ebx
mov dword [esp + 0x34], eax
call esi
mov eax, dword [esp + 0x34]
lea eax, [eax + edi + 1]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
je 0x401f2c
push str.Running_the_pre_installation_script_failed_r_n
push esi
call sub.MSVCR80.dll_strcpy
push ebx
push dword [esp + 0x1c]
lea eax, [esi + edi]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add eax, esi
push ebx
mov byte [eax + edi], 0
call ebp
push esi
call fcn.00401613
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x24
jmp 0x401f37
push str.Out_of_memory_
call fcn.00401613
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_remove]
mov eax, dword [esp + 0x1c]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40220d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x40c17c]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
mov dword [ebp - 0x78], ecx
lea ecx, [edx + eax - 0x16]
sub eax, dword [ecx + 0x10]
push esi
sub eax, dword [ecx + 0xc]
push edi
mov edi, dword [ebp + 0xa0]
sub eax, 0x22
lea esi, [edx + eax]
xor edx, edx
mov dword [edi], edx
mov dword [ebx], edx
cmp dword [ecx], 0x6054b50
mov dword [ebp - 0x80], edi
jne 0x40234d
cmp dword [esi], 0x1234567b
je 0x402277
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.0040595e
pop ecx
jmp 0x40234f
cmp eax, edx
jl 0x40234d
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x402293
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x40ca30], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp - 0x78]
sub eax, dword [esi + 8]
mov edi, esi
mov dword [ecx], eax
sub edi, dword [esi + 4]
push 0x104
call dword [sym.imp.MSVCR80.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x7c], eax
je 0x40234d
lea eax, [ebp - 0x74]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x40233b
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push 0
push 0x407940
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x40233b
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x7c]
push 2
call fcn.0040595e
add esp, 0x1c
test eax, eax
mov dword [ebp - 0x78], eax
je 0x40234d
push dword [esi + 4]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
push dword [ebp - 0x78]
call sub.MSVCR80.dll_strlen
lea edi, [edi + eax + 1]
push edi
call dword [sym.imp.MSVCR80.dll__strdup]
mov ecx, dword [ebp - 0x80]
add esp, 0x14
push dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
jmp 0x40234f
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.0040595e
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.004065b0
add ebp, 0x94
leave
ret
Function at 0x4036a1
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x1018
call fcn.00406600
mov eax, dword [0x40c17c]
xor eax, esp
mov dword [esp + 0x1014], eax
mov eax, dword [esp + 0x101c]
push esi
mov esi, dword [sym.imp.MSVCR80.dll_strchr]
push edi
push 0x5b
push eax
call esi
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
jne 0x4036dc
xor eax, eax
jmp 0x40385e
inc eax
push 0x5d
push eax
mov dword [esp + 0x14], eax
call esi
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4036d5
mov byte [esi], 0
inc esi
push esi
push 0x40c1a0
mov dword [esp + 0x10], esi
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x40385b
push ebx
push ebp
push edi
push edi
mov dword [esp + 0x24], str._remove
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR80.dll__tempnam]
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
mov ebx, eax
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_freopen]
add eax, 0x40
push eax
mov edi, 0x4078c0
push edi
push ebx
call ebp
add esp, 0x14
test eax, eax
jne 0x40375d
push eax
push eax
push str.freopen_stderr
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call esi
add eax, 0x20
push eax
push edi
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x403782
push eax
push eax
push str.freopen_stdout
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4037c8
lea eax, [esp + 0x18]
push eax
push 2
push dword [esp + 0x18]
mov ecx, edi
call fcn.0040595e
add esp, 0xc
cmp eax, 0x80000000
jne 0x4037c1
push str._Could_not_load_Python_
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
pop ecx
pop ecx
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_fflush]
add eax, 0x40
push eax
call ebp
call esi
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
add eax, 0x40
push eax
call edi
call esi
add eax, 0x20
push eax
call ebp
call esi
add eax, 0x20
push eax
call edi
push 0x407860
push ebx
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
push esi
push 0x1000
lea eax, [esp + 0x44]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
push esi
mov ebp, eax
call edi
push ebx
call dword [sym.imp.MSVCR80.dll_remove]
add esp, 0x30
mov byte [esp + ebp + 0x24], 0
cmp byte [esp + 0x24], 0
pop ebp
pop ebx
je 0x40384b
push 0
push str.uninstall_script
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 8]
push 0x40c1a0
call sub.MSVCR80.dll_strcpy
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
xor ecx, esp
call fcn.004065b0
add esp, 0x1018
ret
Function at 0x404257
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00406600
mov eax, dword [0x40c17c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
push edi
push dword [0x40dbec]
mov edi, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
push ebp
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4074e8
push ebx
push str.title
mov esi, 0x4083d8
push esi
call edi
push 0x50
pop ecx
lea eax, [esp + 0x10]
mov edx, 0x40c620
call fcn.0040595e
push dword [0x40dbec]
lea eax, [esp + 0x14]
push ebp
push eax
push ebx
push str.info
push esi
call edi
mov ecx, ebp
lea eax, [esp + 0x10]
mov edx, 0x40ca40
call fcn.0040595e
push dword [0x40dbec]
push 0x50
push 0x40da80
push ebx
push str.build_info
push esi
call edi
push dword [0x40dbec]
mov ebp, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x40dbec]
mov dword [0x40c674], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x40dbec]
mov dword [0x40c670], eax
push 0xa
push 0x40da50
push ebx
push str.target_version
push esi
call edi
push dword [0x40dbec]
push 0x50
push 0x40c7a0
push ebx
push str.name
push str.metadata
call edi
push dword [0x40dbec]
push 0x104
push 0x40c680
push ebx
push str.install_script
push esi
call edi
push 0x40c620
call fcn.00402490
push eax
mov dword [0x40da40], eax
call fcn.0040595e
pop ecx
pop ecx
push dword [0x40dad4]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [0x40dbec]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x404399
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [0x40dbf0]
test eax, eax
je 0x4043a9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
xor eax, eax
call fcn.004065b0
add esp, 0x1004
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40596d
pop dword [ebp - 0x30]
mov eax, 0x5d0d5720
sub eax, 0x5cccfdb3
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x53d7c1c5
sub dword [ebp - 0x40], 0x5857c7a
mov dword [ebp - 0x3c], 0xd2af82ec
sub dword [ebp - 0x3c], 0xa07c36a7
mov dword [ebp - 0x38], 0x5212a7e5
add dword [ebp - 0x38], 0xfa399c49
mov dword [ebp - 0x34], 0x14b87099
add dword [ebp - 0x34], 0xeb478f67
lea eax, [ebp - 0x40]
push eax
mov eax, 0xb3bdc68a
add eax, 0x4c82a9d6
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x7093aefb
add dword [ebp - 0x40], 0x3deba5b
mov dword [ebp - 0x3c], 0x6b8a8caa
sub dword [ebp - 0x3c], 0x2a1e2b35
mov dword [ebp - 0x38], 0x4622089a
add dword [ebp - 0x38], 0x1d4d63d2
mov dword [ebp - 0x34], 0x1a7b663e
add dword [ebp - 0x34], 0xe58499c2
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xb20997d2
add eax, 0x4e36d92e
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3b3ef
push 0
call eax
mov ecx, 0x6a7f94c0
add ecx, 0x9580c55e
mov esi, eax
mov edx, 0xce4939cd
sub edx, 0xce0839cd
add edx, dword [ebp - 0x30]
mov edi, 0x75c85ea3
sub edi, 0x981aa57b
xor dword [ebp - 8], edi
mov ebx, dword [edx]
add dword [ebp - 0x14], eax
add ebx, edi
add dword [ebp - 0x2c], 0x91f0a8da
mov dword [esi], ebx
add dword [ebp - 0x28], 0x178fac22
add esi, 0xb1b12d62
add esi, 0x4e4ed2a2
add edx, 0x550ba63d
sub edx, 0x550ba639
loop 0x405a8f
add eax, 0x15b4b
mov ebx, eax
add eax, 0x791f5d2e
add eax, 0x86e0a2d7
mov ecx, 0x160ee9c7
sub ecx, 0x15cee9c7
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x406937
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b138
call fcn.00406c3c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40dbfc
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4066d6
cmp eax, esi
jne 0x4066c9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4066d9
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066b0
xor esi, esi
inc esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x4066ec
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40671b
mov eax, dword [0x40dbf8]
test eax, eax
jne 0x406715
mov dword [0x40dbf8], esi
push 0x4072cc
push 0x4072c4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40671b
jmp 0x406843
mov dword [0x40c2cc], esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x40673f
push 0x4072c0
push 0x4072b8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbf8], 2
test ebx, ebx
jne 0x40674b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40dc08], 0
je 0x40676f
push 0x40dc08
call fcn.00406bc2
pop ecx
test eax, eax
je 0x40676f
push 0
push 2
push 0
call dword [0x40dc08]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4067cb
test al, al
je 0x406789
cmp dword [ebp - 0x1c], 0
jne 0x4067cb
mov al, byte [esi]
test al, al
je 0x406799
cmp al, 0x20
ja 0x406799
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406789
test byte [ebp - 0x3c], 1
je 0x4067a5
movzx eax, word [ebp - 0x38]
jmp 0x4067a8
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40c2c8], eax
cmp dword [0x40c2bc], 0
jne 0x40681f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x4067da
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x4067ed
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x406776
cmp dword [0x40c2cc], 0
jne 0x40682e
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2c8]
jmp 0x40684f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406c81
ret
call fcn.0040595e
jmp 0x406676