joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40249d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
and dword [ebp + 0x74], 0
push 0x94
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.00403fa0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40252a
cmp dword [ebp - 0x1c], 6
je 0x402525
cmp dword [ebp - 0x1c], 5
jne 0x40252a
cmp dword [ebp - 0x18], 1
jae 0x402525
lea eax, [ebp - 0xc]
push eax
call fcn.00404dd0
test eax, eax
pop ecx
jbe 0x402519
lea eax, [ebp - 0xc]
push eax
call fcn.00404dd0
test eax, eax
pop ecx
jbe 0x402519
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0xc]
push str.Service_Pack__d
push eax
call fcn.00404e5b
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x40252a
cmp dword [ebp + 0x74], 2
jb 0x40252a
xor eax, eax
inc eax
jmp 0x40252c
xor eax, eax
add ebp, 0x78
leave
ret
Function at 0x40286d
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
call fcn.00404c78
lea eax, [ebp - 8]
push eax
call fcn.00404ff2
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x40e314
push eax
call fcn.00404160
xor ebx, ebx
add esp, 0x10
cmp esi, ebx
je 0x4028c7
push esi
call fcn.00404ee7
cmp eax, ebx
pop ecx
je 0x4028c7
push eax
lea eax, [ebp - 0x20c]
push str._n_s::
push eax
call fcn.00404e8f
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x10c]
push eax
push str.TMPDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
lea eax, [ebp - 0x10c]
jne 0x4028f9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402901
push 0x40eba0
push eax
call esi
push str.jusched.log
lea eax, [ebp - 0x10c]
push eax
call esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40297d
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00404dd0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00404dd0
pop ecx
push eax
push dword [ebp + 8]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402982
Capabilities:
Check os version

Disassembly:
push 0xa4
push 0x40ebd8
call fcn.00404000
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb4], 0x94
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 2
jne 0x402a04
cmp dword [ebp - 0xb0], 5
jb 0x402a04
mov dword [ebp - 4], esi
push str.Crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x4029fb
push str.CryptProtectData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4029fb
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.00402a0d
mov eax, dword [ebp - 0x20]
call fcn.0040403b
ret

Function at 0x402ac5
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402afc
push str.EnableAutoUpdateCheck
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x402afe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push 0x80000001
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], 0x64
mov dword [ebp - 0xc], 0x200
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402b9d
call fcn.00402982
test eax, eax
je 0x402b64
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.00402a1d
add esp, 0x10
jmp 0x402b79
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00405180
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x210]
push eax
push 3
push esi
push str.EnableAutoUpdateCheck
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x402d97
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x114
push ebx
push esi
mov esi, 0x20019
push esi
xor ebx, ebx
push str.SOFTWARE
push 0x80000002
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
call fcn.0040206d
test eax, eax
je 0x402dd8
xor esi, esi
jmp 0x402ebb
push esi
push str.JavaSoft
push dword [ebp + 0x68]
lea ecx, [ebp + 0x6c]
call fcn.0040206d
test eax, eax
jne 0x402dd1
push esi
push str.Java_Runtime_Environment
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x70]
call fcn.0040206d
test eax, eax
jne 0x402dd1
push edi
lea eax, [ebp - 0xa0]
push 0x40e314
push eax
call fcn.00404160
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
pop ecx
pop ecx
mov edi, 0x80
push edi
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0x70]
call esi
test eax, eax
jne 0x402eb7
inc dword [ebp + 0x60]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040babe
test eax, eax
pop ecx
pop ecx
jle 0x402e89
lea eax, [ebp - 0x20]
push str.1.6.0_04
push eax
call fcn.00404bf0
test eax, eax
pop ecx
pop ecx
je 0x402e89
lea eax, [ebp - 0x20]
push eax
call fcn.00404dd0
cmp eax, 3
pop ecx
jbe 0x402e89
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00404160
pop ecx
pop ecx
mov dword [ebp + 0x64], 1
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x60]
push dword [ebp + 0x70]
call esi
test eax, eax
je 0x402e34
cmp dword [ebp + 0x64], ebx
je 0x402eb7
lea eax, [ebp - 0xa0]
push eax
push 0x40e2cc
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, dword [ebp + 0x64]
pop edi
lea ecx, [ebp + 0x70]
call fcn.00402056
lea ecx, [ebp + 0x6c]
call fcn.00402056
lea ecx, [ebp + 0x68]
call fcn.00402056
mov eax, esi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x402f5f
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
push edi
push 0x20019
push str.Software
xor edi, edi
push 0x80000002
lea ecx, [ebp + 0x6c]
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x68], 0x80
call fcn.0040206d
test eax, eax
jne 0x403026
push 0x2001f
push str.JavaSoft
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x70]
call fcn.0040206d
test eax, eax
jne 0x403026
cmp dword [ebp + 0x7c], edi
jne 0x402fc7
push str.InstallStatus
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x403023
push esi
lea eax, [ebp + 0x68]
push eax
mov esi, str.InstallStatus
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x70]
call fcn.004020a2
test eax, eax
jne 0x403013
cmp dword [ebp + 0x68], edi
je 0x403013
push dword [ebp + 0x7c]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push esi
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x403022
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x7c]
lea ecx, [ebp + 0x70]
call fcn.00402100
pop esi
xor edi, edi
inc edi
lea ecx, [ebp + 0x70]
call fcn.00402056
lea ecx, [ebp + 0x6c]
call fcn.00402056
mov eax, edi
pop edi
add ebp, 0x74
leave
ret
Function at 0x403bc9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
push esi
push esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x400
push edi
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
call fcn.00404dd0
push dword [ebp + 8]
mov ebx, eax
call fcn.00404dd0
pop ecx
pop ecx
lea eax, [ebx + eax + 0x28]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov ebx, eax
push edi
push dword [ebp + 8]
push str._s_failed_with_error__d:__s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push esi
push str.Error
push ebx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403c4f
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x403c75
xor eax, eax
jmp 0x403d0e
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x14]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403cbc
push str.Installer_:_Wrapper.CreateFile
jmp 0x403cff
cmp dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jbe 0x403cee
push esi
lea eax, [ebp - 4]
push eax
push 0x2000
push edi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403d04
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
add edi, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jb 0x403cc4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
pop ebx
jne 0x403d0b
push str.Installer_:_Wrapper.CloseHandle
call fcn.00403bc9
push str.Installer_:_Wrapper.WriteFile__In_small_chunks_
jmp 0x403cff
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x403d12
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push esi
push edi
mov esi, 0x400
push esi
lea eax, [ebp - 0x408]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.msi.dll
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x808]
push eax
push esi
push edi
lea eax, [ebp - 0x408]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403d97
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x40eba0
lea eax, [ebp - 0x808]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403d97
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 8]
mov eax, 0x20000
cmp ecx, eax
ja 0x403d94
jne 0x403d97
cmp dword [edx + 0xc], 0xa280000
jb 0x403d97
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x403d9d
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [0x4125d0], esi
je 0x403dbc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
inc esi
jmp 0x403e0a
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstaller
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e18
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push str.InstallerLocation
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403dfd
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x403e18
push str.msiexec.exe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, esi
pop esi
leave
ret

Function at 0x403e1d
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00401f8f
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ecx
xor ebp, ebp
push ebp
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._sSun_
push esi
call ebx
add esp, 0xc
push ebp
push esi
call edi
push esi
push str._sJava_
push esi
call ebx
add esp, 0xc
push ebp
push esi
call edi
push str.1.6.0_04
mov ebp, 0x40eefc
push ebp
push esi
push str._s_s_s
push esi
call ebx
add esp, 0x14
push 0
push esi
call edi
push str.1.6.0_04
push ebp
push esi
push str._s_s_s.msi
push esi
call ebx
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4046ea
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40f068
call fcn.00404000
push 8
call fcn.004065b1
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x412654], esi
jne 0x40471e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x412650], esi
mov al, byte [ebp + 0x10]
mov byte [0x41264c], al
cmp dword [ebp + 0xc], edi
jne 0x404768
cmp dword [0x413e90], edi
je 0x404758
mov eax, dword [0x413e8c]
sub eax, 4
mov dword [0x413e8c], eax
cmp eax, dword [0x413e90]
jb 0x404758
mov eax, dword [eax]
cmp eax, edi
je 0x404739
call eax
jmp 0x404739
push 0x411030
mov eax, 0x411028
call fcn.00404668
pop ecx
push 0x41103c
mov eax, 0x411034
call fcn.00404668
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00404799
cmp dword [ebp + 0x10], edi
jne 0x4047a7
mov dword [0x412654], esi
push dword [ebp + 8]
call fcn.00404626
xor edi, edi
xor esi, esi
inc esi
call fcn.0040403b
ret
Function at 0x405c09
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405c37
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x405c3e
cmp ebx, dword [eax + 4]
jae 0x405c3e
xor eax, eax
jmp 0x405e2e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405c4f
xor eax, eax
inc eax
jmp 0x405e2d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405c65
cmp ecx, edx
jae 0x405daa
cmp dword [eax + 4], 0
je 0x405c6e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405c56
cmp dword [ebp + 8], 0
je 0x405c90
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x405daa
cmp eax, esi
jae 0x405daa
mov eax, dword [0x412680]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405cb5
cmp dword [esi*4 + 0x412688], edi
je 0x405dae
inc esi
cmp esi, eax
jl 0x405ca3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405e2a
cmp dword [ebp - 8], 0x1000000
jne 0x405e2a
test byte [ebp - 0xc], 0xcc
je 0x405d33
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x405e2a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405e2a
cmp word [eax + 0x18], 0x10b
jne 0x405e2a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x405e2a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405d33
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405d33
test byte [ecx + 0x27], 0x80
jne 0x405daa
push 1
push 0x4126c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405c47
mov ecx, dword [0x412680]
test ecx, ecx
mov edx, ecx
jle 0x405d67
lea eax, [ecx*4 + 0x412684]
cmp dword [eax], edi
je 0x405d67
dec edx
sub eax, 4
test edx, edx
jg 0x405d5b
test edx, edx
jne 0x405d98
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405d74
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405d8c
lea eax, [edx*4 + 0x412688]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405d7a
cmp ecx, 0x10
jge 0x405d98
inc ecx
mov dword [0x412680], ecx
push 0
push 0x4126c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405c47
xor eax, eax
jmp 0x405e2d
test esi, esi
jle 0x405c47
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4126c8
call ebx
test eax, eax
jne 0x405c47
cmp dword [esi*4 + 0x412688], edi
je 0x405e04
mov eax, dword [0x412680]
lea esi, [eax - 1]
test esi, esi
jl 0x405df2
cmp dword [esi*4 + 0x412688], edi
je 0x405dee
dec esi
jns 0x405de2
test esi, esi
jge 0x405e02
cmp eax, 0x10
jge 0x405dfd
inc eax
mov dword [0x412680], eax
lea esi, [eax - 1]
jmp 0x405e04
je 0x405e1c
xor ecx, ecx
test esi, esi
jl 0x405e1c
lea eax, [ecx*4 + 0x412688]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x405e0a
push 0
push 0x4126c8
call ebx
jmp 0x405c47
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40935c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x411650]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x411b50]
je 0x409391
inc eax
cmp eax, 0x13
jb 0x409382
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x411b50]
jne 0x4094b7
mov eax, dword [0x41267c]
cmp eax, 1
je 0x40948f
cmp eax, edx
jne 0x4093c1
cmp dword [0x411644], 1
je 0x40948f
cmp ecx, 0xfc
je 0x4094b7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4093f7
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00404160
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404dd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40942b
mov eax, edi
push eax
call fcn.00404dd0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40fce8
push edi
call fcn.00404950
add esp, 0x10
push edi
call fcn.00404dd0
push dword [esi + 0x411b54]
mov ebx, eax
call fcn.00404dd0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404260
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404160
push edi
push ebx
call fcn.00404170
push 0x40fcc8
push ebx
call fcn.00404170
push dword [esi + 0x411b54]
push ebx
call fcn.00404170
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040b726
add esp, 0x2c
jmp 0x4094b7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x411b54]
push dword [esi]
call fcn.00404dd0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00405a4e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40af32
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404260
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40afcd
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x412614]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40afcd
cmp eax, 1
je 0x40afee
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40afcd
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40af9a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40afc9
xor eax, eax
inc eax
jmp 0x40b00d
cmp edi, eax
jae 0x40afd1
xor eax, eax
jmp 0x40b00d
cmp eax, esi
jae 0x40afd8
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x412614]
jmp 0x40aff1
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b134
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x411650]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40b165
xor eax, eax
jmp 0x40b2ee
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x413d60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40b1a1
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040c49b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40b27c
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x40b2ba
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40b205
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40b1f6
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40b1d6
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b245
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x40b24e
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x40b1c7
jmp 0x40b250
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40b2e9
cmp dword [ebp - 0x6c], edi
je 0x40b2ba
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40b2af
call fcn.004092d7
mov dword [eax], 9
call fcn.004092e0
mov dword [eax], esi
jmp 0x40b2e4
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b2a4
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x40b250
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x40b250
push dword [ebp - 0x6c]
call fcn.004092e9
pop ecx
jmp 0x40b2e4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40b2d2
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40b2d2
xor eax, eax
jmp 0x40b2ec
call fcn.004092d7
mov dword [eax], 0x1c
call fcn.004092e0
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40b2ec
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00405a4e
add ebp, 0x3a0
leave
ret