joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491ee0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x501324]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x784], ecx
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x788], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x20]
mov dword [edx + 0x78c], eax
cmp dword [ebp + 8], 0
jne 0x491f6e
call fcn.00491a30
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
call edx
cmp dword [ebp + 0x1c], 0
je 0x491f6e
call fcn.00491a30
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x14]
call eax
cmp dword [ebp - 0x28], 0
je 0x491f7f
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
mov dword [ebp - 0x38], ecx
jmp 0x491f86
mov dword [ebp - 0x38], 0
call fcn.00491a30
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x784], 0
jne 0x491fb7
mov ecx, dword [ebp + 0x18]
call fcn.00407910
mov dword [ebp - 0x40], eax
jmp 0x491fda
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x784]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x784]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
call fcn.00407910
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x24]
call fcn.00415460
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 8], edx
push 0
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0xc], edx
push 0x88
push SysReAllocString
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.00411d00
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x492055
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x2c], eax
jmp 0x492038
push 5
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2154
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x49c0c0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x501324]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x49c12c.8
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x49c1cc]
jmp dword [ecx*4 + 0x49c1c4]
mov edx, dword [ebp - 0x210]
or edx, 0x100
mov dword [ebp - 0x210], edx
cmp dword [ebp + 0x10], 0
je 0x49c15c
mov eax, dword [ebp - 0x210]
or eax, 0x1000000
mov dword [ebp - 0x210], eax
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004b9de0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x210]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00415510
mov edx, dword [ebp - 0x218]
or edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2154
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49c133
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x501324]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x49c12c.8
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x49c1cc]
jmp dword [ecx*4 + 0x49c1c4]
mov edx, dword [ebp - 0x210]
or edx, 0x100
mov dword [ebp - 0x210], edx
cmp dword [ebp + 0x10], 0
je 0x49c15c
mov eax, dword [ebp - 0x210]
or eax, 0x1000000
mov dword [ebp - 0x210], eax
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004b9de0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x210]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00415510
mov edx, dword [ebp - 0x218]
or edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2154
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a18ee
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push 0x210
mov eax, 0x4d757f
call fcn.004a2aa5
mov esi, dword [ebp + 8]
push 1
push 0
push esi
push 0x4e7edc
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
jle 0x4a175e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
jne 0x4a17da
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004b9de0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00401d88
push eax
lea ecx, [ebp - 0x21c]
call fcn.004a1594
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x21c]
push str.__sInternet_Exploreriexplore.exe_
push eax
call fcn.004a1650
add esp, 0xc
push 1
push ebx
push esi
mov esi, dword [ebp - 0x21c]
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [esi - 0x10]
setg bl
call fcn.004a18ab
mov eax, ebx
call fcn.004a2a60
ret
push ebp
mov ebp, esp
push 1
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4a1911
pop ebp
jmp 0x4a171e
pop ebp
ret

Function at 0x4a1a26
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4d75c0
call fcn.004a2a71
and dword [ebp - 0x20], 0
xor eax, eax
mov ebx, dword [ebp + 8]
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
and dword [ebp - 4], eax
push 0x208
mov dword [ebp - 0x20], 1
call fcn.004a2bb5
mov edx, eax
xor eax, eax
pop ecx
mov ecx, 0x82
mov dword [ebp - 0x14], edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x20019
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4a1b2c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4a1b23
cmp dword [ebp - 0x10], 0x104
jbe 0x4a1af4
push dword [ebp - 0x14]
call fcn.004a2bbe
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a2bb5
mov edi, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], edi
push eax
push esi
push edi
call fcn.00403c94
add esp, 0x14
jmp 0x4a1af7
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov ecx, ebx
mov esi, eax
push edi
call fcn.00401b41
push edi
call fcn.004a2bbe
mov edi, dword [ebp - 0x1c]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
cmp esi, eax
jne 0x4a1b4e
cmp dword [ebp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
jne 0x4a1b4e
cmp edi, 0x20019
jne 0x4a1b4e
mov edi, 0x20119
jmp 0x4a1a73
mov eax, ebx
call fcn.004a2a4b
ret
Function at 0x4a1d3d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x501324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4a1dc3
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004b9de0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4a1dc3
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4a1db8
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004be258
pop ecx
pop ecx
test eax, eax
je 0x4a1dd3
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4a1d98
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a2154
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x4a1dc5

Function at 0x4a1f64
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x4a1f79
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a1f9b
mov al, 1
jmp 0x4a202c
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a2bb5
push esi
mov ebx, eax
push 0
push ebx
call fcn.00403c94
push dword [ebp + 8]
push esi
push ebx
call fcn.004c5cd2
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x4a1fda
cmp eax, 0x2f
jne 0x4a2016
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a200f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4a201d
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x4a200f
push ebx
mov ecx, eax
call fcn.004a1f47
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x4a1fcc
jmp 0x4a2021
mov byte [ebp - 1], 0
push ebx
call fcn.004a2bbe
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4a20c6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x501324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.004b9de0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4a2131
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4a213f
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401bb6
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a2154
leave
ret

Function at 0x4a42fe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4ca996
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ca815
Function at 0x10089086
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1012abca
call fcn.10123694
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1007dd03
xor ebx, ebx
mov dword [esi], vtable.ScObjects::Thread.0
push 0x10
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call fcn.100c622d
pop ecx
test eax, eax
je 0x100890ca
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x100890cc
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10089256
push ebx
push ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
cmp ecx, 0xffffffff
jne 0x100890ff
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [eax + 4], ebx
jmp 0x1008910b
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov eax, esi
call fcn.10123662
ret

Function at 0x1008933b
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x1008934d
mov eax, dword [ecx + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x1008f795
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1012b954
call fcn.101236c7
mov esi, dword [ebp + 8]
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
call fcn.100894ce
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.1008f895
test eax, eax
jne 0x1008f7d9
push 0xffffffffffffffff
push 0x10130ee8
mov ecx, esi
call fcn.100c622d
jmp 0x1008f820
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, esi
push 0xffffffffffffffff
push 0x10130ee8
test eax, eax
je 0x1008f7d2
call fcn.100c622d
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x1013d2f0
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.100c622d
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1008f7f8
mov eax, esi
call fcn.10123676
ret

Function at 0x1008f895
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [0x107ac5a0]
test esi, esi
jne 0x1008f8ea
push esi
push 1
push esi
push esi
push 0x107ac5a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1008f8e4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1008f8e4
push 8
push 1
push esi
push esi
push 0x107ac5a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1008f8e4
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x107ac5a0], esi
jmp 0x1008f8ea
mov esi, dword [0x107ac5a0]
mov eax, esi
pop esi
ret
Function at 0x1008fa93
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x54
mov eax, 0x1012ba03
call fcn.101236c7
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x50], ebx
call fcn.1008f895
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x44], eax
call fcn.100894ce
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.100894ce
push edi
mov eax, 0x1013d378
mov dword [ebp - 0x48], 1
push eax
push esi
push eax
push edi
push ebx
call fcn.100c622d
pop ecx
pop ecx
push eax
call fcn.100c622d
pop ecx
pop ecx
push eax
call fcn.100c622d
pop ecx
pop ecx
push eax
call fcn.100c622d
pop ecx
pop ecx
push eax
call fcn.100c622d
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
test eax, eax
jne 0x1008fb28
push 0xffffffffffffffff
push 0x10130ee8
mov ecx, ebx
call fcn.100c622d
jmp 0x1008fbe9
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1008fb15
push 0
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1008fb15
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop ecx
push 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
push eax
push ecx
push dword [ebp - 0x3c]
call esi
test eax, eax
je 0x1008fb15
push dword [ebp - 0x40]
call fcn.100c622d
mov edi, eax
pop ecx
test edi, edi
je 0x1008fb15
push 0
lea eax, [ebp - 0x40]
push eax
push edi
push 2
push dword [ebp - 0x3c]
call esi
mov ecx, ebx
push 0xffffffffffffffff
push 0x10130ee8
test eax, eax
jne 0x1008fbaa
call fcn.100c622d
jmp 0x1008fbe2
call fcn.100c622d
xor esi, esi
cmp dword [ebp - 0x40], esi
jbe 0x1008fbe2
cmp esi, 0x28
jae 0x1008fbe2
movzx eax, byte [esi + edi]
push eax
lea eax, [ebp - 0x38]
push 0x1013d2f0
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.100c622d
add esp, 0x14
inc esi
cmp esi, dword [ebp - 0x40]
jb 0x1008fbb6
push edi
call sub.MSVCR120.dll_free
pop ecx
cmp dword [ebp - 0x3c], 0
je 0x1008fbf8
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.1008950a
mov eax, ebx
call fcn.10123676
ret
Function at 0x1009d200
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x1012df8f
call fcn.10123694
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x10169ee4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100990c2
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.100894ce
lea eax, [esi + 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100c622d
pop ecx
pop ecx
push eax
call fcn.100c622d
push 0xc
lea edi, [esi + 0x56]
push ebx
push edi
call sub.MSVCR120.dll_memset
push edi
mov ecx, ebx
call fcn.100c622d
add esp, 0x18
test al, al
je 0x1009d273
cmp dword [esi + 0x5a], ebx
cmovne ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CreateMailslotA]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x52], eax
mov byte [ebp - 4], bl
call fcn.1008950a
mov eax, esi
call fcn.10123662
ret 8

Function at 0x1009d40f
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x1012e000
call fcn.10123694
mov esi, ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.1007dcd0
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.100893a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call fcn.100c622d
push 0
xor ecx, ecx
lea eax, [esi + 0x56]
cmp dword [esi + 0x5a], ecx
push 0x80
push 3
cmovne ecx, eax
push ecx
push ebx
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1009d4aa
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x1009d4aa
mov eax, dword [edi + 8]
cmp dword [ebp - 0x10], eax
je 0x1009d4ac
xor bl, bl
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.1008950a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1007de05
mov al, bl
call fcn.10123662
ret 8
Function at 0x100c622d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x100c623c
pop dword [ebp - 0x28]
mov eax, 0x3a73c3df
add eax, 0xd5989e5d
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x94b4e9cc
add dword [ebp - 0x38], 0xb99d5b7f
mov dword [ebp - 0x34], 0xa91f1c64
add dword [ebp - 0x34], 0x89142fe1
mov dword [ebp - 0x30], 0x6d399419
add dword [ebp - 0x30], 0xdf12b015
mov dword [ebp - 0x2c], 0x9ebb53be
add dword [ebp - 0x2c], 0x6144ac42
lea eax, [ebp - 0x38]
push eax
mov eax, 0xb885c92
sub eax, 0xfb7559aa
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x3c456292
sub dword [ebp - 0x38], 0xc7d2f93c
mov dword [ebp - 0x34], 0x616584f2
sub dword [ebp - 0x34], 0x1ff9237d
mov dword [ebp - 0x30], 0x57735d8f
sub dword [ebp - 0x30], 0xf403f123
mov dword [ebp - 0x2c], 0x48435e25
sub dword [ebp - 0x2c], 0x48435e25
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xc7582179
add eax, 0x48bae153
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x6281b
push 0
call eax
mov ecx, 0x3fad
mov edi, eax
mov edx, 0x107bfa00
add edx, dword [ebp - 0x28]
mov esi, 0xfb8fd5ba
add esi, 0xe0dd65eb
sub dword [ebp - 4], 0xf8eeff51
mov ebx, dword [edx]
add dword [ebp - 0x14], 0xd307e8cd
xor ebx, esi
add dword [ebp - 0x1c], 0xf4e8d933
mov dword [edi], ebx
xor dword [ebp - 0x10], edx
add edi, 4
add edx, 4
loop 0x100c6352
add eax, 0xf187
mov ebx, eax
add eax, 0x634d63b
sub eax, 0x634d636
mov ecx, 0xc06c09e
sub ecx, 0xfc06c09e
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x10107d92
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x10107e15
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push edi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x10107ddf
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x10107ddf
cmp edi, ebx
jge 0x10107ddf
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x10107e0f
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x10107e0f
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
push 1
push dword [esi + 0x20]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 8]
mov eax, edi
pop edi
pop ebx
jmp 0x10107e27
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x10108001
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1016f640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ac69c], 0
mov eax, dword [ebp + 8]
je 0x10108029
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10108043
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.100c622d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.1012364c
mov esp, ebp
pop ebp
ret 4

Function at 0x101081ea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1016f640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ac69c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10108220
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10108286
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.100c622d
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.100c622d
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.100c622d
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012364c
mov esp, ebp
pop ebp
ret 0x10