joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d445
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x715150]
push esi
test al, 2
je 0x49d476
call fcn.0049cdc0
test al, al
jne 0x49d471
push str.EEC2:_failed_to_pass_name_check
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, esi
call dword [0x65dbac]
call esi
xor al, al
pop esi
ret
mov eax, dword [0x715150]
test al, 1
je 0x49d48a
call fcn.0049ce02
test al, al
jne 0x49d48a
push str.EEC2:_failed_to_pass_path_check
jmp 0x49d45d
mov al, 1
pop esi
ret
Function at 0x49fc1e
Capabilities:
Reference sql statements

Disassembly:
push 0x8c
mov eax, 0x63ffa5
call fcn.005e6b2b
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x98], ebx
mov eax, dword [ebp + 8]
mov edi, str.SELECT_Directory.DefaultDir_Directory.Directory_Parent_FROM_Directory_WHERE_Directory.Directory
and dword [ebp - 0x18], 0
mov dword [ebp - 0x94], eax
xor eax, eax
push edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00610738
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00426e81
push 0xffffffffffffffff
xor edi, edi
lea ecx, [ebp - 0x28]
push edi
push esi
mov dword [ebp - 4], edi
call fcn.0042699b
mov esi, 0x6aa110
push esi
call fcn.00610738
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00445cc8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x8c], edi
call dword [0x65dad8]
mov ebx, dword [0x65db00]
mov esi, eax
test esi, esi
jne 0x49fe3e
push edi
push dword [ebp - 0x8c]
call dword [0x65dacc]
mov esi, eax
test esi, esi
jne 0x49fe3e
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x8c]
mov dword [ebp - 0x90], edi
call dword [0x65dad0]
mov esi, eax
test esi, esi
jne 0x49fe2d
push 7
pop ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x90]
xor edx, edx
push eax
inc edx
mov ecx, edi
call fcn.0049f0fa
mov esi, eax
pop ecx
test esi, esi
jne 0x49fd4b
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
push 2
pop edx
call fcn.0049f0fa
mov esi, eax
pop ecx
test esi, esi
je 0x49fd52
xor edi, edi
jmp 0x49fe17
push str.TARGETDIR
lea ecx, [ebp - 0x58]
call fcn.00453e4f
test eax, eax
je 0x49fe13
cmp dword [ebp - 0x48], 0
je 0x49fe13
mov esi, 0x6aa10c
push esi
call fcn.00610738
pop ecx
push eax
xor edi, edi
lea ecx, [ebp - 0x40]
push edi
push esi
call fcn.00450924
cmp eax, 0xffffffff
je 0x49fdb3
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00469c4b
push eax
lea ecx, [ebp - 0x40]
call fcn.00446923
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.00427617
push 0x5c
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x88]
call fcn.00447283
mov esi, dword [ebp - 0x94]
lea ecx, [ebp - 0x70]
push esi
mov edx, eax
mov byte [ebp - 4], 5
call fcn.004603b4
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00446923
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.00427617
push edi
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.00427617
mov ecx, dword [ebp - 0x98]
lea edx, [ebp - 0x58]
push esi
call fcn.0049fc1e
pop ecx
mov esi, eax
jmp 0x49fe17
xor edi, edi
mov esi, edi
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.00427617
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00427617
cmp dword [ebp - 0x90], 0
je 0x49fe3e
push dword [ebp - 0x90]
call ebx
cmp dword [ebp - 0x8c], 0
je 0x49fe4f
push dword [ebp - 0x8c]
call ebx
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00427617
mov eax, esi
call fcn.005e6ad5
ret
Function at 0x49fe62
Capabilities:
Reference sql statements

Disassembly:
push 0x34
mov eax, 0x63ffed
call fcn.005e6b2b
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
and dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x49fe83
mov eax, dword [edi]
jmp 0x49fe85
mov eax, edi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
and dword [ebp - 0x18], ecx
push str.SELECT_Property.Value_FROM_Property_WHERE_Property.Property
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00610738
pop ecx
push eax
push str.SELECT_Property.Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x28]
call fcn.00426e81
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
push 0
push ebx
call fcn.0042699b
mov ebx, 0x6aa110
push ebx
call fcn.00610738
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00445cc8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [0x65dad8]
mov esi, eax
test esi, esi
jne 0x49ff99
push eax
push dword [ebp - 0x30]
call dword [0x65dacc]
mov esi, eax
test esi, esi
jne 0x49ff99
mov byte [ebp - 4], 2
and dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [0x65dad0]
mov esi, eax
test esi, esi
jne 0x49ff8a
and dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov ebx, dword [0x65dad4]
push eax
push esi
push 1
push dword [ebp - 0x2c]
call ebx
mov esi, eax
test esi, esi
jne 0x49ff8a
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x49ff8a
inc eax
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], eax
call fcn.00437dac
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x40]
push 1
push dword [ebp - 0x2c]
call ebx
mov esi, eax
test esi, esi
jne 0x49ff82
push dword [ebp - 0x40]
mov ecx, edi
call fcn.00426efa
lea ecx, [ebp - 0x40]
call fcn.00438a1b
cmp dword [ebp - 0x2c], 0
je 0x49ff99
push dword [ebp - 0x2c]
call dword [0x65db00]
cmp dword [ebp - 0x30], 0
je 0x49ffa8
push dword [ebp - 0x30]
call dword [0x65db00]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00427617
mov eax, esi
call fcn.005e6ad5
ret

Function at 0x5ff930
Capabilities:
Create thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov edx, dword [edi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x5ff990
push 0
push 0
call fcn.006174d3
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x5ff959
pop edi
xor al, al
pop ebx
ret
mov eax, dword [edi]
push esi
add eax, 4
lock inc dword [eax]
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x5ff977
cmp eax, 0xffffffff
je 0x5ff977
push eax
call dword [0x65d4d4]
mov dword [esi + 8], ebx
mov eax, dword [edi]
push dword [eax + 8]
call dword [0x65d418]
pop esi
pop edi
mov al, 1
pop ebx
ret

Function at 0x624f63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00624c26

Function at 0x624f6e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00624da7
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
call fcn.004023c0
add esp, 0xc
test al, al
push ebp
jne 0x40253d
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x10001000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100210f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
setae al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014a4a
mov esp, ebp
pop ebp
ret
Function at 0x10004c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x100210f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x420], dx
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [0x100171e0]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.100020c0
push 0x100175a4
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.10005b20
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.10002110
add esp, 0x10
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
push ecx
push 0x104
lea edx, [ebp - 0x420]
push edx
call fcn.10005b80
push 0
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x214]
shl ecx, 1
push ecx
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014a4a
mov esp, ebp
pop ebp
ret 4
Function at 0x10004d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100210f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 0x220]
push edx
push 0x208
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10004d81
xor eax, eax
jmp 0x10004ed2
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x214]
push eax
push 0x104
mov ecx, dword [0x1001735c]
push ecx
call fcn.10005b80
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [0x1001735c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.MSVCR90.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x10004dd3
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004ed2
mov edx, dword [ebp - 0x214]
lea eax, [ebp + edx*2 - 0x210]
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.MSVCR90.dll__wtoi]
add esp, 4
mov dword [ebp - 0x218], eax
mov edx, dword [ebp - 0x218]
cmp edx, dword [ebp + 8]
je 0x10004e3c
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.Pipe_result_SessionID_not_match._wanted:__d__returned__d
push 0x100175ac
call fcn.100103d0
add esp, 4
push eax
call fcn.10010c90
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004ed2
mov edx, dword [ebp - 0x224]
movzx eax, word [edx]
test eax, eax
je 0x10004e68
mov ecx, dword [ebp - 0x224]
movzx edx, word [ecx]
cmp edx, 0x20
je 0x10004e68
mov eax, dword [ebp - 0x224]
add eax, 2
mov dword [ebp - 0x224], eax
jmp 0x10004e3c
mov ecx, dword [ebp - 0x224]
movzx edx, word [ecx]
test edx, edx
je 0x10004e91
mov eax, dword [ebp - 0x224]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x224]
add edx, 2
mov dword [ebp - 0x224], edx
test ecx, ecx
jne 0x10004e9d
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004ed2
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR90.dll__wtoi]
add esp, 4
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x10004ecd
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004ed2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014a4a
mov esp, ebp
pop ebp
ret 4
Function at 0x100054c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100210f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.100020c0
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.10005b80
push 0
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10014a4a
mov esp, ebp
pop ebp
ret 4

Function at 0x10005570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x10005589
mov eax, 0x57
jmp 0x10005619
push str.Write_key_user_info_to_pipe_line
push 0x10017d8c
call fcn.100103d0
add esp, 4
push eax
call fcn.10010a70
add esp, 8
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0x614
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100055dc
cmp dword [ebp - 0xc], 0
jne 0x10005616
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x10005616
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0x10017e08
push 0x10017dec
call fcn.100103d0
add esp, 4
push eax
call fcn.10010c90
add esp, 0x10
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x100056f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.10014b30
mov eax, dword [0x100210f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1018], ecx
cmp dword [ebp + 8], 0
jne 0x1000571d
mov eax, 0x57
jmp 0x100058df
xor eax, eax
mov word [ebp - 0x1010], ax
push 0xffe
push 0
lea ecx, [ebp - 0x100e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 8]
push edx
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 0x1018]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
je 0x10005780
cmp dword [ebp - 8], 0
jne 0x100057ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x100057ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x10017fa8
push 0x10017f90
call fcn.100103d0
add esp, 4
push eax
call fcn.10010c90
add esp, 0x10
push 0x1001804c
push 0x10018034
call fcn.100103d0
add esp, 4
push eax
call fcn.10010a70
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1010]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x254
push edx
push 0x20
mov eax, dword [ebp + 8]
add eax, 0x254
push eax
call fcn.100020c0
mov ecx, dword [ebp - 4]
add ecx, 0x114
push ecx
push 0x80
mov edx, dword [ebp + 8]
add edx, 0x114
push edx
call fcn.100020c0
mov eax, dword [ebp - 4]
add eax, 0x494
push eax
push 0x80
mov ecx, dword [ebp + 8]
add ecx, 0x494
push ecx
call fcn.100020c0
mov edx, dword [ebp - 4]
add edx, 0x394
push edx
push 0x80
mov eax, dword [ebp + 8]
add eax, 0x394
push eax
call fcn.100020c0
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
push 0x80
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
call fcn.100020c0
mov eax, dword [ebp - 4]
add eax, 0x214
push eax
push 0x20
mov ecx, dword [ebp + 8]
add ecx, 0x214
push ecx
call fcn.100020c0
push 0x80
mov edx, dword [ebp - 4]
add edx, 0x594
push edx
mov eax, dword [ebp + 8]
add eax, 0x594
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x1014]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10014a4a
mov esp, ebp
pop ebp
ret 4
Function at 0x10006470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x100210f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], ecx
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [str.Result_lckd_pipe_server___Session]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.100020c0
push str._d__d
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.10005b20
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.10002110
add esp, 0x14
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x424], 0
lea edx, [ebp - 0x41c]
push edx
push 0x104
lea eax, [ebp - 0x418]
push eax
call fcn.10005b80
mov ecx, dword [ebp - 0x41c]
shl ecx, 1
mov dword [ebp - 0x41c], ecx
push 0
lea edx, [ebp - 0x424]
push edx
mov eax, dword [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x10006596
mov ecx, dword [ebp - 0x41c]
cmp ecx, dword [ebp - 0x424]
je 0x1000659a
xor eax, eax
jmp 0x1000659f
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014a4a
mov esp, ebp
pop ebp
ret 8
Function at 0x10006a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x10006a79
mov eax, 0x57
jmp 0x10006b0c
push str.Write_user_info_to_pipe_line
push 0x10018c2c
call fcn.100103d0
add esp, 4
push eax
call fcn.10010a70
add esp, 8
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10006acf
cmp dword [ebp - 0xc], 0
jne 0x10006b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x10006b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [ebp - 4]
push eax
push str.Fail_to_write_keyuserinfo_to_the_pipe__errorcode_is__d__threadid__d
push 0x10018c80
call fcn.100103d0
add esp, 4
push eax
call fcn.10010c90
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x10008920
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
je 0x10008942
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x14], 0xa
jne 0x1000894f
mov ecx, dword [ebp - 0xc]
call fcn.10007e20
mov dword [ebp - 4], eax
jmp 0x10008998
mov dword [ebp - 8], 0
jmp 0x10008961
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 3
jge 0x10008998
mov ecx, dword [ebp - 0xc]
call fcn.10008dd0
test eax, eax
jne 0x10008994
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x10008994
mov eax, dword [ebp - 8]
imul eax, eax, 0x64
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10008958
jmp 0x10008998
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10008a20
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0
jne 0x10008a3b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10008a85
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 5
mov edx, dword [ebp + 8]
push edx
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x10008a66
xor eax, eax
jmp 0x10008a85
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.100020c0
mov eax, dword [ebp - 4]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc