joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001ba7
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.10131950
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push str._s_s.cache
push eax
call fcn.10131892
add esp, 0x1c
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10001c5c
push edi
push esi
push 0x80
push 3
push esi
push 1
push closesocket
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x10001c59
cmp edi, 0xffffffff
je 0x10001c59
push esi
push edi
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0x10], esi
jne 0x10001c3c
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov dword [ecx], eax
inc esi
jmp 0x10001c4e
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10001c5b
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x10001c61
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.10131950
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.10131892
add esp, 0x1c
cmp dword [ebp + 0x10], 0
je 0x10001cb6
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
call fcn.10131845
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret 0xc

Function at 0x10001cc7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.10131950
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push str._s_s.cache
push eax
call fcn.10131892
add esp, 0x1c
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10001d30
xor eax, eax
jmp 0x10001d50
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
mov dword [ebp + 0xc], esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret 0x10
Function at 0x10001d56
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.10139950
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x800], ax
lea eax, [ebp - 0x7fe]
push eax
call fcn.10131950
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov eax, 0x400
push eax
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.10131c73
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1800], ax
lea eax, [ebp - 0x17fe]
push eax
call fcn.10131950
lea eax, [ebp - 0x800]
push eax
push 0x1018a0e0
push dword [0x101a1694]
lea eax, [ebp - 0x1800]
push str._CA_LOG__s__s___ERROR____s
push 0x800
push eax
call fcn.1013192a
add esp, 0x44
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret

Function at 0x10001ded
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 4
pop edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10001e57
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
cmp eax, ebx
jne 0x10001e57
cmp dword [ebp - 4], edi
jne 0x10001e6a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x10001e6a
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Failed_to_read_RegKey_DWORD__Key_s__Value_s
call fcn.10001d56
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001e72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101a1698]
push ebx
push esi
push edi
lea ecx, [ebp - 8]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, str.LogPath
cmp eax, ebx
jne 0x10001ee1
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp - 8]
call edi
cmp eax, ebx
jne 0x10001ee1
cmp dword [ebp - 4], 1
jne 0x10001ef6
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp - 8]
call edi
cmp eax, ebx
je 0x10001ef6
push esi
push dword [ebp - 0x10]
push str.Failed_to_read_RegKey_SZ__Key_s__Value_s
call fcn.10001d56
add esp, 0xc
xor al, al
jmp 0x10001ef8
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001f42
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3904
call fcn.10139950
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov ebx, 0x1018a0dc
cmp dword [0x101a1690], esi
je 0x100020e6
cmp eax, dword [0x1019caa0]
jg 0x100020e6
cmp eax, 1
jne 0x10001f7f
mov ebx, str.ERR
jmp 0x10001f89
cmp eax, 2
jne 0x10001f89
mov ebx, str.INFO__
push edi
xor eax, eax
push 0x7fe
mov word [ebp - 0x904], ax
lea eax, [ebp - 0x902]
push esi
push eax
call fcn.10131950
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov eax, 0x400
push eax
push eax
lea eax, [ebp - 0x904]
push eax
call fcn.10131c73
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
xor eax, eax
push 0xffe
mov word [ebp - 0x1904], ax
lea eax, [ebp - 0x1902]
push esi
push eax
call fcn.10131950
lea eax, [ebp - 0x904]
push eax
push ebx
push edi
push 0x1018a0e0
push dword [0x101a1694]
lea eax, [ebp - 0x1904]
push str._CA_LOG__s__s___T:_d___s__s
push 0x800
push eax
call fcn.1013192a
mov eax, dword [0x101a1690]
add esp, 0x2c
pop edi
cmp eax, 2
je 0x10002022
cmp eax, 3
jne 0x10002034
lea eax, [ebp - 0x1904]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x101a1690]
cmp eax, 1
je 0x10002042
cmp eax, 3
jne 0x100020e6
xor eax, eax
push 0xfe
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push esi
push eax
call fcn.10131950
lea eax, [ebp - 0x104]
push eax
call fcn.10001efd
xor eax, eax
push 0x1ffe
mov word [ebp - 0x3904], ax
lea eax, [ebp - 0x3902]
push esi
push eax
call fcn.10131950
lea eax, [ebp - 0x1904]
push eax
lea eax, [ebp - 0x104]
push eax
push str._s__s_r_n
lea eax, [ebp - 0x3904]
push 0x1000
push eax
call fcn.1013192a
add esp, 0x30
push 2
push esi
push esi
push dword [0x1019c944]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x3904]
push eax
call fcn.101319ca
pop ecx
add eax, eax
push eax
lea eax, [ebp - 0x3904]
push eax
push dword [0x1019c944]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x100020ea
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x410], ax
xor edi, edi
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.10131950
xor eax, eax
push esi
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push edi
push eax
call fcn.10131950
mov eax, str.SOFTWAREHebcaHebcaP11X
push str.LogLevel
push eax
mov dword [0x101a1694], 0x10190c54
mov dword [0x101a1698], eax
mov dword [0x101a169c], 0x10190c04
call fcn.10001ded
push str.LogWay
push dword [0x101a1698]
mov esi, eax
call fcn.10001ded
add esp, 0x28
cmp esi, 5
jge 0x10002174
mov dword [0x1019caa0], esi
cmp eax, 4
jge 0x1000217e
mov dword [0x101a1690], eax
cmp eax, 1
je 0x1000218c
cmp eax, 3
jne 0x10002254
cmp dword [0x1019c944], 0xffffffff
jne 0x10002254
lea eax, [ebp - 0x410]
push eax
call fcn.10001e72
pop ecx
cmp al, 1
je 0x100021b1
xor al, al
jmp 0x10002256
push dword [0x101a169c]
lea eax, [ebp - 0x410]
push eax
push str._s_s
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.1013192a
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x14
push edi
mov ebx, 0x80
push ebx
push 3
push edi
push 3
mov edi, 0xc0000000
push edi
lea eax, [ebp - 0x208]
push eax
call esi
mov dword [0x1019c944], eax
cmp eax, 0xffffffff
jne 0x1000221f
push 0
push ebx
push 2
push 0
push 3
push edi
lea eax, [ebp - 0x208]
push eax
call esi
mov dword [0x1019c944], eax
cmp eax, 0xffffffff
je 0x100021aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10002242
lea eax, [ebp - 0x208]
push eax
push str.Failed_to_create_log_file:__s
call fcn.10001d56
pop ecx
pop ecx
jmp 0x100021aa
push 2
push 0
push 0
push dword [0x1019c944]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100023be
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
xor esi, esi
push edi
cmp dword [0x101a1754], esi
jne 0x100023fc
call ebp
test eax, eax
jns 0x100023f2
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x101a1750], eax
mov dword [0x101a1754], 1
mov eax, dword [0x101a1750]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10002418
push dword [esp + 0x14]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x10002448
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x1000243f
call ebp
test eax, eax
jns 0x10002430
push dword [ebx + 0xc]
call dword [ebx + 8]
jmp 0x10002435
push dword [ebx + 4]
call dword [ebx]
test eax, eax
je 0x10002448
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push dword [esp + 0x14]
push eax
call edi
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10002638
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [0x101a1664], edi
je 0x1000264f
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x101a165c], edi
jne 0x10002695
cmp dword [0x101a1664], edi
jne 0x10002668
call fcn.10002450
test eax, eax
je 0x1000269a
mov eax, dword [0x101a176c]
mov esi, dword [0x1019bdd0]
cmp eax, edi
jne 0x1000268a
push str.ActivateActCtx
call fcn.100026c0
mov dword [0x101a176c], eax
cmp eax, edi
je 0x1000269a
push dword [esp + 0xc]
push esi
call eax
cmp eax, edi
je 0x1000269a
xor edi, edi
inc edi
jmp 0x100026b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x100026af
cmp eax, 0x7e
je 0x100026af
cmp eax, 0x78
jne 0x100026b9
xor eax, eax
inc eax
mov dword [0x101a165c], eax
mov edi, eax
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x100031b8
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x101a1774], 0
jne 0x100031e8
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100031e1
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101a1778], eax
mov byte [0x101a1774], 1
mov eax, dword [0x101a1778]
test eax, eax
je 0x10003200
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x1000320c
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4

Function at 0x10003264
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x10003272
push 0xd
pop eax
jmp 0x100032a5
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10003279
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100032a9
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 4]
push dword [esi]
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.10003226
mov ebx, eax
cmp ebx, edi
je 0x100032ec
cmp dword [ebp - 0xc], edi
je 0x100032e8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x10003359
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1000330a
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xc]
call fcn.100032a9
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x10003360
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x100
call ebx
test eax, eax
je 0x100032f4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], edi
je 0x10003340
push dword [ebp - 0xc]
call ebx
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
call fcn.100031b8
mov esi, eax
cmp dword [ebp - 0xc], edi
je 0x10003357
push dword [ebp - 0xc]
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 0xc], edi
je 0x1000336e
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
jmp 0x10003359

Function at 0x10003657
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
and dword [ebp - 8], 0
and dword [ebp - 0x40c], 0
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.10002310
mov ebx, eax
test ebx, ebx
jne 0x1000368a
call fcn.10002b18
mov esi, eax
jmp 0x10003769
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100036a7
call fcn.10002b18
jmp 0x10003760
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000369d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x100036ea
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x100036e0
lea eax, [ebp - 0x40c]
call fcn.1000d318
mov eax, 0x8007000e
jmp 0x10003784
push 2
push eax
call fcn.1000eeff
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x1000370a
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.1000dc4d
jmp 0x10003716
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jne 0x10003726
mov esi, 0x8007000e
jmp 0x10003762
push esi
push dword [ebp - 0x40c]
push esi
push dword [ebp + 8]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1000369d
mov edx, dword [ebp - 0x40c]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x40c]
lea ecx, [ebp - 8]
call fcn.10003fb8
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x10003782
lea eax, [ebp - 0x40c]
call fcn.1000d318
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100064ed
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
lea edi, [esi + 0x4c]
mov dword [esi + 0xa8], ebx
call fcn.10005486
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x68], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
lea eax, [esi + 0x90]
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov dword [eax], vtable.CICertMgrEventsProxy_class_CCertMgr_.0
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
lea eax, [ebp - 0x114]
push eax
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100065a1
cmp dword [ebp - 0x104], 2
jne 0x1000659b
cmp dword [ebp - 0x110], 6
mov byte [0x101a16a1], 1
jae 0x100065a1
mov byte [0x101a16a1], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1000699e
Capabilities:
Print debug messages

Disassembly:
push esi
push str.SetClientSite
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
call fcn.1000c98b
lea eax, [esi - 0x74]
call fcn.1000fad6
pop esi
ret 8
Function at 0x1000b875
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0x10
push ebx
push esi
jae 0x1000b896
push str._________PIN_Cache_length_error__________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
cmp byte [edi], 0
jne 0x1000b88e
cmp byte [edi + 1], 2
jne 0x1000b88e
movzx ebx, word [edi + 2]
mov dword [ebp - 4], ebx
cmp ebx, dword [ebp + 0xc]
ja 0x1000b88e
cmp byte [edi + 4], 1
jne 0x1000b88e
mov al, byte [edi + 5]
test al, al
je 0x1000b88e
movzx eax, al
lea esi, [eax + 6]
lea ecx, [esi + 2]
cmp dword [ebp + 0xc], ecx
jb 0x1000b88e
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0xc]
cmp eax, dword [ecx + 4]
jne 0x1000b88e
push eax
push dword [ecx + 8]
lea eax, [edi + 6]
push eax
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1000b88e
lea eax, [esi + edi]
cmp byte [eax], 2
jne 0x1000b88e
cmp byte [eax + 1], 8
jne 0x1000b88e
add esi, 0xa
lea ecx, [esi + 2]
mov dword [ebp + 0xc], ecx
cmp ebx, ecx
jb 0x1000b88e
mov ecx, dword [eax + 2]
mov ebx, dword [eax + 6]
push 0
mov dword [ebp - 0x10], ecx
call fcn.101346e7
cmp edx, ebx
pop ecx
jl 0x1000b929
jg 0x1000b88e
cmp eax, dword [ebp - 0x10]
jae 0x1000b88e
lea eax, [esi + edi]
cmp byte [eax], 3
mov dl, byte [eax + 1]
movzx ecx, dl
jne 0x1000b88e
test dl, dl
je 0x1000b88e
lea eax, [ecx + esi + 2]
cmp dword [ebp - 4], eax
jne 0x1000b88e
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x1000b890
Function at 0x10018f46
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push 1
push closesocket
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10018f73
xor eax, eax
jmp 0x10018fdb
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
push edi
push edi
push dword [ebp - 4]
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], edi
call fcn.1013a520
add dword [esi + 0x218], eax
mov eax, dword [esi + 0x218]
adc dword [esi + 0x21c], edx
or eax, dword [esi + 0x21c]
jne 0x10018fb6
inc eax
jmp 0x10018fdb
push edi
push edi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
mov dword [esi + 0x20c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi + 0x20c], edi
setne al
pop edi
pop ebx
leave
ret

Function at 0x10018fdf
Capabilities:
Read file via mapping

Disassembly:
push edi
xor edi, edi
cmp dword [esi + 0x20c], edi
jne 0x10018ff7
mov eax, dword [esp + 8]
mov dword [eax], edi
xor eax, eax
jmp 0x10019080
mov eax, dword [esi + 0x210]
cmp eax, edi
je 0x1001900e
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x210], edi
mov eax, dword [esi + 0x220]
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x224]
mov edi, dword [esi]
sub ecx, eax
mov eax, dword [esi + 0x21c]
push ebx
sbb eax, edx
xor ebx, ebx
cmp eax, ebx
pop ebx
jg 0x10019046
jl 0x1001903a
cmp ecx, edi
jae 0x10019046
mov edi, dword [esi + 0x218]
sub edi, dword [esi + 0x220]
test edi, edi
jbe 0x1001907e
push edi
push dword [esi + 0x220]
mov eax, edx
push edx
push 4
push dword [esi + 0x20c]
sar eax, 0x1f
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add dword [esi + 0x220], edi
mov ecx, dword [esp + 8]
mov dword [esi + 0x210], eax
adc dword [esi + 0x224], 0
mov dword [ecx], eax
mov eax, edi
pop edi
ret 4
Function at 0x1001b5d5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x1001b529
lea esi, [eax - 0x74]
jmp 0x1001b52b
xor esi, esi
mov edi, dword [ebp + 0x14]
lea eax, [esi + 0x10]
call fcn.1000d321
test al, al
jne 0x1001b544
mov eax, 0x8000ffff
jmp case.default.0x1001b574
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1001b563
push dword [ebp + 0x1c]
lea eax, [esi + 0x74]
push dword [ebp + 0x20]
call fcn.1001bb7a
mov eax, 0x40180
jmp case.default.0x1001b574
add ecx, 7
mov eax, 0x80004001
cmp ecx, 7
ja case.default.0x1001b574
jmp dword [ecx*4 + 0x1001b611]
push dword [ebp + 0x1c]
lea eax, [esi + 0x74]
push dword [ebp + 0x20]
call fcn.1001bb7a
jmp case.default.0x1001b574
lea eax, [esi + 0x74]
test eax, eax
je 0x1001b597
lea ecx, [eax - 0x74]
jmp 0x1001b599
xor ecx, ecx
push dword [ebp + 0x20]
push 0xffffffffffffffff
call fcn.10005988
test eax, eax
jl case.default.0x1001b574
xor eax, eax
jmp case.default.0x1001b574
push dword [ebp + 0x20]
lea eax, [esi + 0x74]
call fcn.1000d4d4
jmp case.default.0x1001b574
lea eax, [esi + 0x74]
test eax, eax
je 0x1001b5c4
lea ecx, [eax - 0x74]
jmp 0x1001b5c6
xor ecx, ecx
xor eax, eax
test byte [ecx + 0x44], 8
jne case.default.0x1001b574
push dword [ebp + 0x20]
push 0xfffffffffffffffc
jmp 0x1001b59e
lea eax, [esi + 0x74]
test eax, eax
je 0x1001b5e1
lea esi, [eax - 0x74]
jmp 0x1001b5e3
xor esi, esi
lea eax, [esi + 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x4c]
test esi, esi
je case.0x1001b574.6
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x1001b574.6
push dword [ebp + 0x1c]
mov edi, esi
call fcn.10005812
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x1001b813
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
test eax, eax
je 0x1001b825
add eax, 0xffffff84
jmp 0x1001b827
xor eax, eax
and dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
push 7
pop ecx
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp + 8]
call fcn.10005717
test eax, eax
jl 0x1001b887
cmp dword [ebp + 8], 0
je 0x1001b884
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor edi, edi
call esi
test ax, ax
jge 0x1001b85d
inc edi
push 0x11
call esi
test ax, ax
jge 0x1001b868
inc edi
inc edi
push 0x12
call esi
test ax, ax
jge 0x1001b874
add edi, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x1c]
jmp 0x1001b887
xor eax, eax
inc eax
xor ecx, ecx
test eax, eax
mov eax, dword [ebp + 8]
setne cl
mov esi, ecx
test eax, eax
je 0x1001b89d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret 8