joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001be00
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x1012c658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1016e0e4]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
mov ecx, dword [0x1018e644]
mov dword [esp + 0x14], 0
push ecx
push 0x12c
push 0x12c
lea ecx, [esp + 0x14]
call fcn.10120158
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push str.SYSTEM_CLONE
push str.SYSTEM_CLONE
push str.SystemSeting
call edi
mov edx, dword [esp + 8]
mov ecx, esi
push edx
push 0x4ed
call fcn.1012371b
mov ecx, eax
call fcn.10123809
mov eax, dword [0x1018e644]
lea ecx, [esp + 8]
push eax
push 0x12c
push 0x12c
call fcn.10120158
push eax
push str.IDC_STATIC_SYS_SETTINGS_BACKUP
push str.IDC_STATIC_SYS_SETTINGS_BACKUP
push str.DIALOG_102
call edi
mov ecx, dword [esp + 8]
push ecx
push 0x4ea
mov ecx, esi
call fcn.1012371b
mov ecx, eax
call fcn.10123809
mov edx, dword [0x1018e644]
lea ecx, [esp + 8]
push edx
push 0x12c
push 0x12c
call fcn.10120158
push eax
push str.IDC_EDIT_CLONE_INTRO
push str.IDC_EDIT_CLONE_INTRO
push str.DIALOG_102
call edi
mov eax, dword [esp + 8]
mov ecx, esi
push eax
push 0x519
call fcn.1012371b
mov ecx, eax
call fcn.10123809
push 0x12c
lea ecx, [esp + 0xc]
call fcn.101201a8
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.1011fd13
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1001f360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012cba2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [0x1016e0e4]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push 0x1016a06c
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.1011dcfb
cmp eax, ebx
jl 0x1001f57e
inc eax
lea ecx, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1011db2c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.1011fe5a
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.1011fd13
push 0x1016a068
lea ecx, [esp + 0x10]
call fcn.1011dcfb
mov esi, eax
cmp esi, ebx
jl 0x1001f4b0
push esi
lea ecx, [esp + 0x18]
push ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.1011db4f
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.1011fe5a
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.1011fd13
inc esi
lea ecx, [esp + 0xc]
push esi
push ebx
call fcn.1011d958
push 0x10
call fcn.1011fa4c
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x1001f465
mov edx, dword [0x1016e0e4]
lea ecx, [esi + 0xc]
mov dword [ecx], edx
push 0x1017dba8
mov byte [esp + 0x28], 7
mov dword [esi], 0x101313f8
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.1011feaa
jmp 0x1001f467
xor esi, esi
push esi
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x30], 2
call fcn.1011fa80
mov ecx, edi
call fcn.1001f6b0
cmp eax, ebx
je 0x1001f49a
push esi
lea ecx, [edi + 0x19c]
call fcn.1011f423
jmp 0x1001f3d8
cmp esi, ebx
je 0x1001f3d8
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
jmp 0x1001f3d8
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.1011fe5a
push 0x10
call fcn.1011fa4c
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x1001f4fa
mov edx, dword [0x1016e0e4]
lea ecx, [esi + 0xc]
mov dword [ecx], edx
push 0x1017dba8
mov byte [esp + 0x28], 0xa
mov dword [esi], 0x101313f8
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.1011feaa
jmp 0x1001f4fc
xor esi, esi
push esi
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x30], 2
call fcn.1011fa80
mov ecx, edi
call fcn.1001f6b0
cmp eax, ebx
je 0x1001f52c
push esi
lea ecx, [edi + 0x19c]
call fcn.1011f423
jmp 0x1001f539
cmp esi, ebx
je 0x1001f539
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.1011fd13
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.1011fd13
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.1011fd13
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.1011fd13
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.1011fd13
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.1011fd13
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 4
Function at 0x10022100
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1002210b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1002220e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x101327dc]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x101327dc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x101327dc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x101327dc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x101327dc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x101327dc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x101327dc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x101327dc]
xor eax, edx
inc ecx
dec edi
jne 0x10022126
pop edi
test esi, esi
je 0x10022230
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x101327dc]
xor eax, edx
inc ecx
dec esi
jne 0x10022212
pop esi
pop ebx
not eax
ret

