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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x542bb0
push 0x4dd240
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x54e39c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x44], edx
mov eax, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], 0
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
mov dword [eax], edi
mov dword [edx], edi
lea eax, [ebp - 0x2c]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x410416
cmp dword [ebp - 0x2c], edi
je 0x410416
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41044e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x410530
lea eax, [ebp - 0x2c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x410530
cmp dword [ebp - 0x2c], 0
je 0x410530
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 2
push dword [ebp - 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x410530
cmp dword [ebp - 0x30], eax
jbe 0x410530
call esi
cmp eax, 0x7a
jne 0x410530
push dword [ebp - 0x30]
call fcn.004e58e3
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x410530
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
push edi
push 2
push dword [ebp - 0x2c]
call ebx
test eax, eax
je 0x410530
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jne 0x410530
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x410530
cmp dword [ebp - 0x34], 0
je 0x410530
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x410530
lea ebx, [edi + esi*8]
push dword [ebp - 0x34]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x410519
inc esi
jmp 0x4104fc
mov eax, dword [ebp - 0x40]
mov dword [eax], 1
mov eax, dword [ebx + 8]
shr eax, 2
and eax, 1
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0041055b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret
Function at 0x412180
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507ed9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x54e39c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], 0
cmp byte [esi + 8], 0
je 0x4121c3
call fcn.00412310
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x4121ff
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x4121e4
push eax
call fcn.004e5d58
add esp, 4
mov dword [esi + 0x24], 0xffffffff
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x4121ef
mov eax, dword [eax]
push eax
call fcn.004e72b7
add esp, 4
mov ecx, esi
call fcn.00412310
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [edi + 0x10]
push 0
add eax, eax
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.00413270
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], 1
test edx, edx
je 0x412270
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x24]
mov eax, edi
cmovae ecx, dword [ebp - 0x24]
cmp dword [edi + 0x14], 8
jb 0x41224b
mov eax, dword [edi]
push 0
push 0
push edx
push ecx
push dword [edi + 0x10]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push eax
lea ecx, [ebp - 0x24]
call fcn.0040c120
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ebx, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
cmp eax, 0x10
cmovae ebx, ecx
cmp dword [esi + 0x24], 0xffffffff
je 0x41229c
push edx
push ebx
push dword [esi + 0x24]
call fcn.004e6424
mov ecx, dword [ebp - 0x24]
mov ebx, eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
jmp 0x41229f
or ebx, 0xffffffff
cmp eax, 0x10
jb 0x4122cb
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4122c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412309
push edx
push ecx
call fcn.0049c2f7
add esp, 8
test ebx, ebx
jle 0x4122e6
add dword [esi + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x14], 8
jb 0x4122ee
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004e134d
int3
Function at 0x412310
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507f0b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x54e39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x20], 8
lea edi, [esi + 0xc]
lea ebx, [esi + 0x24]
jb 0x41234e
mov edi, dword [edi]
push 0x180
push 0x40
push 0x8101
push edi
push ebx
call fcn.004e7008
add esp, 0x14
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x412477
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004dd9e0
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00407860
push str._error.__
push ecx
push edi
push ecx
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str.open
push eax
call fcn.004092d0
add esp, 0xc
push eax
call fcn.004092d0
add esp, 0xc
push eax
call fcn.004092d0
add esp, 8
push 0x537fd0
push ecx
push dword [ebp - 0xc4]
mov ecx, eax
call fcn.004130f0
add esp, 4
push eax
call fcn.004092d0
add esp, 8
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xa8]
push eax
call fcn.00413030
cmp dword [eax + 0x14], 8
jb 0x412401
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x412448
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41243e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412554
push edx
push ecx
call fcn.0049c2f7
add esp, 8
xor eax, eax
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00405dd0
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x41248d
push 2
push 0
push eax
call fcn.004e7269
add esp, 0xc
jmp 0x412490
or eax, 0xffffffff
mov dword [esi + 4], eax
test eax, eax
jne 0x412538
push 3
push 0x537ff8
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], al
call fcn.00408a50
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xc0]
mov ecx, dword [ebp - 0xc0]
cmp eax, 0x10
mov edi, dword [ebx]
cmovae edx, ecx
cmp edi, 0xffffffff
je 0x412502
push dword [ebp - 0xb0]
push edx
push edi
call fcn.004e6424
mov ecx, dword [ebp - 0xc0]
mov edi, eax
mov eax, dword [ebp - 0xac]
add esp, 0xc
jmp 0x412505
or edi, 0xffffffff
cmp eax, 0x10
jb 0x412531
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x412527
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412559
push edx
push ecx
call fcn.0049c2f7
add esp, 8
test edi, edi
jle 0x412538
add dword [esi + 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret
call fcn.004e134d
call fcn.004e134d
int3
Function at 0x414370
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508240
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x54e39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00413db0
call fcn.00414830
call fcn.00407250
push dword [eax]
push 0
push str.first_run
push str.Default
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x4144c3
call fcn.00407250
mov esi, eax
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x414550
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push 0x53797c
push eax
call fcn.0040c260
add esp, 0xc
push dword [esi]
mov esi, dword [ebp - 0x14]
push esi
push str.first_run
push str.Default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 4], 2
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414441
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407250
mov esi, eax
mov dword [ebp - 4], 3
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x41455a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 4
push 0x53797c
push eax
call fcn.0040c260
add esp, 0xc
push dword [esi]
mov esi, dword [ebp - 0x14]
push esi
push 0x537b00
push str.auto_run
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
mov dword [ebp - 4], 5
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4144bc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00414ad0
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x61a8
push 0x402
push dword [edi + 4]
call esi
push 0
push 0x3e8
push 0x403
push dword [edi + 4]
call esi
push 0
push 0x6ddd00
push 0x401
push dword [edi + 4]
call esi
push 0
push 0x927c0
push 0x404
push dword [edi + 4]
call esi
mov esi, dword [edi + 0x35c]
push 0x6c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push dword [edi + 4]
mov ecx, esi
call fcn.00419f90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
int3
Function at 0x415260
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508390
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x54e39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.004e4210
add esp, 4
mov edi, eax
mov esi, edx
call fcn.00407250
push dword [eax]
push 1
push str.protect_time
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cdq
sub edi, eax
sbb esi, edx
mov dword [ebp - 0x14], esi
js 0x4153e2
jg 0x4152ce
cmp edi, 0x5265c00
jbe 0x4153e2
call fcn.00407250
push 0
mov esi, eax
call fcn.004e4210
add esp, 4
mov edi, eax
mov ebx, edx
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x4153fe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push ebx
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push 0x53797c
push eax
call fcn.0040c260
add esp, 0x10
push dword [esi]
mov esi, dword [ebp - 0x14]
push esi
push str.protect_time
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 4], 2
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x415355
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407250
mov edi, eax
push dword [edi]
push 1
push str.protect_days
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov dword [ebp - 4], 3
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x415408
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
inc esi
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 0x14]
push 0x53797c
push eax
call fcn.0040c260
mov esi, dword [ebp - 0x14]
add esp, 0xc
push dword [edi]
push esi
push str.protect_days
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
mov dword [ebp - 4], 5
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4153e2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
int3
Function at 0x415ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5084d6
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x54e39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
push 0x400
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004dd9e0
lea eax, [ebp - 0x444]
push eax
push 0x35
lea eax, [ebp - 0x410]
push str._d__s
push eax
call fcn.00410fc0
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x418], 0
add esp, 0x1c
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415d45
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.00408a50
mov byte [ebp - 4], 1
lea edx, [ebp - 0x42c]
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x428]
push 0
inc ecx
mov dword [ebp - 0x42c], 0
add esi, 0x320
cmp dword [ebp - 0x414], 0x10
push edx
cmovae eax, dword [ebp - 0x428]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x415dac
xor bl, bl
jmp 0x415dbd
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x415dbb
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov bl, 1
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x415df3
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415de9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e61
push edx
push ecx
call fcn.0049c2f7
add esp, 8
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
cmp edx, 0x10
jb 0x415e44
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415e3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e66
push edx
push ecx
call fcn.0049c2f7
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret
call fcn.004e134d
call fcn.004e134d
int3
Function at 0x415fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50854e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x54e39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0x3d4
mov dword [ebp - 0x18], eax
call fcn.0049c04a
mov edi, eax
mov dword [ebp - 0x20], edi
push 0x3d4
push 0
push edi
mov dword [ebp - 4], 0
call fcn.004dd9e0
mov eax, dword [esi]
add esp, 0x10
mov byte [edi + 0x3c4], 0
mov dword [ebp - 0x18], eax
mov dword [edi + 0x3c8], 0
mov byte [ebp - 4], 2
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x416142
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x3cc], eax
mov byte [ebp - 4], 3
push 0x4c
mov dword [edi + 0x3d0], 0
call fcn.0049c04a
push 0x4c
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004dd9e0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0x10
mov dword [ebx], vtable.CTrayPos.0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x1c], 0
push 0
push 0
push 0
push 0
mov dword [ebx + 0x20], 0
call esi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x14], eax
call esi
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push 0x41a500
push 0
push 0
call fcn.004e7420
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push 0x41a470
push 0
push 0
call fcn.004e7420
add esp, 0x30
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp - 0x24]
mov dword [ebx], vtable.CMsgTrayPos.0
lea eax, [edi + 0x3c8]
cmp eax, ecx
je 0x4160fb
mov ecx, dword [eax]
mov dword [eax], ebx
test ecx, ecx
je 0x416108
mov byte [ebp - 4], 4
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x416108
push 1
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0041a710
push 0x3bc
push 0
push edi
call fcn.004dd9e0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [edi + 0x3d0], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
int3
Function at 0x416500
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54e39c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00416620
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push str..PIPE4C6B6BDC_A47D_6B44_E687_2CB6CE2F0F59
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x416556
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret 4
mov ecx, str..PIPE4C6B6BDC_A47D_6B44_E687_2CB6CE2F0F59
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416560
sub ecx, edx
sar ecx, 1
push ecx
push str..PIPE4C6B6BDC_A47D_6B44_E687_2CB6CE2F0F59
lea ecx, [esi + 0x10]
call fcn.004088f0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4165a3
mov eax, dword [ecx]
push 0
push esi
call dword [eax]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp byte [esi + 0x28], 0
mov dword [esi + 8], eax
jne 0x416601
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push 0x416680
push 0
push 0
call fcn.004e7420
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x416601
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4165ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0049bdac
mov esp, ebp
pop ebp
ret 4

Function at 0x416980
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
imul esi, ebx, 0x4058
mov edi, ecx
add esi, edi
push esi
push dword [esi + 0x28]
mov dword [esi + 0x4038], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4169cb
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x4169cb
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4169f9
cmp eax, 0x3e5
je 0x4169e8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
pop edi
mov byte [esi + 0x2c], 1
mov al, 1
mov byte [esi + 0x2d], 0
pop esi
pop ebx
pop ebp
ret 4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov byte [esi + 0x2d], 0
mov al, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x416b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54e39c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
imul edx, ebx, 0x4058
mov esi, ecx
mov ecx, dword [ebp + 0xc]
add edx, esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edx
lea eax, [edx + 0x14]
imul edi, ebx, 0x4058
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push ecx
push dword [edx + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, esi
test eax, eax
je 0x416bb2
xor al, al
jmp 0x416bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x416bfe
mov al, 1
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x2d], al
cmp byte [edi + 0x2d], 0
jne 0x416be9
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416be9
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax + 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret 0xc
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
mov ecx, esi
call fcn.00416980
test al, al
jne 0x416be9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049bdac
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x54e39c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
imul edi, ebx, 0x4058
mov esi, ecx
mov dword [ebp - 8], 0
add edi, esi
cmp byte [edi + 0x2c], 0
je 0x416d0e
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [edi + 0x4038]
sub ecx, 0
je 0x416cea
sub ecx, 1
jne 0x416d0e
test eax, eax
je 0x416cad
mov eax, dword [ebp - 8]
test eax, eax
je 0x416cad
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416d0e
mov edx, dword [ecx]
push 0
push eax
lea eax, [edi + 0x38]
push eax
push ebx
push esi
call dword [edx + 8]
jmp 0x416d0e
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
mov ecx, esi
call fcn.00416980
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416d70
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax + 4]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x416da9
mov dword [edi + 0x4038], 1
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416d0e
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax]
push 0x2000
lea eax, [edi + 0x38]
push 0
push eax
call fcn.004dd9e0
add esp, 0xc
lea eax, [edi + 0x30]
push edi
push eax
push 0x2000
lea eax, [edi + 0x38]
push eax
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416d40
xor al, al
jmp 0x416d4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x416d85
mov al, 1
mov byte [edi + 0x2c], al
test al, al
jne 0x416d70
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416d70
mov eax, dword [ecx]
lea edx, [edi + 0x38]
push 0
push dword [edi + 0x30]
push edx
push ebx
push esi
call dword [eax + 8]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret 4
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
mov ecx, esi
call fcn.00416980
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416da9
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049bdac
mov esp, ebp
pop ebp
ret 4