joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d437
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4abd38]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d47a
cmp word [esi], dx
jne 0x41d47a
or byte [edi + eax + 0x28], 4
jmp 0x41d47f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d5d2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d5b2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d4c1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d4f7
cmp eax, edx
jae 0x41d503
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d499
jmp 0x41d5d2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d5ae
cmp dword [ebp - 0x14], 0
je 0x41d5ae
mov eax, dword [ebx*4 + 0x4abd38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d586
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d54f
mov word [esi], cx
jmp 0x41d582
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4abd38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4abd38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4abd38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d5d2
pop ebx
cmp word [ebp - 4], bx
jne 0x41d597
cmp esi, dword [ebp + 0xc]
jne 0x41d597
mov word [esi], bx
jmp 0x41d5cf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041de6b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d5d2
push 0xd
jmp 0x41d5cb
mov ecx, dword [ebx*4 + 0x4abd38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d5c9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d5d2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x452493
Capabilities:
Check for software breakpoints

Disassembly:
push eax
call 0x452499
pop ebx
sub ebx, 0x1a2
mov ecx, 0x152f7
sub ebx, ecx
mov esi, ebx
sub ebx, 0x3c000
mov edi, ebx
sub ebx, 0x1000
push edi
push ecx
push esi
call fcn.00452348
add esp, 0xc
mov ebp, dword [ebx + 0xc0]
lea ebp, [ebx + ebp]
dec ebp
mov cl, byte [ebp]
cmp cl, 0xcc
je 0x4524cb
sub ebp, 9
mov edx, ebx
sub edx, dword [ebx + 0x74]
add dword [ebp], edx
add ebp, 6
add dword [ebp], edx
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x1eb7a
call fcn.00452469
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x452555
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x452550
pushal
test eax, 0x80000000
je 0x45253a
and eax, 0x7fffffff
jmp 0x45253e
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x452525
add esi, 0x14
jmp 0x45250b
pop edx
mov ebp, ebx
sub ebp, dword [edx + 0x34]
mov esi, dword [edx + 0xa0]
add esi, ebx
cmp esi, ebx
je 0x45259f
push edx
mov eax, dword [esi + 4]
or eax, eax
je 0x45259e
mov ecx, dword [esi]
add ecx, ebx
add esi, 8
sub eax, 8
shr eax, 1
mov edx, esi
lea edi, [eax + esi]
lea esi, [eax + edi]
xor eax, eax
add al, byte [edx]
adc ah, byte [edi]
test ah, 0x30
je 0x452596
push eax
and ah, 0xf
add dword [ecx + eax], ebp
pop eax
inc edx
inc edi
cmp edi, esi
jb 0x452585
jmp 0x452568
pop edx
pop eax
cmp eax, 0xd0dec0de
je 0x4525ac
add ebx, dword [edx + 0x28]
jmp ebx
ret 0xc
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x411f5d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x412080
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.Soviet_aristo_baristo
mov ebp, 0x4f9448
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x69
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x2c
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x3d
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xcc
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x8a
push ebx
push ebp
call fcn.00403490
add esp, 0x44
push eax
call fcn.004013b6
xor byte [esi + edi], 0x1c
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xcf
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x53
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xbe
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x8b
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x5e
add esp, 0x40
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x87
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd4
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd3
add esp, 0x24
inc esi
cmp esi, dword [esp + 0x18]
jb 0x411f7b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x402946
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x412674
sub esp, 0x20
mov eax, dword [0x4f7024]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add ebx, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126f3
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401e2e
push str.Hardline
push 0x4f9530
call fcn.00402d60
push eax
call fcn.00406082
lea eax, [esp + 0x20]
push 0x36c
push eax
call fcn.00402cc5
add esp, 0x14
cmp eax, dword [esp + 0x38]
je 0x41270d
lea ecx, [esp + 0x14]
add ebx, 4
call fcn.00402982
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4126a5
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403030
add esp, 0x20
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402982
jmp 0x4126f5
Function at 0x497940
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f7024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49798b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00497e02
test al, al
jne 0x497985
sub edx, 2
cmp edx, edi
jne 0x49796b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4979ad
lea eax, [edi + 2]
cmp edx, eax
je 0x4979ad
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00497539
add esp, 0x10
jmp 0x497aa7
push esi
lea ecx, [ebp - 0x255]
call fcn.00497e02
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4979f0
push dword [ebp - 0x25c]
jmp 0x49799d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x497a2d
cmp word [ebp - 0x226], 0
je 0x497a4e
cmp word [ebp - 0x226], ax
jne 0x497a2d
cmp word [ebp - 0x224], 0
je 0x497a4e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00497539
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x497a9a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x497a07
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x497a82
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x497aa7
push 0x496f21
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054b1
add esp, 0x10
jmp 0x497a77
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403030
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x401500
Capabilities:
Clear file content
Delete file
Encode data using xor
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 0x80
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 3
mov edi, eax
push 0x40000000
push ebx
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401657
test esi, esi
je 0x401650
push edi
call fcn.00414a80
mov dl, byte [esi + 2]
mov cl, byte [esi + 1]
mov ebx, eax
mov al, byte [esi + 3]
add al, dl
mov dl, byte [esi]
add al, cl
add esp, 4
add al, dl
cmp edi, 4
jbe 0x4015bd
mov edx, dword [esp + 0x1c]
mov ecx, esi
sub ecx, ebx
add edx, 0xfffffffc
lea edi, [ebx + 4]
mov dword [esp + 0x20], edx
mov dl, byte [ecx + edi]
xor dl, al
mov byte [edi], dl
mov edx, dword [esp + 0x20]
inc edi
dec edx
mov dword [esp + 0x20], edx
jne 0x4015aa
mov eax, dword [esi]
push eax
call fcn.00414a80
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
add edx, 0xfffffffc
push edi
lea eax, [ebx + 4]
push edx
push eax
call fcn.00412000
push ebx
call fcn.00414aa9
mov esi, dword [esp + 0x28]
add esp, 0x18
lea ecx, [esp + 0x1c]
mov ebx, edi
push 0
push ecx
push esi
push edi
push ebp
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401633
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add edx, eax
cmp esi, eax
mov dword [esp + 0x20], edx
je 0x401639
lea edx, [esp + 0x1c]
sub esi, eax
push 0
add ebx, eax
push edx
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401609
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call fcn.00414aa9
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401660
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x80
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ebx, [esp + eax + 0x10]
mov edi, str.CDRecord.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, ecx
mov esi, edi
mov edi, ebx
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x80
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, str.CDRecordDVD.exe
or ecx, 0xffffffff
xor eax, eax
push 0x80
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, str.mkisofs.exe
or ecx, 0xffffffff
xor eax, eax
push 0x80
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, str.cygwin1.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
call ebx
mov edi, 0x4200b0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret

Function at 0x401c70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 0
push ecx
push esi
push edi
push ebx
mov dword [eax], 0
call ebp
test eax, eax
je 0x401cc6
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
add edx, eax
cmp esi, eax
mov dword [ecx], edx
je 0x401cd1
lea edx, [esp + 0x1c]
sub esi, eax
push 0
add edi, eax
push edx
push esi
push edi
push ebx
call ebp
test eax, eax
jne 0x401ca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4022b0
Capabilities:
Terminate process

Disassembly:
mov dword [ecx], method.CWinApp.virtual_8
add ecx, 8
jmp fcn.00405fc0

Function at 0x402700
Capabilities:
Terminate process

Disassembly:
mov dword [ecx], method.CWinApp.virtual_8
add ecx, 0xc
jmp fcn.00405fc0

Function at 0x405fc0
Capabilities:
Terminate process
Terminate thread

Disassembly:
mov dword [ecx], method.CWinApp.virtual_8
jmp 0x406220
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [0x420354], edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x28], edi
je 0x40623e
mov dword [esi + 0x28], edi
mov eax, dword [esi + 8]
push ebx
cmp eax, edi
push ebp
je 0x406252
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
jmp 0x406258
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
mov dword [esi + 8], edi
cmp eax, edi
je 0x406265
push eax
call ebp
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edi
cmp eax, edi
je 0x406272
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
mov dword [esi + 0x10], edi
call ebx
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x406289
push eax
call ebp
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], edi
cmp eax, edi
je 0x406296
push eax
call ebp
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], edi
cmp eax, edi
je 0x4062a3
push eax
call ebp
push 0x64
mov dword [esi + 0x1c], edi
call ebx
mov eax, dword [esi + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x4062dc
call fcn.00405f70
test eax, eax
jne 0x4062ce
mov ecx, dword [esi + 0x20]
push 1
push ecx
call ebp
mov edx, dword [esi + 0x20]
push 0x3e8
push edx
call ebx
mov dword [esi + 0x20], edi
cmp dword [esi + 0x24], edi
je 0x406300
call fcn.00405f70
test eax, eax
jne 0x4062f2
mov eax, dword [esi + 0x24]
push 1
push eax
call ebp
mov ecx, dword [esi + 0x24]
push 0x3e8
push ecx
call ebx
mov dword [esi + 0x24], edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.004061f0
test eax, eax
je 0x40632a
mov edx, dword [esi + 0x2c]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x2c]
push 0x3e8
push eax
call ebx
mov eax, dword [esi + 4]
pop ebp
cmp eax, edi
mov dword [esi + 0x2c], edi
pop ebx
je 0x40633d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
pop edi
pop esi
ret
Function at 0x405fd0
Capabilities:
Create pipe
Create thread

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
xor eax, eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
lea edx, [esp + 0x14]
push eax
lea ebx, [esi + 8]
push ecx
push edx
mov dword [esp + 0x34], eax
push ebx
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [esp + 0x20]
lea ebp, [esi + 0xc]
push 0
push eax
lea ecx, [esp + 0x34]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea edx, [esp + 0x20]
lea eax, [esi + 0x10]
push 0
push edx
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov edx, dword [esp + 0x14]
push 2
push 0
lea ecx, [esi + 0x14]
push 0
push ecx
push edi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [esp + 0x2c]
push 2
push 0
lea eax, [esi + 0x18]
push 0
push eax
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0x1c]
push 2
push 0
lea edx, [esi + 0x1c]
push 0
push edx
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x138]
push ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx]
mov eax, dword [edx]
mov edx, dword [ebp]
push eax
mov eax, dword [esp + 0x13c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00406350
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x406133
mov ecx, dword [esp + 0x134]
lea edx, [esp + 0x30]
push ecx
push str.Unable_to_start__s_n
push edx
call fcn.00407a0c
mov eax, dword [esi]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebx]
push edx
call edi
mov eax, dword [ebp]
mov dword [ebx], 0
push eax
call edi
mov esi, dword [esp + 0x10]
mov dword [ebp], 0
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret 8
push 0
push 0
push 1
push 0
mov dword [0x420354], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 0x18]
push edx
push 0
push esi
push 0x4061c0
push 0
push 0
mov dword [esi + 4], eax
call edi
mov dword [esi + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push esi
push 0x4061d0
push 0
push 0
call edi
lea ecx, [esp + 0x18]
mov dword [esi + 0x24], eax
push ecx
push 0
push esi
push 0x4061e0
push 0
push 0
call edi
mov edx, dword [esi]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x134]
mov ecx, esi
push eax
call dword [edx]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret 8
Function at 0x406350
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov edx, dword [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
neg eax
sbb eax, eax
mov dword [esp + 0x20], 0x44
and eax, 5
mov dword [esp + 0x4c], 0x101
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], edx
mov word [esp + 0x50], ax
xor edi, edi
xor esi, esi
call fcn.00405f70
test eax, eax
je 0x4063eb
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x14
push 0x40
call esi
mov edi, eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0xc
push 0x40
call esi
mov esi, eax
mov dword [esi], 0xc
mov dword [esi + 4], edi
mov dword [esi + 8], 1
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push 0x10
push 1
push 0
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, eax
test esi, esi
je 0x40641c
push esi
call ebp
test edi, edi
je 0x406423
push edi
call ebp
pop edi
pop esi
pop ebp
test ebx, ebx
pop ebx
jne 0x406433
xor eax, eax
add esp, 0x54
ret 0x14
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
add esp, 0x54
ret 0x14

Function at 0x406450
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x420354]
sub esp, 0x108
test eax, eax
push ebp
push esi
push edi
mov esi, ecx
je 0x4064be
mov edi, dword [esp + 0x118]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x18]
push pe_nt_image_headers32
push ecx
push edi
call ebp
test eax, eax
je 0x406491
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4064a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4064be
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4064b5
mov edx, dword [esi]
mov byte [esp + eax + 0x10], 0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call dword [edx + 4]
mov eax, dword [0x420354]
test eax, eax
jne 0x406471
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x108
ret 4