joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506319
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x54c39c]
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 0x412183
call fcn.004122d0
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x4121bf
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x4121a4
push eax
call fcn.004e41b8
add esp, 4
mov dword [esi + 0x24], 0xffffffff
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x4121af
mov eax, dword [eax]
push eax
call fcn.004e5717
add esp, 4
mov ecx, esi
call fcn.004122d0
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.00413230
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], 1
test edx, edx
je 0x412230
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x24]
mov eax, edi
cmovae ecx, dword [ebp - 0x24]
cmp dword [edi + 0x14], 8
jb 0x41220b
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.0040c100
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 0x41225c
push edx
push ebx
push dword [esi + 0x24]
call fcn.004e4884
mov ecx, dword [ebp - 0x24]
mov ebx, eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
jmp 0x41225f
or ebx, 0xffffffff
cmp eax, 0x10
jb 0x41228b
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x412281
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4122c9
push edx
push ecx
call fcn.0049a747
add esp, 8
test ebx, ebx
jle 0x4122a6
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 0x4122ae
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.004df7ad
int3
Function at 0x4122d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50634b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x54c39c]
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 0x41230e
mov edi, dword [edi]
push 0x180
push 0x40
push 0x8101
push edi
push ebx
call fcn.004e5468
add esp, 0x14
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x412437
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004dbe40
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00407850
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.004092c0
add esp, 0xc
push eax
call fcn.004092c0
add esp, 0xc
push eax
call fcn.004092c0
add esp, 8
push 0x535fb0
push ecx
push dword [ebp - 0xc4]
mov ecx, eax
call fcn.004130b0
add esp, 4
push eax
call fcn.004092c0
add esp, 8
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xa8]
push eax
call fcn.00412ff0
cmp dword [eax + 0x14], 8
jb 0x4123c1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x412408
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4123fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412514
push edx
push ecx
call fcn.0049a747
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 0x41244d
push 2
push 0
push eax
call fcn.004e56c9
add esp, 0xc
jmp 0x412450
or eax, 0xffffffff
mov dword [esi + 4], eax
test eax, eax
jne 0x4124f8
push 3
push 0x535fd8
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], al
call fcn.00408a40
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 0x4124c2
push dword [ebp - 0xb0]
push edx
push edi
call fcn.004e4884
mov ecx, dword [ebp - 0xc0]
mov edi, eax
mov eax, dword [ebp - 0xac]
add esp, 0xc
jmp 0x4124c5
or edi, 0xffffffff
cmp eax, 0x10
jb 0x4124f1
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4124e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412519
push edx
push ecx
call fcn.0049a747
add esp, 8
test edi, edi
jle 0x4124f8
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.0049a1fc
mov esp, ebp
pop ebp
ret
call fcn.004df7ad
call fcn.004df7ad
int3
Function at 0x414330
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506680
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x54c39c]
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.00413d70
call fcn.004147f0
call fcn.00407240
push dword [eax]
push 0
push str.first_run
push str.Default
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x414483
call fcn.00407240
mov esi, eax
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x414510
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 0x53595c
push eax
call fcn.0040c240
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 0x414401
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407240
mov esi, eax
mov dword [ebp - 4], 3
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x41451a
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 0x53595c
push eax
call fcn.0040c240
add esp, 0xc
push dword [esi]
mov esi, dword [ebp - 0x14]
push esi
push 0x535ae0
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 0x41447c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00414a90
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.00419e70
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.0049a1fc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
int3
Function at 0x415220
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5067d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x54c39c]
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.004e2670
add esp, 4
mov edi, eax
mov esi, edx
call fcn.00407240
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 0x4153a2
jg 0x41528e
cmp edi, 0x5265c00
jbe 0x4153a2
call fcn.00407240
push 0
mov esi, eax
call fcn.004e2670
add esp, 4
mov edi, eax
mov ebx, edx
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x4153be
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 0x53595c
push eax
call fcn.0040c240
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 0x415315
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407240
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 0x4153c8
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 0x53595c
push eax
call fcn.0040c240
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 0x4153a2
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.0049a1fc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
int3
Function at 0x415c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506916
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x54c39c]
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.004dbe40
lea eax, [ebp - 0x444]
push eax
push 0x35
lea eax, [ebp - 0x410]
push str._d__s
push eax
call fcn.00410fa0
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 0x415d05
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.00408a40
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 0x415d6c
xor bl, bl
jmp 0x415d7d
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x415d7b
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov bl, 1
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x415db3
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415da9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e21
push edx
push ecx
call fcn.0049a747
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 0x415e04
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415dfa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e26
push edx
push ecx
call fcn.0049a747
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.0049a1fc
mov esp, ebp
pop ebp
ret
call fcn.004df7ad
call fcn.004df7ad
int3
Function at 0x415f60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50698e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x54c39c]
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.0049a49a
mov edi, eax
mov dword [ebp - 0x20], edi
push 0x3d4
push 0
push edi
mov dword [ebp - 4], 0
call fcn.004dbe40
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 0x416102
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.0049a49a
push 0x4c
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004dbe40
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 0x41a3e0
push 0
push 0
call fcn.004e5880
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push 0x41a350
push 0
push 0
call fcn.004e5880
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 0x4160bb
mov ecx, dword [eax]
mov dword [eax], ebx
test ecx, ecx
je 0x4160c8
mov byte [ebp - 4], 4
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x4160c8
push 1
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0041a5f0
push 0x3bc
push 0
push edi
call fcn.004dbe40
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.0049a1fc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
int3
Function at 0x4164c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54c39c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.004165e0
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 0x416516
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a1fc
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 0x416520
sub ecx, edx
sar ecx, 1
push ecx
push str..PIPE4C6B6BDC_A47D_6B44_E687_2CB6CE2F0F59
lea ecx, [esi + 0x10]
call fcn.004088e0
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 0x416563
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 0x4165c1
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push 0x416640
push 0
push 0
call fcn.004e5880
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4165c1
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4165ae
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.0049a1fc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret 4

Function at 0x416940
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 0x41698b
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x41698b
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4169b9
cmp eax, 0x3e5
je 0x4169a8
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 0x416b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54c39c]
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 0x416b72
xor al, al
jmp 0x416b81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x416bbe
mov al, 1
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x2d], al
cmp byte [edi + 0x2d], 0
jne 0x416ba9
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416ba9
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.0049a1fc
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.00416940
test al, al
jne 0x416ba9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x54c39c]
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 0x416cce
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 0x416caa
sub ecx, 1
jne 0x416cce
test eax, eax
je 0x416c6d
mov eax, dword [ebp - 8]
test eax, eax
je 0x416c6d
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416cce
mov edx, dword [ecx]
push 0
push eax
lea eax, [edi + 0x38]
push eax
push ebx
push esi
call dword [edx + 8]
jmp 0x416cce
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
mov ecx, esi
call fcn.00416940
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416d30
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.0049a1fc
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x416d69
mov dword [edi + 0x4038], 1
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416cce
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.004dbe40
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 0x416d00
xor al, al
jmp 0x416d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x416d45
mov al, 1
mov byte [edi + 0x2c], al
test al, al
jne 0x416d30
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416d30
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.0049a1fc
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.00416940
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x416d69
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.0049a1fc
mov esp, ebp
pop ebp
ret 4
Function at 0x41a290
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0xc], 0
mov dword [esi], vtable.CTrayPos.0
je 0x41a2e1
push dword [esi + 0x14]
call eax
push 0x1388
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41a2d0
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
call edi
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0xc], 0
cmp dword [esi + 0x10], 0
je 0x41a318
push dword [esi + 0x18]
call eax
push 0x1388
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41a30c
push 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a329
push eax
call edi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41a33a
push eax
call edi
mov dword [esi + 0x18], 0
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
ret