joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7bc4
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x420
mov eax, 0x51adde
call fcn.004db2a7
mov esi, ecx
mov edi, dword [ebp + 8]
and dword [esi], 0
push ecx
push ecx
call fcn.00474240
pop ecx
mov ecx, eax
call fcn.00474700
test al, al
je 0x4a7ce1
push edi
call fcn.004a7d42
test al, al
je 0x4a7ce1
mov ebx, 0x208
lea eax, [ebp - 0x21c]
push ebx
push 0
push eax
call fcn.004de4e0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.004de4e0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push ebx
push str.shim_clone
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x424]
mov ecx, esi
push eax
call fcn.004a7de7
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x428], bl
mov dword [ebp - 4], ebx
call fcn.004a4b86
mov eax, dword [0x580378]
test eax, eax
je 0x4a7c91
lea ecx, [ebp - 0x42c]
push ecx
call eax
mov byte [ebp - 0x428], 1
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
mov byte [esi + 4], al
je 0x4a7cae
push edi
mov ecx, esi
call fcn.004a7de7
mov dword [ebp - 4], 1
cmp byte [ebp - 0x428], 0
je 0x4a7cdb
call fcn.004a4b86
mov eax, dword [0x580374]
test eax, eax
je 0x4a7cdb
lea ecx, [ebp - 0x42c]
push ecx
call eax
mov byte [ebp - 0x428], bl
or dword [ebp - 4], 0xffffffff
jmp 0x4a7ced
push edi
mov ecx, esi
call fcn.004a7de7
mov byte [esi + 4], 0
mov eax, esi
call fcn.004db251
ret 4

Function at 0x4a7d42
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x57d074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, esi
mov ecx, ebx
cmp word [esi], bx
je 0x4a7d80
lea eax, [eax + 2]
inc ecx
cmp word [eax], bx
jne 0x4a7d77
mov eax, ebx
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], ax
je 0x4a7da2
lea edx, [edx + 2]
inc eax
cmp word [edx], bx
jne 0x4a7d91
cmp ecx, eax
jae 0x4a7da2
xor al, al
jmp 0x4a7dd5
mov ecx, ebx
mov eax, ebx
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], ax
je 0x4a7dd3
lea edx, [edx + 2]
inc eax
cmp word [edx], bx
jne 0x4a7db5
cmp ecx, eax
jae 0x4a7dd3
mov ax, word [esi + ecx*2]
cmp ax, word [ebp + ecx*2 - 0x20c]
jne 0x4a7d9e
inc ecx
jmp 0x4a7da4
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004da696
mov esp, ebp
pop ebp
ret 4
Function at 0x4a7ee1
Capabilities:
Delete file
Get file version info

Disassembly:
push 0x20
mov eax, 0x51ae16
call fcn.004db273
mov dword [ebp - 0x24], edx
xor edi, edi
mov esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004a7bc4
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4a7f82
push eax
lea ecx, [ebp - 0x10]
call fcn.00495766
mov esi, dword [ebp - 0x10]
test al, al
jne 0x4a7f33
push 8
pop edi
jmp 0x4a7f8a
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4a7f82
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5397c4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4a7f8a
cmp dword [ebp - 0x20], 0
je 0x4a7f8a
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a7f74
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4a7f8a
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x4a7f8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 3
cmp byte [ebp - 0x28], 0
je 0x4a7f9d
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x2c]
call fcn.004dadb0
pop ecx
push esi
call fcn.004dadb0
pop ecx
mov eax, edi
call fcn.004db23c
ret
Function at 0x4a7fb5
Capabilities:
Get file version info

Disassembly:
push 0x24
mov eax, 0x51ae49
call fcn.004db273
mov eax, ecx
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x18], esi
and dword [ebp - 4], esi
lea ecx, [ebp - 0x10]
push eax
call fcn.00406ff4
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
jle 0x4a7ff3
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d588
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4a8104
push edi
lea ecx, [ebp - 0x18]
call fcn.00495766
test al, al
jne 0x4a801d
mov esi, dword [ebp - 0x18]
jmp 0x4a8104
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
jle 0x4a8033
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d588
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push esi
push edi
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4a8104
lea ecx, [ebp - 0x14]
call fcn.0040cd94
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x4a8082
cmp dword [ebp - 0x20], 0
je 0x4a8082
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
jmp 0x4a808c
mov ecx, 0x409
mov eax, 0x4e2
push 0x537f24
push eax
push ecx
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00411637
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp dword [eax - 4], ebx
jle 0x4a80ba
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040d588
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
call edi
test eax, eax
je 0x4a80f9
cmp dword [ebp - 0x28], 0
je 0x4a80f9
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x4a80db
xor eax, eax
jmp 0x4a80e2
push edi
call fcn.004e07a4
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push edi
call fcn.0040d7d9
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040d05a
jmp 0x4a8106
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040d05a
xor bl, bl
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040d05a
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004dadb0
and dword [ebp - 0x18], 0
mov al, bl
pop ecx
call fcn.004db23c
ret

Function at 0x4a81af
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push esi
push 0x4a828a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x4a81e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a8208
cmp byte [ebp + 0x10], 0
je 0x4a8206
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp + 0x10]
jmp 0x4a8208
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x4a995b
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x51b105
call fcn.004db2a7
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0xc
push 0
push eax
call fcn.004de4e0
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 0x4a9995
xor al, al
jmp 0x4a99ca
cmp dword [ebp - 0x24], 0xa
jne 0x4a9991
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d859
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push str._aiu_
call fcn.00406ef1
mov ebx, eax
lea ecx, [ebp - 0x20]
neg ebx
sbb bl, bl
inc bl
call fcn.0040d05a
mov al, bl
call fcn.004db251
ret 8

Function at 0x4a99d2
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x51b132
call fcn.004db2a7
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 6
push 0
push eax
call fcn.004de4e0
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 0x4a9a0c
xor al, al
jmp 0x4a9a41
cmp dword [ebp - 0x20], 5
jne 0x4a9a08
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004898ff
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push str._aiu_
call fcn.00406ef1
mov ebx, eax
lea ecx, [ebp - 0x1c]
neg ebx
sbb bl, bl
inc bl
call fcn.0040d05a
mov al, bl
call fcn.004db251
ret 8

Function at 0x4a9d50
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x517ea0
call fcn.004db273
mov ebx, ecx
mov edx, dword [0x57f2d8]
lea edi, [ebx + 4]
push ecx
mov ecx, dword [edi]
call fcn.00476220
mov ecx, edi
call fcn.0042d4b3
mov eax, dword [ebx + 0x28]
push dword [eax]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x10]
call fcn.0040cd94
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0xdc
call fcn.0040d4c8
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.004abee5
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x14]
push eax
xor eax, eax
push eax
push ebx
push 0x4a9df3
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.0040d05a
xor eax, eax
call fcn.004db23c
ret 0x10

Function at 0x4aa7b2
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x4aa7eb
push 0xe801
push dword [edi - 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x4aa7db
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4aa7f2
cmp dword [esp + 0xc], 0
jne 0x4aa7eb
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x4aa808
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, edi
push eax
call fcn.004aa80e
xor eax, eax
pop edi
ret 0x10
Function at 0x4ab226
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x57d074]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push edi
push 1
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4ab250
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ab2b0
push ebx
push esi
push 0x14
push 0x544db8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
push edi
call ebx
test esi, esi
je 0x4ab2a1
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4ab29e
cmp dword [esp + 0x14], 4
je 0x4ab2a9
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4ab2a9
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ab2ae
push esi
call ebx
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
xor ecx, esp
call fcn.004da696
add esp, 0x20
ret

Function at 0x4abc34
Capabilities:
Shutdown system

Disassembly:
push 0x1c
mov eax, 0x51b468
call fcn.004db2a7
and dword [ebp - 0x24], 0
mov esi, 0x533e78
mov dword [ebp - 0x28], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4abcb3
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor ecx, ecx
mov dword [ebp - 0x14], 2
push ecx
push ecx
push ecx
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
push ecx
push dword [ebp - 0x24]
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 0x4abcb3
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4abcb5
xor bl, bl
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esi
je 0x4abccf
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov al, bl
call fcn.004db251
ret

Function at 0x4ac0fc
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov esi, dword [eax]
mov eax, dword [esp + 0xc]
push 2
pop ecx
mov edx, dword [eax]
xor eax, eax
cmp byte [edi + 0x24], al
cmovne eax, ecx
push eax
push 0
push edi
push 0x4ac166
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4ac148
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x4ac144
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004ac242
mov eax, esi
jmp 0x4ac161
cmp byte [edi + 0x1c], 0
je 0x4ac15f
cmp byte [edi + 0x1d], 0
je 0x4ac15f
push ecx
push dword [edi + 0x20]
mov ecx, edi
call fcn.004ac227
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4ad1bc
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x51b845
call fcn.004db273
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 0x20], 0x533e78
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4ad1e9
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.0040df9a
push ebx
push esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push ecx
push 0xc800
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.00478000
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
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 0x4ad262
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 0x4ad22b
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004780a0
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x533e78
test esi, esi
je 0x4ad28e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
mov al, bl
call fcn.004db23c
ret

Function at 0x4b5845
Capabilities:
Create pipe

Disassembly:
push 0x24
mov eax, 0x51d543
call fcn.004db2a7
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
je 0x4b5864
mov al, 1
jmp 0x4b58f3
mov al, byte [ebp + 8]
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0x1d], al
call fcn.004056c5
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004b5d00
mov dword [ebp - 4], ebx
mov al, byte [esi + 0x1d]
test al, al
je 0x4b58ba
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
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
mov al, byte [esi + 0x1d]
test al, al
jne 0x4b58df
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
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 0x4b58e5
mov byte [esi + 0x1c], 1
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405662
mov al, bl
call fcn.004db251
ret 8
Function at 0x4b5a9d
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x38
mov eax, 0x51d64e
call fcn.004db2a7
mov edi, ecx
mov bl, byte [ebp + 0x10]
xor eax, eax
and dword [ebp - 0x30], 0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], ecx
test bl, bl
jne 0x4b5ae8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4b5ad5
xor eax, eax
inc eax
jmp 0x4b5ae5
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x18], 0
xor edx, edx
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], dx
inc edx
mov dword [ebp - 4], edx
test eax, eax
jne 0x4b5b25
test bl, bl
jne 0x4b5b25
and dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], al
jmp 0x4b5bea
xor ebx, ebx
mov dword [ebp - 0x38], edx
add edi, 0x3c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b5b37
mov eax, dword [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 0x4b5b5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4b5bcf
mov ecx, dword [ebp - 0x3c]
mov eax, edi
add ebx, ecx
cmp dword [edi + 0x14], 8
jb 0x4b5b6d
mov eax, dword [edi]
shr ecx, 1
xor edx, edx
mov dword [ebp - 0x34], edi
mov word [eax + ecx*2], dx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4b5b85
mov eax, dword [edi]
mov dword [ebp - 0x34], eax
push eax
call fcn.004e07a4
pop ecx
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.0041212b
lea eax, [ebp - 0x38]
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 - 0x38], 0
mov ecx, dword [ebp - 0x2c]
ja 0x4b5b2d
cmp dword [ebp - 0x40], 0
je 0x4b5bcf
test ebx, ebx
je 0x4b5bcf
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004052d1
jmp 0x4b5bdf
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405662
mov eax, esi
call fcn.004db251
ret 0xc
Function at 0x4b5bfc
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x51d68c
call fcn.004db273
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x4b5c33
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
jmp 0x4b5c87
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
add eax, eax
cmp dword [ecx + 0x14], 8
jb 0x4b5c43
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 0x4b5c6b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 7
mov word [eax], cx
jmp 0x4b5c27
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004b5a9d
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004db23c
ret 0xc

Function at 0x4b5c8f
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 0x4b5ca5
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 0x4b6c42
Capabilities:
Parse credit card information

Disassembly:
push 0x4c
mov eax, 0x51da6e
call fcn.004db2a7
mov esi, ecx
push str.PIDTemplate
lea ecx, [ebp - 0x58]
call fcn.0040437e
and dword [ebp - 4], 0
lea edx, [ebp - 0x58]
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 - 0x58]
call fcn.00405662
mov ecx, dword [ebp - 0x18]
cmp ecx, 3
jb 0x4b6dc0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x3c
jne 0x4b6dc0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x3e
jne 0x4b6dc0
lea eax, [ecx - 2]
xor ebx, ebx
push eax
inc ebx
lea eax, [ebp - 0x58]
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.0041c8dd
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
push eax
call fcn.00404329
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00405662
push str.PIDKEY
lea ecx, [ebp - 0x58]
call fcn.0040437e
mov byte [ebp - 4], 4
lea edx, [ebp - 0x58]
mov ecx, dword [esi + 4]
push edx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.00405662
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x18]
jne 0x4b6db0
xor esi, esi
test edx, edx
je 0x4b6db2
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax + esi*2]
cmp eax, 0x3d
ja 0x4b6d6f
je 0x4b6da5
sub eax, 0x23
je 0x4b6d4e
dec eax
sub eax, 1
je 0x4b6d4e
sub eax, 1
jmp 0x4b6d81
cmp edi, 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
movzx eax, word [eax + esi*2]
push eax
call fcn.004e3814
pop ecx
test eax, eax
je 0x4b6db0
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
jmp 0x4b6da2
cmp eax, 0x3f
jb 0x4b6d83
cmp eax, 0x40
jbe 0x4b6da5
cmp eax, 0x5e
je 0x4b6da5
cmp eax, 0x60
je 0x4b6da5
cmp edi, 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
mov ax, word [eax + esi*2]
cmp ax, word [ecx + esi*2]
jne 0x4b6db0
mov ecx, dword [ebp - 0x14]
inc esi
cmp esi, edx
jb 0x4b6d29
jmp 0x4b6db2
xor bl, bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00405662
jmp 0x4b6dc2
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405662
mov al, bl
call fcn.004db251
ret
Function at 0x4b9775
Capabilities:
Check if file exists

Disassembly:
push 0x50
mov eax, 0x51e2e7
call fcn.004db2a7
mov edi, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
xor esi, esi
add edi, 4
push edi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], esi
call fcn.00404bac
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0046a490
mov dword [ebp - 4], 1
jmp 0x4b980b
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046d3b0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4b97cd
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405662
test esi, esi
jne 0x4b9839
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046de20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00404329
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00405662
cmp dword [ebp - 0x18], 0
jne 0x4b97b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405662
cmp dword [edi + 0x14], 8
jb 0x4b9825
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
setne al
call fcn.004db251
ret 4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405662
mov al, 1
jmp 0x4b9831