joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498939
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x64]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], 0
push dword [esp + 0x20]
mov dword [edi + 0x34], 3
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4989c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4989c7
jmp 0x4989b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4989b5
push ebx
lea ecx, [edi + 0xc]
call fcn.0049c104
lea ecx, [edi + 0xc]
call fcn.0049c0ed
test al, al
jne 0x4989ce
push 0xa
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x498983
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x4989c7
test eax, eax
jle 0x4989c5
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, 0xe0000008
jmp 0x4989c7

Function at 0x4989d5
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x64]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x18]
xor eax, eax
push eax
push eax
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], al
mov dword [edi + 0x34], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x498a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x498a5e
jmp 0x498a47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x498a4c
push ebx
lea ecx, [edi + 0xc]
call fcn.0049c104
lea ecx, [edi + 0xc]
call fcn.0049c0ed
test al, al
jne 0x498a65
push 0xa
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x498a1a
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x498a5e
test eax, eax
jle 0x498a5c
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, 0xe0000008
jmp 0x498a5e
Function at 0x498c69
Capabilities:
Connect network resource

Disassembly:
push 0x38
mov eax, 0x50a27b
call fcn.004cc273
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x14]
call fcn.00406bcb
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00406bcb
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
xor esi, esi
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
call fcn.00473740
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x498cb5
mov eax, dword [ecx]
call dword [eax]
test edi, edi
je 0x498d00
push 0x20
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004cd4d0
mov eax, dword [ebp - 0x18]
xor ecx, ecx
and dword [ebp - 0x34], 0
inc ecx
add esp, 0xc
mov dword [ebp - 0x40], ecx
cmp dword [eax - 4], ecx
jle 0x498ce9
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00406701
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x28], 0
push 0
push edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
jne 0x498d1d
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
call fcn.004749f0
mov esi, eax
pop ecx
test esi, esi
je 0x498dc9
cmp esi, 0x52e
je 0x498d36
cmp esi, 0x56
je 0x498d36
cmp esi, 0x89a
jne 0x498dd1
push str.Local_Network_Server
lea ecx, [ebp + 0x10]
call fcn.00409a3c
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.00406bcb
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
push eax
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
push 0
call fcn.00499d4b
mov bl, al
mov byte [ebp - 4], 3
neg bl
lea ecx, [ebp + 0x14]
sbb bl, bl
call fcn.004068bc
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.004068bc
add bl, 1
jne 0x498dd1
mov edi, dword [ebp - 0x14]
cmp dword [edi - 4], 1
jle 0x498da9
push dword [edi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406701
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 4], 1
jle 0x498cb5
push dword [ebx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406701
mov ebx, dword [ebp - 0x10]
jmp 0x498cb5
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004068bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004068bc
mov eax, esi
call fcn.004cc23c
ret 0x18
Function at 0x4999ed
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004cd4d0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
push ecx
push 0
push 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x499a29
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x499a33
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x49a057
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x50a4c4
call fcn.004cc2a7
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0xc
push 0
push eax
call fcn.004cd4d0
add esp, 0xc
lea eax, [ebp - 0x24]
push 0
push eax
push 0xa
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49a091
xor al, al
jmp 0x49a0c6
cmp dword [ebp - 0x24], 0xa
jne 0x49a08d
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00409a3c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push str._aiu_
call fcn.00447dcd
mov ebx, eax
lea ecx, [ebp - 0x20]
neg ebx
sbb bl, bl
inc bl
call fcn.004068bc
mov al, bl
call fcn.004cc251
ret 8

Function at 0x49a0ce
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x50a4f1
call fcn.004cc2a7
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 6
push 0
push eax
call fcn.004cd4d0
add esp, 0xc
lea eax, [ebp - 0x20]
push 0
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49a108
xor al, al
jmp 0x49a13d
cmp dword [ebp - 0x20], 5
jne 0x49a104
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047f834
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push str._aiu_
call fcn.00447dcd
mov ebx, eax
lea ecx, [ebp - 0x1c]
neg ebx
sbb bl, bl
inc bl
call fcn.004068bc
mov al, bl
call fcn.004cc251
ret 8

Function at 0x49a3e1
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x507256
call fcn.004cc273
mov ebx, ecx
lea edi, [ebx + 4]
mov ecx, dword [edi]
call fcn.0046f760
push ecx
mov ecx, edi
call fcn.00423561
mov eax, dword [ebx + 0x28]
push dword [eax]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x10]
call fcn.00406bcb
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0xdc
call fcn.004098ad
push 0x40a
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [edi]
lea ecx, [ebx + 0x40]
call fcn.0049bf1f
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x14]
push eax
xor eax, eax
push eax
push ebx
push 0x49a47e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [ebx + 0x30], eax
call fcn.004068bc
xor eax, eax
call fcn.004cc23c
ret 0x10
Function at 0x49adf3
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
lea eax, [ecx - 0x20]
neg esi
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x49ae35
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x49ae25
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49ae3c
cmp dword [esp + 0xc], 0
jne 0x49ae35
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x49ae53
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [esi + 0x20]
push eax
call fcn.0049ae59
xor eax, eax
pop esi
ret 0x10
Function at 0x49bcc6
Capabilities:
Shutdown system

Disassembly:
push 0x1c
mov eax, 0x50a7b0
call fcn.004cc2a7
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0
je 0x49bcf1
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49bd56
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 2
push eax
push 0
push dword [ebp - 0x28]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49bd56
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x49bd58
xor bl, bl
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x49bd6f
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x28], 0
mov al, bl
call fcn.004cc251
ret
Function at 0x49c692
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x508b3d
call fcn.004cc273
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
xor esi, esi
cmp byte [edi + 0x2a], 0
jne 0x49c6b4
cmp word [edi + 0x1a], si
jbe 0x49c6fd
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
call fcn.00471710
mov esi, eax
test esi, esi
je 0x49c6d4
push ecx
push esi
push ecx
mov ecx, edi
call fcn.0049c935
jmp 0x49c7f0
lea esi, [edi + 0x2c]
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x49c6f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49c6c5
lea eax, [ebp - 0x18]
push eax
push esi
call ebx
test eax, eax
je 0x49c6e6
xor esi, esi
lea eax, [edi + 0x1a]
cmp word [eax], si
jbe 0x49c72c
lea ecx, [ebp - 0x20]
push ecx
push eax
call ebx
test eax, eax
je 0x49c6e6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x49c72c
mov eax, 0xe0000013
jmp 0x49c7f2
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ebx
call fcn.00407175
push str..part
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0040706a
push esi
xor dl, dl
lea ecx, [ebp - 0x10]
call fcn.00475160
mov esi, eax
pop ecx
test esi, esi
jne 0x49c7c0
cmp byte [edi + 0x18], al
je 0x49c77b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49c77b
lea eax, [ebp - 0x10]
push eax
call fcn.0049c889
mov esi, eax
test esi, esi
jne 0x49c7c0
push 2
pop ecx
xor eax, eax
cmp byte [edi + 0x3c], al
cmovne eax, ecx
push eax
mov eax, dword [ebp + 8]
push 0
push edi
push 0x49c7fa
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x49c7b8
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x49c7cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ecx
push esi
push ecx
mov ecx, edi
call fcn.0049c935
jmp 0x49c7e4
cmp byte [edi + 4], 0
je 0x49c7e2
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x49c7e2
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x10]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068bc
mov eax, esi
call fcn.004cc23c
ret 8
Function at 0x49f2a1
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x50b2b8
call fcn.004cc273
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x49f2ca
mov eax, dword [eax]
push ecx
push 0x80
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x20]
call fcn.00425081
push ebx
push esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push 0xc800
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.004722c0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc800
push eax
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x49f342
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jne 0x49f30b
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00472660
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49f367
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004cc23c
ret

Function at 0x4a6016
Capabilities:
Create pipe

Disassembly:
push 0x1c
mov eax, 0x4f5c78
call fcn.004cc2a7
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov ecx, dword [ebp + 0xc]
je 0x4a6034
mov al, 1
jmp 0x4a60c5
mov al, byte [ebp + 8]
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0x1d], al
call fcn.0040400c
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004a654c
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x4a6088
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
mov ecx, 0x400
push 0x1388
push ecx
push ecx
push 0xff
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x38], eax
cmp byte [esi + 0x1d], bl
jne 0x4a60ad
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x4a60b3
mov byte [esi + 0x1c], 1
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.0040487e
mov al, bl
call fcn.004cc251
ret 8
Function at 0x4a629e
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x38
mov eax, 0x50c8bd
call fcn.004cc2a7
mov edi, ecx
mov bl, byte [ebp + 0x10]
xor edx, edx
mov esi, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
test bl, bl
jne 0x4a62ec
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4a62d7
xor eax, eax
inc eax
jmp 0x4a62e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
xor edx, edx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], dx
inc edx
mov dword [ebp - 4], edx
test eax, eax
jne 0x4a632a
test bl, bl
jne 0x4a632a
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov word [esi], ax
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], cl
push ecx
push edx
jmp 0x4a640a
xor ebx, ebx
mov dword [ebp - 0x34], edx
add edi, 0x3c
cmp dword [edi + 0x14], 8
jb 0x4a633c
mov eax, dword [edi]
jmp 0x4a633e
mov eax, edi
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x4a6369
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4a63f0
mov ecx, dword [ebp - 0x3c]
add ebx, ecx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38], ebx
jb 0x4a637b
mov eax, dword [edi]
jmp 0x4a637d
mov eax, edi
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
cmp dword [edi + 0x14], 8
jb 0x4a638f
mov ebx, dword [edi]
jmp 0x4a6391
mov ebx, edi
xor eax, eax
cmp word [ebx], ax
je 0x4a639f
push ebx
call fcn.004d163d
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040c6b2
lea eax, [ebp - 0x34]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x34], 0
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
ja 0x4a6332
cmp dword [ebp - 0x40], 0
je 0x4a63f0
test ebx, ebx
je 0x4a63f0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040c960
xor ecx, ecx
inc ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], al
push eax
push ecx
jmp 0x4a640a
xor ecx, ecx
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], ecx
mov word [esi], ax
inc eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], cl
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040487e
mov eax, esi
call fcn.004cc251
ret 0xc
Function at 0x4a641c
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x50c8fb
call fcn.004cc273
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x4a6453
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
mov word [eax], cx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
jmp 0x4a64a7
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
add eax, eax
cmp dword [ecx + 0x14], 8
jb 0x4a6463
mov ecx, dword [ecx]
push ebx
lea edx, [ebp + 0x10]
push edx
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4a648b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
mov word [eax], cx
jmp 0x4a6447
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004a629e
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004cc23c
ret 0xc

Function at 0x4a64af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov edx, dword [eax + 0x10]
add edx, edx
cmp dword [eax + 0x14], 8
jb 0x4a64c5
mov eax, dword [eax]
push 0
lea ecx, [ebp + 8]
push ecx
push edx
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
pop ebp
ret 4

Function at 0x4a9430
Capabilities:
Check if file exists

Disassembly:
push 0x50
mov eax, 0x50d1f2
call fcn.004cc2a7
mov edi, dword [ebp + 8]
sub esp, 0x18
add edi, 4
mov dword [ebp - 0x5c], esp
mov ecx, esp
push edi
call fcn.0040a3c1
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004656c0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4a94c1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00467040
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4a9480
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], bl
push 0
push ebx
lea ecx, [ebp - 0x40]
call fcn.0040487e
test esi, esi
jne 0x4a94f3
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00467480
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.0045d0d0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
push esi
push ebx
call fcn.0040487e
cmp dword [ebp - 0x18], 0
jne 0x4a9468
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push ebx
call fcn.0040487e
cmp dword [edi + 0x14], 8
jb 0x4a94de
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
neg eax
sbb eax, eax
neg eax
call fcn.004cc251
ret 4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push ebx
call fcn.0040487e
mov al, bl
jmp 0x4a94eb
Function at 0x4abc27
Capabilities:
Parse credit card information

Disassembly:
push 0x64
mov eax, 0x50d947
call fcn.004cc2a7
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov edi, str.PIDTemplate
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
call fcn.004d163d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00407b30
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x40]
mov ecx, dword [esi + 4]
push edx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0040487e
mov ecx, dword [ebp - 0x18]
cmp ecx, 3
jb 0x4abdf5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x3c
jne 0x4abdf5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x3e
jne 0x4abdf5
lea eax, [ecx - 2]
push eax
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00419539
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
push eax
call fcn.0040f13f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.0040487e
xor eax, eax
mov dword [ebp - 0x30], ebx
mov edi, str.PIDKEY
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
call fcn.004d163d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00407b30
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
mov ecx, dword [esi + 4]
push edx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0040487e
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x18]
jne 0x4abde5
mov esi, ebx
test eax, eax
je 0x4abddf
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x28]
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
movzx eax, word [eax + esi*2]
cmp eax, 0x3d
ja 0x4abda1
je 0x4abdd5
sub eax, 0x23
je 0x4abd7e
dec eax
sub eax, 1
je 0x4abd7e
sub eax, 1
jmp 0x4abdb3
cmp edx, 8
lea eax, [ebp - 0x58]
cmovae eax, edi
movzx eax, word [eax + esi*2]
push eax
call fcn.004d5712
pop ecx
test eax, eax
je 0x4abde3
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x58]
jmp 0x4abdd2
cmp eax, 0x3f
jb 0x4abdb5
cmp eax, 0x40
jbe 0x4abdd5
cmp eax, 0x5e
je 0x4abdd5
cmp eax, 0x60
je 0x4abdd5
cmp edx, 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x28]
cmovae eax, edi
cmp ebx, 8
cmovae ecx, dword [ebp - 0x28]
mov ax, word [eax + esi*2]
cmp ax, word [ecx + esi*2]
jne 0x4abde3
mov ecx, dword [ebp - 0x28]
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x4abd5a
mov bl, 1
jmp 0x4abde5
xor ebx, ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.0040487e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.0040487e
mov al, bl
call fcn.004cc251
ret