joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48bc40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x50aa24], eax
je 0x48bc7c
pop edi
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x50aa28]
test eax, eax
jne 0x48bda6
test edi, edi
jne 0x48bca2
lea eax, [edi + 0x57]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x48bcbb
cmp dword [ebx], 0
jne 0x48bcd2
mov dword [0x50aa28], 6
mov dword [0x50aa2c], ebx
pop edi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret 8
push esi
push 0x18
call fcn.004a6295
mov esi, eax
add esp, 4
test esi, esi
jne 0x48bceb
lea edi, [eax + 8]
jmp 0x48bd88
push 0
push dword [ebx]
call fcn.0048bbb0
push 0
push edi
mov dword [ebp - 0xc], eax
call fcn.0048bbb0
mov edi, dword [ebp - 0xc]
mov edx, eax
movzx ecx, byte [edi + 0x36]
mov eax, dword [edi + 0x40]
sub eax, ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x48bd7a
cmp ecx, 0x1e
ja 0x48bd7a
cmp dword [edi + 0x44], edx
jne 0x48bd7a
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push 0x40
push ecx
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x48bd3f
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x48bd88
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 4], 1
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov eax, dword [0x50aa34]
mov dword [esi], eax
xor eax, eax
mov dword [0x50aa34], esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret 8
cmp dword [0x50aa1c], 0
mov edi, 9
jne 0x48bd92
mov dword [0x50aa28], edi
test esi, esi
je 0x48bd9d
push 0x18
push esi
call fcn.004a6287
add esp, 8
mov dword [0x50aa2c], ebx
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a6256
mov esp, ebp
pop ebp
ret 8
Function at 0x48bdc0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 4], eax
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x50aa24], eax
je 0x48bdf0
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [0x50aa34]
push edi
test esi, esi
je 0x48be5d
push ebx
nop dword [eax]
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [esi + 4], 0
jne 0x48be49
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x48be49
push 0x48
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.004a8a30
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push 0x18
push esi
call fcn.004a6287
add esp, 8
mov esi, edi
test edi, edi
jne 0x48be00
pop ebx
mov dword [0x50aa34], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov esi, dword [0x50aa14]
mov edi, eax
test esi, esi
je 0x48be9c
lea eax, [ebp - 8]
push eax
push 0x20
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
push 0x10000
push esi
push edi
call sub.KERNEL32.dll_FlushInstructionCache
mov esi, dword [esi + 4]
test esi, esi
jne 0x48be78
mov edi, dword [0x50aa30]
test edi, edi
je 0x48bec1
push dword [edi + 4]
call sub.KERNEL32.dll_ResumeThread
mov esi, dword [edi]
push 8
push edi
call fcn.004a6287
add esp, 8
mov edi, esi
test esi, esi
jne 0x48bea6
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
mov dword [0x50aa30], 0
mov dword [0x50aa24], 0
pop esi
call fcn.004a6256
mov esp, ebp
pop ebp
ret

Function at 0x48bef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x50aa24], 0
jne 0x48bf8b
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x50aa24
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x48bf8b
push esi
mov esi, dword [0x50aa14]
mov dword [0x50aa34], eax
mov dword [0x50aa30], eax
mov dword [0x50aa2c], eax
test esi, esi
je 0x48bf5c
nop dword [eax]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x48bf72
mov esi, dword [esi + 4]
test esi, esi
jne 0x48bf40
xor eax, eax
mov dword [0x50aa28], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x50aa28], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
Function at 0x48c450
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x50aa28]
test eax, eax
jne 0x48c4cf
push edi
call sub.KERNEL32.dll_GetCurrentThread
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x48c470
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.004a6295
mov esi, eax
add esp, 4
test esi, esi
jne 0x48c486
lea edi, [eax + 8]
jmp 0x48c4a3
push edi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x48c4bb
call sub.KERNEL32.dll_GetLastError
mov edi, eax
push 8
push esi
call fcn.004a6287
add esp, 8
pop esi
mov dword [0x50aa28], edi
mov eax, edi
mov dword [0x50aa2c], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x50aa30]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x50aa30], esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x48e640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d95e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x507254]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 2
push edi
call fcn.0049157c
lea esi, [edi + 0x30]
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a6295
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0048ea30
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 0x4bdfe1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bdc92

Function at 0x4bdfec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bde1c

Function at 0x4c7231
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c6eae
Function at 0x401040
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
jne 0x40108e
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40108e
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov edx, dword [eax]
cmp edx, 0x4550
jne 0x40108e
mov edx, dword [esp + 0xc]
add eax, 4
mov dword [ecx], eax
add eax, 0x14
mov dword [edx], eax
cmp word [eax], 0x10b
jne 0x40108e
mov ecx, dword [esp + 0x10]
add eax, 0xe0
mov dword [ecx], eax
mov eax, 1
ret
xor eax, eax
ret

Function at 0x401190
Capabilities:
Enumerate processes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x128
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push 0
push 2
mov dword [esi], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push esi
push eax
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40123e
mov edi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
lea ebx, [esi + 0x24]
call ebp
push eax
push edi
call fcn.00401f70
add esp, 4
push eax
push ebx
call fcn.00401f70
add esp, 4
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4011fc
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40123e
push edi
call ebp
push eax
push edi
call fcn.00401f70
add esp, 4
push eax
push ebx
call fcn.00401f70
add esp, 4
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4011f3
mov ecx, dword [esp + 0x10]
push esi
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40120b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4013c0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x20
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 4], edi
je 0x401463
mov eax, dword [esp + 0x28]
push esi
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401451
lea ecx, [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ecx
push esi
call ebx
test eax, eax
je 0x401449
cmp dword [esp + 0x14], 1
je 0x401449
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401449
cmp dword [esp + 0x14], 3
jne 0x401449
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
lea eax, [esp + 0x10]
push eax
push esi
call ebx
cmp dword [esp + 0x14], 3
je 0x401432
mov edi, dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop edi
add esp, 0x20
ret
xor eax, eax
pop edi
add esp, 0x20
ret
Function at 0x401470
Capabilities:
Modify service
Start service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4014d3
mov eax, dword [esp + 8]
push ebx
push esi
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4014ce
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
ret

Function at 0x401670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push ebp
push esi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401693
pop esi
pop ebp
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x4016a5
pop esi
pop ebp
ret
push ebx
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea edi, [esi + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov esi, ebp
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x401860
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push esi
xor esi, esi
push eax
push ecx
mov dword [esp + 0xc], esi
call fcn.00401730
add esp, 8
cmp eax, esi
jle 0x40189d
mov ecx, dword [esp + 4]
mov dl, byte [ecx + esi]
add dl, 0xfa
mov byte [ecx + esi], dl
mov ecx, dword [esp + 4]
mov dl, byte [ecx + esi]
xor dl, 0x12
mov byte [ecx + esi], dl
inc esi
cmp esi, eax
jl 0x40187e
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x4018b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4018d5
pop edi
pop esi
pop ebx
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4018e8
pop edi
pop esi
pop ebx
ret
mov edx, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x40190f
pop edi
pop esi
pop ebx
ret
push ebp
lea eax, [esp + 0x18]
push 0
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push ebx
push esi
call ebp
mov edi, dword [esp + 0x20]
test edi, edi
je 0x401947
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x401d10
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4041e0
push 0x403a70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x134], edi
mov dword [ebp - 4], edi
push str.360tray.exe
call fcn.00401190
add esp, 4
mov dword [ebp - 0x130], eax
cmp eax, edi
je 0x401f29
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x128], eax
cmp eax, edi
je 0x401f29
push str.GetModuleFileNameEx
push str.psapi.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x120], eax
test eax, eax
je 0x401f29
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
push edi
mov edx, dword [ebp - 0x128]
push edx
call eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401f29
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00401f70
push str._safemon_
lea edx, [ebp - 0x11c]
push edx
call sub.MSVCRT.dll_strstr
add esp, 0xc
test eax, eax
je 0x401f29
push str.safemon360tray.exe
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strstr
add esp, 8
mov dword [ebp - 0x138], eax
test eax, eax
je 0x401f29
mov byte [eax], 0
push str.deepscan_bregdll.dll
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401f29
lea eax, [ebp - 0x11c]
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x12c], edi
test edi, edi
je 0x401f29
push str.InitRegEngine
push edi
call esi
mov ebx, eax
mov dword [ebp - 0x13c], ebx
push str.BRegOpenKey
push edi
call esi
mov dword [ebp - 0x148], eax
push str.BRegCloseKey
push edi
call esi
mov dword [ebp - 0x144], eax
push str.BRegSetValueEx
push edi
call esi
mov esi, eax
mov dword [ebp - 0x140], esi
test ebx, ebx
je 0x401f29
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x401f29
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x401f29
test esi, esi
je 0x401f29
call ebx
test eax, eax
je 0x401f29
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x80000002
call dword [ebp - 0x148]
test eax, eax
jl 0x401f29
mov ebx, dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call esi
test eax, eax
jl 0x401f29
mov edx, dword [ebp - 0x134]
push edx
call dword [ebp - 0x144]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x124], 1
mov dword [ebp - 4], 0xffffffff
call 0x401f3b
mov edi, dword [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x401f53
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, dword [ebp - 0x18]
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x118]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
jne 0x402044
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x128]
add eax, ebx
mov edi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
add edi, ebx
cmp ebp, 0x10000
mov dword [esp + 0x18], eax
jae 0x402089
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
add ecx, eax
cmp ebp, ecx
jae 0x402135
cmp ebp, eax
jb 0x402135
mov edx, dword [edi + 0x1c]
sub ebp, eax
lea eax, [edx + ebp*4]
mov esi, dword [eax + ebx]
jmp 0x4020f8
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
add eax, ebx
cmp ecx, esi
mov dword [esp + 0x10], esi
jbe 0x402173
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
add eax, ebx
push eax
push ebp
call fcn.00401ff0
add esp, 8
test eax, eax
je 0x4020df
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x18]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jb 0x4020a1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov edx, dword [edi + 0x24]
mov eax, dword [esp + 0x10]
lea ecx, [edx + eax*2]
mov eax, dword [edi + 0x1c]
xor edx, edx
mov dx, word [ecx + ebx]
lea ecx, [eax + edx*4]
mov esi, dword [ecx + ebx]
add esi, ebx
test esi, esi
je 0x402173
cmp esi, edi
jb 0x402173
mov edx, dword [esp + 0x18]
add edx, edi
cmp esi, edx
jae 0x402173
mov al, byte [esi]
mov ebx, esi
test al, al
je 0x402120
cmp al, 0x2e
je 0x40212d
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x402114
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, ebx
sub eax, esi
test eax, eax
jg 0x402142
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, eax
lea edi, [esp + 0x1c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
inc ebx
push ebx
push eax
call fcn.00402020
add esp, 8
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x402390
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x284
push esi
push edi
lea eax, [esp + 0xa4]
push 0x104
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [esp + 0x290]
push edi
call fcn.00402180
lea ecx, [esp + 0xa8]
mov esi, eax
push ecx
call fcn.00402180
add esi, eax
add esp, 8
cmp esi, 0x104
jb 0x4023e7
pop edi
xor eax, eax
pop esi
add esp, 0x284
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
lea edx, [esp + 0xa8]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
push eax
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
push 3
push eax
and ecx, 3
push 1
lea eax, [esp + 0xbc]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402527
lea ecx, [esp + 0x74]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [esp + 0x9c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x40251f
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x40251f
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402513
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jne 0x402513
lea edx, [esp + 0x10]
lea eax, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
push esi
call fcn.004021f0
add esp, 0x14
test al, al
je 0x402513
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1b4]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.00402250
add esp, 0x10
push eax
push 0
call ebx
push eax
call ebp
test eax, eax
mov dword [esp + 0x14], eax
je 0x402513
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x1b8]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
push esi
call fcn.004022e0
add esp, 0x18
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
add esp, 0x284
ret
Function at 0x402540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
je 0x40259f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40259f
mov eax, dword [esi + 0x3c]
xor edi, edi
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov ebp, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
add ecx, esi
add edx, esi
add eax, esi
mov dword [esp + 0x18], edx
test ebp, ebp
mov dword [esp + 0x10], eax
jbe 0x40259f
mov ebx, ecx
mov eax, dword [ebx]
mov ecx, dword [esp + 0x1c]
add eax, esi
push ecx
push eax
call fcn.004021a0
add esp, 8
cmp eax, 1
je 0x4025a7
inc edi
add ebx, 4
cmp edi, ebp
jb 0x402580
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [eax + edi*2]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + edx*4]
pop ebx
pop ecx
ret

Function at 0x4025c0
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
jne 0x4025cb
xor eax, eax
ret
mov eax, dword [edx + 0x3c]
push ebx
push esi
push edi
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov ecx, dword [eax + 0x20]
mov esi, dword [eax + 0x24]
mov ebx, dword [eax + 0x1c]
mov edi, dword [eax + 0x18]
add ecx, edx
add esi, edx
add ebx, edx
test edi, edi
jbe 0x40267e
push ebp
mov ebp, ecx
mov dword [esp + 0x14], edi
xor ecx, ecx
mov edi, dword [esp + 0x1c]
mov cx, word [esi]
mov eax, dword [ebx + ecx*4]
mov ecx, dword [ebp]
add eax, edx
add ecx, edx
cmp dword [0x405d40], 0
jne 0x40262e
cmp byte [eax], 0xb8
jne 0x402668
cmp byte [eax + 9], 0xcd
jne 0x402668
cmp byte [eax + 0xa], 0x2e
jne 0x402668
mov eax, dword [eax + 1]
cmp eax, edi
jae 0x402668
jmp 0x402661
cmp dword [0x405d40], 1
jne 0x402668
cmp byte [eax], 0xb8
jne 0x402668
cmp byte [eax + 5], 0xba
jne 0x402668
cmp byte [eax + 6], 0
jne 0x402668
cmp byte [eax + 7], 3
jne 0x402668
cmp byte [eax + 8], 0xfe
jne 0x402668
cmp byte [eax + 9], 0x7f
jne 0x402668
mov eax, dword [eax + 1]
cmp eax, edi
jae 0x402668
mov edi, dword [esp + 0x18]
mov dword [edi + eax*4], ecx
mov eax, dword [esp + 0x14]
add esi, 2
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4025f8
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret