joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dab6
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x64
pop edi
push dword [0x42e67c]
xor esi, esi
mov dword [0x42e720], 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 0x42e71c
push dword [0x42e67c]
call dword [sym.imp.ADVAPI32.dll_RegLoadAppKeyW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
je 0x40db5b
cmp ebx, 0x20
je 0x40db24
cmp ebx, 0x21
je 0x40db24
cmp ebx, 6
je 0x40db24
cmp ebx, 0xb7
jne 0x40db5b
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 [0x42e720], eax
cmp edi, 0x3e8
jae 0x40db4c
add edi, 0x64
mov esi, dword [ebp - 0x2c]
inc esi
push 0
mov dword [ebp - 0x2c], esi
cmp esi, 0x1e
pop esi
jl 0x40dae3
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 [0x42e67c]
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.004118ce
leave
ret

Function at 0x40e4e7
Capabilities:
Print debug messages

Disassembly:
push 0
mov eax, 0x42bc42
call fcn.00411bd6
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e4bf
mov bl, al
test bl, bl
jne 0x40e545
cmp byte [ecx + 6], al
jne 0x40e545
lea ecx, [ebp + 0xc]
call fcn.0040c14b
push dword [ebp + 0x10]
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push 0x409928
push 0x4099a4
push 0x4099c0
push eax
call fcn.0040df76
mov esi, dword [ebp + 0xc]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.0040ae9d
mov al, bl
call fcn.00411b9f
ret 0xc

Function at 0x40e54f
Capabilities:
Print debug messages

Disassembly:
push 0
mov eax, 0x42bc74
call fcn.00411bd6
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e4bf
mov bl, al
test bl, bl
jne 0x40e5c7
cmp byte [ecx + 6], al
jne 0x40e5c7
lea ecx, [ebp + 0xc]
call fcn.0040c14b
push dword [ebp + 0x10]
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00410233
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push 0x409928
push 0x4099a4
push 0x4099c0
push eax
call fcn.0040df76
mov esi, dword [ebp + 0xc]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040ae9d
lea ecx, [esi - 0x10]
call fcn.0040ae9d
mov al, bl
call fcn.00411b9f
ret 0xc
Function at 0x40f5ce
Capabilities:
Enumerate threads

Disassembly:
push 0x38
mov eax, 0x42bcf7
call fcn.00411c78
mov ebx, ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x40f5f6
push 6
pop eax
jmp 0x40f6ec
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 0x40f6d9
cmp dword [ebp - 0x24], edi
jne 0x40f682
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x28], eax
je 0x40f682
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 0x40f67f
push edi
call fcn.0042b202
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x40f6aa
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 0x40f644
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40f6ec
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, ebx
call fcn.004107fe
jmp 0x40f67f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00411bc5
ret
Function at 0x410508
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x42be01
call fcn.00411bd6
mov esi, ecx
cmp dword [ebp + 0xc], 0
je 0x410670
cmp dword [ebp + 0x14], 0
je 0x410670
cmp dword [ebp + 0x20], 0
je 0x410670
mov eax, dword [esi]
test eax, eax
je 0x41058a
xor edi, edi
cmp dword [eax + 4], edi
jle 0x41058a
xor ecx, ecx
mov dword [ebp - 0x10], ecx
test ecx, ecx
js 0x41067d
cmp edi, dword [eax + 4]
jge 0x41067d
mov ebx, dword [eax]
push dword [ebp + 0xc]
add ebx, ecx
push dword [ebp + 8]
mov ecx, ebx
call fcn.00410c4e
test al, al
je 0x410579
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x410592
call eax
test al, al
jne 0x410592
mov eax, dword [esi]
inc edi
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
mov dword [ebp - 0x10], ecx
cmp edi, dword [eax + 4]
jl 0x410546
xor eax, eax
inc eax
jmp 0x410675
cmp byte [esi + 5], 0
jne 0x4105a8
cmp byte [esi + 4], 0
jne 0x4105a8
cmp byte [ebx + 0x20], 0
je 0x410633
lea ecx, [ebp + 8]
call fcn.0040c14b
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00410233
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push dword [ebp - 0x14]
push 0x4099ec
push 0x409c90
push eax
call fcn.0040df76
mov edi, dword [ebp + 8]
add esp, 0x10
cmp byte [esi + 4], 0
jne 0x4105eb
cmp byte [ebx + 0x20], 0
je 0x410620
lea ecx, [ebp - 0x10]
call fcn.0040c14b
push edi
push 0x4099a4
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push 0x409ccc
push eax
call fcn.0040df76
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.0040ae9d
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040ae9d
lea ecx, [edi - 0x10]
call fcn.0040ae9d
push ecx
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.00410ca2
test eax, eax
js 0x410675
cmp byte [ebx + 8], 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x410660
or eax, 1
mov dword [ecx], eax
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x41066c
mov al, byte [ebx + 9]
mov byte [ecx], al
xor eax, eax
jmp 0x410675
mov eax, 0x80070057
call fcn.00411b9f
ret 0x20
call fcn.0040a995
int3
Function at 0x410683
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x42be01
call fcn.00411bd6
mov esi, ecx
cmp dword [ebp + 0xc], 0
je 0x4107eb
cmp dword [ebp + 0x14], 0
je 0x4107eb
cmp dword [ebp + 0x20], 0
je 0x4107eb
mov eax, dword [esi]
test eax, eax
je 0x410705
xor edi, edi
cmp dword [eax + 4], edi
jle 0x410705
xor ecx, ecx
mov dword [ebp - 0x10], ecx
test ecx, ecx
js 0x4107f8
cmp edi, dword [eax + 4]
jge 0x4107f8
mov ebx, dword [eax]
push dword [ebp + 0xc]
add ebx, ecx
push dword [ebp + 8]
mov ecx, ebx
call fcn.00410d2c
test al, al
je 0x4106f4
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x41070d
call eax
test al, al
jne 0x41070d
mov eax, dword [esi]
inc edi
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
mov dword [ebp - 0x10], ecx
cmp edi, dword [eax + 4]
jl 0x4106c1
xor eax, eax
inc eax
jmp 0x4107f0
cmp byte [esi + 5], 0
jne 0x410723
cmp byte [esi + 4], 0
jne 0x410723
cmp byte [ebx + 0x20], 0
je 0x4107ae
lea ecx, [ebp + 8]
call fcn.0040c14b
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040ca88
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push dword [ebp - 0x14]
push 0x4099f8
push 0x409c90
push eax
call fcn.0040df76
mov edi, dword [ebp + 8]
add esp, 0x10
cmp byte [esi + 4], 0
jne 0x410766
cmp byte [ebx + 0x20], 0
je 0x41079b
lea ecx, [ebp - 0x10]
call fcn.0040c14b
push edi
push 0x4099a4
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push 0x409ccc
push eax
call fcn.0040df76
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.0040ae9d
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040ae9d
lea ecx, [edi - 0x10]
call fcn.0040ae9d
push ecx
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.00410d90
test eax, eax
js 0x4107f0
cmp byte [ebx + 8], 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x4107db
or eax, 1
mov dword [ecx], eax
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x4107e7
mov al, byte [ebx + 9]
mov byte [ecx], al
xor eax, eax
jmp 0x4107f0
mov eax, 0x80070057
call fcn.00411b9f
ret 0x20
call fcn.0040a995
int3

Function at 0x411217
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42d008]
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 0x411278
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.004118ce
leave
ret
Function at 0x41132b
Capabilities:
Get common file path

Disassembly:
push 0x22c
mov eax, 0x42be98
call fcn.00411c0a
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x411357
mov eax, 0x80004003
jmp 0x411454
xor esi, esi
mov dword [eax], esi
test ebx, ebx
je 0x41144f
mov eax, dword [ebp + 8]
sub eax, 0x1a
je 0x41137a
dec eax
sub eax, 1
je 0x41137a
sub eax, 7
jne 0x41144f
xor eax, eax
mov edi, esi
mov word [ebp - 0x22c], ax
cmp ecx, 0xffffffff
je 0x411393
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test edi, edi
je 0x4113b2
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test esi, esi
jns 0x4113bd
mov eax, esi
jmp 0x411454
lea ecx, [ebp - 0x230]
call fcn.0040c14b
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push 5
pop ecx
push 9
push eax
mov esi, 0x4096e0
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.0041c751
add esp, 0xc
test eax, eax
jne 0x4113ef
add ebx, 0x12
push 0x104
lea ecx, [ebp - 0x230]
call fcn.0040c203
push ebx
lea ecx, [ebp - 0x22c]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x230]
call fcn.0040cb34
mov esi, dword [ebp - 0x230]
lea ecx, [ebp - 0x234]
push esi
call fcn.00411285
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x234]
push 0
mov dword [ecx], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esi - 0x10]
call fcn.0040ae9d
xor eax, eax
jmp 0x411454
mov eax, 0x80070057
call fcn.00411bb4
ret 0x10
Function at 0x41145c
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
xor edi, edi
push edi
push eax
call fcn.00412f70
push esi
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.00412f70
add esp, 0x18
mov dword [ebp - 0x620], edi
lea eax, [ebp - 0x20c]
mov bl, 1
push dword [ebp + 8]
push 0x104
push eax
call fcn.0040e1a0
test eax, eax
js 0x411634
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x624], edi
call edi
cmp eax, 0xffffffff
je 0x411585
test al, 0x10
jne 0x41162f
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00412f70
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x411529
push eax
push 0x4010c0
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004112b5
add esp, 0x10
jmp 0x411544
push esi
push eax
push 0x4010d0
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004112b5
add esp, 0x14
test eax, eax
js 0x411634
lea eax, [ebp - 0x414]
push eax
call edi
cmp eax, 0xffffffff
je 0x411569
inc esi
cmp esi, 0x400
jl 0x411503
je 0x411634
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x411634
mov ecx, dword [ebp - 0x20c]
lea esi, [ebp - 0x20c]
push 0x5c
pop edx
cmp cx, dx
jne 0x4115a7
cmp word [ebp - 0x20a], dx
sete al
dec al
and bl, al
lea edi, [ebp - 0x61c]
test cx, cx
je 0x41162f
movzx eax, cx
mov ecx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x628], ecx
test ax, ax
je 0x4115f8
movzx ecx, ax
mov word [edi], cx
add esi, 2
add edi, 2
cmp cx, dx
jne 0x4115ee
test bl, bl
jne 0x4115f8
mov eax, dword [ebp - 0x620]
inc eax
cmp eax, 3
mov dword [ebp - 0x620], eax
sete bl
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x4115c9
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x61c]
push eax
call dword [ebp - 0x624]
cmp eax, 0xffffffff
jne 0x411622
push 0
lea eax, [ebp - 0x61c]
push eax
call dword [ebp - 0x628]
test eax, eax
je 0x411634
movzx ecx, word [esi]
mov eax, ecx
push 0x5c
pop edx
test cx, cx
jne 0x4115c1
xor eax, eax
inc eax
jmp 0x411636
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118ce
leave
ret 4

Function at 0x421ef7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00421ba5
Function at 0x42a3c2
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 0x42a3dd
sub esi, eax
cmp esi, dword [ebp + 8]
jbe 0x42a44f
mov ebx, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x42a3fc
sub esi, 0x8000000
jmp 0x42a44a
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 0x42a44f
cmp dword [ebp - 0xc], ebx
jne 0x42a438
cmp dword [ebp - 0x10], ebx
jb 0x42a438
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x42a451
sub esi, ebx
jmp 0x42a44a
mov esi, dword [ebp - 0x18]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x42a44a
sub esi, eax
cmp esi, dword [ebp + 8]
ja 0x42a3e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42a458
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 0x42a4d9
sub esi, eax
add esi, ebx
jmp 0x42a4d9
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x42a48b
add esi, 0x8000000
jmp 0x42a4d9
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 0x42a4de
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
jne 0x42a4c7
cmp ecx, ebx
jb 0x42a4c7
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x42a4e0
jmp 0x42a472
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x42a4d9
mov eax, ebx
sub eax, ecx
add esi, eax
cmp esi, dword [ebp + 0xc]
jb 0x42a476
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42a4e7
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 0x42a50d
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x42a512
mov ebx, 0xfff80000
jmp 0x42a518
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x42e60c]
mov eax, dword [0x42e608]
test edx, edx
jne 0x42a533
test eax, eax
je 0x42a546
mov edx, eax
mov dword [0x42e60c], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x42a546
cmp ecx, edi
jb 0x42a546
cmp ecx, ebx
jbe 0x42a5c6
mov edx, eax
test eax, eax
jmp 0x42a564
test edx, edx
je 0x42a55f
mov eax, dword [edx + 8]
test eax, eax
je 0x42a55f
cmp eax, edi
jb 0x42a55f
cmp eax, ebx
jbe 0x42a5c6
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x42e60c], edx
jne 0x42a54c
and esi, 0xffff0000
push esi
push edi
call fcn.0042a3c2
mov edx, eax
test edx, edx
jne 0x42a58c
push ebx
push esi
call fcn.0042a458
mov edx, eax
test edx, edx
je 0x42a5eb
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x42e608]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x42e60c], edx
mov dword [0x42e608], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x42a5b6
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x42a5eb
cmp esi, ebx
ja 0x42a5eb
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.00412f70
add esp, 0xc
mov eax, esi
jmp 0x42a5ed
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42a8b5
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x42cd70
call fcn.00411ff0
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 0x42a92d
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x42a92d
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x42a92d
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x42a92d
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x42a936
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 0x42acb9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x42e618], eax
je 0x42acd5
mov eax, 0x10dd
jmp 0x42add5
mov eax, dword [0x42e61c]
test eax, eax
jne 0x42add5
cmp dword [ebp + 0xc], eax
jne 0x42acef
push 0x57
pop eax
jmp 0x42add5
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x42acff
push 6
pop eax
jmp 0x42add4
cmp dword [edi], 0
jne 0x42ad17
push 6
pop eax
mov dword [0x42e61c], eax
mov dword [0x42e620], edi
jmp 0x42add4
push ebx
push esi
push 0x18
call fcn.004118e4
mov esi, eax
pop ecx
test esi, esi
jne 0x42ad2f
push 8
pop ebx
jmp 0x42adb6
push 0
push dword [edi]
call fcn.0042a989
push 0
push dword [ebp + 0xc]
mov ebx, eax
call fcn.0042a989
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 0x42adaa
cmp ecx, 0x1e
ja 0x42adaa
cmp dword [ebx + 0x44], edx
jne 0x42adaa
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 0x42ad80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x42adb6
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 [0x42e628]
mov dword [esi], eax
xor eax, eax
mov dword [0x42e628], esi
jmp 0x42add2
cmp dword [0x42e610], 0
push 9
pop ebx
jne 0x42adc0
mov dword [0x42e61c], ebx
test esi, esi
je 0x42adca
push 0x18
push esi
call fcn.00411b65
pop ecx
pop ecx
mov dword [0x42e620], edi
mov eax, ebx
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x42add9
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x42e618], eax
je 0x42adf2
mov eax, 0x10dd
leave
ret
push ebx
push esi
push edi
mov edi, dword [0x42e628]
xor ebx, ebx
test edi, edi
je 0x42ae40
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 0x42ae2e
cmp dword [edi + 0x10], ebx
je 0x42ae2e
push dword [edi + 0x10]
call fcn.0042a657
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.00411b65
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x42ae01
mov dword [0x42e628], ebx
call fcn.0042a948
mov edi, dword [0x42e624]
test edi, edi
je 0x42ae70
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.00411b65
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x42ae55
pop edi
pop esi
mov dword [0x42e624], ebx
xor eax, eax
mov dword [0x42e618], ebx
pop ebx
leave
ret
Function at 0x42ae83
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x42e618], 0
jne 0x42aef8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x42e618
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x42aef8
push esi
xor esi, esi
push edi
mov edi, dword [0x42e608]
mov dword [0x42e628], esi
mov dword [0x42e624], esi
mov dword [0x42e620], esi
jmp 0x42aede
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x42aee4
mov edi, dword [edi + 4]
test edi, edi
jne 0x42aec5
jmp 0x42aeec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov dword [0x42e61c], esi
mov eax, esi
pop esi
leave
ret
mov eax, 0x10dd
leave
ret
Function at 0x42b202
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42e61c]
test eax, eax
jne 0x42b26f
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x42b220
xor eax, eax
jmp 0x42b26e
push ebx
push esi
push 8
pop ebx
push ebx
call fcn.004118e4
mov esi, eax
pop ecx
test esi, esi
je 0x42b25d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x42b249
push ebx
push esi
call fcn.00411b65
pop ecx
pop ecx
jmp 0x42b259
mov eax, dword [0x42e624]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x42e624], esi
xor eax, eax
jmp 0x42b26c
and dword [0x42e620], 0
mov eax, ebx
mov dword [0x42e61c], ebx
pop esi
pop ebx
pop edi
pop ebp
ret 4