joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2190
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64a593
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x10], 0
mov ecx, dword [ebp + 8]
je 0x4b2356
mov eax, dword [ebx + 0x14]
push ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4b2201
push 0x4b2cd0
push ebx
call eax
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0xa4]
call fcn.004b23b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21]
push dword [0x6eba40]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b222e
mov ecx, dword [eax + 4]
jmp 0x4b2230
xor ecx, ecx
push ecx
push dword [ebp - 0x28]
mov edx, 0x88
call fcn.004af5f0
mov edi, eax
mov dword [ebp - 0x18], 0
add esp, 8
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
lea esi, [edi + 8]
mov ecx, dword [ebp - 0xa4]
mov dword [esi], ecx
lea ecx, [esi + 0x18]
mov eax, dword [ebp - 0xa0]
mov dword [esi + 4], eax
movq xmm0, qword [ebp - 0x9c]
movq qword [esi + 8], xmm0
mov eax, dword [ebp - 0x94]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x90]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x8c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x88]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x2c], ecx
add ecx, 8
push eax
call fcn.004a1e40
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x70], eax
mov dword [edi], 0x4b3100
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], 0
call fcn.004b2950
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x4b22ff
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4b22ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4b22ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x4b231e
mov edx, dword [ecx]
lea eax, [ebp - 0x6c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov eax, dword [ebx + 0x14]
push ecx
push ebx
mov eax, dword [eax + 8]
call eax
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4b21e3
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
jmp 0x4b21e3
lea ecx, [ebp - 0x20]
call fcn.004731e0
mov dword [ebp - 4], 4
call fcn.00487230
int3
Function at 0x4b2950
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4b29aa
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x4b2984
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4b2984
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4b2984
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x64]
add ebx, 0x40
test ecx, ecx
je 0x4b29a3
mov edx, dword [ecx]
cmp ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebx + 0x24], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4b29ec
push dword [0x6eba40]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b29dc
mov edx, dword [eax + 4]
test edx, edx
je 0x4b29dc
mov ecx, 4
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x4b29f0
inc ecx
cmp ecx, 6
jl 0x4b29d0
push esi
call fcn.005ffcaf
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 0x88]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x4b2a10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4b2a2a
add ecx, 8
call fcn.004ac660
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4b2a6c
push dword [0x6eba40]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b2a5c
mov edx, dword [eax + 4]
test edx, edx
je 0x4b2a5c
mov ecx, 4
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x4b2a6f
inc ecx
cmp ecx, 6
jl 0x4b2a50
push esi
call fcn.005ffcaf
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x98]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x4b2f40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64a752
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6ddc7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push dword [0x6eba2c]
mov edi, dword [eax + 0x2c]
lea ebx, [eax + 0x2c]
lea esi, [eax + 0x30]
mov eax, dword [eax + 0x28]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b2f9b
nop word [eax + eax]
cmp dword [eax], edi
je 0x4b2ff0
mov eax, dword [eax + 8]
test eax, eax
jne 0x4b2f90
push esi
push 0x50
mov dword [ebp - 0x18], esi
call fcn.004730f0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
add esp, 4
mov dword [ebp - 4], 2
mov ecx, eax
push esi
call fcn.004ac9f0
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
push ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.004779f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x4b2f9b
push esi
push esi
mov dword [ebp - 4], 0
call fcn.004af470
add esp, 8
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 0x4bb5a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bb5e5
cmp byte [ebp + 8], 0
je 0x4bb5d9
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4bddf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0x10]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x4bde24
cmp ebx, dword [esi + 0xe4]
je 0x4bde24
test ebx, ebx
je 0x4bde24
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x10], eax
cmp ebx, eax
je 0x4bdf79
test eax, eax
je 0x4bdf04
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 3
mov word [esp + 0x28], ax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [esp + 0xc]
xor eax, eax
mov esi, dword [esi + 0xe4]
mov word [esp + 0x28], ax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0xf8]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0xfc]
mov dword [ecx + 0xe4], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0x25
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x14]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [eax + 0xd0]
mov esi, dword [esp + 0xc]
test ebx, ebx
je 0x4bdf79
mov eax, dword [ebx]
mov eax, dword [eax]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_0
jne 0x4bdf81
mov eax, dword [ebx + 0x20]
cmp eax, esi
jne 0x4bdf79
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x4bdf79
mov eax, dword [ebx]
mov eax, dword [eax + 0x88]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_136
jne 0x4bdf87
mov al, byte [ebx + 0x81]
test al, al
je 0x4bdf79
push 0
push 0
push ecx
mov dword [esp], 0
mov ecx, ebx
push 0
push 0
push 0
push 2
mov dword [esi + 0xe4], ebx
call fcn.004c8540
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x4bdf79
push 0
push 0
push 0x24
push eax
mov ecx, esi
call fcn.004be200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
call eax
jmp 0x4bdf16
mov ecx, ebx
call eax
jmp 0x4bdf3c

Function at 0x4c06a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64b4b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6ddc7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.004c1220
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.004561f0
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c8540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
movss xmm0, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x1c]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esi
sete al
movss dword [ebp - 4], xmm0
cmp eax, edx
jne 0x4c859f
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 0xf8]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0xfc]
mov dword [ebp - 0x14], eax
jmp 0x4c85a5
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xd0]
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4e4d30
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64ceb0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6ddc7c]
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 esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], 0
jb 0x4e4d6e
mov eax, dword [esi]
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4e4ec9
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
je 0x4e4e41
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e4ec3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4e4ec3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.0044e410
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x4e4e00
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0044e410
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4e4ec3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e4eb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e4ee5
jmp 0x4e4eb9
push 1
call edi
test eax, eax
je 0x4e4ec3
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e4ec3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4e4ec3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0047db70
push 0
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004de890
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4e4ec3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4e4eb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e4eea
push edx
push ecx
call fcn.005ff7fe
add esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
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.005ff7bd
mov esp, ebp
pop ebp
ret
call fcn.0061f5be
call fcn.0061f5be
int3
Function at 0x4e4ef0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4e4f65
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4e4f5d
mov eax, dword [esi + 0x10]
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4e4f5d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x4e4f39
mov esi, dword [esi]
push ebx
push esi
push eax
call fcn.00617510
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
push edi
mov word [ebx + eax], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4eda50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4eda5b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4edb17
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ac820]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ac820]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ac820]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ac820]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ac820]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ac820]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ac820]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ac820]
sub edi, 1
jne 0x4eda70
pop edi
test esi, esi
je 0x4edb3a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ac820]
sub esi, 1
jne 0x4edb20
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4edb50
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x6ac820]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ac820]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x4ee310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x4ee358
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ee34a
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.00617510
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ee390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x4ee3cb
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ee3c6
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x4ee3f8
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4ee3dc
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.00617510
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x4ee40c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4ee403
cmp byte [esi + 8], 0
je 0x4ee403
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4efde0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64d4c2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6ddc7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
push 0x44c
call fcn.005ff7ce
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], 0xffffffff
mov dword [ebx + 0x23c], 0
mov dword [ebx + 0x240], 0
test esi, esi
je 0x4efe8d
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4efe60
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.005ffca6
add esp, 4
mov dword [ebx + 0x23c], eax
sub eax, esi
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x4efe80
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx], 0
jne 0x4eff5b
cmp dword [ebx + 4], 0xffffffff
jne 0x4eff5b
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4efec0
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4efef7
cmp eax, 0x2f
je 0x4efef7
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4efee4
mov eax, dword [0x6b3094]
mov dword [edi], eax
push 0x20
call fcn.005ff7ce
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.004ee690
mov dword [ebx], eax
test eax, eax
jne 0x4eff57
push ecx
mov ecx, ebx
mov dword [0x6eb7b8], 0x200
call fcn.004effb0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x4eff60
mov eax, 0x1000000
mov dword [0x6eb7b8], eax
test eax, eax
je 0x4eff85
push ecx
mov ecx, ebx
call fcn.004effb0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.005ff7ce
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
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 0x4f4c90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64db70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6ddc7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f4cd8
lock inc dword [eax + 8]
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 8]
mov dword [ebp + 8], ecx
lea esi, [ecx + 0xc]
movq xmm0, qword [ebx + 8]
movq qword [ecx], xmm0
mov eax, dword [ebx + 0x10]
mov dword [ecx + 8], eax
lea ecx, [esi + 4]
mov dword [ebp + 8], esi
mov al, byte [ebx + 0x14]
mov byte [esi], al
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x14], ecx
call fcn.004561f0
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
push eax
mov dword [ebp - 0x14], ecx
call fcn.004561f0
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x34], eax
mov eax, edi
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