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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.00423470
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0x2014], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2008], eax
mov dword [ebp - 0x2018], ecx
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x40da04
push 0x57
jmp 0x40db02
test edi, edi
je 0x40db00
cmp edi, 0xffffffff
je 0x40db00
mov eax, dword [eax + 4]
add eax, 4
push eax
mov dword [ebp - 0x2010], eax
call fcn.0042a45f
mov edx, eax
mov dword [ebp - 0x200c], edx
pop ecx
test edx, edx
je 0x40dafc
mov ecx, dword [ebp - 0x2008]
mov eax, dword [ecx]
mov dword [edx], eax
lea eax, [edx + 4]
push dword [ecx + 4]
push dword [ecx + 8]
push eax
call fcn.00427510
add esp, 0xc
lea eax, [ebp - 0x201c]
push 0
push eax
push dword [ebp - 0x2010]
push dword [ebp - 0x200c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x40daf0
and dword [ebp - 0x2008], 0
lea eax, [ebp - 0x2008]
push 0
push eax
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x40daf0
cmp dword [ebp - 0x2008], 4
jb 0x40daf0
mov ecx, dword [ebp - 0x2014]
test ecx, ecx
je 0x40daba
mov eax, dword [ebp - 0x2004]
mov dword [ecx], eax
test esi, esi
je 0x40dac6
mov eax, dword [ebp - 0x2000]
mov dword [esi], eax
mov edi, dword [ebp - 0x2018]
test edi, edi
je 0x40daf0
push dword [esi]
call fcn.0042a45f
mov dword [edi], eax
pop ecx
test eax, eax
je 0x40daf0
push dword [esi]
lea ecx, [ebp - 0x1ffc]
push ecx
push eax
call fcn.00427510
add esp, 0xc
push dword [ebp - 0x200c]
call fcn.0042a45a
pop ecx
mov eax, ebx
jmp 0x40db0a
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret
Function at 0x40e754
Capabilities:
Delete file

Disassembly:
push 0x270
mov eax, 0x44b680
call fcn.00423500
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
mov ebx, 0x10e
xor edi, edi
push ebx
push edi
push eax
call fcn.00427a90
add esp, 0xc
mov dword [ebp - 0x264], edi
lea ecx, [ebp - 0x27c]
call fcn.00408d71
lea eax, [ebp - 0x264]
mov dword [ebp - 4], edi
push eax
push ebx
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.0040f0d7
add esp, 0x10
cmp dword [ebp - 0x264], 1
jne 0x40e7c6
cmp dword [ebp - 0x27c], edi
je 0x40e7c6
lea ecx, [ebp - 0x27c]
call fcn.00408e37
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40e7e6
mov edi, 0x4010
jmp 0x40e81d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40e81d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40e810
mov edi, 0x400f
jmp 0x40e81d
mov edi, 0x4010
cmp eax, 2
je 0x40e81d
add edi, 0x11
lea ecx, [ebp - 0x27c]
call fcn.00408dea
mov eax, edi
call fcn.004234bb
ret
Function at 0x40e830
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
or eax, 0xf003f
mov dword [ebp - 0x114], edi
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40e9bb
xor ecx, ecx
lea eax, [ebp - 0x110]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
test esi, esi
jne 0x40e90e
mov edi, dword [ebp - 0x110]
sub edi, 1
js 0x40e908
lea eax, [ebp - 0x120]
mov dword [ebp - 0x118], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x40e908
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call fcn.0040e830
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40e8ae
mov edi, dword [ebp - 0x114]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e9bb
cmp dword [0x468680], esi
jne 0x40e99d
push 0x90
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00427a90
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
inc esi
test eax, eax
je 0x40e990
cmp dword [ebp - 0x94], 5
ja 0x40e96e
jne 0x40e990
cmp dword [ebp - 0x90], esi
jb 0x40e990
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40e990
push str.RegDeleteKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x468684], eax
jmp 0x40e995
mov eax, dword [0x468684]
mov dword [0x468680], esi
jmp 0x40e9a2
mov eax, dword [0x468684]
test eax, eax
je 0x40e9b1
push 0
push dword [ebp + 0x10]
push edi
push ebx
call eax
jmp 0x40e9b9
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret
Function at 0x40ed95
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40ee40
push esi
push edi
push 0x105
xor esi, esi
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00427a90
mov edi, ebx
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40edd2
sub edi, ecx
mov eax, esi
test edi, edi
jle 0x40ee3e
cmp byte [ebx + eax], 0x2f
jne 0x40edeb
mov byte [ebx + eax], 0x5c
inc eax
cmp eax, edi
jl 0x40ede1
test edi, edi
jle 0x40ee3e
lea eax, [ebx + esi]
push 0x5c
push eax
call fcn.00425dc0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40ee38
sub esi, ebx
lea eax, [ebp - 0x10c]
push esi
push ebx
push eax
call fcn.00427510
add esp, 0xc
test esi, esi
jle 0x40ee35
cmp byte [ebp + esi - 0x10d], 0x3a
je 0x40ee35
lea eax, [ebp - 0x10c]
push eax
call fcn.004381b9
pop ecx
inc esi
jmp 0x40ee3a
mov esi, edi
cmp esi, edi
jl 0x40edf4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret

Function at 0x40ee4d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
mov eax, dword [ebp + 0xc]
push esi
or eax, 0xf003f
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40eea9
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
and esi, 0xfffffffe
mov eax, esi
jmp 0x40eeac
or eax, 0xffffffff
pop esi
leave
ret

Function at 0x40eeaf
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40ef01
cmp byte [esi], 0
je 0x40ef01
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x20006
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40eefc
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40ef1a
push 0xfffffffffffffffe
pop eax
jmp 0x40ef1c
or eax, 0xffffffff
jmp 0x40ef1c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040e830
add esp, 0xc
test eax, eax
je 0x40ef1a
push 0xfffffffffffffffd
jmp 0x40eef9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40ef1f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0x20]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x10]
or eax, 0x20019
mov dword [edi], esi
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40efb9
push dword [edi]
push esi
push dword [ebp + 0x1c]
call fcn.00427a90
add esp, 0xc
cmp dword [ebp + 0x14], esi
je 0x40efa1
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x20]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40ef92
push 0xfffffffffffffffe
pop eax
jmp 0x40efbc
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
jmp 0x40efb5
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x1020001
mov dword [edi], esi
xor eax, eax
jmp 0x40efbc
or eax, 0xffffffff
pop edi
pop esi
leave
ret
Function at 0x40f0d7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
push edi
test eax, eax
je 0x40f0ec
mov dword [eax], ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x40f21f
cmp dword [ebp + 0xc], ebx
je 0x40f21f
mov edi, dword [ebp + 0x10]
cmp edi, 1
jl 0x40f21f
push str._ProgramW6432_
push esi
call fcn.004110ce
pop ecx
pop ecx
test eax, eax
jne 0x40f12e
push str._CommonProgramW6432_
push esi
call fcn.004110ce
pop ecx
pop ecx
test eax, eax
je 0x40f135
mov dword [ebp - 4], 1
push 0x25
push esi
call fcn.00425dc0
pop ecx
pop ecx
test eax, eax
je 0x40f188
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x40f17c
cmp eax, edi
jg 0x40f180
mov esi, dword [ebp + 0xc]
push 0x25
push esi
call fcn.00425dc0
pop ecx
pop ecx
test eax, eax
je 0x40f1b2
push edi
push esi
call fcn.0040def9
pop ecx
pop ecx
test eax, eax
jns 0x40f1b2
or ebx, 0xffffffff
jmp 0x40f20f
cmp eax, edi
jle 0x40f174
xor ebx, ebx
inc ebx
jmp 0x40f20f
lea eax, [edi - 1]
push eax
push esi
push dword [ebp + 0xc]
call fcn.0042d450
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 1]
add esp, 0xc
mov byte [eax + edi - 1], bl
mov al, byte [esi]
inc esi
test al, al
jne 0x40f1a2
sub esi, ecx
cmp esi, edi
jge 0x40f180
mov esi, dword [ebp + 0xc]
push str._sysnative
push esi
jmp 0x40f204
lea ecx, [eax + 0xa]
mov dl, byte [ecx]
test dl, dl
je 0x40f1c8
cmp dl, 0x5c
jne 0x40f1fe
mov edi, eax
mov dword [ebp - 4], 1
mov esi, str._system32
mov edx, ecx
add eax, 9
push 0
mov ecx, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov bl, byte [edx]
mov byte [ebp + 0xb], bl
test bl, bl
pop ebx
je 0x40f1fc
mov bl, byte [ebp + 0xb]
mov byte [eax], bl
inc eax
inc edx
mov bl, byte [edx]
test bl, bl
jne 0x40f1f0
xor ebx, ebx
mov byte [eax], bl
push str._sysnative
push ecx
call fcn.004110c5
pop ecx
pop ecx
test eax, eax
jne 0x40f1ba
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40f21b
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, ebx
jmp 0x40f222
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f5bf
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x25
push ebx
xor esi, esi
call fcn.00425dc0
pop ecx
pop ecx
test eax, eax
je 0x40f620
imul edi, dword [ebp + 0xc], 0xa
mov eax, 0x410
cmp edi, eax
jge 0x40f5e7
mov edi, eax
push edi
call fcn.0042a45f
mov esi, eax
pop ecx
test esi, esi
jne 0x40f5fb
mov edi, 0x4099
jmp 0x40f666
push edi
push 0
push esi
call fcn.00427a90
add esp, 0xc
lea eax, [edi - 1]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x40f620
lea ecx, [edi - 1]
cmp eax, ecx
jg 0x40f620
mov ebx, esi
push ebx
call fcn.00433d67
mov edi, eax
pop ecx
cmp edi, 0xffffffff
jne 0x40f65b
call fcn.00433c54
cmp dword [eax], 7
je 0x40f656
call fcn.00433c54
cmp dword [eax], 2
je 0x40f656
call fcn.00433c54
cmp dword [eax], 8
je 0x40f656
call fcn.00433c54
cmp dword [eax], 0xc
jne 0x40f65b
mov edi, 0x401d
test esi, esi
je 0x40f666
push esi
call fcn.0042a45a
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40f66d
Capabilities:
Write file on windows

Disassembly:
push 0x138
mov eax, 0x44b6b3
call fcn.00423500
mov eax, dword [ebp + 0x10]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x10e
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x120]
push edi
push eax
mov dword [ebp - 0x128], ebx
call fcn.00427a90
add esp, 0xc
mov dword [ebp - 0x124], edi
lea ecx, [ebp - 0x144]
call fcn.00408d71
lea eax, [ebp - 0x124]
mov dword [ebp - 4], edi
push eax
push 0x10e
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.0040f0d7
add esp, 0x10
cmp dword [ebp - 0x124], 1
jne 0x40f6f4
cmp dword [ebp - 0x144], edi
je 0x40f6f4
lea ecx, [ebp - 0x144]
call fcn.00408e37
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.00410b93
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40f737
lea eax, [ebp - 0x120]
push eax
call fcn.0040ed95
push dword [ebp - 0x128]
lea eax, [ebp - 0x120]
push eax
call fcn.00410b93
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40f737
mov edi, 0x400c
jmp 0x40f75d
push ebx
push dword [ebp + 0x14]
push 1
push dword [ebp - 0x12c]
call fcn.00433b83
push ebx
mov esi, eax
call fcn.0042d5ea
add esp, 0x14
cmp esi, dword [ebp + 0x14]
je 0x40f75d
mov edi, 0x400e
lea ecx, [ebp - 0x144]
call fcn.00408dea
mov eax, edi
call fcn.004234bb
ret
Function at 0x41054c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
or esi, 0xffffffff
cmp dword [ebp + 8], 0
jne 0x410567
push 0x57
pop eax
jmp 0x410602
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
test eax, eax
je 0x4105f7
push eax
call fcn.0042a45f
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4105ff
push ebx
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4105e6
and dword [ebp - 4], 0
lea eax, [ebp + 8]
and dword [ebp + 8], 0
push eax
lea eax, [ebp - 4]
push eax
push 0x44dad4
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4105e6
cmp dword [ebp + 8], 0x34
jne 0x4105ee
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0xfeef04bd
jne 0x4105ee
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4105d6
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4105e2
mov eax, dword [ecx + 0xc]
mov dword [edx], eax
xor esi, esi
jmp 0x4105ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call fcn.0042a45a
pop ecx
jmp 0x4105ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x410716
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0xa0]
xor esi, esi
push eax
call fcn.0041050c
pop ecx
test eax, eax
je 0x410774
cmp dword [ebp - 0x9c], 6
jae 0x410758
cmp dword [ebp - 0x9c], 5
jne 0x410772
cmp dword [ebp - 0x98], 2
jne 0x410772
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0xc4], 9
jne 0x410772
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042345f
leave
ret

Function at 0x4111c1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00434c84
Function at 0x411772
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.00423470
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2014], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2010], ecx
mov dword [ebp - 0x2018], eax
test ebx, ebx
jne 0x4117b7
push 0x57
jmp 0x4118bb
cmp dword [ecx + 4], edi
je 0x4118b9
cmp dword [ecx + 4], 0xffffffff
je 0x4118b9
mov eax, dword [ebx + 4]
add eax, 4
push eax
mov dword [ebp - 0x200c], eax
call fcn.0042a45f
pop ecx
mov ecx, eax
mov dword [ebp - 0x2008], ecx
test ecx, ecx
je 0x4118b5
mov eax, dword [ebx]
mov dword [ecx], eax
lea eax, [ecx + 4]
push dword [ebx + 4]
push dword [ebx + 8]
push eax
call fcn.00427510
mov ebx, dword [ebp - 0x2010]
lea eax, [ebp - 0x201c]
add esp, 0xc
push 0
push eax
push dword [ebp - 0x200c]
push dword [ebp - 0x2008]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x2008]
mov edi, eax
call fcn.0042a45a
pop ecx
test edi, edi
je 0x4118b5
and dword [ebp - 0x2008], 0
lea eax, [ebp - 0x2008]
push 0
push eax
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x4118b5
cmp dword [ebp - 0x2008], 4
jb 0x4118b5
mov ecx, dword [ebp - 0x2014]
test ecx, ecx
je 0x41187f
mov eax, dword [ebp - 0x2004]
mov dword [ecx], eax
test esi, esi
je 0x41188b
mov eax, dword [ebp - 0x2000]
mov dword [esi], eax
mov ebx, dword [ebp - 0x2018]
test ebx, ebx
je 0x4118b5
push dword [esi]
call fcn.0042a45f
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x4118b5
push dword [esi]
lea ecx, [ebp - 0x1ffc]
push ecx
push eax
call fcn.00427510
add esp, 0xc
mov eax, edi
jmp 0x4118c3
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret 0x10
Function at 0x4118d4
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x411a1e
cmp dword [ebp + 0xc], 0
je 0x411a1e
mov esi, dword [ebp + 0x10]
xor ecx, ecx
push 4
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042349d
mov dword [edi + 0x10], eax
pop ecx
test eax, eax
je 0x411a1a
xor ebx, ebx
mov ecx, ebx
test esi, esi
jle 0x41192c
mov eax, dword [edi + 0x10]
or dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, esi
jl 0x411920
xor ecx, ecx
mov eax, esi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042349d
mov dword [edi + 0x14], eax
pop ecx
test eax, eax
je 0x411a1a
mov ecx, ebx
test esi, esi
jle 0x41195f
mov eax, dword [edi + 0x14]
mov dword [eax + ecx*4], ebx
inc ecx
cmp ecx, esi
jl 0x411954
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 8], eax
test eax, eax
je 0x411a26
lea eax, [ebp - 0x20]
mov dword [edi + 0xc], esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407889
pop ecx
pop ecx
test esi, esi
jle 0x411a15
lea eax, [ebp - 0xc]
push eax
push 0xbb8
push 0x2000
push 0x2000
push esi
push 6
push 0x40000003
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [edi + 0x10]
mov dword [ecx + ebx*4], eax
mov eax, dword [edi + 0x10]
cmp dword [eax + ebx*4], 0
je 0x411a26
cmp dword [eax + ebx*4], 0xffffffff
je 0x411a26
push 0xc
call fcn.0042356e
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x10]
mov ecx, dword [ecx + ebx*4]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push 0x41121a
push ecx
push ecx
call fcn.00434c84
mov ecx, dword [edi + 0x14]
add esp, 0x1c
mov dword [ecx + ebx*4], eax
mov eax, dword [edi + 0x14]
cmp dword [eax + ebx*4], 0
je 0x411a26
cmp dword [eax + ebx*4], 0xffffffff
je 0x411a26
inc ebx
cmp ebx, esi
jl 0x41198f
xor eax, eax
inc eax
jmp 0x411a28
push 0xe
jmp 0x411a20
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x411af4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
push esi
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0x412000
push esi
push esi
call fcn.00434c84
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x411b3c
push str.Failed_to_start_thread_to_display_flashing_icon_dialog_message_from_KServer
call fcn.0040579f
pop ecx
or eax, 0xffffffff
jmp 0x411b73
mov eax, dword [ebp - 4]
test eax, eax
je 0x411b6a
cmp esi, 0xbb8
jge 0x411b5b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
inc esi
test eax, eax
jne 0x411b43
test eax, eax
je 0x411b6a
push str.ERROR:_Thread_to_display_flashing_icon_dialog_message_from_KServer_failed_to_run_
call fcn.0040579f
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret