joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e4a3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x90
push esi
push edi
mov eax, dword [0x440018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040f050
push eax
mov dword [ebp - 4], 0
call fcn.00409460
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x42f1a4]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x1c]
movzx ecx, ax
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x40f8df
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x42f1a4]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x40f8dc
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x42f1a4]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 3
imul eax, eax, 0xeeeeeeef
test eax, eax
jne 0x40f922
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0040fa40
push eax
push dword [ebx + 8]
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040fb60
lea ecx, [ebp - 0xa0]
call fcn.00405860
jmp 0x40fa07
mov edi, dword [ebx + 8]
cmp edi, eax
jbe 0x40f950
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0040fa40
push eax
push edi
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0040fad0
lea ecx, [ebp - 0xa0]
call fcn.00405860
cmp dword [esi + 0x18], 0
jbe 0x40f977
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [esi + 0xc]
call fcn.00410010
lea ecx, [esi + 0xc]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x28]
push 0
push dword [ecx]
push eax
call fcn.0040fde0
test edi, edi
je 0x40fa07
xor edx, edx
mov eax, dword [esi]
add eax, edx
mov dword [eax], 0xffffffff
lea esi, [eax + 4]
mov dword [eax + 0x68], 0xffffffff
mov dword [eax + 0x6c], 0x7fffffff
mov dword [eax + 0x70], 0
cmp dword [eax + 0x18], 8
jb 0x40f9ac
mov esi, dword [eax + 4]
xor ecx, ecx
mov dword [eax + 0x14], 0
mov word [esi], cx
lea esi, [eax + 0x1c]
cmp dword [eax + 0x30], 8
jb 0x40f9c4
mov esi, dword [eax + 0x1c]
mov dword [eax + 0x2c], ecx
add edx, 0x78
xor ecx, ecx
mov word [esi], cx
mov esi, dword [ebp - 0x18]
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x44], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x40], 6
mov word [eax + 0x48], cx
mov dword [eax + 0x4c], 0x201
mov dword [eax + 0x54], 0
mov dword [eax + 0x50], 0
sub edi, 1
jne 0x40f981
cmp dword [esi + 0x40], 8
lea eax, [esi + 0x2c]
jb 0x40fa13
mov eax, dword [esi + 0x2c]
xor ecx, ecx
mov dword [esi + 0x3c], 0
mov word [eax], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x422568
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x433790
push 0x433788
push str.FlsAlloc
push 0x1e
call fcn.00422451
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42259c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f1a4]
call esi
jmp 0x4225a2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4225e6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4337a0
push 0x433798
push str.FlsGetValue
push 0x20
call fcn.00422451
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42261d
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f1a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4251d4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x440018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42521f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00425373
test al, al
jne 0x425219
sub edx, 2
cmp edx, edi
jne 0x4251ff
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x425241
lea eax, [edi + 2]
cmp edx, eax
je 0x425241
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00425120
add esp, 0x10
jmp 0x42533b
push esi
lea ecx, [ebp - 0x255]
call fcn.00425373
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x425284
push dword [ebp - 0x25c]
jmp 0x425231
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4252c1
cmp word [ebp - 0x226], 0
je 0x4252e2
cmp word [ebp - 0x226], ax
jne 0x4252c1
cmp word [ebp - 0x224], 0
je 0x4252e2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00425120
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42532e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42529b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x425316
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42533b
push 0x424f50
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042b0f0
add esp, 0x10
jmp 0x42530b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413ff8
leave
ret
Function at 0x1000155d
Capabilities:
Parse pe header

Disassembly:
cmp word [ecx], 0x5a4d
je 0x10001567
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10001564
cmp word [eax + 4], 0x14c
jne 0x10001564
mov cx, word [eax + 0x16]
and cx, 0x2102
cmp cx, 0x2102
jne 0x10001564
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
ret

Function at 0x1000162d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x18
push 0x10047368
call fcn.1002aeec
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov eax, dword [eax + 0x78]
test eax, eax
je 0x100016f3
lea ebx, [eax + ecx]
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test ax, ax
jne 0x10001667
movzx eax, word [ebp + 0xc]
sub eax, dword [ebx + 0x10]
jmp 0x100016a3
mov eax, dword [ebx + 0x20]
add eax, ecx
mov dword [ebp - 0x24], eax
and dword [ebp - 0x1c], 0
mov edi, dword [ebx + 0x18]
dec edi
mov dword [ebp - 0x20], edi
mov edx, dword [ebp - 0x1c]
lea esi, [edi + edx]
shr esi, 1
mov eax, dword [eax + esi*4]
add eax, ecx
push eax
push dword [ebp + 0xc]
call fcn.1002b0f0
pop ecx
pop ecx
test eax, eax
jne 0x100016bf
mov eax, dword [ebx + 0x24]
lea eax, [eax + esi*2]
mov ecx, dword [ebp + 8]
movzx eax, word [eax + ecx]
cmp eax, dword [ebx + 0x14]
jae 0x100016f3
mov edx, dword [ebx + 0x1c]
lea eax, [edx + eax*4]
mov eax, dword [eax + ecx]
add eax, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x100016fc
cmp dword [ebp - 0x1c], edi
jae 0x100016f3
test eax, eax
jle 0x100016ce
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100016d4
lea edi, [esi - 1]
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
jmp 0x1000167a
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.1002af31
ret
Function at 0x100042ca
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x100518d0], esi
jne 0x100042ef
cmp dword [0x100518d4], esi
jne 0x100042ef
cmp dword [0x100518d8], esi
je 0x100043cc
mov ecx, 0x1005263c
call fcn.10020630
mov eax, dword [0x100518d8]
cmp eax, esi
je 0x100043c2
push 0x32
push eax
mov dword [0x100518e0], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000432a
push esi
push dword [0x100518d8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov dword [0x100518d8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov eax, dword [0x100518d0]
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10004391
push esi
lea ecx, [ebp - 0xc]
push ecx
push esi
push esi
push esi
push esi
push 0x222048
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [0x100518d0]
call edi
mov dword [0x100518d0], esi
mov eax, dword [0x100518d4]
cmp eax, esi
je 0x100043a3
push eax
call edi
mov dword [0x100518d4], esi
push dword [ebp - 8]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
cmp dword [ebp + 8], esi
pop edi
pop ebx
je 0x100043c2
push dword [0x10051890]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, 0x1005263c
call fcn.10020650
pop esi
leave
ret
Function at 0x100049a8
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x4cc]
sub esp, 0x54c
mov eax, dword [0x1004fa70]
xor eax, ebp
mov dword [ebp + 0x4c8], eax
mov eax, dword [ebp + 0x4d4]
push ebx
push esi
push edi
xor ebx, ebx
push 0x38
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.1002aa10
add esp, 0xc
push 0x104
lea eax, [ebp + 0x3c4]
push eax
mov dword [ebp - 0x40], 0x100
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1004172c
lea eax, [ebp + 0x3c4]
push eax
call esi
mov edi, str.CKSetup32.exe
push edi
lea eax, [ebp + 0x3c4]
push eax
call esi
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
xor esi, esi
lea eax, [ebp - 0x80]
inc esi
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 0x40
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], str.open
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, ebx
je 0x10004a90
push 0xffffffffffffffff
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x40], ebx
jne 0x10004ade
cmp dword [ebp + 0x4d8], ebx
je 0x10004ada
push 0x1010
push str.ClientKeeper_KeyPro
push str.Error_while_starting_Client_Keeper_secure_driver
jmp 0x10004ad3
push 0x3ff
lea eax, [ebp - 0x3b]
push ebx
push eax
mov byte [ebp - 0x3c], bl
call fcn.1002aa10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3c]
push str.Error_while_starting_Client_Keeper_secure_driver_r_n_r_nErrorCode___d
push eax
call fcn.1002b318
add esp, 0xc
cmp dword [ebp + 0x4d8], ebx
je 0x10004ada
push 0x1010
push str.ClientKeeper_KeyPro
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x10004ae0
mov eax, esi
mov ecx, dword [ebp + 0x4c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002ae45
add ebp, 0x4cc
leave
ret

Function at 0x10004af8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1004fa70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x90
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.1002aa10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x1c]
cmp eax, 4
jne 0x10004b57
cmp dword [ebp - 0x18], 0
je 0x10004b4b
cmp dword [ebp - 0x18], 0xa
je 0x10004b4b
cmp dword [ebp - 0x18], 0x5a
jne 0x10004b57
mov dword [0x10052e7c], 1
jmp 0x10004b5e
and dword [0x10052e7c], 0
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.1002ae45
add ebp, 0x78
leave
ret
Function at 0x10004dd3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1004fa70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.1002aa10
add esp, 0xc
push edi
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop esi
jne 0x10004e36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10004e36
xor eax, eax
jmp 0x10004e39
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ae45
leave
ret

Function at 0x100051de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push SysReAllocString
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005236
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000522d
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x10005260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push str.SoftwareClientKeeperKeyPro
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], esi
je 0x100052b3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push str.ucount
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x100053cc
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1004fa70]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
push edi
jne 0x10005464
mov edi, 0x104
push edi
lea eax, [ebp - 0x7f]
push ebx
push eax
mov byte [ebp - 0x80], bl
call fcn.1002aa10
add esp, 0xc
push edi
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, str.CKCSP.dll
push edi
lea eax, [ebp - 0x80]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10005450
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.1002b3e0
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x10005506
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SFC_PKEY_GenerateKeyPair
push dword [esi]
call edi
push str.SFC_PKEY_PublicKey_ToBinary
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.SFC_PKEY_PublicKey_FromBinary
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.SFC_PKEY_PrivateKey_ToBinary
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.SFC_PKEY_PrivateKey_FromBinary
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.SFC_PKEY_Encrypt
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.SFC_PKEY_Decrypt
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.SFC_GetRandom
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.SFC_Hash
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.SFC_SKEY_SecretKey_FromBinary
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.SFC_Cipher_Encrypt
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.SFC_Cipher_Decrypt
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.SFC_ChangeState
push dword [esi]
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
cmp dword [esi + 0xc], ebx
je 0x10005533
cmp dword [esi + 0x18], ebx
je 0x10005533
cmp dword [esi + 0x20], ebx
je 0x10005533
cmp dword [esi + 0x24], ebx
je 0x10005533
cmp dword [esi + 0x28], ebx
je 0x10005533
cmp dword [esi + 0x2c], ebx
je 0x10005533
cmp dword [esi + 0x30], ebx
je 0x10005533
cmp dword [esi + 0x34], ebx
je 0x10005533
xor eax, eax
inc eax
jmp 0x10005535
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002ae45
add ebp, 0x8c
leave
ret
Function at 0x100053e8
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1004fa70]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
push edi
jne 0x10005464
mov edi, 0x104
push edi
lea eax, [ebp - 0x7f]
push ebx
push eax
mov byte [ebp - 0x80], bl
call fcn.1002aa10
add esp, 0xc
push edi
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, str.CKCSP.dll
push edi
lea eax, [ebp - 0x80]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10005450
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.1002b3e0
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x10005506
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SFC_PKEY_GenerateKeyPair
push dword [esi]
call edi
push str.SFC_PKEY_PublicKey_ToBinary
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.SFC_PKEY_PublicKey_FromBinary
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.SFC_PKEY_PrivateKey_ToBinary
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.SFC_PKEY_PrivateKey_FromBinary
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.SFC_PKEY_Encrypt
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.SFC_PKEY_Decrypt
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.SFC_GetRandom
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.SFC_Hash
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.SFC_SKEY_SecretKey_FromBinary
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.SFC_Cipher_Encrypt
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.SFC_Cipher_Decrypt
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.SFC_ChangeState
push dword [esi]
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
cmp dword [esi + 0xc], ebx
je 0x10005533
cmp dword [esi + 0x18], ebx
je 0x10005533
cmp dword [esi + 0x20], ebx
je 0x10005533
cmp dword [esi + 0x24], ebx
je 0x10005533
cmp dword [esi + 0x28], ebx
je 0x10005533
cmp dword [esi + 0x2c], ebx
je 0x10005533
cmp dword [esi + 0x30], ebx
je 0x10005533
cmp dword [esi + 0x34], ebx
je 0x10005533
xor eax, eax
inc eax
jmp 0x10005535
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002ae45
add ebp, 0x8c
leave
ret
Function at 0x1000558d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1004fa70]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov esi, dword [ebp + 0x94]
mov ebx, 0x100
cmp dword [ebp + 0x98], ebx
push edi
jb 0x10005678
push 0x104
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.1002aa10
add esp, 0xc
lea edi, [ebx + 5]
push edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x10041c08
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.1002cbb9
mov eax, dword [ebp + 0x98]
add esp, 0xc
cmp eax, ebx
jne 0x10005607
push 0
jmp 0x10005665
cmp eax, 0x101
jne 0x10005612
push 2
jmp 0x10005665
cmp eax, 0x102
jne 0x1000561d
push 1
jmp 0x10005665
cmp eax, 0x103
jne 0x10005628
push 3
jmp 0x10005665
cmp eax, 0x104
jne 0x10005633
push 4
jmp 0x10005665
cmp eax, edi
jne 0x1000563b
push 5
jmp 0x10005665
cmp eax, 0x106
jne 0x10005646
push 6
jmp 0x10005665
cmp eax, 0x107
jne 0x10005651
push 7
jmp 0x10005665
cmp eax, 0x108
jne 0x1000565c
push 8
jmp 0x10005665
cmp eax, 0x109
jne 0x10005678
push 9
lea eax, [ebp - 0x80]
push eax
push dword [0x100530e4]
call dword [sym.imp.SHELL32.dll_ExtractIconA]
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0
jne 0x100056a7
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [0x100530e4]
push 0
push 0x32
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0xca
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002ae45
add ebp, 0x8c
leave
ret
Function at 0x100058b2
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x1004fa70]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x830
mov eax, 0x1003ecd1
call fcn.1002b89f
mov eax, dword [ebp + 0x110]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], eax
call fcn.10022500
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10022040
push str._event_CKAgent2
mov ebx, str._event_CKAgent1
push ebx
mov edi, str._mtx_CKAgent
push edi
mov esi, str._mmf_CKAgent
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.10022230
cmp dword [ebp - 0x34], 0
jne 0x10005a16
push str._mtx_CKAgent_Running
lea ecx, [ebp - 0x1c]
call fcn.10022590
test eax, eax
jne 0x10005996
push 0x103
push eax
mov byte [ebp], al
lea eax, [ebp + 1]
push eax
call fcn.1002aa10
add esp, 0xc
call fcn.10021970
test eax, eax
push 0x104
lea eax, [ebp]
push eax
je 0x1000596f
call fcn.100052b9
test eax, eax
pop ecx
pop ecx
jne 0x10005975
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp]
push str.CKAgent.exe
push eax
call fcn.1002b3f0
pop ecx
pop ecx
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp]
push eax
call fcn.10022630
add esp, 0x10
cmp dword [ebp - 0x34], 0
jne 0x10005a16
and dword [ebp - 0x10], 0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._event_CKAgent2
push ebx
push edi
push esi
lea ecx, [ebp - 0x38]
call fcn.10022230
test eax, eax
jne 0x100059c8
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x1f4
jl 0x100059a0
cmp dword [ebp - 0x10], 0x1f4
jl 0x10005a10
xor esi, esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.100220d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10022560
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.1002ae45
add ebp, 0x108
leave
ret
cmp dword [ebp - 0x34], 0
je 0x100059d1
mov esi, 0x800
push esi
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.1002aa10
mov eax, dword [ebp + 0x114]
add esp, 0xc
mov dword [ebp - 0x83c], eax
dec eax
je 0x10005a4c
dec eax
je 0x10005a45
dec eax
jne 0x10005a63
push esi
jmp 0x10005a51
push 0x388
jmp 0x10005a51
push 0x744
push dword [ebp - 0x14]
lea eax, [ebp - 0x838]
push eax
call fcn.1002aae0
add esp, 0xc
push 0x804
lea eax, [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x38]
call fcn.10022470
lea ecx, [ebp - 0x38]
call fcn.100223e0
push 0x3e8
lea ecx, [ebp - 0x38]
call fcn.10022410
xor esi, esi
inc esi
jmp 0x100059d3