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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a0d38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4a226c]
cmp eax, 0xffffffff
jne 0x40c16f
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [0x4a226c], 0xfffffc18
mov dword [ebp - 0x118], 0x114
call fcn.0044bcb0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40c16a
cmp dword [ebp - 0x108], 2
jne 0x40c16a
cmp dword [ebp - 0x114], 5
jne 0x40c0fc
cmp dword [ebp - 0x110], 0
jne 0x40c087
xor eax, eax
inc eax
jmp 0x40c15c
cmp dword [ebp - 0x110], 1
jne 0x40c0ee
push 0x7f
lea eax, [ebp - 0x104]
push eax
push 0x492108
call fcn.0044b9d2
add esp, 0xc
test eax, eax
jne 0x40c0ae
push 3
jmp 0x40c0f9
push 0x7f
lea eax, [ebp - 0x104]
push eax
push 0x492128
call fcn.0044b9d2
add esp, 0xc
test eax, eax
jne 0x40c0cc
push 4
jmp 0x40c0f9
push 0x7f
lea eax, [ebp - 0x104]
push eax
push 0x492148
call fcn.0044b9d2
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x40c15c
cmp dword [ebp - 0x110], 2
jne 0x40c16a
push 6
pop eax
jmp 0x40c15c
cmp dword [ebp - 0x114], 6
jne 0x40c163
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x40c11e
dec eax
je 0x40c11a
dec eax
jne 0x40c16a
push 0xb
jmp 0x40c0f9
push 0xa
jmp 0x40c0f9
push 0x7f
lea eax, [ebp - 0x104]
push eax
push 0x492108
call fcn.0044b9d2
add esp, 0xc
test eax, eax
jne 0x40c13c
push 8
jmp 0x40c0f9
push 0x7f
lea eax, [ebp - 0x104]
push eax
push 0x492128
call fcn.0044b9d2
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
mov dword [0x4a226c], eax
jmp 0x40c16f
mov eax, 0x3e8
jmp 0x40c15c
mov eax, dword [0x4a226c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a7da
leave
ret

Function at 0x40c570
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4a3ef4]
test eax, eax
jne 0x40c5c2
push 0x4921ec
push 4
push eax
push 4
call fcn.0040c48e
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x4a3ef4], eax
test eax, eax
jne 0x40c5c2
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 8]
and eax, 0x7fffffff
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
call esi
test eax, eax
jne 0x40c5d8
push dword [0x4a3ef4]
call esi
pop esi
leave
ret
Function at 0x40f452
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x4a509c], esi
jne 0x40f4bb
push edi
mov edi, 0x4a50a0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4a509c], esi
jne 0x40f4b3
push ebx
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x4a509c
push esi
mov ebx, eax
push ebx
push 0x40f31b
push esi
push esi
call fcn.0044fcb6
add esp, 0x18
cmp eax, esi
jne 0x40f4a2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f4b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
cmp dword [0x4a509c], esi
pop esi
setne al
ret

Function at 0x40f4c8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x4a0d38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x430]
mov edi, ecx
push 7
push eax
mov dword [ebp - 0x438], edi
call fcn.0040f9b9
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x40f4fe
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x414]
push 0x492814
push eax
call fcn.0040f973
add esp, 0xc
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x430]
call fcn.0040363d
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x49281c
push eax
call fcn.0040f973
add esp, 0x10
push esi
mov ebx, 0x80
push ebx
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, 0x40000000
jmp 0x40f594
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x438]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x49281c
push eax
call fcn.0040f973
add esp, 0x10
push 0
push ebx
push 4
push 0
push 1
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x434], eax
cmp eax, 0xffffffff
je 0x40f564
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x434]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a7da
leave
ret
Function at 0x410fae
Capabilities:
Check if file exists

Disassembly:
push 0x620
mov eax, 0x47351d
call fcn.0044b825
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x62c], eax
test ebx, ebx
je 0x411123
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410fd9
sub eax, edx
sar eax, 1
je 0x411123
test esi, esi
je 0x411123
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410ffb
sub eax, edx
sar eax, 1
je 0x411123
mov eax, dword [ebp - 0x62c]
test eax, eax
je 0x411123
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411021
sub eax, edx
sar eax, 1
je 0x411123
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411123
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0044bcb0
lea eax, [ebp - 0x218]
push eax
call fcn.00410cb0
and dword [ebp - 0x624], 0
lea eax, [ebp - 0x618]
add esp, 0x10
mov dword [ebp - 0x620], 0x200
mov dword [ebp - 0x61c], eax
and dword [ebp - 4], 0
push 0x492a6c
push dword [ebp - 0x62c]
lea eax, [ebp - 0x218]
push 0x488ae0
push eax
lea eax, [ebp - 0x624]
push eax
call fcn.004031a5
pop ecx
pop ecx
push eax
call fcn.004031a5
pop ecx
pop ecx
push eax
call fcn.004031a5
pop ecx
pop ecx
push eax
call fcn.004031a5
mov ecx, dword [ebp - 0x61c]
mov edx, dword [ebp - 0x624]
xor eax, eax
mov word [ecx + edx*2], ax
push dword [ebp - 0x61c]
push esi
push ebx
call fcn.00410eec
add esp, 0x14
test eax, eax
lea eax, [ebp - 0x618]
js 0x41110f
cmp dword [ebp - 0x61c], eax
je 0x41110b
push dword [ebp - 0x61c]
call fcn.0044c187
pop ecx
mov al, 1
jmp 0x411125
cmp dword [ebp - 0x61c], eax
je 0x411123
push dword [ebp - 0x61c]
call fcn.0044c187
pop ecx
xor al, al
call fcn.0044b8a8
ret
Function at 0x411445
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.0044cd80
mov eax, dword [0x4a0d38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1014], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
mov dword [ebp - 0x100c], eax
call fcn.004113f9
mov dword [ebp - 0x1008], eax
xor eax, eax
push 0x7fe
mov word [ebp - 0x804], ax
xor esi, esi
lea eax, [ebp - 0x802]
push esi
push eax
call fcn.0044bcb0
add esp, 0x14
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x40
lea eax, [ebp - 0x1064]
push esi
push eax
mov dword [ebp - 0x1068], 0x44
call fcn.0044bcb0
push 0x4a3f80
push dword [ebp - 0x1014]
xor eax, eax
push dword [ebp - 0x100c]
mov dword [ebp - 0x1024], esi
lea edi, [ebp - 0x1020]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x1004]
push 0x492b14
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1068]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411567
mov eax, dword [ebp - 0x1008]
mov dword [ebp - 0x1010], eax
mov eax, dword [ebp - 0x1024]
push 0xffffffffffffffff
mov dword [ebp - 0x100c], eax
push esi
lea eax, [ebp - 0x1010]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x1008]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a7da
leave
ret
Function at 0x413dc9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x413e3f
xor eax, eax
cmp ax, word [esi]
je 0x413e3f
call fcn.00414270
push 5
push ebx
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, 0x4936d0
push edi
push ebx
call esi
cmp eax, 0x20
jle 0x413e02
mov al, 1
jmp 0x413e41
push dword [ebp + 8]
lea ecx, [ebp - 1]
mov byte [ebp - 1], bl
call fcn.00413e46
pop ecx
test al, al
jne 0x413dfe
push dword [ebp + 8]
lea ecx, [ebp - 1]
mov byte [ebp - 1], bl
call fcn.004140e4
pop ecx
test al, al
jne 0x413dfe
push 5
push ebx
push dword [ebp + 8]
push 0x493438
push edi
push ebx
call esi
cmp eax, 0x20
setg al
jmp 0x413e41
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4140e4
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x80
mov eax, 0x475551
call fcn.0044b825
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], ecx
cmp eax, ebx
je 0x414248
xor ecx, ecx
cmp cx, word [eax]
je 0x414248
xor eax, eax
push 0x4934f8
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
call fcn.004032e2
mov edi, 0x4033f5
push edi
push 0x40302a
push 2
push 0x1c
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], ebx
call fcn.00450329
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x41415f
lea eax, [ebp - 0x64]
push ebx
push eax
lea eax, [ebp - 0x80]
push SysReAllocString
push eax
call fcn.00403aed
add esp, 0x10
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040336c
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.0040363d
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x41419a
lea eax, [ebp - 0x64]
push ebx
push eax
lea eax, [ebp - 0x80]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00403aed
add esp, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040336c
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.0040363d
mov dword [ebp - 0x84], ebx
lea esi, [ebp - 0x48]
cmp dword [esi + 0x10], ebx
je 0x41421a
cmp dword [esi + 0x14], 8
jb 0x4141dd
mov eax, dword [esi]
jmp 0x4141df
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41421a
cmp dword [esi + 0x14], 8
mov eax, dword [ebp - 0x8c]
mov byte [eax], 1
jb 0x4141fd
mov eax, dword [esi]
jmp 0x4141ff
mov eax, esi
push 5
push ebx
push dword [ebp - 0x88]
push eax
push 0x4936d0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x414250
inc dword [ebp - 0x84]
add esi, 0x1c
cmp dword [ebp - 0x84], 2
jl 0x4141ce
push edi
push 2
push 0x1c
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], bl
call fcn.004503fe
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040363d
xor al, al
call fcn.0044b8a8
ret
push edi
push 2
push 0x1c
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], bl
call fcn.004503fe
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040363d
mov al, 1
jmp 0x41424a
Function at 0x4144a4
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
xor esi, esi
push 0x4c
lea eax, [esp + 0x20]
push esi
push eax
mov dword [0x4a4f80], esi
mov dword [esp + 0x24], esi
call fcn.0044bcb0
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
inc ebx
push esi
mov dword [esp + 0x18], ebx
call edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x414534
push dword [esp + 0xc]
call fcn.0044a56c
push dword [esp + 0x10]
mov esi, eax
push 0
push esi
call fcn.0044bcb0
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push esi
push 0
call edi
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
call fcn.004145e2
push esi
mov dword [esp + 0x14], ebx
call fcn.0044ba70
pop ecx
pop ecx
cmp dword [esp + 0x10], 0
je 0x4145b3
mov edi, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call edi
test eax, eax
jne 0x4145b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4145b3
push dword [esp + 0xc]
call fcn.0044a56c
push dword [esp + 0x10]
mov esi, eax
push 0
push esi
call fcn.0044bcb0
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push esi
push dword [esp + 0x18]
call edi
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
call fcn.004145e2
push esi
mov dword [esp + 0x14], ebx
call fcn.0044ba70
cmp dword [esp + 0x1c], 0
pop ecx
pop ecx
jne 0x41453b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x41453b
mov eax, dword [0x4a4f84]
test eax, eax
je 0x4145ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x4a4f84], 0
cmp dword [esp + 0x10], 0
je 0x4145db
push dword [esp + 0x10]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4146e1
Capabilities:
Read .ini file

Disassembly:
push 0x264
mov eax, 0x476349
call fcn.0044b825
mov ebx, ecx
xor esi, esi
push 0x4914cc
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x270], esi
call fcn.00403309
mov dword [ebp - 4], esi
cmp ebx, esi
jne 0x414716
mov ebx, 0x48fa6c
push ebx
lea ecx, [ebp - 0x234]
call fcn.00403309
lea ebx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.0041468f
xor eax, eax
mov byte [ebp - 4], 2
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.0044bcb0
mov edx, dword [ebp - 0x26c]
add esp, 0xc
cmp dword [ebp - 0x258], 8
jae 0x414764
mov edx, ebx
cmp dword [ebp - 0x220], 8
mov ecx, dword [ebp - 0x234]
jae 0x414779
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x41478e
lea eax, [ebp - 0x250]
push edx
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x488b44
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00403309
push esi
push 1
lea ecx, [ebp - 0x26c]
call fcn.0040363d
push esi
push 1
lea ecx, [ebp - 0x234]
call fcn.0040363d
push esi
push 1
lea ecx, [ebp - 0x250]
call fcn.0040363d
mov eax, edi
call fcn.0044b8a8
ret
Function at 0x41e9b4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x4a0d38]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push edi
xor edi, edi
cmp dword [esi + 0x64], edi
jle 0x41eaf8
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00415c9c
xor ebx, ebx
and dword [esp + 0x20], ebx
and dword [esp + 0xc], ebx
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x41e9fc
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
jmp 0x41e9fe
xor eax, eax
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jge 0x41eaf8
mov eax, esi
call fcn.00415599
mov ecx, eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x14], ecx
call fcn.00415f76
cmp dword [esp + 0xc], 0
jne 0x41ea43
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x20], ebx
jmp 0x41ea5f
mov eax, dword [esi + 0x80]
add eax, dword [esi + 0x78]
sub eax, dword [esp + 0x34]
add eax, dword [esp + 0x3c]
add eax, edi
cmp eax, dword [esi + 0x64]
jle 0x41ea62
mov ebx, dword [esp + 0x20]
mov edi, dword [esi + 0x68]
mov eax, dword [esp + 0x24]
lea ecx, [eax + edi]
add ecx, dword [esi + 0x78]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x7c]
add ecx, dword [esp + 0x28]
add ecx, ebx
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x80]
sub ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x3c]
add ecx, eax
mov eax, dword [esi + 0x84]
sub eax, dword [esp + 0x38]
add ecx, edi
add eax, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
call fcn.004168b1
mov eax, dword [esi + 0x88]
sub eax, dword [esp + 0x34]
add eax, dword [esi + 0x80]
add eax, dword [esp + 0x3c]
add eax, dword [esi + 0x78]
add edi, eax
mov eax, dword [esi + 0x84]
sub eax, dword [esp + 0x38]
add eax, dword [esi + 0x7c]
add eax, dword [esp + 0x40]
add eax, ebx
cmp dword [esp + 0x20], eax
jg 0x41eaef
mov dword [esp + 0x20], eax
inc dword [esp + 0xc]
jmp 0x41e9eb
mov ecx, dword [esp + 0x54]
pop edi
pop ebx
xor ecx, esp
call fcn.0044a7da
mov esp, ebp
pop ebp
ret

Function at 0x42010a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a0d38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4a2574]
cmp eax, 0xffffffff
jne 0x420175
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.0044bcb0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42016e
cmp dword [ebp - 0x114], 6
jb 0x42016e
push 0x4937bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x420170
xor eax, eax
mov dword [0x4a2574], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a7da
leave
ret
Function at 0x425b74
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp eax, 0x84
jne 0x425b86
or dword [esi], 0xffffffff
xor eax, eax
inc eax
jmp 0x425bf5
cmp eax, 0x21
jne 0x425b93
mov dword [esi], 3
jmp 0x425b81
push ebx
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x425ba6
mov eax, edi
call fcn.00425c01
mov dword [esi], eax
jmp 0x425bee
cmp eax, 0x113
jne 0x425bd9
cmp dword [ebp + 8], 0x20
jne 0x425bcb
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x20
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x425bcd
xor ebx, ebx
and dword [esi], 0
test ebx, ebx
je 0x425bf2
xor eax, eax
inc eax
jmp 0x425bf4
cmp eax, 0x400
jne 0x425bf2
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi], 0
mov eax, ebx
jmp 0x425bf4
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x42a5ff
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x499258
call fcn.00457100
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x42a667
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x42a667
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x42a667
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x42a667
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x42a670
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.00457145
ret

Function at 0x42a734
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x4a4ffc]
jmp 0x42a756
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x42a741
pop esi
leave
ret
Function at 0x42a786
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x42a7a9
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x42a7ac
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x42a7bf
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x42a7c6
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x4a5000]
mov ecx, dword [0x4a4ffc]
test eax, eax
jne 0x42a7e0
test ecx, ecx
je 0x42a7f5
mov eax, ecx
mov dword [0x4a5000], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x42a7f5
cmp edx, dword [ebp - 4]
jb 0x42a7f5
cmp edx, dword [ebp - 8]
jbe 0x42a8c6
mov eax, ecx
test ecx, ecx
jmp 0x42a819
test eax, eax
je 0x42a814
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x42a814
cmp ecx, dword [ebp - 4]
jb 0x42a814
cmp ecx, dword [ebp - 8]
jbe 0x42a8c6
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x4a5000], eax
jne 0x42a7fb
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x42a950
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x42a846
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42a950
cmp dword [ebp - 0x30], ebx
jne 0x42a865
cmp dword [ebp - 0x34], ebx
jae 0x42a878
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x42a834
jmp 0x42a950
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4a5000], eax
test eax, eax
je 0x42a950
mov ecx, dword [0x4a4ffc]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x4a4ffc], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x42a8b8
mov dword [eax + 8], edx
mov edx, dword [eax + 8]
cmp edx, dword [ebp - 4]
jb 0x42a955
cmp edx, dword [ebp - 8]
ja 0x42a955
mov ecx, dword [edx + 0x18]
mov dword [eax + 8], ecx
push 8
mov eax, 0xcccccccc
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x42a957
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x42a8ff
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42a955
cmp dword [ebp - 0x14], ebx
jne 0x42a94a
cmp dword [ebp - 0x18], ebx
jb 0x42a94a
movzx ecx, si
test ecx, ecx
je 0x42a92e
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4a5000], eax
test eax, eax
jne 0x42a894
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 8]
jb 0x42a8ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42aa37
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4a5008], eax
je 0x42aa50
mov eax, 0x10dd
leave
ret
push ebx
push esi
push edi
mov edi, dword [0x4a5018]
xor ebx, ebx
cmp edi, ebx
je 0x42aa9a
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x42aa8b
mov esi, dword [edi + 0x10]
cmp esi, ebx
je 0x42aa8b
call fcn.0042a95c
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.0044a602
pop ecx
mov edi, esi
cmp esi, ebx
jne 0x42aa5f
mov dword [0x4a5018], ebx
call fcn.0042a75d
mov esi, dword [0x4a5014]
cmp esi, ebx
je 0x42aac7
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0044a602
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x42aaaf
pop edi
pop esi
mov dword [0x4a5014], ebx
mov dword [0x4a5008], ebx
xor eax, eax
pop ebx
leave
ret