joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412432
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.004124d9
test eax, eax
je 0x412497
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412497
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x412507
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41256a
call esi
cmp eax, 0x3f0
jne 0x412561
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x4125d9
cmp eax, ebx
je 0x4125d9
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x4125d9
call esi
cmp eax, 0x7a
jne 0x4125d9
push dword [ebp - 4]
call fcn.00416f18
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x4125cd
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4125dd
cmp byte [ebp - 0x24], bl
je 0x4125d9
push esi
call fcn.004167c3
pop ecx
xor eax, eax
jmp 0x412628
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x412610
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x412609
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x4125ec
jmp 0x412610
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x412625
push esi
call fcn.004167c3
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41262d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
cmp dword [0x42ea68], ecx
jne 0x412648
mov eax, dword [0x4283f8]
cmp eax, 0xffffffff
jne 0x412688
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x412682
lea eax, [ebp - 0x14]
push eax
call fcn.00417137
pop ecx
lea ecx, [ebp - 0x34]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x412682
movsx eax, word [ebp - 0x34]
mov dword [0x4283f8], eax
mov ax, word [0x4283f8]
leave
ret

Function at 0x4129eb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], 0xcccccccc
call fcn.00416f30
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push esi
push eax
call fcn.00416f30
add esp, 0x18
xor eax, eax
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x74], edi
push 1
setne al
mov word [ebp - 0x44], ax
pop edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x48], edi
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x412ae1
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x412abb
cmp eax, edi
jne 0x412abb
push edi
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call ebx
test eax, eax
je 0x412a56
cmp dword [ebp - 0x2c], 0xf
jne 0x412a99
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x2c], 0x113
jne 0x412aab
mov ecx, dword [ebp + 0x10]
push edi
call fcn.0040fe9b
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x412a56
jmp 0x412a71
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42ea5c], eax
call esi
push dword [ebp - 0x14]
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc
Function at 0x412aea
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push dword [0x42e1a4]
mov ebx, str._04x
lea eax, [ebp - 0x14]
push ebx
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call edi
push eax
call edi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x42db88
call fcn.00411dcb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0041200c
lea eax, [ebp - 0x428]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x42bab0
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x412ba4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_VerLanguageNameA
leave
ret

Function at 0x413480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.004135bf
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x413534
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x413526
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x4134ea
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x413513
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x413520
cmp byte [ebp - 0x838], bl
je 0x413526
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x413534
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041312f
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x413559
cmp dword [ebp + 0xc], 4
jne 0x413573
cmp dword [ebp - 0x14], ebx
jne 0x413573
cmp word [edi + 0x14], 3
mov ecx, edi
jne 0x41356e
call fcn.004137f0
jmp 0x413573
call fcn.00413a1c
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x4135bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x260]
mov edi, 0x80000000
push eax
mov ebx, 0x104
push str..htm
mov dword [ebp - 0xc], ecx
push edi
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x4136bf
lea eax, [ebp - 0x260]
push str._shellopencommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
push edi
call esi
test eax, eax
jne 0x4136bf
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 0x15c]
push str.netscape.exe
push eax
call fcn.004180a0
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
je 0x4136c1
lea ecx, [ebp - 0x15c]
sub eax, ecx
add eax, 0xd
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x58]
call fcn.00413738
lea eax, [ebp - 0x364]
lea ecx, [ebp - 0x58]
push eax
call fcn.00414d93
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
mov edx, ecx
mov dword [ebp - 0x58], 0x423aac
shr edx, 0x10
mov word [eax + 0x16], cx
lea ecx, [ebp - 0x58]
mov word [eax + 0x14], dx
call fcn.00413795
xor eax, eax
jmp 0x413733
xor esi, esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x413722
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push esi
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413722
movsx ax, byte [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
sub eax, 0x30
cmp dword [ebp - 4], esi
mov word [ecx + 0x14], ax
je 0x41371e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
jmp 0x413732
cmp dword [ebp - 4], esi
je 0x413730
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4137f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.004176a0
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4139be
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x4139be
cmp dword [ebp - 0x14], 1
jne 0x4139be
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x413981
cmp byte [ebp - 0x148], al
je 0x413981
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x413973
lea eax, [ebp - 0x96c]
push 0x42878c
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x427ae0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x4277dc
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x4138d7
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.00413305
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x4139cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414589
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x4145c1
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x4145cd
mov eax, dword [esi + 0x5c]
jmp 0x414616
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x414614
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x4145f2
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x4145d6
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x414d93
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x414de5
push eax
call fcn.00416f18
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x414de5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x427bd8
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x414de9
xor al, al
jmp 0x414e4a
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x414e48
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00416f18
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x414e48
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x414e36
mov al, 1
pop ebx
leave
ret 4
Function at 0x41e776
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b3b0
cmp edx, dword [eax]
je 0x41e798
add eax, 8
inc ecx
cmp eax, 0x42b440
jl 0x41e789
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b3b0]
jne 0x41e8c6
mov eax, dword [0x42eb54]
cmp eax, 1
je 0x41e8a0
test eax, eax
jne 0x41e7c9
cmp dword [0x428b04], 1
je 0x41e8a0
cmp edx, 0xfc
je 0x41e8c6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41e800
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417020
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417a40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41e843
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417a40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x424064
push edi
call fcn.00417900
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417020
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417030
lea eax, [ebp - 0xa0]
push 0x424044
push eax
call fcn.00417030
push dword [esi + 0x42b3b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417030
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042009b
add esp, 0x2c
pop edi
jmp 0x41e8c6
lea eax, [ebp + 8]
lea esi, [esi + 0x42b3b4]
push 0
push eax
push dword [esi]
call fcn.00417a40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401950
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x412064]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00405cb0
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4019d1
push edi
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push 0
push 0x40fc4c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4019b6
sub ecx, edi
mov dl, 0x45
mov byte [esi + ecx - 1], dl
mov byte [esi + ecx - 2], 0x58
mov byte [esi + ecx - 3], dl
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004030d8
add esp, 0x108
ret

Function at 0x4019f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401a60
test esi, esi
je 0x401a60
push edi
lea ecx, [esp + 0xc]
push ecx
push 0x1b1220
push 0x4133f8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 8], 0x1b1220
mov edi, eax
jne 0x401a43
cmp edi, 1
je 0x401a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WriteTempFile__WriteFile_Failed.__d_r_n
push 0x5c461c
call fcn.00401110
add esp, 0xc
xor edi, edi
jmp 0x401a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WriteTempFile__CreateFile_Failed.__d_r_n
push 0x5c461c
call fcn.00401110
add esp, 0xc
cmp esi, 0xffffffff
je 0x401a85
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x401d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1110
call fcn.00408bc0
mov eax, dword [0x412064]
xor eax, esp
mov dword [esp + 0x110c], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x100d]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x1014], 0
call fcn.00405cb0
add esp, 0xc
push 0xffc
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [esp + 0x14], 0
call fcn.00405cb0
add esp, 0xc
xor eax, eax
mov cl, 0x5a
xor byte [eax + 0x4133f8], cl
add eax, 1
cmp eax, 0x1b1220
jb 0x401d61
lea edx, [esp + 0x1008]
push edx
call fcn.00401a90
add esp, 4
test eax, eax
jne 0x401dbf
push str._CheckCurrentPathIsWritable_return_Failed._r_n
push 0x5c461c
call fcn.00401110
add esp, 8
lea esi, [esp + 0x1008]
call fcn.00401950
mov esi, eax
test esi, esi
jne 0x401dbf
push str._GetTempPath_return_Failed._r_n
push 0x5c461c
call fcn.00401110
add esp, 8
xor edi, edi
jmp 0x401e3d
push 0x1b1220
lea eax, [esp + 0x100c]
push eax
push str._WriteTempFile_to__s_with_filesize__u._r_n
push 0x5c461c
call fcn.00401110
add esp, 0x10
lea eax, [esp + 0x1008]
call fcn.004019f0
mov esi, eax
test esi, esi
jne 0x401e04
push str._WriteTempFile_return_Failed._r_n
push 0x5c461c
call fcn.00401110
add esp, 8
jmp 0x401e3d
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x100c]
push edx
call fcn.00401500
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
jne 0x401e38
push str.SREng_Tempfile_selfcheck_return_Failed._r_n
push 0x5c461c
call fcn.00401110
add esp, 8
jmp 0x401e3d
mov esi, 1
push 0x104
lea eax, [esp + 0x100c]
push eax
push edi
call fcn.004036d3
mov ecx, dword [esp + 0x1120]
add esp, 0xc
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004030d8
mov esp, ebp
pop ebp
ret
Function at 0x402ae0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, eax
test esi, esi
mov dword [ecx], 0xffffffff
jbe 0x402b15
push ebx
push edi
nop
mov eax, dword [ecx]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x412ff0]
add edx, 1
sub esi, 1
mov dword [ecx], eax
jne 0x402af0
pop edi
pop ebx
mov eax, dword [ecx]
not eax
mov dword [ecx], eax
xor eax, eax
pop esi
ret

Function at 0x4030d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412064]
jne 0x4030e2
repz ret
jmp fcn.00405918

Function at 0x4089e6
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 + 0x412950]
je 0x408a01
inc edi
cmp edi, 0x17
jb 0x4089f2
cmp edi, 0x17
jae 0x408b81
push ebp
push 3
call fcn.0040bccb
cmp eax, 1
pop ecx
je 0x408b4d
push 3
call fcn.0040bccb
test eax, eax
pop ecx
jne 0x408a35
cmp dword [0x412024], 1
je 0x408b4d
cmp ebx, 0xfc
je 0x408b80
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5c4c18
push ebp
call fcn.0040a6b9
add esp, 0xc
test eax, eax
je 0x408a6b
push esi
push esi
push esi
push esi
push esi
call fcn.00404294
add esp, 0x14
push 0x104
mov esi, 0x5c4c31
push esi
push 0
mov byte [0x5c4d35], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408aaf
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040a6b9
add esp, 0xc
test eax, eax
je 0x408aaf
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404294
add esp, 0x14
push esi
call fcn.004088d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408af4
push esi
call fcn.004088d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5c4f2c
push 0x40e9bc
sub ecx, eax
push ecx
push eax
call fcn.0040b8b6
add esp, 0x14
test eax, eax
je 0x408af4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404294
add esp, 0x14
jmp 0x408af6
xor esi, esi
push 0x40e9b8
push ebx
push ebp
call fcn.0040b7f8
add esp, 0xc
test eax, eax
je 0x408b16
push esi
push esi
push esi
push esi
push esi
call fcn.00404294
add esp, 0x14
push dword [edi*8 + 0x412954]
push ebx
push ebp
call fcn.0040b7f8
add esp, 0xc
test eax, eax
je 0x408b38
push esi
push esi
push esi
push esi
push esi
call fcn.00404294
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040bb0e
add esp, 0xc
jmp 0x408b80
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x408b80
cmp ebp, 0xffffffff
je 0x408b80
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x412954]
push dword [esi]
call fcn.004088d0
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