joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fad10
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov edi, dword [sym.imp.kernel32.dll_CreateNamedPipeA]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
call edi
sub esp, 0x20
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x9e8
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp + 4], str.CreateNamedPipe_failed_n
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 8], 1
mov edx, ebx
mov ecx, 1
mov dword [esp + 4], 0x400
mov eax, 0x9ea
mov dword [esp], 0x400
call fcn.004fa410
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], ebx
call esi
sub esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 3
mov dword [esp + 8], 5
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
call edi
sub esp, 0x20
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x9f5
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp + 4], str.CreateNamedPipe_failed_n
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 8], 3
mov edx, ebx
mov ecx, 5
mov dword [esp + 4], 0x400
mov eax, 0x9f7
mov dword [esp], 0x400
call fcn.004fa410
mov dword [esp], ebx
call esi
sub esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 4
mov dword [esp + 4], 0x40000003
mov dword [esp], str..PiPe_tests_pipe.c
call edi
sub esp, 0x20
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xa02
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp + 4], str.CreateNamedPipe_failed_n
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 8], 1
mov edx, ebx
mov ecx, 5
mov dword [esp + 4], 0
mov eax, 0xa04
mov dword [esp], 0
call fcn.004fa410
mov dword [esp], ebx
call esi
sub esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf000
mov dword [esp + 0x10], 0xf000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 4
mov dword [esp + 4], 0x40000003
mov dword [esp], str..PiPe_tests_pipe.c
call edi
sub esp, 0x20
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xa0f
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp + 4], str.CreateNamedPipe_failed_n
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 8], 1
mov edx, ebx
mov ecx, 5
mov dword [esp + 4], 0xf000
mov eax, 0xa11
mov dword [esp], 0xf000
call fcn.004fa410
mov dword [esp], ebx
call esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x500320
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x150]
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x184
mov dword [ebp - 0x154], 0x44
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x168]
mov dword [esp], eax
call fcn.0057d960
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x168]
lea ebx, [ebp - 0x110]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], str.__s__pipe__s__lx
mov dword [esp + 8], eax
call fcn.004f5dc0
lea eax, [ebp - 0x164]
mov dword [esp + 4], ebx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x154]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xd7c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], 0x5eb036
mov dword [esp + 8], eax
call fcn.004f6800
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x164]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x500430
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x2c
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebx], 0
mov dword [ebp - 0x18], ecx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
sub esp, 0x10
mov dword [ebx + 0x10], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0
mov ecx, dword [ebp - 0x18]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esp + 4], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_TransactNamedPipe]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov esi, dword [ebp - 0x10]
mov dword [eax], 0x5ead94
mov dword [eax + 4], esi
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x5004ff
xor eax, eax
cmp ecx, 0x3e5
sete al
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], str.TransactNamedPipe_returned:__x__lu__n
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004f6800
Function at 0x5007e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x3c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4f6280
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x6f
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateThread_failed.__ld_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x71
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.WaitForSingleObject_failed_with__ld._n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
sub esp, 4
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x504820
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
lea edi, [ebp - 0x20]
push ebx
mov ebx, eax
sub esp, 0x34
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - SetThreadAffinityMaskx1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - SetThreadContextx10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
sub esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov eax, dword [ebp + 8]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp], esi
mov dword [esp + 4], ecx
call dword [sym.imp.kernel32.dll_TransactNamedPipe]
sub esp, 0x1c
mov dword [ebp - 0x24], eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], ebx
xor eax, eax
mov dword [esp + 4], 0x5ed8d2
mov edx, dword [ebp - 0x24]
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov edx, dword fs:[0x18]
cmp dword [edx + 0x34], 0x3e5
je 0x504950
mov dword [ebp - 0x24], edx
call fcn.0057d110
mov dword [eax + 4], ebx
mov dword [eax], 0x5ead94
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
mov dword [esp + 4], 0x5ed8f0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
cmp dword [edx + 0x34], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov edx, esi
mov dword [esp], eax
mov eax, ebx
call fcn.005046a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x50d7d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x10]
lea ebx, [ebp - 0x604]
sub esp, 0x618
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_vsprintf]
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strlen]
lea edx, [ebp - 0x608]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ebx, dword [ebp - 4]
sub esp, 0x14
leave
ret

Function at 0x50d8f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x10c]
mov ebx, eax
sub esp, 0x114
mov byte [eax], 0
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5eee65
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x50d950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x68]
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x74
mov dword [ebp - 0x6c], edx
mov esi, dword [sym.imp.kernel32.dll_VirtualQueryEx]
lea esi, [esi]
mov dword [esp + 0xc], 0x1c
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 0x10
test eax, eax
je 0x50da3e
cmp dword [ebp - 0x50], 0x1000000
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x5c]
je 0x50d9a8
add eax, edx
jmp 0x50d970
lea ecx, [ebp - 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadProcessMemory]
mov edx, dword [ebp - 0x5c]
sub esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x68]
je 0x50d99f
cmp word [ebp - 0x4c], 0x5a4d
jne 0x50d99f
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
jb 0x50d99f
cmp ecx, 0x3f
jbe 0x50d99f
mov dword [esp + 0x10], 0
add eax, ecx
mov dword [esp + 0xc], 0xf8
mov edx, dword [ebp - 0x6c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadProcessMemory]
sub esp, 0x14
test eax, eax
je 0x50da2e
mov eax, dword [ebp - 0x6c]
cmp dword [eax], 0x4550
jne 0x50da2e
mov eax, dword [ebp - 0x6c]
test byte [eax + 0x17], 0x20
je 0x50da3b
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x68]
add eax, edx
jmp 0x50d970
mov eax, dword [ebp - 0x68]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x50de60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
mov edx, dword [0x57f4a4]
add eax, 1
lea ebx, [eax + eax]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 4]
mov dword [ebp - 0x10], edx
and eax, 0xfffffffc
add eax, edx
mov dword [0x57f4a4], eax
cmp eax, 0x84fda0
ja 0x50dedb
mov eax, dword [ebp - 0x10]
mov edi, eax
add ebx, eax
lea esi, [esi]
movzx eax, byte [esi]
mov dword [esp], edi
add edi, 2
add esi, 1
mov dword [esp + 4], str._02x
mov dword [esp + 8], eax
call fcn.0050d7a0
cmp edi, ebx
jne 0x50dea8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov byte [eax + ecx*2], 0
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0050db40

Function at 0x50dee0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov edx, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
cmp word [eax], 0
je 0x50df90
mov ebx, eax
lea esi, [esi]
nop
add ebx, 2
cmp word [ebx], 0
jne 0x50df00
sub ebx, edx
sar ebx, 1
add ebx, 1
lea eax, [ebx*4]
mov dword [ebp - 0x14], eax
add eax, 4
mov ecx, dword [0x57f4a4]
add eax, ecx
mov dword [0x57f4a4], eax
cmp eax, 0x84fda0
ja 0x50dfa6
test ecx, ecx
je 0x50dfab
xor esi, esi
test ebx, ebx
je 0x50df78
mov dword [ebp - 0x18], ecx
mov edi, esi
mov esi, edx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
lea esi, [esi]
nop
movzx eax, word [esi + edi*2]
mov dword [esp], ebx
add edi, 1
add ebx, 4
mov dword [esp + 4], 0x5eeef2
mov dword [esp + 8], eax
call fcn.0050d7a0
mov eax, dword [ebp - 0x10]
cmp edi, eax
jne 0x50df50
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov byte [ecx + eax], 0
add esp, 0x18
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x14], 4
mov eax, 8
mov ebx, 1
jmp 0x50df1d
call fcn.0050db40
mov dword [esp + 8], 0xa1
mov dword [esp + 4], str..._dlls_kernel32_tests_process.c
mov dword [esp], 0x5eeeee
call dword [sym.imp.msvcrt.dll__assert]
lea esi, [esi]
nop
Function at 0x50dfd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x60c]
push ebx
sub esp, 0x628
mov dword [esp + 0x14], 0x84fdc0
mov dword [esp + 0x10], 0x600
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x5eeef7
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
movzx eax, byte [ebp - 0x60c]
sub esp, 0x18
test al, al
je 0x50e15d
cmp al, 0x2d
je 0x50e150
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
mov edx, eax
and edx, 1
jne 0x50e192
mov ecx, eax
shr ecx, 1
lea edi, [ecx - 1]
mov dword [ebp - 0x618], edi
cmp eax, 1
jbe 0x50e15d
mov ebx, dword [0x57f4a4]
lea eax, [ecx + 3]
and eax, 0xfffffffc
add eax, ebx
mov dword [ebp - 0x614], ebx
mov dword [0x57f4a4], eax
cmp eax, 0x84fda0
ja 0x50e1af
test edi, edi
je 0x50e136
mov dword [ebp - 0x61c], ecx
jmp 0x50e0f2
lea ebx, [eax - 0x61]
cmp bl, 5
jbe 0x50e118
sub ecx, 0x41
cmp cl, 5
ja 0x50e175
sub eax, 0x37
movsx edi, byte [esi + edx*2 + 1]
shl eax, 4
mov dword [ebp - 0x610], edi
mov ecx, edi
lea edi, [edi - 0x30]
mov ebx, edi
cmp bl, 9
jbe 0x50e108
lea edi, [ecx - 0x61]
mov ebx, edi
cmp bl, 5
jbe 0x50e120
sub ecx, 0x41
cmp cl, 5
ja 0x50e175
mov ebx, dword [ebp - 0x610]
sub ebx, 0x37
mov edi, dword [ebp - 0x614]
or eax, ebx
mov byte [edi + edx], al
add edx, 1
cmp dword [ebp - 0x618], edx
je 0x50e130
movsx eax, byte [esi + edx*2]
lea ebx, [eax - 0x30]
mov ecx, eax
cmp bl, 9
ja 0x50e088
sub eax, 0x30
jmp 0x50e0a3
mov ebx, dword [ebp - 0x610]
sub ebx, 0x30
jmp 0x50e0dc
sub eax, 0x57
jmp 0x50e0a3
mov ebx, dword [ebp - 0x610]
sub ebx, 0x57
jmp 0x50e0dc
mov ecx, dword [ebp - 0x61c]
mov eax, dword [ebp - 0x614]
mov byte [eax + ecx - 1], 0
mov eax, dword [ebp - 0x614]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebp - 0x60b], 0
jne 0x50e025
mov dword [ebp - 0x614], 0
mov eax, dword [ebp - 0x614]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xac
mov dword [esp + 4], str..._dlls_kernel32_tests_process.c
mov dword [esp], str.c___A__c___F
call dword [sym.imp.msvcrt.dll__assert]
mov dword [esp + 8], 0x24a
mov dword [esp + 4], str..._dlls_kernel32_tests_process.c
mov dword [esp], str.__strlen_buf___1_
call dword [sym.imp.msvcrt.dll__assert]
call fcn.0050db40
lea esi, [esi]
lea esi, [esi]
nop
Function at 0x50e8d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x168]
mov esi, ecx
mov ecx, 0x11
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x184
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x123]
mov dword [esp + 0xc], edx
mov dword [esp], edi
mov dword [esp + 8], 0x84fee0
mov dword [esp + 4], str.__s__process__s
call fcn.0050d7a0
lea eax, [ebp - 0x168]
mov dword [esp + 0x24], esi
mov dword [esp + 4], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov esi, eax
call fcn.0057d110
mov dword [eax + 4], ebx
mov dword [eax], 0x5eee7f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], esi
mov dword [esp + 4], str.CreateProcess_error__lu_n
mov dword [esp + 8], eax
call fcn.0050e8b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5104e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
xor eax, eax
push esi
push ebx
sub esp, 0x20
mov esi, dword [ebp + 8]
mov dword [esp + 4], ecx
test esi, esi
mov dword [esp + 0xc], 0x84fdc0
sete al
mov dword [esp + 8], eax
mov dword [ebp - 0x14], ecx
mov dword [esp], edx
mov dword [ebp - 0x10], edx
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
sub esp, 0x10
mov ebx, eax
call fcn.0057d110
mov dword [eax + 4], edi
mov dword [eax], 0x5eee7f
xor eax, eax
cmp esi, ebx
mov dword [esp + 0x14], ebx
sete al
mov dword [esp + 0x10], esi
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], str._s:_s_expected__u__but_got__u_n
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0050e8b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x510560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
xor eax, eax
push esi
push ebx
sub esp, 0x20
mov esi, dword [ebp + 8]
mov dword [esp + 4], ecx
test esi, esi
mov dword [esp + 0xc], 0x84fdc0
sete al
mov dword [esp + 8], eax
mov dword [ebp - 0x14], ecx
mov dword [esp], edx
mov dword [ebp - 0x10], edx
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
sub esp, 0x10
mov ebx, eax
call fcn.0057d110
cmp esi, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], 0x5eee7f
mov dword [eax + 4], edi
mov eax, 1
je 0x5105de
mov eax, dword [0x8f0770]
test eax, eax
sete al
mov edi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
setne al
and eax, edi
mov byte [ebp - 0x10], al
xor eax, eax
cmp ebx, dword [ebp + 0xc]
sete al
mov edi, eax
mov eax, dword [ebp - 0x10]
and eax, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], str._s:_s_expected__x__but_got__x_n
mov dword [esp], eax
call fcn.0050e8b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x510c80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov dword [ebp - 0x38], eax
mov dword [esp + 0xc], 0x84fdc0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5efa30
mov dword [esp], str.EnvironmentA
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x30], eax
sub esp, 0x10
test esi, esi
je 0x510d72
cmp byte [esi], 0
lea ebx, [ebp - 0x2c]
je 0x510d72
lea esi, [esi]
mov edx, dword [ebp - 0x30]
xor edi, edi
test edx, edx
jg 0x510ce8
jmp 0x510d21
add edi, 1
cmp dword [ebp - 0x30], edi
je 0x510d21
mov dword [esp + 8], edi
mov dword [esp + 4], str.env_d
mov dword [esp], ebx
call fcn.0050d7a0
mov edx, ebx
mov eax, str.EnvironmentA
call fcn.0050dfd0
mov dword [esp + 8], 0x7f
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
jne 0x510ce0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x52f
mov dword [esp + 8], esi
mov dword [esp + 4], str.Parent_env_string__s_isnt_in_child_process_n
mov eax, dword [ebp - 0x30]
cmp edi, eax
setl al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [0x57f4a4], 0x80fda0
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x510cd0
mov eax, dword [ebp - 0x30]
test eax, eax
jle 0x510e80
mov dword [ebp - 0x34], 0
mov esi, dword [sym.imp.msvcrt.dll_strlen]
jmp 0x510dd6
cmp byte [ebx], 0x3d
je 0x510e46
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x548
xor eax, eax
test edi, edi
setne al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Child_env_string__s_isnt_in_parent_process_n
mov dword [esp], eax
call fcn.0050e8b0
add dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x30], eax
je 0x510e80
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], str.env_d
xor edi, edi
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.0050d7a0
lea edx, [ebp - 0x2c]
mov eax, str.EnvironmentA
call fcn.0050dfd0
mov ebx, eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x510d90
cmp byte [eax], 0
je 0x510d90
mov edi, eax
nop
mov dword [esp + 8], 0x7f
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
je 0x510d90
mov dword [esp], edi
call esi
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x510e10
xor edi, edi
cmp byte [ebx], 0x3d
jne 0x510d99
movzx eax, byte [ebx + 1]
lea edx, [eax - 0x41]
cmp dl, 0x19
ja 0x510d99
cmp byte [ebx + 2], 0x3a
jne 0x510d99
cmp byte [ebx + 3], 0x3d
jne 0x510d99
cmp al, byte [ebx + 4]
jne 0x510d99
jmp 0x510dc6
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x512b60
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, dword fs:[0x18]
sub esp, 0x7c
mov dword [ebx + 0x34], 0xdeadbeef
mov esi, dword [sym.imp.kernel32.dll_GetProcessVersion]
mov dword [esp], 0
call esi
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x75c
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetProcessVersion_error__lu_n
call fcn.0050e8b0
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], eax
call esi
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x760
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetProcessVersion_error__lu_n
call fcn.0050e8b0
xor eax, eax
mov ecx, 0x10
lea edx, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57f458
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x768
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.CreateProcess_error__lu_n
call fcn.0050e8b0
mov eax, dword [ebp - 0x58]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], eax
call esi
sub esp, 4
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x76c
mov eax, dword [ebx + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetProcessVersion_error__lu_n
call fcn.0050e8b0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x770
mov eax, dword [ebx + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.TerminateProcess_error__lu_n
call fcn.0050e8b0
mov eax, dword [ebp - 0x60]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x5c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret