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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x20c]
call fcn.00470aa0
mov ecx, edi
mov edx, eax
call fcn.00470aa0
cmp eax, edx
jae 0x49f927
xor al, al
jmp 0x49f940
test edx, edx
je 0x49f93e
mov ax, word [edi + esi*2]
cmp ax, word [ebp + esi*2 - 0x20c]
jne 0x49f923
inc esi
cmp esi, edx
jb 0x49f92b
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d0217
mov esp, ebp
pop ebp
ret 4

Function at 0x49fa3b
Capabilities:
Delete file
Get file version info

Disassembly:
push 0x20
mov eax, 0x50f351
call fcn.004d0de3
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.0049f79f
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 0x49fadc
push eax
lea ecx, [ebp - 0x10]
call fcn.0048fb3d
mov esi, dword [ebp - 0x10]
test al, al
jne 0x49fa8d
push 8
pop edi
jmp 0x49fae4
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 0x49fadc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x52d76c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x49fae4
cmp dword [ebp - 0x20], 0
je 0x49fae4
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x49face
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x49fae4
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x49fae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 3
cmp byte [ebp - 0x28], 0
je 0x49faf7
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x2c]
call fcn.004d0936
pop ecx
push esi
call fcn.004d0936
pop ecx
mov eax, edi
call fcn.004d0dac
ret
Function at 0x49fb0f
Capabilities:
Get file version info

Disassembly:
push 0x24
mov eax, 0x50f384
call fcn.004d0de3
mov eax, ecx
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x18], esi
and dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
push eax
call fcn.004069f3
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], ebx
jle 0x49fb4d
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040cf6c
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x49fc52
push edi
lea ecx, [ebp - 0x18]
call fcn.0048fb3d
test al, al
jne 0x49fb77
mov esi, dword [ebp - 0x18]
jmp 0x49fc52
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], ebx
jle 0x49fb8d
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040cf6c
mov eax, dword [ebp - 0x14]
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 0x49fc52
lea ecx, [ebp - 0x10]
call fcn.0040c77f
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 0x49fbe3
cmp dword [ebp - 0x20], 0
je 0x49fbe3
mov ecx, dword [ebp - 0x24]
push 0x52bee4
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
jmp 0x49fbf2
push 0x52bee4
push 0x4e2
push 0x409
lea eax, [ebp - 0x10]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00410eb2
mov eax, dword [ebp - 0x10]
add esp, 0x14
cmp dword [eax - 4], ebx
jle 0x49fc19
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040cf6c
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
call edi
test eax, eax
je 0x49fc47
cmp dword [ebp - 0x28], 0
je 0x49fc47
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.0040d23c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040ca45
jmp 0x49fc54
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040ca45
xor bl, bl
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004d0936
and dword [ebp - 0x18], 0
mov al, bl
pop ecx
call fcn.004d0dac
ret

Function at 0x49fcfd
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 0x49fdd8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x49fd33
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49fd56
cmp byte [ebp + 0x10], 0
je 0x49fd54
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 0x49fd56
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x4a122b
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x50f61d
call fcn.004d0e17
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0xc
push 0
push eax
call fcn.004d39c0
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 0x4a1265
xor al, al
jmp 0x4a129a
cmp dword [ebp - 0x24], 0xa
jne 0x4a1261
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d264
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push str._aiu_
call fcn.004068f0
mov ebx, eax
lea ecx, [ebp - 0x20]
neg ebx
sbb bl, bl
inc bl
call fcn.0040ca45
mov al, bl
call fcn.004d0dc1
ret 8

Function at 0x4a12a2
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x50f64a
call fcn.004d0e17
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 6
push 0
push eax
call fcn.004d39c0
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 0x4a12dc
xor al, al
jmp 0x4a1311
cmp dword [ebp - 0x20], 5
jne 0x4a12d8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00485441
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push str._aiu_
call fcn.004068f0
mov ebx, eax
lea ecx, [ebp - 0x1c]
neg ebx
sbb bl, bl
inc bl
call fcn.0040ca45
mov al, bl
call fcn.004d0dc1
ret 8

Function at 0x4a15a9
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x50c47f
call fcn.004d0de3
mov ebx, ecx
lea edi, [ebx + 4]
mov ecx, dword [edi]
call fcn.00471de0
push ecx
mov ecx, edi
call fcn.0042b69e
mov eax, dword [ebx + 0x28]
push dword [eax]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x10]
call fcn.0040c77f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0xdc
call fcn.0040ceac
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.004a35c4
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x14]
push eax
xor eax, eax
push eax
push ebx
push 0x4a1646
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.0040ca45
xor eax, eax
call fcn.004d0dac
ret 0x10

Function at 0x4a1fd9
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 0x4a201b
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x4a200b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4a2022
cmp dword [esp + 0xc], 0
jne 0x4a201b
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x4a2039
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.004a203f
xor eax, eax
pop esi
ret 0x10
Function at 0x4a2a2c
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x570074]
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 0x4a2a56
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a2ab6
push ebx
push esi
push 0x14
push str.Schedule
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 0x4a2aa7
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 0x4a2aa4
cmp dword [esp + 0x14], 4
je 0x4a2aaf
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4a2aaf
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a2ab4
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.004d0217
add esp, 0x20
ret

Function at 0x4a3312
Capabilities:
Shutdown system

Disassembly:
push 0x1c
mov eax, 0x50f980
call fcn.004d0e17
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x527e68
and dword [ebp - 4], 0
xor al, al
je 0x4a333e
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 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 0x4a33a3
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 - 0x24]
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 0x4a33a3
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4a33a5
xor bl, bl
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x527e68
je 0x4a33c3
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov al, bl
call fcn.004d0dc1
ret

Function at 0x4a37a7
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 0x4a3811
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4a37f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x4a37ef
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004a38ed
mov eax, esi
jmp 0x4a380c
cmp byte [edi + 0x1c], 0
je 0x4a380a
cmp byte [edi + 0x1d], 0
je 0x4a380a
push ecx
push dword [edi + 0x20]
mov ecx, edi
call fcn.004a38d2
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4a4817
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x50fd60
call fcn.004d0de3
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ecx, ecx
mov dword [ebp - 0x1c], 0x527e68
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4a4844
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]
xor esi, esi
test eax, eax
push ebx
cmovne esi, eax
push edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push ecx
push 0xc800
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.004738a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xc800
push eax
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x4a48bb
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jne 0x4a4884
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00473940
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x527e68
test esi, esi
je 0x4a48e7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov al, bl
call fcn.004d0dac
ret

Function at 0x4ac8c5
Capabilities:
Create pipe

Disassembly:
push 0x24
mov eax, 0x5119f7
call fcn.004d0e17
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
je 0x4ac8e4
mov al, 1
jmp 0x4ac971
mov al, byte [ebp + 8]
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0x1d], al
call fcn.00405125
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004acd6e
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], 0
je 0x4ac938
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]
cmp byte [esi + 0x1d], 0
mov dword [esi + 0x38], eax
jne 0x4ac95d
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 0x4ac963
mov byte [esi + 0x1c], 1
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004050c4
mov al, bl
call fcn.004d0dc1
ret 8
Function at 0x4acb0b
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x38
mov eax, 0x511b02
call fcn.004d0e17
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 0x4acb56
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4acb43
xor eax, eax
inc eax
jmp 0x4acb53
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 0x4acb93
test bl, bl
jne 0x4acb93
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 0x4acc58
xor ebx, ebx
mov dword [ebp - 0x38], edx
add edi, 0x3c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4acba5
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 0x4acbcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4acc3d
mov ecx, dword [ebp - 0x3c]
mov eax, edi
add ebx, ecx
cmp dword [edi + 0x14], 8
jb 0x4acbdb
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 0x4acbf3
mov eax, dword [edi]
mov dword [ebp - 0x34], eax
push eax
call fcn.004d5c34
pop ecx
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.00411963
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 0x4acb9b
cmp dword [ebp - 0x40], 0
je 0x4acc3d
test ebx, ebx
je 0x4acc3d
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00404d3d
jmp 0x4acc4d
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.004050c4
mov eax, esi
call fcn.004d0dc1
ret 0xc
Function at 0x4acc6a
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x511b40
call fcn.004d0de3
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x4acca1
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 0x4accf5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
add eax, eax
cmp dword [ecx + 0x14], 8
jb 0x4accb1
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 0x4accd9
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 7
mov word [eax], cx
jmp 0x4acc95
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004acb0b
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004d0dac
ret 0xc

Function at 0x4accfd
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 0x4acd13
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 0x4adc18
Capabilities:
Parse credit card information

Disassembly:
push 0x4c
mov eax, 0x511f0b
call fcn.004d0e17
mov esi, ecx
push str.PIDTemplate
lea ecx, [ebp - 0x58]
call fcn.004042a7
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.004050c4
mov ecx, dword [ebp - 0x18]
cmp ecx, 3
jb 0x4add96
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x3c
jne 0x4add96
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x3e
jne 0x4add96
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.0041b693
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
push eax
call fcn.00404252
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004050c4
push str.PIDKEY
lea ecx, [ebp - 0x58]
call fcn.004042a7
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.004050c4
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x18]
jne 0x4add86
xor esi, esi
test edx, edx
je 0x4add88
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 0x4add45
je 0x4add7b
sub eax, 0x23
je 0x4add24
dec eax
sub eax, 1
je 0x4add24
sub eax, 1
jmp 0x4add57
cmp edi, 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
movzx eax, word [eax + esi*2]
push eax
call fcn.004d8cbf
pop ecx
test eax, eax
je 0x4add86
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
jmp 0x4add78
cmp eax, 0x3f
jb 0x4add59
cmp eax, 0x40
jbe 0x4add7b
cmp eax, 0x5e
je 0x4add7b
cmp eax, 0x60
je 0x4add7b
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 0x4add86
mov ecx, dword [ebp - 0x14]
inc esi
cmp esi, edx
jb 0x4adcff
jmp 0x4add88
xor bl, bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004050c4
jmp 0x4add98
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050c4
mov al, bl
call fcn.004d0dc1
ret
Function at 0x4ae53d
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512230
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x570074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x53a5a4
mov dword [edi + 4], 0x53a590
mov dword [ebp - 4], 0x11
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x28]
call dword [sym.imp.msi.dll_MsiSetInternalUI]
push ebx
push ebx
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.msi.dll_MsiBeginTransactionW]
mov byte [ebp - 4], 0x10
lea ecx, [edi + 0x1c0]
call fcn.004050c4
mov byte [ebp - 4], 0xf
lea ecx, [edi + 0x1a8]
call fcn.004050c4
mov byte [ebp - 4], 0xe
lea ecx, [edi + 0x190]
call fcn.004050c4
mov byte [ebp - 4], 0xd
lea ecx, [edi + 0x160]
call fcn.004050c4
mov byte [ebp - 4], 0xc
lea ecx, [edi + 0x148]
call fcn.004050c4
mov byte [ebp - 4], 0xb
lea ecx, [edi + 0x130]
call fcn.004050c4
mov byte [ebp - 4], 0xa
lea ecx, [edi + 0x118]
call fcn.004050c4
mov byte [ebp - 4], 9
lea ecx, [edi + 0x100]
call fcn.004050c4
mov byte [ebp - 4], 8
lea ecx, [edi + 0xe8]
call fcn.004050c4
mov byte [ebp - 4], 7
lea ecx, [edi + 0xd0]
call fcn.004050c4
mov byte [ebp - 4], 6
lea ecx, [edi + 0xb8]
call fcn.004050c4
mov byte [ebp - 4], 5
lea esi, [edi + 0x64]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0xc]
call fcn.0040dcb1
mov byte [ebp - 4], 5
lea ecx, [esi + 4]
call fcn.00456a3d
mov byte [ebp - 4], 4
lea ecx, [edi + 0x50]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.00451bb3
mov byte [ebp - 4], 3
lea ecx, [edi + 0x48]
mov esi, 0x527e68
mov dword [ecx], esi
call fcn.00404fb2
mov byte [ebp - 4], 2
lea ecx, [edi + 0x40]
mov dword [ecx], esi
call fcn.00404fb2
mov byte [ebp - 4], 1
lea ecx, [edi + 0x38]
mov dword [ecx], esi
call fcn.00404fb2
mov byte [ebp - 4], bl
lea ecx, [edi + 0x30]
mov dword [ecx], esi
call fcn.00404fb2
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
call fcn.004050c4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b04f7
Capabilities:
Check if file exists

Disassembly:
push 0x50
mov eax, 0x512733
call fcn.004d0e17
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.0040479a
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004661c0
mov dword [ebp - 4], 1
jmp 0x4b058d
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00469200
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4b054f
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.004050c4
test esi, esi
jne 0x4b05bb
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00469c40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.0045a6a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004050c4
cmp dword [ebp - 0x18], 0
jne 0x4b0537
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050c4
cmp dword [edi + 0x14], 8
jb 0x4b05a7
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
setne al
call fcn.004d0dc1
ret 4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050c4
mov al, 1
jmp 0x4b05b3