joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f040
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44f076
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret
push ebx
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.004924b0
add esp, 0xc
lea eax, [ebp - 0x230]
or ebx, 0xffffffff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x44f0e2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x20c]
push str.HttpProxy.exe
push eax
call fcn.00499c8d
add esp, 8
test eax, eax
je 0x44f0db
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x44f0b3
jmp 0x44f0e1
mov ebx, dword [ebp - 0x228]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.00467552
mov esp, ebp
pop ebp
ret

Function at 0x44f1e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
test ecx, ecx
je 0x44f279
push ecx
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0049a0df
push 0x44
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.004924b0
add esp, 0x18
mov dword [ebp - 0x258], 0x44
lea eax, [ebp - 0x268]
xorps xmm0, xmm0
movups xmmword [ebp - 0x268], xmm0
push eax
lea eax, [ebp - 0x258]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x44f28a
push dword [ebp - 0x268]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x264]
call esi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret
test esi, esi
jle 0x44f29b
push esi
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x268]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x264]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00467552
mov esp, ebp
pop ebp
ret
Function at 0x44f390
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce878
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x258], esi
xor eax, eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44f42a
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.0041e2d0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x44f4fe
inc ecx
push ecx
jmp 0x44f4f3
push 0x228
lea eax, [ebp - 0x250]
mov dword [ebp - 0x254], 0x22c
push 0
push eax
call fcn.004924b0
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x44f4c4
cmp dword [ebp - 0x24c], ebx
je 0x44f48e
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jne 0x44f467
jmp 0x44f4c4
cmp word [ebp - 0x230], 0
jne 0x44f49c
xor ecx, ecx
jmp 0x44f4b4
lea ecx, [ebp - 0x230]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44f4a5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041e1d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.0041e2d0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x44f4fe
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00401830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret
Function at 0x44f520
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push esi
push edi
push 0x118
push 0
push eax
mov edi, edx
mov dword [ebp - 0x120], 0x11c
mov esi, ecx
call fcn.004924b0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x44f57f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x118]
mov dword [edi], ecx
mov dword [ebx], eax
cmp ecx, 5
jne 0x44f5ae
cmp eax, 1
je 0x44f59e
cmp eax, 2
jne 0x44f5e7
push 0xd
push 0x4e36f4
mov ecx, esi
call fcn.0041e1d0
jmp 0x44f5e7
cmp ecx, 6
jne 0x44f5e7
test eax, eax
jne 0x44f5be
push 0x4e36d0
jmp 0x44f5e0
cmp eax, 1
jne 0x44f5ca
push 0x4e372c
jmp 0x44f5e0
cmp eax, 2
jne 0x44f5d6
push 0x4e3710
jmp 0x44f5e0
cmp eax, 3
jne 0x44f5e7
push str.OS:Windows
mov ecx, esi
call fcn.0041dde0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467552
mov esp, ebp
pop ebp
ret
Function at 0x4510c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cea88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4511ee
cmp byte [ebx + 0x3d], 0
je 0x4511ee
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x451119
xor al, al
jmp 0x4511f0
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00450f80
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x45117f
sub eax, 1
je 0x451183
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x4511d6
xor bl, bl
jmp 0x4511d8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4511b8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0049a656
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x45117b
cmp byte [ebx + 0x3d], 0
je 0x4511d6
test esi, esi
jne 0x451141
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004088e0
jmp 0x45113e
mov bl, 1
cmp ecx, 0x10
jb 0x4511ea
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00401700
mov al, bl
jmp 0x4511f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret

Function at 0x4518b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4518e1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4518d0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x463560
Capabilities:
Allocate thread local storage

Disassembly:
push 0
call fcn.004985e6
push eax
call fcn.00499ac2
add esp, 8
push 0x4fc4e8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x4fc520
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x4fc500
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4fc518], eax
cmp eax, 0xffffffff
jne 0x4635c9
push str.srcwin32_sys_arch.c
push 0x93
push str.TlsAlloc_failed
push str.Assertion___s__failed_at_line__d_in__s_n
call fcn.004592e0
push 0
call fcn.00499f90
add esp, 0x14
jmp fcn.0049ad70
ret
Function at 0x464150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov al, byte [0x4fc18e]
push ebx
mov ebx, ecx
push esi
push edi
test al, 4
jne 0x464197
test al, 0x10
je 0x46419b
mov edx, dword [0x4fc190]
movzx eax, word [edx]
push eax
movzx eax, word [edx + 2]
mov edx, dword [0x4fc198]
push eax
movzx eax, word [0x4fc1c4]
add eax, dword [0x4fc194]
push 0x4fc9d4
push 0x4fc9ec
push eax
call fcn.0045e5d0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
test al, 2
je 0x464197
mov cl, byte [ebx + 0x40]
call fcn.0045ce60
mov esi, eax
test esi, esi
jne 0x4641ca
inc word [0x4fc478]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x464197
push 0xffffffffffffffff
push esi
push dword [ebx + 0x38]
call eax
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov al, byte [0x4fca00]
mov byte [esi + 0x14], al
mov eax, dword [0x4fc9ec]
cmp byte [0x4fca00], 6
mov dword [esi], eax
jne 0x464204
mov eax, dword [0x4fc9f0]
mov dword [esi + 4], eax
mov eax, dword [0x4fc9f4]
mov dword [esi + 8], eax
mov eax, dword [0x4fc9f8]
mov dword [esi + 0xc], eax
mov al, byte [0x4fc9fc]
mov byte [esi + 0x10], al
jmp 0x46421d
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov byte [esi + 0x10], 0
mov al, byte [0x4fc9e8]
lea edi, [esi + 0x18]
mov byte [esi + 0x2c], al
mov eax, dword [0x4fc9d4]
cmp byte [0x4fc9e8], 6
mov dword [edi], eax
jne 0x46425a
mov eax, dword [0x4fc9d8]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4fc9dc]
mov dword [esi + 0x20], eax
mov eax, dword [0x4fc9e0]
mov dword [esi + 0x24], eax
mov al, byte [0x4fc9e4]
mov byte [esi + 0x28], al
jmp 0x464273
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x28], 0
mov ecx, dword [0x4fc190]
movzx eax, word [ecx + 2]
mov word [esi + 0x46], ax
movzx eax, word [ecx]
mov ecx, dword [0x4fc194]
mov word [esi + 0x48], ax
mov dword [esi + 0x3c], 3
lea eax, [ecx + 1]
mov dword [esi + 0x54], eax
mov dword [esi + 0x5c], eax
mov eax, dword [0x4f6af0]
add eax, dword [0x4fca0c]
mov dword [esi + 0x88], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x8c], eax
mov dword [0x4f6af0], eax
lea eax, [ecx - 1]
mov dword [esi + 0x84], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x38], eax
mov dword [esi + 0xac], ebx
mov al, byte [ebx + 0x31]
and al, 0xc
mov byte [esi + 0x31], al
mov al, byte [ebx + 0x30]
mov byte [esi + 0x30], al
mov eax, dword [0x4fca18]
mov dword [esi + 0x34], eax
mov dword [0x4fca18], esi
call fcn.004599e0
mov ecx, esi
mov byte [0x4fca08], 1
call fcn.004657a0
mov eax, dword [0x4fc190]
movzx eax, word [eax + 0xe]
mov word [esi + 0x90], ax
mov word [esi + 0x92], ax
test edi, edi
je 0x464333
cmp byte [esi + 0x2c], 6
jne 0x464333
mov edx, edi
mov ecx, esi
call fcn.00465c90
jmp 0x46433a
mov ecx, edi
call fcn.0045b4b0
mov cx, word [esi + 0x62]
mov edx, eax
push edi
call fcn.0045d1d0
add esp, 4
mov word [esi + 0x62], ax
mov dl, 0x12
mov ecx, esi
call fcn.0045de00
mov ecx, esi
test al, al
je 0x464366
xor edx, edx
pop edi
pop esi
pop ebx
jmp fcn.0045bf20
pop edi
pop esi
pop ebx
jmp fcn.0045e100
Function at 0x467110
Capabilities:
Encrypt data using speck

Disassembly:
inc word [0x4fc49e]
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp word [esi + 0xa], 8
jae 0x46713c
call fcn.0045a150
inc word [0x4fc4a6]
inc word [0x4fc4a2]
pop edi
pop esi
pop ebx
ret
movzx edi, word [esi + 8]
mov dl, 0x3a
push 0x4fc9ec
push 0x4fc9d4
push edi
call fcn.00466fa0
add esp, 0xc
test ax, ax
je 0x467173
mov ecx, esi
call fcn.0045a150
inc word [0x4fc4a4]
inc word [0x4fc4a2]
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 4]
movzx eax, byte [eax]
add eax, 0xfffffffe
cmp eax, 0x87
ja case.0x46718e.3
movzx eax, byte [eax + 0x4672a0]
jmp dword [eax*4 + 0x467290]
mov edx, ebx
mov ecx, esi
pop edi
pop esi
pop ebx
jmp fcn.0045fee0
cmp byte [0x4fc9ec], 0xff
jne 0x4671bc
mov ecx, esi
call fcn.0045a150
inc word [0x4fc4a2]
pop edi
pop esi
pop ebx
ret
push 0x280
mov edx, edi
mov ecx, 0x36
call fcn.00459c60
mov edi, eax
add esp, 4
test edi, edi
jne 0x4671e8
mov ecx, esi
call fcn.0045a150
inc word [0x4fc4a8]
pop edi
pop esi
pop ebx
ret
mov edx, esi
mov ecx, edi
call fcn.0045a390
test al, al
je 0x46720e
mov ecx, esi
call fcn.0045a150
mov ecx, edi
call fcn.0045a150
inc word [0x4fc4b0]
pop edi
pop esi
pop ebx
ret
mov eax, dword [edi + 4]
xor ecx, ecx
push 0x4fc9d4
push 0x4fc9ec
mov dl, 0x3a
mov byte [eax], 0x81
mov eax, dword [edi + 4]
mov word [eax + 2], cx
mov ecx, edi
movzx eax, word [edi + 8]
push eax
call fcn.00466fa0
mov ecx, dword [edi + 4]
add esp, 0xc
inc word [0x4fc49c]
mov edx, 0x4fc9ec
push ebx
push 0x3a
push 0
mov word [ecx + 2], ax
mov ecx, edi
push 0xff
push 0x4fc9d4
call fcn.00466ba0
add esp, 0x14
mov ecx, edi
call fcn.0045a150
mov ecx, esi
pop edi
pop esi
pop ebx
jmp fcn.0045a150
inc word [0x4fc4ac]
inc word [0x4fc4a2]
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.0045a150

Function at 0x46aee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.0046b0b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x46afbd
mov edx, dword [ebp - 4]
cmp edx, dword [0x4f608c]
jb 0x46af2a
mov eax, dword [ebp - 4]
cmp eax, dword [0x4f6090]
ja 0x46af2a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x46aefa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.004924b0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x46af4f
jmp 0x46afbd
cmp dword [ebp - 0x14], 0x10000
jne 0x46afa3
cmp dword [ebp - 0x18], 0x10000
jb 0x46afa3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46af86
mov eax, dword [ebp - 8]
jmp 0x46afbf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x46af96
xor eax, eax
jmp 0x46afbf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x46afb8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.0046b0b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x46aefa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46afd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.0046b0e0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x46b0a5
mov edx, dword [ebp - 4]
cmp edx, dword [0x4f608c]
jb 0x46b015
mov eax, dword [ebp - 4]
cmp eax, dword [0x4f6090]
ja 0x46b015
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x46afe5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.004924b0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x46b03a
jmp 0x46b0a5
cmp dword [ebp - 0x14], 0x10000
jne 0x46b08e
cmp dword [ebp - 0x18], 0x10000
jb 0x46b08e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46b071
mov eax, dword [ebp - 8]
jmp 0x46b0a7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x46b081
xor eax, eax
jmp 0x46b0a7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x46b0a0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.0046b0e0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x46afe5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46b110
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0046b500
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x4fa474], 0
jne 0x46b14d
cmp dword [0x4fa470], 0
je 0x46b14d
mov eax, dword [0x4fa470]
mov dword [0x4fa474], eax
cmp dword [0x4fa474], 0
je 0x46b1ca
mov ecx, dword [0x4fa474]
cmp dword [ecx + 8], 0
je 0x46b1ca
mov edx, dword [0x4fa474]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x46b1ca
mov ecx, dword [0x4fa474]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x46b1ca
mov eax, dword [0x4fa474]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x46b199
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x46b1a0
xor eax, eax
jmp 0x46b2e9
mov ecx, dword [0x4fa474]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.004924b0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x46b2e9
mov edx, dword [0x4fa470]
mov dword [0x4fa474], edx
jmp 0x46b1e6
mov eax, dword [0x4fa474]
mov ecx, dword [eax + 4]
mov dword [0x4fa474], ecx
cmp dword [0x4fa474], 0
je 0x46b226
cmp dword [0x4fa474], 0
je 0x46b224
mov edx, dword [0x4fa474]
cmp dword [edx + 8], 0
je 0x46b224
mov eax, dword [0x4fa474]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x46b224
mov edx, dword [0x4fa474]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x46b224
jmp 0x46b17e
jmp 0x46b1d8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0046b2f0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46b2e7
mov eax, dword [ebp - 0x18]
mov dword [0x4fa474], eax
mov ecx, dword [0x4fa474]
mov dword [ecx], 0x52727464
mov edx, dword [0x4fa474]
mov dword [edx + 8], 0
mov eax, dword [0x4fa474]
mov ecx, dword [0x4fa470]
mov dword [eax + 4], ecx
mov edx, dword [0x4fa474]
mov dword [0x4fa470], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x4fa474]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x46b2b7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x46b2d7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x46b2ae
mov eax, dword [0x4fa474]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x46b17e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46c030
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4fa470]
mov dword [ebp - 4], eax
jmp 0x46c049
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x46c070
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x46c06e
call sub.KERNEL32.dll_GetLastError
jmp 0x46c072
jmp 0x46c040
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46c510
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x4fa480], eax
je 0x46c534
mov eax, 0x10dd
jmp 0x46c6dc
cmp dword [0x4fa484], 0
je 0x46c547
mov eax, dword [0x4fa484]
jmp 0x46c6dc
cmp dword [ebp + 0xc], 0
jne 0x46c557
mov eax, 0x57
jmp 0x46c6dc
cmp dword [ebp + 8], 0
jne 0x46c567
mov eax, 6
jmp 0x46c6dc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x46c590
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x4fa484], ecx
mov edx, dword [ebp + 8]
mov dword [0x4fa488], edx
mov eax, dword [ebp - 8]
jmp 0x46c6dc
push 0x18
call fcn.004677d0
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46c5eb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x4fa484], ecx
cmp dword [ebp - 4], 0
je 0x46c5da
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.00467803
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x4fa488], ecx
mov eax, dword [ebp - 8]
jmp 0x46c6dc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0046c4f0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0046c4f0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x46c62b
cmp dword [ebp - 0xc], 0x1e
jbe 0x46c647
mov dword [ebp - 8], 9
cmp dword [0x4fa478], 0
je 0x46c642
jmp 0x46c5b9
jmp 0x46c5b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x46c66e
mov dword [ebp - 8], 9
cmp dword [0x4fa478], 0
je 0x46c669
jmp 0x46c5b9
jmp 0x46c5b0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x46c699
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x46c5b0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x4fa490]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x4fa490], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8