joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3acc
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4c3b10
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
jne 0x4c3b10
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4c3ba7
mov eax, 0x400
call fcn.00402744
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x4c3ba0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4d1390
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4c3b96
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4c3b92
mov byte [esp], 1
jmp 0x4c3b96
inc edi
dec ebx
jne 0x4c3b79
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402764
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4c4788
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
push pe_nt_image_headers32
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.004046b8
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop ebx
ret

Function at 0x4c47bc
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
push 0x4010
push 0x160
lea eax, [esp + 8]
push eax
push 0x80
mov eax, ebx
call fcn.004046b8
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop ebx
ret

Function at 0x6903b9
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00690438
jae 0x6903c5
xor ecx, ecx
call fcn.00690438
jae 0x6903ef
xor eax, eax
call fcn.00690438
jae 0x690400
mov al, 0x10
call fcn.00690438
adc al, al
jae 0x6903e1
jne 0x69042d
stosb byte es:[edi], al
jmp 0x6903c6
call fcn.00690444
dec ecx
loop 0x69040c
mov eax, ebp
call fcn.00690442
jmp 0x69042e
lodsb al, byte [esi]
shr eax, 1
je 0x690454
adc ecx, 2
mov ebp, eax
jmp 0x69042e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00690442
cmp eax, 0x7d00
jae 0x69042c
cmp eax, 0x500
jae 0x69042d
cmp eax, 0x7f
ja 0x69042e
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6903c6
pop ebp
ret 8
Function at 0x406a34
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
pop ebp
ret 0x1c

Function at 0x4072e4
Capabilities:
Create thread

Disassembly:
mov eax, 0x418afa
call fcn.004175c0
sub esp, 0xd0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x74]
lea eax, [ecx + eax*8]
push edi
push dword [eax + 4]
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, dword [eax]
call fcn.00406b44
and dword [ebp - 4], 0
add esi, 0x6c
lea edi, [ebp - 0xdc]
mov dword [ebp - 0x10], esi
call fcn.004079f5
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebx, dword [ecx + eax*4 - 4]
call fcn.00406c9b
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xb4]
mov edi, esi
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov eax, dword [eax + 8]
push dword [eax]
lea esi, [ebx + 0x9c]
call fcn.004020a2
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [ebp - 0x14]
push ecx
xor esi, esi
push esi
push eax
push 0x40703a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x4073a2
push 0x41bdb0
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x425d0
call fcn.004175df
push eax
lea esi, [ebx + 0x80]
call fcn.004020a2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xdc]
push eax
call fcn.00406d09
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x409c39
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, dword [esp + 8]
mov eax, dword [eax]
push edi
jmp 0x409c5d
test esi, esi
jbe 0x409c62
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x421070]
dec esi
inc ecx
test cl, 3
jne 0x409c45
cmp esi, 4
jb 0x409cab
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
sub esi, 4
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x421070]
add ecx, 4
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x421070]
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x421070]
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x421070]
dec edx
jne 0x409c6c
xor edx, edx
test esi, esi
jbe 0x409ccb
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x421070]
inc edx
cmp edx, esi
jb 0x409cb2
pop ebx
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ecx], eax
pop esi
ret 4

Function at 0x40a938
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40ab32
Capabilities:
Create directory

Disassembly:
mov eax, 0x418698
call fcn.004175c0
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push ebx
call esi
test eax, eax
je 0x40ab5a
mov al, 1
jmp 0x40ac1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x40abd4
push edi
lea eax, [ebp - 0x18]
call fcn.004020d2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov ecx, str.__
mov dword [ebp - 4], ebx
call fcn.0040b79f
mov edi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00409902
mov byte [ebp - 4], bl
push dword [ebp - 0x24]
call fcn.00412013
pop ecx
push ebx
push dword [ebp - 0x18]
call esi
test eax, eax
pop edi
je 0x40abae
mov bl, 1
jmp 0x40abb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x40abc7
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00412013
jmp 0x40ac1c
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00412013
pop ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
call fcn.004020d2
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409e76
push dword [eax]
call fcn.0040ab1d
push dword [ebp - 0x24]
mov bl, al
call fcn.00412013
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00412013
pop ecx
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40adee
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40ae02
xor al, al
jmp 0x40ae12
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4
Function at 0x40af1b
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov eax, 0x418ad9
call fcn.004175c0
sub esp, 0x6c
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
call fcn.00409f24
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
push 0x5c
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0040b85b
push 0x2a
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040b85b
lea ecx, [ebp - 0x38]
push ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.0040a99a
mov byte [ebp - 4], 4
push dword [ebp - 0x24]
call fcn.00412013
pop ecx
jmp 0x40af94
lea eax, [ebp - 0x78]
push eax
sub esp, 0xc
lea edi, [ebp - 0x18]
mov eax, esp
mov dword [ebp + 8], esp
call fcn.00409f3d
call fcn.0040aea0
test al, al
je 0x40affb
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040bcfc
test al, al
jne 0x40af77
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0040b00c
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40b008
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne bl
mov byte [ebp - 4], 0
push dword [ebp - 0x18]
call fcn.00412013
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x48]
call fcn.00412013
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret 4
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0040b00c
xor bl, bl
jmp 0x40afce

Function at 0x40b522
Capabilities:
Delete file

Disassembly:
mov eax, 0x418aad
call fcn.004175c0
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x18]
mov byte [ebp - 0x1c], bl
call fcn.00409f24
jmp 0x40b597
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40b5d2
push dword [edi]
call fcn.0040bc95
test al, al
jne 0x40b577
push dword [edi]
call fcn.0040ab1d
test al, al
jne 0x40b5ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b5ab
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0040b503
push dword [ebp - 0x18]
call fcn.00412013
pop ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 0x1c], bl
call fcn.00409f24
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040b483
test al, al
jne 0x40b540
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0040b503
push dword [ebp - 0x18]
call fcn.00412013
xor al, al
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0040b503
push dword [ebp - 0x18]
call fcn.00412013
mov al, bl
jmp 0x40b5c1
mov bl, 1
jmp 0x40b5d2
Function at 0x40b9dd
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x418796
call fcn.004175c0
sub esp, 0x18
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
push edi
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
push 1
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x18]
push 0
push 0
mov dword [esi + 0x18], eax
push dword [ebx + 0x1c]
call fcn.00416fc0
mov ecx, dword [ebx + 0x20]
xor edi, edi
add eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebx + 0x2c]
adc edx, edi
push eax
lea eax, [ebp - 0x18]
mov dword [esi + 0x24], edx
call fcn.0040b60a
and dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b8dd
mov edi, eax
lea eax, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.00409902
mov byte [ebp - 4], 0
push dword [ebp - 0x24]
call fcn.00412013
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00412013
mov eax, dword [ebx + 0x24]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], eax
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x40becf
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bef8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40bef8
xor al, al
jmp 0x40bf13
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00416fc0
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
pop ebp
ret 4

Function at 0x40edde
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x40fb2b
Capabilities:
Encode data using xor

Disassembly:
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.0040f126
xor eax, eax
mov cl, byte [esi + eax + 0x108]
xor byte [eax + edi], cl
inc eax
cmp eax, 0x10
jl 0x40fb38
xor eax, eax
mov cl, byte [eax + ebx]
mov byte [esi + eax + 0x108], cl
inc eax
cmp eax, 0x10
jl 0x40fb4a
ret

Function at 0x410b10
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x418b3b
call fcn.004175c0
sub esp, 0xc
mov al, byte [ebx + 0x104]
push esi
push 0
lea esi, [ebx + 0x68]
mov byte [ebx + 0x70], al
call fcn.00410a30
push 0x45
lea eax, [ebp - 0x18]
push eax
call fcn.0040c385
and dword [ebp - 4], 0
mov eax, dword [eax]
lea esi, [ebx + 0x6c]
mov ecx, eax
call fcn.0040c4f4
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00412013
pop ecx
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x411567
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00414450
push esi
push edi
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1008]
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x20
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x4115e8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00414450
push ebx
push edi
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x2008]
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [ebp - 0x2008]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1008]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1008]
push str.Applications_
push eax
call fcn.00412a20
lea eax, [ebp - 0x2008]
push 0x5c
push eax
call fcn.00412b20
inc eax
push eax
lea eax, [ebp - 0x1008]
push eax
call fcn.00412a30
add esp, 0x18
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1008]
push eax
push SysReAllocString
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 1
lea eax, [ebp - 1]
push eax
push 1
push ebx
push str.IsHostApp
push dword [ebp - 8]
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
leave
ret
Function at 0x412c10
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41a2b8
call fcn.00412fdc
mov edi, 0x94
mov eax, edi
call fcn.00414450
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 [0x420d24], ecx
mov eax, dword [esi + 4]
mov dword [0x420d30], eax
mov edx, dword [esi + 8]
mov dword [0x420d34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x420d28], esi
cmp ecx, 2
je 0x412c70
or esi, 0x8000
mov dword [0x420d28], esi
shl eax, 8
add eax, edx
mov dword [0x420d2c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x412cab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412cab
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x412cc3
cmp eax, 0x20b
je 0x412cb0
mov dword [ebp - 0x1c], esi
jmp 0x412cd7
cmp dword [ecx + 0x84], 0xe
jbe 0x412cab
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x412cd1
cmp dword [ecx + 0x74], 0xe
jbe 0x412cab
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004143f5
pop ecx
test eax, eax
jne 0x412ceb
push 0x1c
call fcn.00412bec
pop ecx
call fcn.004142ec
test eax, eax
jne 0x412cfc
push 0x10
call fcn.00412bec
pop ecx
call fcn.00414086
mov dword [ebp - 4], esi
call fcn.00413e88
test eax, eax
jge 0x412d15
push 0x1b
call fcn.00412bc7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x421954], eax
call fcn.00413d66
mov dword [0x420bc0], eax
call fcn.00413cc4
test eax, eax
jge 0x412d3b
push 8
call fcn.00412bc7
pop ecx
call fcn.00413a91
test eax, eax
jge 0x412d4c
push 9
call fcn.00412bc7
pop ecx
push 1
call fcn.004134ef
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x412d62
push eax
call fcn.00412bc7
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413a34
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x412d83
movzx eax, word [ebp - 0x40]
jmp 0x412d86
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004116a4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x412da4
push edi
call fcn.0041361c
call fcn.0041363e
jmp 0x412dd6
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00413017
ret
Function at 0x413559
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41a340
call fcn.00412fdc
push 8
call fcn.00412fa9
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x420d64], esi
jne 0x41358d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x420d60], esi
mov al, byte [ebp + 0x10]
mov byte [0x420d5c], al
cmp dword [ebp + 0xc], edi
jne 0x4135d7
cmp dword [0x421948], edi
je 0x4135c7
mov eax, dword [0x421944]
sub eax, 4
mov dword [0x421944], eax
cmp eax, dword [0x421948]
jb 0x4135c7
mov eax, dword [eax]
cmp eax, edi
je 0x4135a8
call eax
jmp 0x4135a8
push 0x42008c
mov eax, 0x420088
call fcn.004134d7
pop ecx
push 0x420098
mov eax, 0x420090
call fcn.004134d7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x413608
cmp dword [ebp + 0x10], edi
jne 0x413616
mov dword [0x420d64], esi
push dword [ebp + 8]
call fcn.00413495
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x413615
push 8
call fcn.00412ef4
pop ecx
ret
call fcn.00413017
ret

Function at 0x41371f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4204d0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x420200]
je 0x413756
inc eax
cmp eax, 0x13
jb 0x413747
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x420200]
jne 0x413879
mov eax, dword [0x420bc8]
cmp eax, 1
je 0x413854
cmp eax, edx
jne 0x413786
cmp dword [0x4200c4], 1
je 0x413854
cmp ecx, 0xfc
je 0x413879
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4137bc
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00412a20
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004155d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4137f0
mov eax, edi
push eax
call fcn.004155d0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a748
push edi
call fcn.004154a0
add esp, 0x10
push edi
call fcn.004155d0
push dword [esi + 0x420204]
mov ebx, eax
call fcn.004155d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00414450
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00412a20
push edi
push ebx
call fcn.00412a30
push 0x41a728
push ebx
call fcn.00412a30
push dword [esi + 0x420204]
push ebx
call fcn.00412a30
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041539e
add esp, 0x2c
jmp 0x413879
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x420204]
push dword [esi]
call fcn.004155d0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0041568c
add ebp, 0x90
leave
ret
Function at 0x415142
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 0x415170
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 0x415177
cmp ebx, dword [eax + 4]
jae 0x415177
xor eax, eax
jmp 0x415367
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x415188
xor eax, eax
inc eax
jmp 0x415366
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41519e
cmp ecx, edx
jae 0x4152e3
cmp dword [eax + 4], 0
je 0x4151a7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41518f
cmp dword [ebp + 8], 0
je 0x4151c9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4152e3
cmp eax, esi
jae 0x4152e3
mov eax, dword [0x420e90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4151ee
cmp dword [esi*4 + 0x420e98], edi
je 0x4152e7
inc esi
cmp esi, eax
jl 0x4151dc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415363
cmp dword [ebp - 8], 0x1000000
jne 0x415363
test byte [ebp - 0xc], 0xcc
je 0x41526c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x415363
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x415363
cmp word [eax + 0x18], 0x10b
jne 0x415363
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x415363
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41526c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41526c
test byte [ecx + 0x27], 0x80
jne 0x4152e3
push 1
push 0x420ed8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x415180
mov ecx, dword [0x420e90]
test ecx, ecx
mov edx, ecx
jle 0x4152a0
lea eax, [ecx*4 + 0x420e94]
cmp dword [eax], edi
je 0x4152a0
dec edx
sub eax, 4
test edx, edx
jg 0x415294
test edx, edx
jne 0x4152d1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4152ad
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4152c5
lea eax, [edx*4 + 0x420e98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4152b3
cmp ecx, 0x10
jge 0x4152d1
inc ecx
mov dword [0x420e90], ecx
push 0
push 0x420ed8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x415180
xor eax, eax
jmp 0x415366
test esi, esi
jle 0x415180
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x420ed8
call ebx
test eax, eax
jne 0x415180
cmp dword [esi*4 + 0x420e98], edi
je 0x41533d
mov eax, dword [0x420e90]
lea esi, [eax - 1]
test esi, esi
jl 0x41532b
cmp dword [esi*4 + 0x420e98], edi
je 0x415327
dec esi
jns 0x41531b
test esi, esi
jge 0x41533b
cmp eax, 0x10
jge 0x415336
inc eax
mov dword [0x420e90], eax
lea esi, [eax - 1]
jmp 0x41533d
je 0x415355
xor ecx, ecx
test esi, esi
jl 0x415355
lea eax, [ecx*4 + 0x420e98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x415343
push 0
push 0x420ed8
call ebx
jmp 0x415180
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret