joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d1a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
mov dword [ebp - 8], edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1004d1dd
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004d213
test esi, esi
je 0x1004d213
push 0x10195a30
push esi
mov dword [ebp - 4], 0
call fcn.100e31ba
mov edi, eax
add esp, 8
test edi, edi
jne 0x1004d223
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call fcn.100fc650
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004d247
cmp dword [ebp - 4], esi
je 0x1004d252
push edi
call fcn.100e2ea5
add esp, 4
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004d270
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 0x210], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004d2a2
test al, 0x10
jne 0x1004d391
mov eax, ebx
test ebx, ebx
je 0x1004d3a7
nop dword [eax]
push 0x5c
push eax
call fcn.100fb839
mov edi, eax
add esp, 8
test edi, edi
je 0x1004d391
cmp word [edi - 2], 0x3a
je 0x1004d386
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d2d5
sub ecx, edx
mov edx, edi
sar ecx, 1
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004d2f0
sub edx, esi
sar edx, 1
sub ecx, edx
cmp ecx, 0x7ffffffe
jbe 0x1004d314
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x1004d35e
mov esi, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
lea ebx, [ecx - 0x104]
mov edx, 0x104
mov ecx, eax
sub esi, ecx
nop
lea ecx, [ebx + edx]
test ecx, ecx
je 0x1004d34b
movzx ecx, word [esi + eax]
test cx, cx
je 0x1004d34b
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1004d330
mov ebx, dword [ebp - 0x210]
lea ecx, [eax - 2]
test edx, edx
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1004d386
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004d3a7
lea eax, [edi + 2]
test eax, eax
jne 0x1004d2b0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e278d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e278d
mov esp, ebp
pop ebp
ret
Function at 0x1004e290
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 4]
push edi
test esi, esi
je 0x1004e32c
cmp dword [ecx + 0x18], 0
jne 0x1004e2b2
cmp dword [ecx + 0x3c], 0
jne 0x1004e2b2
mov eax, dword [ecx + 0x60]
cmp eax, dword [ecx + 0x64]
je 0x1004e32c
mov eax, dword [esi + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e32c
mov ecx, esi
call fcn.1004f040
mov edi, dword [esi + 8]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1004e301
mov ecx, edi
mov dword [edi + 0x3c8], eax
mov dword [edi + 0x3c4], eax
call fcn.10064f60
push 8
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ecx
push 0
mov ecx, edi
call fcn.10064ae0
cmp dword [0x10196d54], 0
mov byte [esi + 0x728], 1
je 0x1004e32c
mov eax, dword [esi + 8]
push 0x1330684
push dword [eax + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x10196d54], 0
pop edi
pop esi
pop ecx
ret

Function at 0x1004e360
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [ecx + 4]
test esi, esi
je 0x1004e385
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e385
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1004e385
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x1004e390
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [ecx + 4]
test esi, esi
je 0x1004e3e9
mov eax, dword [esi + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e3b3
push ecx
mov ecx, dword [esi + 8]
push 0
call fcn.10064ae0
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e3e9
mov eax, dword [esi + 0x258]
lea ecx, [esi + 0x10]
cmp byte [eax + 0x5c], 0
je 0x1004e3e1
mov eax, dword [ecx + 4]
test eax, eax
je 0x1004e3e9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
push ecx
push 0
call fcn.10053a60
pop esi
ret

Function at 0x1004e570
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e5bc
mov eax, dword [esi + 8]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x10196d54], 0
mov byte [esi + 0x728], 0
je 0x1004e5bc
mov eax, dword [esi + 8]
push 0x1330684
push dword [eax + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x10196d54], 0
pop esi
ret
Function at 0x10050240
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
push eax
push str.ntdll.dll
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x100502d9
push esi
call fcn.101085fd
add esp, 4
mov ebx, eax
mov dword [ebp - 0x18], ebx
push ebx
push esi
push dword [ebp - 0x24]
push str.ntdll.dll
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x101601ac
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x100502c3
cmp dword [ebp - 0x28], 0x34
jb 0x100502c3
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x18]
movzx ebx, word [eax + 0xe]
movzx edi, word [eax + 8]
movzx esi, word [eax + 0xa]
call fcn.101080bf
add esp, 4
jmp 0x100502e2
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x18]
call fcn.101080bf
add esp, 4
jmp 0x100502e2
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x18]
movzx ecx, bx
cmp si, 6
jb 0x10050427
ja 0x1005030b
cmp di, 1
jb 0x10050427
ja 0x1005030b
mov eax, 0x1db0
cmp cx, ax
jb 0x10050427
mov eax, dword [ebp - 0x1c]
mov ebx, 0x64
test eax, eax
je 0x100503ea
cmp si, 0xa
jb 0x10050362
ja 0x10050332
test di, di
jne 0x10050332
mov edx, 0x3a6b
cmp cx, dx
jb 0x10050362
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10050414
push str.GetDpiForWindow
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100503d0
mov ecx, dword [ebp - 0x1c]
push ecx
call eax
imul ecx, eax, 0x64
jmp 0x100503c4
cmp si, 6
ja 0x1005036e
cmp di, 3
jb 0x100503ea
push str.Shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10050414
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_MonitorFromRect]
push str.GetDpiForMonitor
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100503d0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push edi
call eax
test eax, eax
js 0x100503d0
imul ecx, dword [ebp - 0x18], 0x64
mov eax, 0xaaaaaaab
mul ecx
mov ebx, edx
shr ebx, 6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e278d
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0x60
push 0x64
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e278d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x64
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e278d
mov esp, ebp
pop ebp
ret
Function at 0x100528a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012c950
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 5
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x10162ec0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10043b50
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x28]
call fcn.1007f4b0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.10043ac0
test esi, esi
je 0x10052967
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x1005294d
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 0x2c], 0
call dword [eax + 0x1fc]
cmp dword [ebp - 0x2c], 0
je 0x10052967
mov eax, dword [esi]
mov ecx, esi
push 3
call dword [eax + 0x234]
jmp 0x10052967
mov eax, dword [edi + 0x244]
xor ecx, ecx
mov edx, dword [esi]
cmp byte [eax + 0x18], cl
sete cl
inc ecx
push ecx
mov ecx, esi
call dword [edx + 0x234]
push 7
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x10162ef8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10043b50
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea ecx, [edi + 0x28]
call fcn.1007f4b0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
call fcn.10043ac0
test ebx, ebx
je 0x100529cc
mov ecx, dword [edi + 0x244]
xor edx, edx
mov esi, dword [ebx]
cmp byte [ecx + 0x1b], dl
mov ecx, ebx
setne dl
inc edx
push edx
call dword [esi + 0x234]
push 9
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x10162f3c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10043b50
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [edi + 0x28]
call fcn.1007f4b0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.10043ac0
test esi, esi
je 0x10052a3e
mov ecx, dword [edi + 0x244]
cmp byte [ecx + 0x18], 0
jne 0x10052a2e
cmp byte [ecx + 0x1c], 0
mov ecx, 1
je 0x10052a33
mov ecx, 2
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x234]
push 7
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x101631f4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10043b50
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push eax
lea ecx, [edi + 0x28]
call fcn.1007f4b0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.10043ac0
test esi, esi
je 0x10052aa5
mov ecx, dword [edi + 0x244]
mov edx, dword [esi]
mov ecx, dword [ecx + 0x28]
dec ecx
neg ecx
sbb ecx, ecx
add ecx, 2
push ecx
mov ecx, esi
call dword [edx + 0x234]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e278d
mov esp, ebp
pop ebp
ret
Function at 0x10052ad0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x248]
cmp byte [eax + 0x5c], 0
jne 0x10052b57
cmp byte [esi + 0x258], 0
jne 0x10052b57
mov eax, dword [esi + 4]
test eax, eax
je 0x10052b10
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10052b10
mov eax, dword [esi + 0x244]
push ecx
mov ecx, esi
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.10053040
pop esi
ret
mov dword [esi + 0x27c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
mov ecx, esi
mov dword [esi + 0x684], eax
call fcn.100537f0
mov eax, dword [esi + 0x248]
cmp byte [eax + 0x5c], 0
je 0x10052b4d
mov eax, dword [esi + 4]
test eax, eax
je 0x10052b57
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
push ecx
push 0
mov ecx, esi
call fcn.10053a60
pop esi
ret

Function at 0x100537f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x10053807
mov eax, 0x80004005
pop esi
pop ebp
ret 4
cmp dword [ebp + 8], 0
je 0x10053857
cmp byte [esi + 0x258], 0
jne 0x10053860
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1005382d
mov ecx, dword [esi + 4]
call fcn.1004a2b0
test eax, eax
jne 0x10053838
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x10053860
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x10056a00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.100fc650
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.100fc650
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10056a63
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x10056a68
mov eax, 0x2c
push edi
mov dword [esi], eax
mov dword [esi + 4], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi + 0xc], edi
mov ecx, dword [0x101960e4]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x28], 0
xor ecx, ebp
pop esi
call fcn.100e278d
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10057170
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x10057190
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10057190
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x10058a90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012bce0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10188068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], 0
lea eax, [esi + 0x85c]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x10058b66
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x878], ecx
mov edi, dword [esi + 0x87c]
mov dword [esi + 0x87c], ecx
or ebx, 0xffffffff
mov dword [ebp - 4], ecx
test edi, edi
je 0x10058ba9
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10058ba9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x10058ba9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [esi + 0x880], 0
mov edi, dword [esi + 0x884]
mov dword [esi + 0x884], 0
mov dword [ebp - 4], 1
test edi, edi
je 0x10058bec
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10058bec
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x10058bec
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10068b00
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x10188068]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov esi, ecx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x10], esi
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10068b75
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100e2eaa
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [esp + 0xc], 0
ja 0x10068ba8
push edi
call fcn.100e2ea5
add esp, 4
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x1015a6ac
mov word [esi], ax
call fcn.10043b50
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100e278d
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov dword [esp + 0x20], 0
xor eax, eax
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10068bc4
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.10043b50
push edi
call fcn.100e2ea5
movups xmm0, xmmword [esp + 0x14]
mov dword [esi + 0x10], 0
lea ecx, [esp + 0x14]
mov dword [esi + 0x14], 0
add esp, 4
movups xmmword [esi], xmm0
xor eax, eax
movq xmm0, qword [esp + 0x20]
movq qword [esi + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
call fcn.10043ac0
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.100e278d
mov esp, ebp
pop ebp
ret
Function at 0x1006a180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
movq xmm0, qword [eax]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x1c]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
cmp byte [esi + 0x20], 0
je 0x1006a1ab
mov eax, dword [esi + 0x24]
jmp 0x1006a1b0
mov eax, 0xc
push ecx
push eax
push edx
call fcn.10078880
cmp eax, 0xffffffff
je 0x1006a24b
mov byte [esi + 0x20], 0
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x1006a1ed
mov dword [esi + 0x2c], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x2c], 0
test ecx, ecx
je 0x1006a1ed
mov eax, dword [ecx]
push 1
call dword [eax]
push ebx
mov ebx, dword [esi + 0x1c]
lea eax, [ebp - 4]
push 0
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006a23c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1006a257
push dword [esi + 0x24]
push 0
push dword [esi + 0x28]
call fcn.100fc650
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
push dword [esi + 0x24]
push dword [esi + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006a268
mov eax, dword [ebp - 0xc]
pop ebx
mov byte [esi + 0x20], 0
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x10183378
push eax
call fcn.100fbade
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 0x10183378
push eax
call fcn.100fbade
int3

Function at 0x1006bb00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012de40
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10188068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.100e279e
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100cba4e
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10071260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012e78c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x10188068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + 4]
mov dword [ebp - 0x3c], vtable.std::exception.0
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x38], xmm0
call fcn.100fba5c
mov eax, dword [esi + 0xc]
add esp, 8
movaps xmm0, xmmword [0x10168c20]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x3c], vtable.boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast_.1.0
mov dword [ebp - 0x28], vtable.boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast_.0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0x10164a84
mov dword [edi + 0x30], vtable.boost::exception_detail::clone_base.0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
mov dword [ebp - 0x10], 2
call fcn.10070b10
mov dword [ebp - 4], 3
lea esi, [edi + 0x14]
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.2.0
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.1.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.0
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.1006c840
mov eax, dword [edi + 0x28]
add esp, 8
mov dword [edi], vtable.boost::wrapexcept_class_boost::bad_lexical_cast_.2.0
mov dword [esi], vtable.boost::wrapexcept_class_boost::bad_lexical_cast_.1.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x28], vtable.boost::wrapexcept_class_boost::bad_lexical_cast_.0
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
mov dword [ebp - 0x3c], vtable.boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast_.1.0
mov dword [ebp - 0x28], vtable.boost::exception.0
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10071399
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
test al, al
cmovne ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.std::exception.0
push eax
call fcn.100fbabf
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret