joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e6a9
Capabilities:
Delete file
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x40c]
push edi
push eax
call fcn.0040dbc1
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop ecx
pop ecx
jl 0x40e6dc
lea eax, [ebp - 0x40c]
push eax
call esi
lea eax, [ebp - 0x40c]
push eax
call fcn.0040e446
test eax, eax
pop ecx
je 0x40e705
lea eax, [ebp - 0x40c]
push eax
push eax
call fcn.0040e29b
pop ecx
pop ecx
lea eax, [ebp - 0x40c]
push eax
call esi
call fcn.0040da8f
xor esi, esi
push esi
push str.PreDownldStatus
push esi
call fcn.0040e4c3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
push edi
lea eax, [ebp - 0x40c]
push eax
mov dword [ebp - 0xc], esi
push esi
mov esi, SysReAllocStringLen
jmp 0x40e79a
inc dword [ebp - 0xc]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 0x20019
lea eax, [ebp - 0x40c]
push eax
push esi
lea ecx, [ebp - 4]
call fcn.00409004
test eax, eax
lea ecx, [ebp - 8]
jne 0x40e782
push 0x2001f
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push dword [ebp - 4]
call fcn.00409004
test eax, eax
jne 0x40e77f
push str.VersionXmlURL
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 8]
call fcn.00408fed
lea ecx, [ebp - 4]
call fcn.00408fed
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0xc]
push esi
call ebx
test eax, eax
je 0x40e734
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fce2
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExA]
test eax, eax
jne 0x40fd4c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
jne 0x40fd3c
inc eax
jmp 0x40fd60
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0x14
jmp 0x40fd5a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
shl eax, 0xc
shr ecx, 0x14
add eax, ecx
cmp eax, dword [ebp + 0xc]
sbb eax, eax
inc eax
pop esi
leave
ret

Function at 0x40fd63
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
or dword [ebp - 4], 0xffffffff
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00410ef0
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00410ef0
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x58], 0x44
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
pop esi
je 0x40fdd1
push dword [ebp - 0x14]
call fcn.004012c4
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40fddf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call fcn.0040a304
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40ff18
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421240
push 0x410fa4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x1058
call fcn.00411570
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], 4
push dword [ebp + 8]
push 0x420358
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 4], edi
mov esi, 0x400
push esi
lea eax, [ebp - 0x470]
push eax
call fcn.0040fde4
pop ecx
pop ecx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4100bc
push 0x3c
pop ebx
push ebx
push edi
lea eax, [ebp - 0x70]
push eax
call fcn.00410ef0
add esp, 0xc
mov dword [ebp - 0x70], ebx
lea eax, [ebp - 0x1070]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], esi
mov word [ebp - 0x58], di
lea eax, [ebp - 0xc70]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], esi
lea eax, [ebp - 0x470]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push edi
push edi
push 3
mov esi, 0x41f682
push esi
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x4100bc
push edi
push 0x4440000
push edi
push esi
push str.HTTP_1.1
lea ecx, [ebp - 0xc70]
push ecx
push str.HEAD
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, edi
je 0x4100bc
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x410075
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x34], eax
sub eax, 0x2ee2
je 0x41006e
sub eax, 5
je 0x41006e
sub eax, 0x16
jne 0x410075
mov dword [ebp - 0x20], 0x80004005
mov dword [ebp - 0x1c], edi
push edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4100bc
cmp dword [ebp - 0x1c], 0x197
jne 0x4100a3
mov dword [ebp - 0x20], 0x80070210
jmp 0x4100bc
cmp dword [ebp - 0x1c], 0x190
je 0x4100b5
cmp dword [ebp - 0x1c], 0x194
jne 0x4100bc
mov dword [ebp - 0x20], 0x80070211
or dword [ebp - 4], 0xffffffff
call fcn.004100d9
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4101bc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00410ef0
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x410209
cmp dword [ebp - 0x8c], 2
jne 0x410209
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x41020d
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 0x41029b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x420388
lea eax, [ebp - 0x808]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41029b
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 8]
mov eax, 0x20000
cmp ecx, eax
ja 0x41028f
jne 0x41029b
cmp dword [edx + 0xc], 0xa280000
jb 0x41029b
mov eax, dword [ebp + 8]
xor edi, edi
inc edi
test eax, eax
je 0x41029b
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4102a1
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
call fcn.004101bc
test eax, eax
je 0x4102c1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
inc esi
jmp 0x41030f
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41031d
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 0x410302
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41031d
push str.msiexec.exe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov eax, esi
pop esi
leave
ret
Function at 0x410322
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x41038a
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
je 0x41038a
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x41038a
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x41038e
xor eax, eax
jmp 0x4103dd
push ebx
xor ebx, ebx
cmp dword [ebp - 8], edi
jbe 0x4103cc
mov esi, 0x2000
mov eax, dword [ebp - 8]
sub eax, ebx
cmp eax, esi
mov dword [ebp - 0x10], edi
jbe 0x4103a9
mov eax, esi
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4103e1
mov eax, dword [ebp - 0x10]
add dword [ebp - 4], eax
add ebx, eax
cmp ebx, dword [ebp - 8]
jb 0x41039b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x4103ea
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
xor eax, eax
jmp 0x4103dc
Function at 0x4103f7
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
push edi
push 0x41
pop ecx
xor eax, eax
push 0x41
xor ebx, ebx
mov byte [ebp - 0x32c], bl
lea edi, [ebp - 0x32b]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x224], bl
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x32c]
push eax
push dword [ebp + 0xc]
call esi
push edi
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0x10]
call esi
cmp dword [0x428338], ebx
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x4104e0
xor eax, eax
mov byte [ebp - 0x638], bl
mov ecx, 0xc2
lea edi, [ebp - 0x637]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x421314
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x638]
push 0x420530
push eax
call esi
lea eax, [ebp - 0x638]
push eax
push 0x421300
push 0x65
push dword [ebp + 8]
call fcn.00410322
add esp, 0x20
test eax, eax
je 0x4104c0
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
jne 0x4104c7
xor eax, eax
jmp 0x410593
push 0x4212e8
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x428338], eax
cmp dword [0x428338], ebx
je 0x4104c0
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x11c], bl
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x11c]
push str._smsi.tmp
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x224]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x428338]
push 5
mov dword [ebp - 0x14], 0x41f682
mov dword [ebp - 0x10], 0x4212d8
mov dword [ebp - 0xc], 0x4212d4
call eax
test eax, eax
pop ecx
pop ecx
jne 0x410582
lea eax, [ebp - 0x224]
push eax
call esi
test eax, eax
je 0x410582
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jne 0x410590
lea eax, [ebp - 0x224]
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
call esi
jmp 0x4104c0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4105af
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x428344], 0
je 0x4105c8
mov eax, dword [0x428340]
leave
ret
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00410ef0
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x84], 2
jne 0x41060e
cmp dword [ebp - 0x90], 6
jne 0x41060e
mov eax, ecx
jmp 0x410610
xor eax, eax
mov dword [0x428340], eax
mov dword [0x428344], ecx
leave
ret
Function at 0x4122d9
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.00411570
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x412374
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 [0x42840c]
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 0x412374
cmp eax, 1
je 0x412395
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 0x412374
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412341
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x412370
xor eax, eax
inc eax
jmp 0x4123b4
cmp edi, eax
jae 0x412378
xor eax, eax
jmp 0x4123b4
cmp eax, esi
jae 0x41237f
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 [0x42840c]
jmp 0x412398
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 0x412a6c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x421aa8
call fcn.00410f50
push 8
call fcn.00413c13
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42844c], esi
jne 0x412aa0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x428448], esi
mov al, byte [ebp + 0x10]
mov byte [0x428444], al
cmp dword [ebp + 0xc], edi
jne 0x412aea
cmp dword [0x429cb4], edi
je 0x412ada
mov eax, dword [0x429cb0]
sub eax, 4
mov dword [0x429cb0], eax
cmp eax, dword [0x429cb4]
jb 0x412ada
mov eax, dword [eax]
cmp eax, edi
je 0x412abb
call eax
jmp 0x412abb
push 0x42603c
mov eax, 0x426034
call fcn.004129ea
pop ecx
push 0x426048
mov eax, 0x426040
call fcn.004129ea
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00412b1b
cmp dword [ebp + 0x10], edi
jne 0x412b29
mov dword [0x42844c], esi
push dword [ebp + 8]
call fcn.004129a8
xor edi, edi
xor esi, esi
inc esi
call fcn.00410f8b
ret
Function at 0x4132cf
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x421ac8
call fcn.00410f50
mov edi, 0x94
mov eax, edi
call fcn.00411570
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42840c], ecx
mov eax, dword [esi + 4]
mov dword [0x428418], eax
mov edx, dword [esi + 8]
mov dword [0x42841c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x428410], esi
cmp ecx, 2
je 0x41332f
or esi, 0x8000
mov dword [0x428410], esi
shl eax, 8
add eax, edx
mov dword [0x428414], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41336a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41336a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x413382
cmp eax, 0x20b
je 0x41336f
mov dword [ebp - 0x1c], esi
jmp 0x413396
cmp dword [ecx + 0x84], 0xe
jbe 0x41336a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x413390
cmp dword [ecx + 0x74], 0xe
jbe 0x41336a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00413a6f
pop ecx
test eax, eax
jne 0x4133aa
push 0x1c
call fcn.004132ab
pop ecx
call fcn.004175b8
test eax, eax
jne 0x4133bb
push 0x10
call fcn.004132ab
pop ecx
call fcn.00417f74
mov dword [ebp - 4], esi
call fcn.00419dc9
test eax, eax
jge 0x4133d4
push 0x1b
call fcn.00413286
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x429ca8], eax
call fcn.00419ca7
mov dword [0x42846c], eax
call fcn.00419c05
test eax, eax
jge 0x4133fa
push 8
call fcn.00413286
pop ecx
call fcn.004199d2
test eax, eax
jge 0x41340b
push 9
call fcn.00413286
pop ecx
push 1
call fcn.00412a02
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x413421
push eax
call fcn.00413286
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00419975
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x413442
movzx eax, word [ebp - 0x40]
jmp 0x413445
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040c311
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x413463
push edi
call fcn.00412b2f
call fcn.00412b51
jmp 0x413495
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00410f8b
ret
Function at 0x41382c
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 0x41385a
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 0x413861
cmp ebx, dword [eax + 4]
jae 0x413861
xor eax, eax
jmp 0x413a51
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x413872
xor eax, eax
inc eax
jmp 0x413a50
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x413888
cmp ecx, edx
jae 0x4139cd
cmp dword [eax + 4], 0
je 0x413891
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x413879
cmp dword [ebp + 8], 0
je 0x4138b3
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4139cd
cmp eax, esi
jae 0x4139cd
mov eax, dword [0x428478]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4138d8
cmp dword [esi*4 + 0x428480], edi
je 0x4139d1
inc esi
cmp esi, eax
jl 0x4138c6
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x413a4d
cmp dword [ebp - 8], 0x1000000
jne 0x413a4d
test byte [ebp - 0xc], 0xcc
je 0x413956
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x413a4d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x413a4d
cmp word [eax + 0x18], 0x10b
jne 0x413a4d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x413a4d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x413956
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x413956
test byte [ecx + 0x27], 0x80
jne 0x4139cd
push 1
push 0x4284c0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x41386a
mov ecx, dword [0x428478]
test ecx, ecx
mov edx, ecx
jle 0x41398a
lea eax, [ecx*4 + 0x42847c]
cmp dword [eax], edi
je 0x41398a
dec edx
sub eax, 4
test edx, edx
jg 0x41397e
test edx, edx
jne 0x4139bb
push 0xf
pop ebx
cmp ecx, ebx
jg 0x413997
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4139af
lea eax, [edx*4 + 0x428480]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41399d
cmp ecx, 0x10
jge 0x4139bb
inc ecx
mov dword [0x428478], ecx
push 0
push 0x4284c0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x41386a
xor eax, eax
jmp 0x413a50
test esi, esi
jle 0x41386a
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x4284c0
call ebx
test eax, eax
jne 0x41386a
cmp dword [esi*4 + 0x428480], edi
je 0x413a27
mov eax, dword [0x428478]
lea esi, [eax - 1]
test esi, esi
jl 0x413a15
cmp dword [esi*4 + 0x428480], edi
je 0x413a11
dec esi
jns 0x413a05
test esi, esi
jge 0x413a25
cmp eax, 0x10
jge 0x413a20
inc eax
mov dword [0x428478], eax
lea esi, [eax - 1]
jmp 0x413a27
je 0x413a3f
xor ecx, ecx
test esi, esi
jl 0x413a3f
lea eax, [ecx*4 + 0x428480]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x413a2d
push 0
push 0x4284c0
call ebx
jmp 0x41386a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415d02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x415ed6
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x428920]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x415ed6
test cl, 0x48
je 0x415d6d
cmp byte [eax + 5], 0xa
je 0x415d6d
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x415dbf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x415da7
call fcn.004160f0
mov dword [eax], 9
call fcn.004160f9
mov dword [eax], esi
jmp 0x415db7
cmp eax, 0x6d
je 0x415ed6
push eax
call fcn.00416102
pop ecx
or eax, 0xffffffff
jmp 0x415ed8
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x415ed1
test eax, eax
je 0x415de6
cmp byte [ebx], 0xa
jne 0x415de6
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x415def
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x415ecb
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x415ebb
cmp al, 0xd
je 0x415e21
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x415ead
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x415e3b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x415e36
add dword [ebp + 0x10], 2
jmp 0x415e8f
mov dword [ebp + 0x10], eax
jmp 0x415ea9
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x415e63
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x415ea9
cmp dword [ebp - 0xc], 0
je 0x415ea9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x415e84
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x415e8f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x415eac
cmp ebx, dword [ebp + 0xc]
jne 0x415e94
cmp byte [ebp - 1], 0xa
jne 0x415e94
mov byte [ebx], 0xa
jmp 0x415eac
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a278
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x415ead
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x415e05
jmp 0x415ecb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x415ecb
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x415ed8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret