joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7c40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 5
jbe 0x4c7c8a
mov al, 1
jmp 0x4c7c9d
cmp dword [ebp - 4], 5
jne 0x4c7c9b
cmp dword [ebp - 0xc], 1
sbb eax, eax
add eax, 1
jmp 0x4c7c9d
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4c8640
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c8676
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c8676
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4c8679
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4c9e70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x2c]
cmp ecx, 1
jne 0x4c9e90
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0xd]
jmp 0x4c9f7a
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x2c], 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
push 0x5a957c
push 0x20
call fcn.00530865
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c9ef1
mov ecx, dword [ebp - 8]
call fcn.004cd180
mov dword [ebp - 0x10], eax
jmp 0x4c9ef8
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 4
mov edx, dword [ebp - 0xc]
push edx
push 0x4c9730
push 0
push 0
call fcn.005361ba
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0xffffffff
je 0x4c9f66
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x28], 0
je 0x4c9f66
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0xffffffff
je 0x4c9f66
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0
je 0x4c9f66
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0xffffffff
je 0x4c9f66
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
je 0x4c9f66
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x4c9f6a
xor al, al
jmp 0x4c9f7a
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xd], 1
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0xc], 0
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4c9f80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0xd]
test edx, edx
jne 0x4c9f9d
jmp 0x4c9ff5
mov eax, dword [ebp - 8]
mov byte [eax + 0xd], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xbb8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x102
jne 0x4c9fde
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x4ca000
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xd]
test ecx, ecx
jne 0x4ca014
jmp 0x4ca031
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0xffffffff
je 0x4ca031
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x4caf60
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, 0x5a8bb0
call fcn.004d14c0
mov ecx, eax
call fcn.004d14a0
mov ecx, eax
call fcn.00404d60
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4caf91
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4caf98
mov dword [ebp - 8], str.http:__www.360totalsecurity.com_d_ts__s__s_
lea ecx, [ebp - 0x10]
call fcn.00404e70
mov dword [ebp - 4], 0x400
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x10]
call fcn.00403560
mov dword [ebp - 0xc], eax
push 0x57af68
lea eax, [ebp - 0x20]
push eax
call fcn.00408440
add esp, 4
mov ecx, eax
call fcn.00404d60
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x20]
call fcn.00404d70
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00404800
lea ecx, [ebp - 0x18]
call fcn.00404e70
mov dword [ebp - 4], 0x80
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x18]
call fcn.00403560
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
call fcn.00404d60
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x57af80
push 0x57af84
push 0x57af98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00404800
lea ecx, [ebp - 0x14]
call fcn.00404e70
mov dword [ebp - 4], 0x80
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x14]
call fcn.00403560
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
call fcn.00404d60
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x57afa0
push 0x57afa4
push 0x57afb4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00404800
lea ecx, [ebp - 0x14]
call fcn.004063c0
lea ecx, [ebp - 0x18]
call fcn.004035b0
movzx edx, al
test edx, edx
jne 0x4cb0f1
lea ecx, [ebp - 0x14]
call fcn.004035b0
movzx eax, al
test eax, eax
jne 0x4cb0f1
lea ecx, [ebp - 0x1c]
call fcn.00404e70
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00404aa0
add esp, 0x10
push 5
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.00404d60
push eax
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x1c]
call fcn.00404d70
lea ecx, [ebp - 0x14]
call fcn.00404d70
lea ecx, [ebp - 0x18]
call fcn.00404d70
lea ecx, [ebp - 0x10]
call fcn.00404d70
mov esp, ebp
pop ebp
ret
Function at 0x4cb180
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x5a53f4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x438], 0x209
xor eax, eax
mov word [ebp - 0x428], ax
push 0x410
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.00534b20
add esp, 0xc
push 0x208
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x428]
push eax
call fcn.004d03d0
add esp, 0xc
lea ecx, [ebp - 0x42c]
push ecx
push 0x8b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x4cb381
lea edx, [ebp - 0x43c]
push edx
push 1
push 2
push 0
push 0
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x4cb381
lea ecx, [ebp - 0x430]
push ecx
push 0x57afc8
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x4cb381
mov dword [ebp - 0x444], 0
xor edx, edx
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x440], 0x20
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x444], eax
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea edx, [ebp - 0x444]
push edx
push 0x19
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x4cb381
mov dword [ebp - 0x4a0], 0
xor ecx, ecx
mov dword [ebp - 0x49c], ecx
mov dword [ebp - 0x498], ecx
mov dword [ebp - 0x494], ecx
mov dword [ebp - 0x490], 0
push 0x40
push 0
lea edx, [ebp - 0x48c]
push edx
call fcn.00534b20
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x490]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x428]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x4a0], 0
je 0x4cb36b
mov ecx, dword [ebp - 0x4a0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x49c], 0
je 0x4cb381
mov edx, dword [ebp - 0x49c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x430], 0
je 0x4cb397
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x43c], 0
je 0x4cb3ad
mov ecx, dword [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x42c], 0
je 0x4cb3c3
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 1], 0
cmp dword [ebp - 0x434], 1
jne 0x4cb3d4
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005308cb
mov esp, ebp
pop ebp
ret
Function at 0x4d1620
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 0x18

Function at 0x4d2300
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.00404d40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 4]
push eax
call fcn.004d2600
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x4d234d
lea ecx, [ebp - 4]
call fcn.00404d60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 5], 0
lea ecx, [ebp - 4]
call fcn.00404d70
mov al, byte [ebp - 5]
jmp 0x4d235c
mov byte [ebp - 6], 1
lea ecx, [ebp - 4]
call fcn.00404d70
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret

Function at 0x4d2980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x4d2989
xor ecx, ecx
jne 0x4d2989
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4d29c2
call fcn.0049d070
jmp 0x4d29d8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x4d29d6
push 0x26
call fcn.0049cfc0
add esp, 4
jmp 0x4d29d8
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4d5e30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.0048fd70
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d5f02
mov byte [ebp - 1], 0
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.004d7620
movzx eax, al
test eax, eax
je 0x4d5e83
cmp dword [ebp + 0xc], 0x102
je 0x4d5e7f
cmp dword [ebp + 0xc], 0x100
je 0x4d5e7f
cmp dword [ebp + 0xc], 0x101
jne 0x4d5e83
mov byte [ebp - 1], 1
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x4d5f02
cmp dword [ebp + 0xc], 0x102
je 0x4d5eb8
cmp dword [ebp + 0xc], 0x100
je 0x4d5eb8
cmp dword [ebp + 0xc], 0x101
je 0x4d5eb8
cmp dword [ebp + 0xc], 0x200
jb 0x4d5f02
cmp dword [ebp + 0xc], 0x20d
ja 0x4d5f02
cmp dword [ebp + 0xc], 0x100
jne 0x4d5eeb
cmp dword [ebp + 0x10], 0x41
jne 0x4d5eeb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x4d5eeb
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.004d6110
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.004d7240
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4d99a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x4d99e0
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x4d99cf
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4d99db
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4d9ade
lea ecx, [ebp - 0x10]
call fcn.004047b0
lea ecx, [ebp - 0x20]
call fcn.004047b0
lea ecx, [ebp - 0x10]
call fcn.004047a0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [ebp - 0x20]
call fcn.004047a0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x10]
call fcn.00404b50
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x10]
call fcn.00404b40
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
call fcn.00404b50
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00404b50
sub esi, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x20]
call fcn.00404b40
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00404b40
sub esi, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 4], ecx
push 0
push 0x14
lea edx, [ebp - 0x10]
push edx
call fcn.004021f0
add esp, 0xc
mov dword [ebp - 0x2c], 1
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x4d9aaf
mov ecx, dword [ebp - 0x2c]
or ecx, 4
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
movzx edx, byte [ebp + 0xc]
neg edx
sbb edx, edx
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4dfa10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
push 0x4df9d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4dfa68
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4e0f10
Capabilities:
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
jle 0x4e0faa
mov ecx, dword [ebp + 0x10]
imul ecx, ecx, 0x9e3779b9
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
je 0x4e0fa8
mov eax, dword [ebp - 0xc]
shl eax, 4
mov ecx, dword [ebp - 0xc]
shr ecx, 5
xor eax, ecx
mov edx, dword [ebp - 0xc]
xor edx, dword [ebp - 8]
add eax, edx
mov ecx, dword [ebp - 8]
and ecx, 3
mov edx, dword [ebp + 8]
add eax, dword [edx + ecx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
sub eax, 0x61c88647
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp - 4]
shr edx, 5
xor ecx, edx
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
add ecx, eax
mov edx, dword [ebp - 8]
shr edx, 0xb
and edx, 3
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
jmp 0x4e0f40
jmp 0x4e1023
mov ecx, dword [ebp + 0x10]
neg ecx
imul ecx, ecx, 0x9e3779b9
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4e1023
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp - 4]
shr eax, 5
xor edx, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 8]
add edx, ecx
mov eax, dword [ebp - 8]
shr eax, 0xb
and eax, 3
mov ecx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0xc]
sub eax, edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 0x61c88647
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
shl edx, 4
mov eax, dword [ebp - 0xc]
shr eax, 5
xor edx, eax
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 8]
add edx, ecx
mov eax, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 4], eax
jmp 0x4e0fb8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4ea120
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x4ea133
xor al, al
jmp 0x4ea207
mov byte [ebp - 5], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4ea1e5
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ea1d4
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
push 0x5a957c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.005362b4
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x4ea1d4
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ea1d4
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jne 0x4ea1d4
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
movzx ecx, byte [ebp - 5]
test ecx, ecx
jne 0x4ea204
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ea050
add esp, 0xc
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x5134f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
call fcn.00433340
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x51358b
mov ecx, dword [ebp - 4]
call fcn.004333a0
test eax, eax
je 0x51352c
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x10]
mov dword [eax], 1
jmp 0x51358b
lea ecx, [ebp - 0xc]
push ecx
call fcn.00514ca0
add esp, 4
lea ecx, [ebp - 0xc]
call fcn.00404d60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x513583
lea ecx, [ebp - 0xc]
call fcn.00404d60
push eax
call fcn.004d1510
add esp, 4
test eax, eax
je 0x513583
lea ecx, [ebp - 0xc]
call fcn.00404d60
push eax
mov ecx, dword [ebp - 4]
call fcn.004333b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x513583
mov edx, dword [ebp - 0x10]
mov dword [edx], 1
lea ecx, [ebp - 0xc]
call fcn.00404d70
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x515550
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
add ecx, 4
call fcn.00403e80
test eax, eax
jne 0x51556f
xor eax, eax
jmp 0x515680
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x51567d
mov ecx, dword [ebp - 0x28]
add ecx, 8
call fcn.00467020
test eax, eax
jne 0x5155a8
mov ecx, dword [ebp - 0x28]
add ecx, 4
call fcn.00404d60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x51567d
lea ecx, [ebp - 0x10]
call fcn.00404e70
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 8
call fcn.004649d0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jmp 0x5155d4
lea ecx, [ebp - 0xc]
call fcn.00465490
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 8
call fcn.00464a00
push eax
lea ecx, [ebp - 0xc]
call fcn.004654d0
movzx edx, al
test edx, edx
je 0x51563b
lea ecx, [ebp - 0x14]
call fcn.00404e70
lea ecx, [ebp - 0xc]
call fcn.00465460
mov eax, dword [eax + 4]
push eax
push 0x7c
lea ecx, [ebp - 0xc]
call fcn.00465460
mov ecx, dword [eax]
push ecx
push 0x57cba8
lea edx, [ebp - 0x14]
push edx
call fcn.00404aa0
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00432d70
lea ecx, [ebp - 0x14]
call fcn.00404d70
jmp 0x5155cc
push 0
lea ecx, [ebp - 0x10]
call fcn.00403e80
shl eax, 1
push eax
lea ecx, [ebp - 0x10]
call fcn.00404d60
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 4
push ecx
call fcn.004d23b0
add esp, 0x10
movzx edx, al
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x515675
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
lea ecx, [ebp - 0x10]
call fcn.00404d70
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret