joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007b880
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x1007b9ed
test ebx, ebx
je 0x1007b9ed
cmp word [ebx], 0
je 0x1007b9ed
push esi
push 0xfffffffffffffff0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x1007b972
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
jne 0x1007b972
push 0x30
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.100567e0
mov eax, dword [edi + 0x18]
add esp, 0xc
mov dword [ebp - 0x34], 0x2c
mov dword [ebp - 0x30], 0xa1
mov dword [ebp - 0x2c], eax
push 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [edi]
mov dword [ebp - 0x10], ebx
call esi
lea ecx, [ebp - 0x3c]
call fcn.10006520
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x38]
add eax, 0xf
movzx ecx, ax
mov eax, dword [ebp - 0x3c]
add eax, 0xf
shl ecx, 0x10
movzx eax, ax
or ecx, eax
push ecx
push 0
push 0x412
push dword [edi]
call esi
lea eax, [ebp - 0x34]
push eax
push 1
push 0x411
jmp 0x1007b9e8
push 0x30
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.100567e0
mov eax, dword [edi + 0x18]
add esp, 0xc
mov dword [ebp - 0x34], 0x2c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
push 0
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x18]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [edi]
call esi
lea ecx, [ebp - 0x3c]
call fcn.10006520
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0
push 0
push 0x41c
push dword [edi]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10056351
mov esp, ebp
pop ebp
ret 4
Function at 0x10083bf0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10083d55
cmp dword [eax + 0x21c], 0
je 0x10083c3f
push ebx
push esi
push edi
push eax
call fcn.10083f50
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret 0x10
push 0x104
add eax, 0xc
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10056000
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10055f38
add esp, 0x1c
lea eax, [ebp - 0x20c]
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10083d55
test edi, edi
je 0x10083d55
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x10083d26
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push 0
push eax
mov dword [esi], eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebx], 0
jne 0x10083cd3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10083d47
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x214], eax
push ecx
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10083d26
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
test ecx, ecx
je 0x10083d3f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056351
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10085fa0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10085fc0
lea ecx, [ebp + 0xc]
sub eax, edx
push ecx
push dword [ebp + 8]
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.10056e72
mov eax, dword [0x10179304]
mov ecx, eax
inc eax
mov dword [0x10179304], eax
lea eax, [ebp - 0x404]
push eax
push ecx
lea eax, [ebp - 0xc04]
push str.__d__s
push eax
call fcn.1007af00
add esp, 0x24
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret
Function at 0x1008d8f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov di, word [ebp + 8]
and eax, 0x8000
movzx edx, di
add edx, 0xfffffffd
cmp edx, 0x17
ja case.0x1008d91e.4
movzx ecx, byte [edx + 0x1008da88]
jmp dword [ecx*4 + 0x1008da70]
test dword [esi + 0x1658], 0x800
jne 0x1008da63
test eax, eax
jne 0x1008da63
mov eax, dword [esi + 0x1670]
cmp eax, dword [esi + 0x1674]
jne 0x1008d976
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.1008cf30
mov eax, dword [esi + 0x1674]
test eax, eax
je 0x1008d961
dec eax
push eax
push dword [esi + 0x1670]
mov ecx, esi
call fcn.1008cf30
mov ecx, esi
call fcn.1008cbd0
mov eax, dword [esi]
push esi
call dword [eax + 0x1cc]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test byte [esi + 0x1658], 0x20
jne 0x1008da63
mov eax, dword [esi]
push esi
call dword [eax + 0x1c8]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test dword [esi + 0x1658], 0x800
jne 0x1008da63
mov eax, dword [esi]
push esi
call dword [eax + 0x1c4]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x1658]
test eax, 0x800
jne 0x1008da63
test al, 0x20
jne 0x1008da63
mov eax, dword [esi]
push esi
call dword [eax + 0x1d0]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test dword [esi + 0x1658], 0x800
jne 0x1008da63
mov ecx, esi
call fcn.1008e1d0
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x1658]
test eax, 0x2000
je 0x1008da35
cmp di, 0x30
jb 0x1008da2f
cmp di, 0x39
jbe 0x1008da35
cmp di, 0x2d
jne 0x1008da63
test eax, 0x800
jne 0x1008da63
cmp di, 0x20
jb 0x1008da63
cmp di, 0x7f
je 0x1008da63
xor eax, eax
mov word [ebp + 8], di
push 1
mov word [ebp + 0xa], ax
mov ecx, esi
push 1
lea eax, [ebp + 8]
push eax
push 1
call fcn.1008dcd0
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x1008dad0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
mov eax, dword [ecx + 0x1670]
mov edi, dword [ecx + 0x1674]
cmp eax, edi
mov ecx, edi
cmovl ecx, eax
cmovg edi, eax
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x1008db62
sub edi, ecx
push ebx
add edi, edi
push esi
lea eax, [edi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 4]
push edi
mov ecx, dword [ecx + 0x1638]
lea ecx, [ecx + eax*2]
push ecx
push esi
call fcn.1005b670
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push dword [eax + 0x1498]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x1008e2a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call esi
mov ecx, 0x8000
test cx, ax
jne 0x1008e468
push edi
push 0x10
call esi
movzx edi, ax
push 0x11
and edi, 0x8000
call esi
mov ecx, dword [ebp + 0xc]
movzx edx, ax
add ecx, 0xffffffdd
and edx, 0x8000
cmp ecx, 0xb
ja case.0x1008e2e6.38
jmp dword [ecx*4 + 0x1008e470]
mov ecx, dword [ebp + 8]
push edi
test edx, edx
je 0x1008e300
call fcn.1008d810
pop edi
pop esi
pop ebp
ret 0x10
call fcn.1008d6f0
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
push edi
test edx, edx
je 0x1008e31e
call fcn.1008d880
pop edi
pop esi
pop ebp
ret 0x10
call fcn.1008d780
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
push edx
push edi
call fcn.1008d7d0
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
push edx
push edi
call fcn.1008d730
pop edi
pop esi
pop ebp
ret 0x10
mov esi, dword [ebp + 8]
test dword [esi + 0x1658], 0x800
jne case.0x1008e2e6.38
test edi, edi
je 0x1008e368
test edx, edx
jne case.0x1008e2e6.38
mov eax, dword [esi + 0x1670]
cmp eax, dword [esi + 0x1674]
je 0x1008e38d
mov eax, dword [esi]
push esi
test edi, edi
je 0x1008e429
call dword [eax + 0x1d0]
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, esi
push 0
push 0xffffffffffffffff
test edi, edi
je 0x1008e3cb
call fcn.1008cf30
mov eax, dword [esi + 0x1674]
test eax, eax
je 0x1008e3a7
dec eax
push eax
push dword [esi + 0x1670]
mov ecx, esi
call fcn.1008cf30
mov ecx, esi
call fcn.1008cbd0
mov eax, dword [esi]
push esi
call dword [eax + 0x1cc]
pop edi
pop esi
pop ebp
ret 0x10
test edx, edx
je 0x1008e418
call fcn.1008cf30
cmp dword [esi + 0x163c], 0xffffffff
jne 0x1008e3ef
push dword [esi + 0x1638]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0x163c], eax
push dword [esi + 0x163c]
mov ecx, esi
push dword [esi + 0x1670]
call fcn.1008cf30
mov ecx, esi
call fcn.1008cbd0
mov eax, dword [esi]
push esi
call dword [eax + 0x1cc]
pop edi
pop esi
pop ebp
ret 0x10
call fcn.1008cf30
push 1
mov ecx, esi
call fcn.1008d780
mov eax, dword [esi]
push esi
call dword [eax + 0x1cc]
pop edi
pop esi
pop ebp
ret 0x10
test edi, edi
je 0x1008e457
mov ecx, dword [ebp + 8]
test dword [ecx + 0x1658], 0x800
jne case.0x1008e2e6.38
mov eax, dword [ecx]
push ecx
call dword [eax + 0x1c4]
pop edi
pop esi
pop ebp
ret 0x10
test edx, edx
je case.0x1008e2e6.38
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c8]
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x1008e830
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test dword [esi + 0x1658], 0x800
jne 0x1008e8a8
push edi
push dword [esi + 0x1498]
call dword [sym.imp.USER32.dll_OpenClipboard]
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x1008e886
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 1
push 1
push eax
push 1
mov ecx, esi
call fcn.1008dcd0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 4
test byte [esi + 0x1658], 0x20
je 0x1008e8a1
push 1
push 1
push 0x100d5524
push 1
mov ecx, esi
call fcn.1008dcd0
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 4

Function at 0x10092590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
js 0x10092678
cmp ecx, dword [edi + 0x1a34]
jge 0x10092678
mov eax, dword [edi + 0x1a44]
push ebx
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x10092677
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
and eax, 0x8000
push 0x11
mov dword [ebp - 4], eax
call esi
and eax, 0x8000
cmp dword [edi + 0x1a2c], 0
je 0x10092630
cmp dword [ebp - 4], 0
jne 0x1009260e
test eax, eax
je 0x10092630
cmp dword [ebx + 0xc], 0
mov ecx, ebx
je 0x10092668
push 1
mov dword [ebx + 0xc], 0
call fcn.100b6ce0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.10091ae0
cmp eax, 0xffffffff
je 0x10092666
push esi
push eax
mov ecx, edi
call fcn.10092680
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
xor esi, esi
cmp dword [edi + 0x1a34], esi
jle 0x10092666
lea ebx, [ebx]
mov eax, dword [edi + 0x1a44]
mov ecx, dword [eax + esi*4]
cmp dword [ecx + 0xc], 0
je 0x1009265d
push 1
mov dword [ecx + 0xc], 0
call fcn.100b6ce0
inc esi
cmp esi, dword [edi + 0x1a34]
jl 0x10092640
mov ecx, ebx
push 4
mov dword [ebx + 0xc], 1
call fcn.100b6ce0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x1009ea20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov eax, dword [edi]
call dword [eax + 0x58]
push 2
push edi
mov esi, eax
call fcn.10082150
push 1
push edi
call fcn.10081b40
cmp esi, 4
jne 0x1009ea6c
push 5
push 0
push 0
lea eax, [edi + 0x1510]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0x21
mov ecx, edi
call fcn.10080b90
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1009eaa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 5
push 0
push 0
add eax, 0x1510
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 4

Function at 0x100a6ce0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push 1
lea eax, [edi + 0x1510]
push eax
push edi
call fcn.10080a00
test eax, eax
je 0x100a6d4e
mov eax, dword [edi]
push edi
call dword [eax + 0x19c]
push 0
push 0
push 1
push 0
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0x1620], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x1624], eax
lea eax, [ebp + 8]
push eax
push 0
push edi
push 0x100a6ac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x161c], eax
pop edi
pop ebp
ret 4

Function at 0x100a9190
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ecx + 0x185c]
push edi
mov edi, dword [ecx + 0x1860]
cmp eax, edi
mov dword [ebp - 4], ecx
mov ecx, edi
cmovl ecx, eax
cmovg edi, eax
mov dword [ebp - 8], ecx
cmp edi, ecx
je 0x100a9224
sub edi, ecx
push ebx
add edi, edi
push esi
lea eax, [edi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 4]
mov esi, eax
mov eax, dword [ebp - 8]
push edi
mov ecx, dword [ecx + 0x182c]
lea ecx, [ecx + eax*2]
push ecx
push esi
call fcn.1005b670
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push dword [eax + 0x1498]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100a9b30
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
mov esi, ecx
test dword [esi + 0x1844], 0x800
jne 0x100a9b7e
push edi
push dword [esi + 0x1498]
call dword [sym.imp.USER32.dll_OpenClipboard]
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x100a9b76
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 1
push 1
push eax
push 1
mov ecx, esi
call fcn.100aa440
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret

Function at 0x100ac310
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8333
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
mov dword [ebp - 4], eax
mov word [ecx], ax
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push eax
push 0x100e3908
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x40], al
mov dword [esi + 0x44], eax
call fcn.10008980
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100ac3e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8363
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.TiXmlElement.0
xor ecx, ecx
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0xffffffff
mov dword [esi + 0x40], vtable.TiXmlAttribute.0
mov dword [esi + 0x64], 7
mov dword [esi + 0x60], 0
mov dword [ebp - 4], eax
lea eax, [esi + 0x40]
mov word [eax + 0x10], cx
mov dword [eax + 0x3c], 7
mov dword [eax + 0x38], ecx
mov word [eax + 0x28], cx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x44], eax
mov dword [eax + 0x40], eax
mov edx, dword [ebp + 8]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ecx
mov byte [ebp - 4], 1
cmp word [edx], cx
jne 0x100ac4a2
xor eax, eax
jmp 0x100ac4b6
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100ac4a7
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.10008980
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100ac540
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8388
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov edi, dword [ebp + 8]
mov dword [esi], vtable.TiXmlText.0
mov dword [ebp - 4], eax
cmp word [edi], ax
jne 0x100ac5bb
xor ecx, ecx
jmp 0x100ac5cf
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ac5c0
sub ecx, ebx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x1c]
call fcn.10008980
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100b1630
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100b1664
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100b1664
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x100b1728
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x100b1681
cmp ax, 0x5c
jne 0x100b1683
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x100b1675
cmp esi, ebx
je 0x100b16cf
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.1005b670
add esp, 0xc
cmp esi, 0x208
jae 0x100b1738
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.100b1630
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x100b16f2
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10055fa4
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10055f38
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100b1728
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10056351
mov esp, ebp
pop ebp
ret
call fcn.10055c9c
int3

Function at 0x100b1f30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x100b1ffa
cmp dword [esi + 4], 0xffffffff
jne 0x100b1ffa
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b1f61
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x100b1f95
cmp eax, 0x2f
je 0x100b1f95
push 0x100dd6d4
push 0x104
push edi
call fcn.10055f38
add esp, 0xc
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x100b1fbb
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100b1fbb
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100b4b50
add esp, 0x10
test eax, eax
jne 0x100b1fdb
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.100b5280
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x100b2680
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x100dbfe0]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x100dbfe0]
mov dword [edx + 8], eax
pop ebp
ret