joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4092a7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
push ebx
push esi
push edi
lea eax, [ebp - 0x358]
push 0x104
push eax
call fcn.0040eab2
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
push dword [ebp + 8]
push dword [0x418a5c]
call esi
mov ebx, dword [ebp + 0xc]
push ebx
push dword [0x418a5c]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x418a5c]
push 0x3ef
push dword [0x418794]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00401946
push dword [0x418a5c]
call fcn.00402af8
add esp, 0xc
push ebx
lea eax, [ebp - 0x154]
push eax
call esi
lea eax, [ebp - 0x154]
push eax
call fcn.00401ec6
pop ecx
lea ecx, [ebp - 0x154]
cmp eax, ecx
jbe 0x409337
mov byte [eax - 1], 0
xor edi, edi
lea eax, [ebp - 0x154]
push edi
push eax
call fcn.0040306b
lea eax, [ebp - 0x154]
push eax
call fcn.0040eb0d
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + ebx - 3]
cmp eax, ebx
jae 0x409366
mov eax, ebx
push 0x415148
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push ebx
jne 0x4093fe
lea eax, [ebp - 0x254]
push eax
call esi
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.0040306b
push 0x44
pop esi
push esi
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.0040e810
add esp, 0x14
cmp dword [ebp + 0x10], edi
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x54], esi
lea eax, [ebp - 0x558]
je 0x4093be
push str._s__REGSERVER
jmp 0x4093c3
push str._s__UNREGSERVER
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x558]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409479
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x409479
call fcn.00403209
test eax, eax
pop ecx
je 0x409479
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.OLE32.DLL
call edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x409479
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OleInitialize
push eax
call esi
test eax, eax
je 0x409460
push 0
call eax
test eax, eax
jne 0x409460
push ebx
call edi
mov edi, eax
test edi, edi
je 0x409460
cmp dword [ebp + 0x10], 0
mov eax, str.DllRegisterServer
jne 0x40944f
mov eax, str.DllUnregisterServer
push eax
push edi
call esi
test eax, eax
je 0x409459
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.OleUninitialize
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x409470
call eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x358]
push eax
call fcn.0040eb0d
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40948b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push esi
xor esi, esi
cmp dword [0x4186c0], esi
jne 0x4094a6
xor eax, eax
jmp 0x40968e
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x1f
push esi
mov edi, str.SoftwareBorlandDatabase_Engine
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40968a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, str.UseCount
push esi
push dword [ebp - 4]
mov ebx, pe_nt_image_headers32
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409681
cmp dword [ebp - 0xc], 1
jne 0x40950c
lea eax, [ebp - 0x110]
push eax
call fcn.0040e74f
pop ecx
jmp 0x40952c
cmp dword [ebp - 0xc], 4
je 0x409526
cmp dword [ebp - 0xc], 3
jne 0x40968a
cmp dword [ebp - 8], 4
jne 0x40968a
mov eax, dword [ebp - 0x110]
cmp eax, 1
jne 0x409644
push 0
push str.IB_Server
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40959c
push ebx
lea eax, [ebp - 0x310]
push eax
push 0x1c
push dword [0x418790]
call fcn.004033e3
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x19
push dword [0x418790]
call fcn.004033e3
add esp, 0x20
push 2
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x310]
push eax
push dword [0x418794]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
jne 0x40959f
xor eax, eax
inc eax
jmp 0x40968c
push 5
pop eax
cmp eax, 5
jne 0x409535
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 2
push edi
call fcn.00401b27
push 2
push str.SoftwareBorlandBLW32
call fcn.00401b27
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x1f
push 0
mov edi, str.SoftwareBorland
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40968a
push eax
push eax
push eax
push eax
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40963d
mov dword [ebp - 8], ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 0x10], ebx
je 0x40968a
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40968a
push dword [ebp - 4]
call esi
jmp 0x40968a
jle 0x40968a
dec eax
push eax
lea eax, [ebp - 0x110]
push 0x414f6c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40b34c
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x500
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x40b37a
push dword [ebp + 8]
call fcn.0040b2bc
pop ecx
jmp 0x40b513
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.0040380f
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x300]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40b39e
push ebx
jmp 0x40b36f
push edi
push dword [ebp + 8]
xor edi, edi
inc edi
mov dword [0x418748], edi
call fcn.0040b2bc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
push ebx
lea eax, [ebp - 0x100]
push eax
call esi
xor esi, esi
lea eax, [ebp - 0x200]
push esi
push eax
call fcn.0040306b
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.0040306b
mov eax, dword [0x4186c0]
add esp, 0x10
cmp eax, 2
jne 0x40b41d
push str.WININIT.INI
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40b512
cmp eax, edi
jne 0x40b43e
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
call esi
push 4
push ebx
lea eax, [ebp - 0x200]
push eax
call esi
jmp 0x40b512
lea eax, [ebp - 0x100]
push eax
call fcn.00401ec6
push eax
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x500]
push str.del__s_r_nrename__s__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x101], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40b4ab
push 0x414474
lea eax, [ebp - 0x100]
push eax
call ebx
push 0x4151b4
lea eax, [ebp - 0x100]
push eax
call ebx
push edi
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b4e0
push esi
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
jmp 0x40b4ea
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp edi, 0xffffffff
je 0x40b512
lea eax, [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x500]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b517
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2a
push edi
call fcn.004025e3
test eax, eax
pop ecx
pop ecx
jne 0x40b56c
push 0x3f
push edi
call fcn.004025e3
test eax, eax
pop ecx
pop ecx
jne 0x40b56c
push edi
call fcn.0040b2bc
cmp dword [ebp + 0x10], 0
pop ecx
je 0x40b684
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x40b684
push edi
push eax
call fcn.0040b34c
pop ecx
jmp 0x40b683
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
cmp eax, 3
jl 0x40b5f0
push 0x415298
lea eax, [eax + edi - 3]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40b5f0
push edi
call esi
cmp eax, 4
jl 0x40b5e9
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x104]
push eax
push edi
call ebx
test eax, eax
je 0x40b5e9
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push eax
push edi
call ebx
test eax, eax
je 0x40b5e9
push dword [0x418b08]
push edi
call ebx
test eax, eax
jne 0x40b5f0
xor eax, eax
jmp 0x40b687
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
call esi
mov esi, eax
lea eax, [ebp - 0x104]
dec eax
add esi, eax
jmp 0x40b61c
cmp byte [esi], 0x5c
je 0x40b62b
dec esi
lea eax, [ebp - 0x104]
cmp esi, eax
ja 0x40b616
cmp byte [esi], 0x5c
jne 0x40b62c
inc esi
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x104]
push 7
push eax
call fcn.00401cc6
add esp, 0xc
jmp 0x40b673
test byte [ebp - 0x24c], 0x10
jne 0x40b666
lea eax, [ebp - 0x34c]
push eax
push esi
call edi
lea eax, [ebp - 0x104]
push eax
call fcn.0040b2bc
pop ecx
lea eax, [ebp - 0x34c]
push eax
call fcn.00401d08
pop ecx
test eax, eax
je 0x40b646
lea eax, [ebp - 0x34c]
push eax
call fcn.00401d45
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e994
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e9c2
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x40e9c7
cmp eax, 1
je 0x40e9c7
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40e9cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4180a0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x40ea41
push ebx
call fcn.0040e994
test eax, eax
pop ecx
jne 0x40ea10
mov dword [0x41849c], 0xf
mov dword [0x418498], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004108c4
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40ea53
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40ea03
inc eax
cmp eax, 0x104
ja 0x40ea03
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40ea8a
cmp eax, dword [ebp + 0x10]
jg 0x40ea6e
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040e7c6
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40ea9e
mov dword [0x418498], 0xc
jmp 0x40ea03
cmp eax, dword [ebp + 0x10]
jle 0x40ea9e
mov dword [0x418498], 0x22
jmp 0x40ea03
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00410600
pop ecx
pop ecx
jmp 0x40ea05
Function at 0x40eb0d
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x415948
call fcn.00410a8c
mov eax, dword [0x4180a0]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40ec1a
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x40ebcb
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0040ead0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x40ebb8
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x40ec1a
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x40ec1a
mov al, byte [edi]
cmp al, 0x5c
je 0x40ebd9
cmp al, 0x2f
jne 0x40ebde
cmp al, byte [edi + 1]
je 0x40ec14
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00410931
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x40ec1a
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004108d2
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x40ec36
push edi
call fcn.0040e7d8
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.004108c4
call fcn.00410ac7
ret
Function at 0x40ed31
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040ead0
mov eax, dword [0x4180a0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x418de0]
mov dword [ebp - 4], eax
jae 0x40ee74
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x418e00]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40ee74
push 1
push esi
push ebx
call fcn.004111c8
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40ee7e
push 2
push esi
push ebx
call fcn.004111c8
add esp, 0xc
cmp eax, 0xffffffff
je 0x40ee7e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40ee1e
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040e810
push 0x8000
push ebx
call fcn.00411146
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40eddd
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00410f56
add esp, 0xc
cmp eax, 0xffffffff
je 0x40edfb
sub edi, eax
test edi, edi
jg 0x40edd2
jmp 0x40ee11
cmp dword [0x41849c], 5
jne 0x40ee0e
mov dword [0x418498], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00411146
pop ecx
pop ecx
jmp 0x40ee5e
jge 0x40ee5e
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004111c8
push ebx
call fcn.00410d6f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40ee5e
mov dword [0x418498], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41849c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004111c8
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40ee81
mov dword [0x418498], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004108c4
leave
ret

Function at 0x410792
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4184e4], esi
push edi
jne 0x4107b2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4184e0], esi
mov byte [0x4184dc], al
jne 0x410818
mov ecx, dword [0x418f08]
test ecx, ecx
je 0x4107f9
mov eax, dword [0x418f04]
sub eax, 4
cmp eax, ecx
jmp 0x4107f2
mov eax, dword [eax]
test eax, eax
je 0x4107e4
call eax
mov eax, dword [0x418f04]
sub eax, 4
cmp eax, dword [0x418f08]
mov dword [0x418f04], eax
jae 0x4107dc
mov eax, 0x41801c
mov esi, 0x418020
cmp eax, esi
mov edi, eax
jae 0x410818
mov eax, dword [edi]
test eax, eax
je 0x410811
call eax
add edi, 4
cmp edi, esi
jb 0x410809
mov eax, 0x418024
mov esi, 0x418028
cmp eax, esi
mov edi, eax
jae 0x410837
mov eax, dword [edi]
test eax, eax
je 0x410830
call eax
add edi, 4
cmp edi, esi
jb 0x410828
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x410851
push dword [ebp + 8]
mov dword [0x4184e4], 1
call fcn.004106f8
pop ebp
ret
Function at 0x4109a9
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.0040ead0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410a44
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 [0x4184a4]
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 0x410a44
cmp eax, 1
je 0x410a65
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 0x410a44
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x410a11
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x410a40
xor eax, eax
inc eax
jmp 0x410a84
cmp edi, eax
jae 0x410a48
xor eax, eax
jmp 0x410a84
cmp eax, esi
jae 0x410a4f
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 [0x4184a4]
jmp 0x410a68
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 0x410f56
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x418de0]
mov eax, dword [0x4180a0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x41111c
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x418e00]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x41111c
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x410fc0
xor eax, eax
jmp 0x411130
test al, 0x20
je 0x410fd1
push 2
push edi
push edi
push ecx
call fcn.00412b6f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4110a6
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4110ed
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x411033
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x411024
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x411006
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411073
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41107f
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x410ffa
jmp 0x411081
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x411117
cmp dword [ebp + 0x3a4], edi
je 0x4110ed
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4110df
mov dword [0x41849c], eax
jmp 0x411123
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4110d1
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x411081
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x411081
push dword [ebp + 0x3a4]
call fcn.004108d2
pop ecx
jmp 0x41112d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x411105
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x410fb9
mov dword [0x418498], 0x1c
mov dword [0x41849c], edi
jmp 0x41112d
sub eax, dword [ebp - 0x7c]
jmp 0x411130
and dword [0x41849c], 0
mov dword [0x418498], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004108c4
add ebp, 0x39c
leave
ret
Function at 0x411254
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x418de0]
push edi
jae 0x411429
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x418e00]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x411429
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4112ff
test dl, 2
jne 0x4112ff
test dl, 0x48
je 0x4112c9
cmp byte [eax + 5], 0xa
je 0x4112c9
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411312
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4112fa
mov dword [0x41849c], ecx
jmp 0x411430
cmp eax, 0x6d
jne 0x411306
xor eax, eax
jmp 0x41143d
push eax
call fcn.004108d2
pop ecx
jmp 0x41143a
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x411424
test eax, eax
je 0x411339
cmp byte [ebx], 0xa
jne 0x411339
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x411342
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x41141e
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x41140e
cmp al, 0xd
je 0x411374
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x411400
dec ecx
cmp dword [ebp - 8], ecx
jae 0x41138e
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x411389
add dword [ebp - 8], 2
jmp 0x4113e2
mov dword [ebp - 8], eax
jmp 0x4113fc
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4113b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4113fc
cmp dword [ebp - 0x10], 0
je 0x4113fc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4113d7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4113e2
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4113ff
cmp ebx, dword [ebp + 0xc]
jne 0x4113e7
cmp byte [ebp - 1], 0xa
jne 0x4113e7
mov byte [ebx], 0xa
jmp 0x4113ff
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004111c8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x411400
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x411358
jmp 0x41141e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41141e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x41143d
and dword [0x41849c], 0
mov dword [0x418498], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret