joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428bd8
Capabilities:
Check if file exists
Create directory

Disassembly:
push 8
mov eax, 0x44dd7b
call fcn.0044653a
mov ebx, edx
mov edi, ecx
push 0x40d934
lea ecx, [ebp - 0x10]
call fcn.004130fb
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.004130ad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0041b5ee
test edi, edi
jne 0x428c22
mov esi, 0x80070057
jmp 0x428d40
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x428ca9
push edi
lea ecx, [ebp - 0x10]
call fcn.004130fb
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0042967e
mov ecx, dword [ebp - 0x10]
test eax, eax
jne 0x428c5e
lea ecx, [ecx - 0x10]
call fcn.0041b5ee
mov esi, 0x8007000e
jmp 0x428d40
call fcn.00428148
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x428c90
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x428c8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x428c92
movzx esi, si
or esi, 0x80070000
jmp 0x428c92
mov eax, dword [ebp - 0x14]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041b5ee
test esi, esi
js 0x428d40
push 0x104
mov ecx, ebx
call fcn.00414fc1
push 0x40f2dc
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00424028
cmp byte [ebp + 8], 0
je 0x428d40
push ecx
call fcn.0042ca15
test al, al
jne 0x428d40
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x428d40
call fcn.0042cabc
test eax, eax
jne 0x428d40
push 0x40d934
lea ecx, [ebp + 8]
call fcn.004130fb
lea eax, [ebp + 8]
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.004130ad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0041b5ee
push 0x104
mov ecx, ebx
call fcn.00414fc1
push 0x40f304
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00424028
mov eax, esi
call fcn.00446503
ret 4
Function at 0x428e9c
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x454014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x64
pop edi
push dword [0x456168]
xor esi, esi
mov dword [0x456214], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push esi
push 0xf003f
push 0x456210
push dword [0x456168]
call dword [sym.imp.ADVAPI32.dll_RegLoadAppKeyW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
je 0x428f41
cmp ebx, 0x20
je 0x428f0a
cmp ebx, 0x21
je 0x428f0a
cmp ebx, 6
je 0x428f0a
cmp ebx, 0xb7
jne 0x428f41
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
add dword [0x456214], eax
cmp edi, 0x3e8
jae 0x428f32
add edi, 0x64
mov esi, dword [ebp - 0x2c]
inc esi
push 0
mov dword [ebp - 0x2c], esi
cmp esi, 0x1e
pop esi
jl 0x428ec9
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push esi
push dword [0x456168]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cd7a
leave
ret
Function at 0x429a5d
Capabilities:
Print debug messages

Disassembly:
push 0
mov eax, 0x44df88
call fcn.0044653a
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00429a35
mov bl, al
test bl, bl
jne 0x429abd
cmp byte [ecx + 6], al
jne 0x429abd
lea ecx, [ebp + 0xc]
call fcn.0041b610
push dword [ebp + 0x10]
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push 0x40f548
push 0x40f5c4
push 0x40f5e0
push eax
call fcn.00427134
add esp, 0x14
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0041b5ee
mov al, bl
call fcn.00446503
ret 0xc

Function at 0x429ac7
Capabilities:
Print debug messages

Disassembly:
push 0
mov eax, 0x44dfba
call fcn.0044653a
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00429a35
mov bl, al
test bl, bl
jne 0x429b41
cmp byte [ecx + 6], al
jne 0x429b41
lea ecx, [ebp + 0xc]
call fcn.0041b610
push dword [ebp + 0x10]
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0042b8bc
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push 0x40f548
push 0x40f5c4
push 0x40f5e0
push eax
call fcn.00427134
add esp, 0x14
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0041b5ee
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0041b5ee
mov al, bl
call fcn.00446503
ret 0xc
Function at 0x42ab48
Capabilities:
Enumerate threads

Disassembly:
push 0x38
mov eax, 0x44e03d
call fcn.004465dc
mov ebx, ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x42ab70
push 6
pop eax
jmp 0x42ac7b
lea esi, [ebp - 0x34]
mov dword [ebp - 0x44], esi
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov dword [ebp - 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x42ac61
cmp dword [ebp - 0x24], edi
jne 0x42abfc
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x28], eax
je 0x42abfc
push dword [ebp - 0x28]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x42abf9
push edi
call fcn.004492a7
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x42ac2b
mov dword [eax], edi
add dword [ebx + 4], 4
mov edi, dword [ebp - 0x3c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x42abbe
mov dword [ebp - 4], 5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42ac7b
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, ebx
call fcn.0042bea1
jmp 0x42abf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], 4
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00446529
ret
Function at 0x42bb91
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x44e1ab
call fcn.0044653a
mov edi, ecx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x42bd01
cmp dword [ebp + 0x14], 0
je 0x42bd01
cmp dword [ebp + 0x20], 0
je 0x42bd01
mov eax, dword [edi]
test eax, eax
je 0x42bc1b
xor ecx, ecx
mov dword [ebp + 0xc], ecx
cmp dword [eax + 4], ecx
jle 0x42bc1b
xor edx, edx
mov dword [ebp - 0x10], edx
test edx, edx
js 0x42bd0e
cmp ecx, dword [eax + 4]
jge 0x42bd0e
mov esi, dword [eax]
push ebx
push dword [ebp + 8]
add esi, edx
mov ecx, esi
call fcn.0042c2e6
test al, al
je 0x42bc04
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42bc23
call eax
test al, al
jne 0x42bc23
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
inc ecx
mov edx, dword [ebp - 0x10]
add edx, 0x24
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x10], edx
cmp ecx, dword [eax + 4]
jl 0x42bbd3
xor eax, eax
inc eax
jmp 0x42bd06
cmp byte [edi + 5], 0
jne 0x42bc39
cmp byte [edi + 4], 0
jne 0x42bc39
cmp byte [esi + 0x20], 0
je 0x42bcc6
lea ecx, [ebp + 8]
call fcn.0041b610
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ebx
call fcn.0042b8bc
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push dword [ebp - 0x10]
push 0x40f60c
push 0x40f8b0
push eax
call fcn.00427134
add esp, 0x10
cmp byte [edi + 4], 0
jne 0x42bc77
cmp byte [esi + 0x20], 0
je 0x42bcb0
lea ecx, [ebp + 0xc]
call fcn.0041b610
mov byte [ebp - 4], 2
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push 0x40f5c4
push 0x40f8ec
push eax
call fcn.00427134
add esp, 0x10
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0041b5ee
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0041b5ee
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0041b5ee
push ecx
push dword [ebp + 0x18]
mov ecx, esi
push ebx
call fcn.0042c33a
test eax, eax
js 0x42bd06
cmp byte [esi + 8], 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x42bcf1
or eax, 1
mov dword [ecx], eax
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x42bcfd
mov al, byte [esi + 9]
mov byte [ecx], al
xor eax, eax
jmp 0x42bd06
mov eax, 0x80070057
call fcn.00446503
ret 0x20
mov ecx, 0xc000008c
call fcn.00417f11
int3
Function at 0x42bd19
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x44e1ab
call fcn.0044653a
mov edi, ecx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x42be89
cmp dword [ebp + 0x14], 0
je 0x42be89
cmp dword [ebp + 0x20], 0
je 0x42be89
mov eax, dword [edi]
test eax, eax
je 0x42bda3
xor ecx, ecx
mov dword [ebp + 0xc], ecx
cmp dword [eax + 4], ecx
jle 0x42bda3
xor edx, edx
mov dword [ebp - 0x10], edx
test edx, edx
js 0x42be96
cmp ecx, dword [eax + 4]
jge 0x42be96
mov esi, dword [eax]
push ebx
push dword [ebp + 8]
add esi, edx
mov ecx, esi
call fcn.0042c3c4
test al, al
je 0x42bd8c
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42bdab
call eax
test al, al
jne 0x42bdab
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
inc ecx
mov edx, dword [ebp - 0x10]
add edx, 0x24
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x10], edx
cmp ecx, dword [eax + 4]
jl 0x42bd5b
xor eax, eax
inc eax
jmp 0x42be8e
cmp byte [edi + 5], 0
jne 0x42bdc1
cmp byte [edi + 4], 0
jne 0x42bdc1
cmp byte [esi + 0x20], 0
je 0x42be4e
lea ecx, [ebp + 8]
call fcn.0041b610
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ebx
call fcn.004130fb
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push dword [ebp - 0x10]
push 0x40f618
push 0x40f8b0
push eax
call fcn.00427134
add esp, 0x10
cmp byte [edi + 4], 0
jne 0x42bdff
cmp byte [esi + 0x20], 0
je 0x42be38
lea ecx, [ebp + 0xc]
call fcn.0041b610
mov byte [ebp - 4], 2
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push 0x40f5c4
push 0x40f8ec
push eax
call fcn.00427134
add esp, 0x10
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0041b5ee
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0041b5ee
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0041b5ee
push ecx
push dword [ebp + 0x18]
mov ecx, esi
push ebx
call fcn.0042c428
test eax, eax
js 0x42be8e
cmp byte [esi + 8], 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x42be79
or eax, 1
mov dword [ecx], eax
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x42be85
mov al, byte [esi + 9]
mov byte [ecx], al
xor eax, eax
jmp 0x42be8e
mov eax, 0x80070057
call fcn.00446503
ret 0x20
mov ecx, 0xc000008c
call fcn.00417f11
int3

Function at 0x42cabc
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x454014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42cb1d
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042cd7a
leave
ret
Function at 0x446167
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.004460f9
test eax, eax
jne 0x4461c6
cmp dword [ebp - 4], esi
jne 0x44618e
push 2
pop eax
jmp 0x4461c6
lea eax, [ebp + 8]
mov dword [ebp + 0xc], esi
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 4
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], 4
je 0x4461c4
push 0xd
pop esi
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x4461cb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [0x454014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x446384
cmp dword [0x455ea0], 0
jne 0x446384
push edi
push dword [ebp + 0x10]
push esi
call fcn.0044604a
test al, al
je 0x446229
push dword [0x4548c8]
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004296f6
test eax, eax
js 0x446383
jmp 0x4462cc
cmp byte [ebp + 0x18], 0
je 0x446383
mov edi, 0x104
lea eax, [ebp - 0x61c]
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x446383
lea ecx, [edi - 4]
push ecx
lea eax, [ebp - 0x81c]
push eax
push ecx
lea eax, [ebp - 0xa1c]
push eax
push ecx
lea eax, [ebp - 0x414]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004472e7
add esp, 0x24
test eax, eax
jne 0x446383
push 0x409918
push dword [0x4548cc]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.004470a9
add esp, 0x18
test eax, eax
jne 0x446383
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x446383
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x446383
push eax
call fcn.00445f20
mov eax, dword [0x455e9c]
test eax, eax
je 0x4462f3
push esi
call eax
cmp dword [0x455e90], 0
je 0x446344
cmp dword [0x455e8c], 0
je 0x446344
cmp dword [0x455e88], 0
je 0x446326
push dword [0x4548c0]
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
push dword [ebp + 8]
call dword [0x455e88]
jmp 0x446344
cmp dword [0x455e84], 0
je 0x446344
push dword [0x4548c0]
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push dword [ebp + 8]
call dword [0x455e84]
and dword [ebp - 0xa20], 0
lea eax, [ebp - 0xa20]
push eax
push 0x409924
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00446167
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0xa20]
mov dword [ebp - 0xa20], eax
jne 0x446379
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x446383
push eax
call fcn.00445fed
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042cd7a
leave
ret 0x14
Function at 0x448467
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
add esi, 0xffff0000
movzx eax, si
push edi
test eax, eax
je 0x448482
sub esi, eax
cmp esi, dword [ebp + 8]
jbe 0x4484f4
mov ebx, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x4484a1
sub esi, 0x8000000
jmp 0x4484ef
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4484f4
cmp dword [ebp - 0xc], ebx
jne 0x4484dd
cmp dword [ebp - 0x10], ebx
jb 0x4484dd
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4484f6
sub esi, ebx
jmp 0x4484ef
mov esi, dword [ebp - 0x18]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x4484ef
sub esi, eax
cmp esi, dword [ebp + 8]
ja 0x44848c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4484fd
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x10000
movzx eax, si
push edi
test eax, eax
je 0x44857e
sub esi, eax
add esi, ebx
jmp 0x44857e
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x448530
add esi, 0x8000000
jmp 0x44857e
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x448583
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
jne 0x44856c
cmp ecx, ebx
jb 0x44856c
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x448585
jmp 0x448517
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x44857e
mov eax, ebx
sub eax, ecx
add esi, eax
cmp esi, dword [ebp + 0xc]
jb 0x44851b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44858c
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
jbe 0x4485b2
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x4485b7
mov ebx, 0xfff80000
jmp 0x4485bd
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x455f70]
mov eax, dword [0x455f6c]
test edx, edx
jne 0x4485d8
test eax, eax
je 0x4485eb
mov edx, eax
mov dword [0x455f70], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x4485eb
cmp ecx, edi
jb 0x4485eb
cmp ecx, ebx
jbe 0x44866b
mov edx, eax
test eax, eax
jmp 0x448609
test edx, edx
je 0x448604
mov eax, dword [edx + 8]
test eax, eax
je 0x448604
cmp eax, edi
jb 0x448604
cmp eax, ebx
jbe 0x44866b
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x455f70], edx
jne 0x4485f1
and esi, 0xffff0000
push esi
push edi
call fcn.00448467
mov edx, eax
test edx, edx
jne 0x448631
push ebx
push esi
call fcn.004484fd
mov edx, eax
test edx, edx
je 0x448690
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x455f6c]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x455f70], edx
mov dword [0x455f6c], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x44865b
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x448690
cmp esi, ebx
ja 0x448690
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.0042e4b0
add esp, 0xc
mov eax, esi
jmp 0x448692
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x44895a
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x4539c8
call fcn.0042d5a0
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 ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x4489d2
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x4489d2
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x4489d2
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4489d2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x4489db
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x448d5e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x455f7c], eax
je 0x448d7a
mov eax, 0x10dd
jmp 0x448e7a
mov eax, dword [0x455f80]
test eax, eax
jne 0x448e7a
cmp dword [ebp + 0xc], eax
jne 0x448d94
push 0x57
pop eax
jmp 0x448e7a
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x448da4
push 6
pop eax
jmp 0x448e79
cmp dword [edi], 0
jne 0x448dbc
push 6
pop eax
mov dword [0x455f80], eax
mov dword [0x455f84], edi
jmp 0x448e79
push ebx
push esi
push 0x18
call fcn.0042cdbc
mov esi, eax
pop ecx
test esi, esi
jne 0x448dd4
push 8
pop ebx
jmp 0x448e5b
push 0
push dword [edi]
call fcn.00448a2e
push 0
push dword [ebp + 0xc]
mov ebx, eax
call fcn.00448a2e
movzx ecx, byte [ebx + 0x36]
mov edx, eax
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x448e4f
cmp ecx, 0x1e
ja 0x448e4f
cmp dword [ebx + 0x44], edx
jne 0x448e4f
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x448e25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x448e5b
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x455f8c]
mov dword [esi], eax
xor eax, eax
mov dword [0x455f8c], esi
jmp 0x448e77
cmp dword [0x455f74], 0
push 9
pop ebx
jne 0x448e65
mov dword [0x455f80], ebx
test esi, esi
je 0x448e6f
push 0x18
push esi
call fcn.0042cdae
pop ecx
pop ecx
mov dword [0x455f84], edi
mov eax, ebx
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x448e7e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x455f7c], eax
je 0x448e97
mov eax, 0x10dd
leave
ret
push ebx
push esi
push edi
mov edi, dword [0x455f8c]
xor ebx, ebx
test edi, edi
je 0x448ee5
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x448ed3
cmp dword [edi + 0x10], ebx
je 0x448ed3
push dword [edi + 0x10]
call fcn.004486fc
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.0042cdae
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x448ea6
mov dword [0x455f8c], ebx
call fcn.004489ed
mov edi, dword [0x455f88]
test edi, edi
je 0x448f15
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.0042cdae
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x448efa
pop edi
pop esi
mov dword [0x455f88], ebx
xor eax, eax
mov dword [0x455f7c], ebx
pop ebx
leave
ret
Function at 0x448f28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x455f7c], 0
jne 0x448f9d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x455f7c
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x448f9d
push esi
xor esi, esi
push edi
mov edi, dword [0x455f6c]
mov dword [0x455f8c], esi
mov dword [0x455f88], esi
mov dword [0x455f84], esi
jmp 0x448f83
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x448f89
mov edi, dword [edi + 4]
test edi, edi
jne 0x448f6a
jmp 0x448f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov dword [0x455f80], esi
mov eax, esi
pop esi
leave
ret
mov eax, 0x10dd
leave
ret
Function at 0x4492a7
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x455f80]
test eax, eax
jne 0x449314
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x4492c5
xor eax, eax
jmp 0x449313
push ebx
push esi
push 8
pop ebx
push ebx
call fcn.0042cdbc
mov esi, eax
pop ecx
test esi, esi
je 0x449302
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4492ee
push ebx
push esi
call fcn.0042cdae
pop ecx
pop ecx
jmp 0x4492fe
mov eax, dword [0x455f88]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x455f88], esi
xor eax, eax
jmp 0x449311
and dword [0x455f84], 0
mov eax, ebx
mov dword [0x455f80], ebx
pop esi
pop ebx
pop edi
pop ebp
ret 4