Function at 0x10022240
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x101327dc]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x101327dc]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x10022c50
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x10022c91
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10022c86
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x10022ca4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret
Function at 0x100237c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x100237dc
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x100237ed
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x100237fb
push edi
call fcn.10023c30
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push edi
call fcn.100235c0
add esp, 0x10
test eax, eax
je 0x10023823
pop edi
pop esi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push 0x84
call fcn.1002e5f3
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x10023842
pop edi
pop esi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call fcn.1002e5f3
mov dword [esi], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x1002387b
push esi
call fcn.1002e4db
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x100238c9
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.100224e0
add esp, 4
test eax, eax
jne 0x100238c9
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x100238f6
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x10023902
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
neg cl
sbb ecx, ecx
mov dword [ebx], 0x12345678
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], 0x34567890
je 0x10023943
mov al, byte [ebp]
test al, al
je 0x10023943
push eax
push ebx
call fcn.10022240
add esp, 8
inc ebp
jne 0x1002392f
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
pop ebp
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x10023d70
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x10023e34
cmp dword [edi + 4], 0xffffffff
jne 0x10023e34
lea esi, [edi + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call fcn.1002e383
mov ax, word [edi + eax*2 + 0x242]
add esp, 4
cmp ax, 0x5c
je 0x10023dc6
cmp ax, 0x2f
je 0x10023dc6
push 0x1016a058
push esi
call fcn.1002e495
add esp, 8
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp ebx, 1
jne 0x10023df1
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10023df1
pop edi
pop esi
mov eax, 0x2000000
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push ebx
push ecx
push esi
call fcn.10022a00
add esp, 0x10
test eax, eax
jne 0x10023e14
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
push eax
call fcn.10022f20
add esp, 4
mov dword [edi], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
pop ecx
ret 0xc

Function at 0x10024400
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x410
push ebx
push ebp
mov ebp, dword [esp + 0x41c]
test ebp, ebp
je 0x10024428
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10024428
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [esp + 0x420]
mov ax, word [ebx]
test ax, ax
je 0x100244df
mov ecx, ebx
mov edx, ebx
cmp ax, 0x2f
je 0x1002444b
cmp ax, 0x5c
jne 0x1002444d
mov ecx, edx
mov ax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x1002443f
cmp ecx, ebx
je 0x1002449b
sub ecx, ebx
push esi
sar ecx, 1
shl ecx, 1
mov eax, ecx
mov edx, ecx
push edi
mov esi, ebx
lea edi, [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [esp + eax + 0x218], 0
lea eax, [esp + 0x218]
push eax
push ebp
call fcn.10024400
add esp, 8
pop edi
pop esi
test ebp, ebp
mov word [esp + 8], 0
je 0x100244b4
lea ecx, [esp + 8]
push ebp
push ecx
call fcn.1002e4bf
add esp, 8
lea edx, [esp + 8]
push ebx
push edx
call fcn.1002e495
add esp, 8
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100244df
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x10024ff0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1012cd75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [0x1016e0e4]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi], eax
mov ecx, dword [0x1016e0e4]
lea ebp, [esi + 4]
mov dword [ebp], ecx
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push edx
mov byte [esp + 0x24], 2
mov dword [edi], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002505c
push 0x1017dba8
mov ecx, esi
call fcn.1011feaa
mov dword [edi], 1
jmp 0x100250ec
lea eax, [esp + 0x2c]
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.1011dbe5
mov ecx, dword [eax]
push 0x1016a058
push ecx
call fcn.1002f1fa
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x2c]
setne bl
call fcn.1011fd13
test bl, bl
je 0x100250de
lea edx, [esp + 0x2c]
push 1
push edx
lea ecx, [esp + 0x30]
call fcn.1011dbe5
mov eax, dword [eax]
push 0x1016a05c
push eax
call fcn.1002f1fa
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call fcn.1011fd13
test bl, bl
push 0x1016a058
je 0x100250d5
push 0x1016a05c
lea ecx, [esp + 0x30]
call fcn.1011d9bb
jmp 0x100250de
lea ecx, [esp + 0x2c]
call fcn.10120104
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.1011fe5a
xor ebx, ebx
push 0x1016de38
mov ecx, ebp
call fcn.1011feaa
push 0x20
mov dword [esi + 8], 1
mov dword [esi + 0x10], ebx
call fcn.1011fa4c
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
mov byte [esp + 0x20], 3
je 0x10025135
push ebx
mov ecx, edi
call fcn.1002d64c
lea edx, [edi + 8]
mov dword [edi], 0x10132c08
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x10025137
xor edi, edi
lea ecx, [esp + 0x28]
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.1011fd13
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x100259d0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2000
call fcn.1002f510
push esi
mov esi, ecx
push edi
lea edx, [esp + 8]
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x64]
push ecx
push edx
mov dword [esi + 0x40], 0x101
mov word [esi + 0x44], 0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
call fcn.1002e4bf
add esp, 8
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esp + 8]
push eax
push ecx
push 0
push 0
push 0x10
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x10025a49
mov eax, dword [esi + 0xc]
test edi, edi
mov dword [esi + 0x80], eax
pop edi
setne al
pop esi
add esp, 0x2000
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test edi, edi
pop edi
pop esi
setne al
add esp, 0x2000
ret

Function at 0x10025e20
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
or ebp, 0xffffffff
mov eax, dword [esi + 0x80]
cmp eax, ebp
je 0x10025e70
push edi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10025e69
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x10025e66
push eax
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call ebx
mov dword [esi + 0x80], ebp
pop edi
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x10025e98
mov ecx, dword [eax + 0x28]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x10025e91
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x7c], 0
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x10025ea5
push eax
call ebx
mov dword [esi + 0x58], ebp
mov eax, dword [esi + 0x64]
cmp eax, ebp
je 0x10025eb2
push eax
call ebx
mov dword [esi + 0x64], ebp
mov eax, dword [esi + 0x5c]
cmp eax, ebp
je 0x10025ebf
push eax
call ebx
mov dword [esi + 0x5c], ebp
mov eax, dword [esi + 0x60]
cmp eax, ebp
je 0x10025ecc
push eax
call ebx
mov dword [esi + 0x60], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10025f50
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x70]
test al, al
je 0x10025fb0
mov eax, dword [esi + 0x68]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push eax
push 0xfffffffffffffff6
call edi
test eax, eax
jne 0x10025f89
lea ecx, [esp + 0x14]
push 0x10162f48
push ecx
mov dword [esp + 0x1c], str.Re_redirecting_Stdin_failed_n
call fcn.1002f291
mov edx, dword [esi + 0x6c]
push edx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x10026112
lea eax, [esp + 0x14]
push 0x10162f48
push eax
mov dword [esp + 0x1c], str.Re_redirecting_Stdout_failed_n
call fcn.1002f291
mov ebp, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0
call ebp
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x64]
push 0
push ecx
lea edx, [esp + 0x18]
push edi
push edx
mov dword [esi + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10026006
lea eax, [esp + 0x18]
push 0x10162f48
push eax
mov dword [esp + 0x20], str.Stdout_pipe_creation_failed_n
call fcn.1002f291
mov ecx, dword [edi]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x1002602c
lea edx, [esp + 0x18]
push 0x10162f48
push edx
mov dword [esp + 0x20], str.Redirecting_STDOUT_failed_n
call fcn.1002f291
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [esi + 0x60]
push 0
push eax
call ebx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10026068
lea edx, [esp + 0x18]
push 0x10162f48
push edx
mov dword [esp + 0x20], str.DuplicateHandle_failed_n
call fcn.1002f291
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff6
call ebp
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
lea edi, [esi + 0x58]
push ecx
push edx
push edi
mov dword [esi + 0x68], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100260ab
lea eax, [esp + 0x18]
push 0x10162f48
push eax
mov dword [esp + 0x20], str.Stdin_pipe_creation_failed_n
call fcn.1002f291
mov ecx, dword [edi]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x100260d1
lea edx, [esp + 0x18]
push 0x10162f48
push edx
mov dword [esp + 0x20], str.Redirecting_Stdin_failed_n
call fcn.1002f291
push 2
push 0
add esi, 0x5c
push 0
push esi
call ebx
push eax
mov eax, dword [esp + 0x28]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10026107
lea ecx, [esp + 0x18]
push 0x10162f48
push ecx
mov dword [esp + 0x20], str.DuplicateHandle_failed_n
call fcn.1002f291
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x10030eb5
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10030f9d
mov eax, 0x94
call fcn.1002f510
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10031012
mov ecx, dword [esi + 0x10]
mov dword [0x10191d9c], ecx
mov eax, dword [esi + 4]
mov dword [0x10191da8], eax
mov edx, dword [esi + 8]
mov dword [0x10191dac], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10191da0], esi
je 0x10030f20
or esi, 0x8000
mov dword [0x10191da0], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10191da4], eax
call fcn.100336e0
test eax, eax
pop ecx
je 0x10031012
call fcn.100335b3
test eax, eax
jne 0x10030f4d
call fcn.10033731
jmp 0x10031012
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x101944ec], eax
call fcn.1003b00f
mov dword [0x10191d88], eax
call fcn.10039343
test eax, eax
jl 0x10030f96
call fcn.1003af6d
test eax, eax
jl 0x10030f91
call fcn.1003ad21
test eax, eax
jl 0x10030f91
call fcn.100321a8
test eax, eax
jne 0x10030f91
inc dword [0x10191d84]
jmp 0x10031023
call fcn.10039541
call fcn.100333a6
jmp 0x10030f43
test eax, eax
jne 0x10030fcd
cmp dword [0x10191d84], eax
jle 0x10031012
dec dword [0x10191d84]
cmp dword [0x10191dd8], eax
jne 0x10030fbc
call fcn.100322e9
call fcn.10039541
call fcn.100333a6
call fcn.10033731
jmp 0x10031023
cmp eax, 2
jne 0x10031016
push 0x88
push 1
call fcn.10030d94
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10031012
push esi
push dword [0x1016ebc0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x1003100c
call fcn.100333c4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10031023
call fcn.1002e4db
pop ecx
xor eax, eax
jmp 0x10031026
cmp eax, 3
jne 0x10031023
push 0
call fcn.10033448
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x100323cd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x100323ea
call fcn.10032a56
mov dword [eax], 0x16
xor eax, eax
jmp 0x10032454
push esi
push 0x88
push 1
call fcn.10030d94
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1003243f
push esi
call fcn.100333c4
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x1003241d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x10032329
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10032453
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.1002e4db
test ebx, ebx
pop ecx
je 0x10032451
push ebx
call fcn.10032a68
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret