joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003dd90
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [edi]
test cl, cl
je 0x1003deaf
mov al, byte [esi]
test al, al
je 0x1003deaf
movsx edx, cl
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x1003ddb9
jmp dword [edx*4 + 0x1003ded4]
mov cl, 0x41
jmp case.default.0x1003ddb9
mov cl, 0x42
jmp case.default.0x1003ddb9
mov cl, 0x43
jmp case.default.0x1003ddb9
mov cl, 0x44
jmp case.default.0x1003ddb9
mov cl, 0x45
jmp case.default.0x1003ddb9
mov cl, 0x46
jmp case.default.0x1003ddb9
mov cl, 0x47
jmp case.default.0x1003ddb9
mov cl, 0x48
jmp case.default.0x1003ddb9
mov cl, 0x49
jmp case.default.0x1003ddb9
mov cl, 0x4a
jmp case.default.0x1003ddb9
mov cl, 0x4b
jmp case.default.0x1003ddb9
mov cl, 0x4c
jmp case.default.0x1003ddb9
mov cl, 0x4d
jmp case.default.0x1003ddb9
mov cl, 0x4e
jmp case.default.0x1003ddb9
mov cl, 0x4f
jmp case.default.0x1003ddb9
mov cl, 0x50
jmp case.default.0x1003ddb9
mov cl, 0x51
jmp case.default.0x1003ddb9
mov cl, 0x52
jmp case.default.0x1003ddb9
mov cl, 0x53
jmp case.default.0x1003ddb9
mov cl, 0x54
jmp case.default.0x1003ddb9
mov cl, 0x55
jmp case.default.0x1003ddb9
mov cl, 0x56
jmp case.default.0x1003ddb9
mov cl, 0x57
jmp case.default.0x1003ddb9
mov cl, 0x58
jmp case.default.0x1003ddb9
mov cl, 0x59
jmp case.default.0x1003ddb9
mov cl, 0x5a
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x1003de31
jmp dword [edx*4 + 0x1003df3c]
mov al, 0x41
jmp case.default.0x1003de31
mov al, 0x42
jmp case.default.0x1003de31
mov al, 0x43
jmp case.default.0x1003de31
mov al, 0x44
jmp case.default.0x1003de31
mov al, 0x45
jmp case.default.0x1003de31
mov al, 0x46
jmp case.default.0x1003de31
mov al, 0x47
jmp case.default.0x1003de31
mov al, 0x48
jmp case.default.0x1003de31
mov al, 0x49
jmp case.default.0x1003de31
mov al, 0x4a
jmp case.default.0x1003de31
mov al, 0x4b
jmp case.default.0x1003de31
mov al, 0x4c
jmp case.default.0x1003de31
mov al, 0x4d
jmp case.default.0x1003de31
mov al, 0x4e
jmp case.default.0x1003de31
mov al, 0x4f
jmp case.default.0x1003de31
mov al, 0x50
jmp case.default.0x1003de31
mov al, 0x51
jmp case.default.0x1003de31
mov al, 0x52
jmp case.default.0x1003de31
mov al, 0x53
jmp case.default.0x1003de31
mov al, 0x54
jmp case.default.0x1003de31
mov al, 0x55
jmp case.default.0x1003de31
mov al, 0x56
jmp case.default.0x1003de31
mov al, 0x57
jmp case.default.0x1003de31
mov al, 0x58
jmp case.default.0x1003de31
mov al, 0x59
jmp case.default.0x1003de31
mov al, 0x5a
cmp cl, al
jne 0x1003deaf
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x1003dda4
movzx eax, byte [edi]
push eax
call fcn.1003dcc0
mov dl, al
movzx eax, byte [esi]
push eax
call fcn.1003dcc0
add esp, 8
xor ecx, ecx
cmp dl, al
sete cl
pop edi
pop esi
mov eax, ecx
ret
Function at 0x1003dfb0
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov cl, byte [ebx]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test cl, cl
je 0x1003e0e4
lea esp, [esp]
mov al, byte [esi]
test al, al
je 0x1003e0e4
test edi, edi
je 0x1003e0e8
movsx edx, cl
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x1003dfed
jmp dword [edx*4 + 0x1003e118]
mov cl, 0x41
jmp case.default.0x1003dfed
mov cl, 0x42
jmp case.default.0x1003dfed
mov cl, 0x43
jmp case.default.0x1003dfed
mov cl, 0x44
jmp case.default.0x1003dfed
mov cl, 0x45
jmp case.default.0x1003dfed
mov cl, 0x46
jmp case.default.0x1003dfed
mov cl, 0x47
jmp case.default.0x1003dfed
mov cl, 0x48
jmp case.default.0x1003dfed
mov cl, 0x49
jmp case.default.0x1003dfed
mov cl, 0x4a
jmp case.default.0x1003dfed
mov cl, 0x4b
jmp case.default.0x1003dfed
mov cl, 0x4c
jmp case.default.0x1003dfed
mov cl, 0x4d
jmp case.default.0x1003dfed
mov cl, 0x4e
jmp case.default.0x1003dfed
mov cl, 0x4f
jmp case.default.0x1003dfed
mov cl, 0x50
jmp case.default.0x1003dfed
mov cl, 0x51
jmp case.default.0x1003dfed
mov cl, 0x52
jmp case.default.0x1003dfed
mov cl, 0x53
jmp case.default.0x1003dfed
mov cl, 0x54
jmp case.default.0x1003dfed
mov cl, 0x55
jmp case.default.0x1003dfed
mov cl, 0x56
jmp case.default.0x1003dfed
mov cl, 0x57
jmp case.default.0x1003dfed
mov cl, 0x58
jmp case.default.0x1003dfed
mov cl, 0x59
jmp case.default.0x1003dfed
mov cl, 0x5a
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x1003e065
jmp dword [edx*4 + 0x1003e180]
mov al, 0x41
jmp case.default.0x1003e065
mov al, 0x42
jmp case.default.0x1003e065
mov al, 0x43
jmp case.default.0x1003e065
mov al, 0x44
jmp case.default.0x1003e065
mov al, 0x45
jmp case.default.0x1003e065
mov al, 0x46
jmp case.default.0x1003e065
mov al, 0x47
jmp case.default.0x1003e065
mov al, 0x48
jmp case.default.0x1003e065
mov al, 0x49
jmp case.default.0x1003e065
mov al, 0x4a
jmp case.default.0x1003e065
mov al, 0x4b
jmp case.default.0x1003e065
mov al, 0x4c
jmp case.default.0x1003e065
mov al, 0x4d
jmp case.default.0x1003e065
mov al, 0x4e
jmp case.default.0x1003e065
mov al, 0x4f
jmp case.default.0x1003e065
mov al, 0x50
jmp case.default.0x1003e065
mov al, 0x51
jmp case.default.0x1003e065
mov al, 0x52
jmp case.default.0x1003e065
mov al, 0x53
jmp case.default.0x1003e065
mov al, 0x54
jmp case.default.0x1003e065
mov al, 0x55
jmp case.default.0x1003e065
mov al, 0x56
jmp case.default.0x1003e065
mov al, 0x57
jmp case.default.0x1003e065
mov al, 0x58
jmp case.default.0x1003e065
mov al, 0x59
jmp case.default.0x1003e065
mov al, 0x5a
cmp cl, al
jne 0x1003e0e4
mov cl, byte [ebx + 1]
inc ebx
dec edi
inc esi
test cl, cl
jne 0x1003dfd0
test edi, edi
jne 0x1003e0f1
pop edi
pop esi
mov eax, 1
pop ebx
ret
movzx eax, byte [ebx]
push eax
call fcn.1003dcc0
mov dl, al
movzx eax, byte [esi]
push eax
call fcn.1003dcc0
add esp, 8
xor ecx, ecx
cmp dl, al
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
ret
Function at 0x1003e1f0
Capabilities:
Parse pe header

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 1
jb 0x1003e29c
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
sub esi, edx
lea esp, [esp]
mov al, byte [edx]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x1003e21d
jmp dword [ecx*4 + 0x1003e2a0]
mov al, 0x41
jmp case.default.0x1003e21d
mov al, 0x42
jmp case.default.0x1003e21d
mov al, 0x43
jmp case.default.0x1003e21d
mov al, 0x44
jmp case.default.0x1003e21d
mov al, 0x45
jmp case.default.0x1003e21d
mov al, 0x46
jmp case.default.0x1003e21d
mov al, 0x47
jmp case.default.0x1003e21d
mov al, 0x48
jmp case.default.0x1003e21d
mov al, 0x49
jmp case.default.0x1003e21d
mov al, 0x4a
jmp case.default.0x1003e21d
mov al, 0x4b
jmp case.default.0x1003e21d
mov al, 0x4c
jmp case.default.0x1003e21d
mov al, 0x4d
jmp case.default.0x1003e21d
mov al, 0x4e
jmp case.default.0x1003e21d
mov al, 0x4f
jmp case.default.0x1003e21d
mov al, 0x50
jmp case.default.0x1003e21d
mov al, 0x51
jmp case.default.0x1003e21d
mov al, 0x52
jmp case.default.0x1003e21d
mov al, 0x53
jmp case.default.0x1003e21d
mov al, 0x54
jmp case.default.0x1003e21d
mov al, 0x55
jmp case.default.0x1003e21d
mov al, 0x56
jmp case.default.0x1003e21d
mov al, 0x57
jmp case.default.0x1003e21d
mov al, 0x58
jmp case.default.0x1003e21d
mov al, 0x59
jmp case.default.0x1003e21d
mov al, 0x5a
mov byte [esi + edx], al
mov al, byte [edx]
inc edx
test al, al
je 0x1003e29b
dec edi
jne 0x1003e210
pop esi
pop edi
ret

Function at 0x1003e310
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x100760a0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.10050865
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x1003e375
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x1003e375
lea edx, [esp]
push edx
call dword [0x1007600c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1004ca8f
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.1004ca8f
add esp, 0x108
ret
Function at 0x10042a90
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x10042aa9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.10022250
push edx
push eax
call fcn.10022280
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x10042af6
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.10022250
push edx
push eax
call fcn.10022280
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x10042af8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x10044eb0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x10044ee2
push 0x2e
push esi
call fcn.1004eef0
add esp, 8
test eax, eax
je 0x10044ee0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x10045040
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x100760a0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100450e7
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov word [esp + 0x14], 0x208
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.10044fb0
mov ecx, esi
push 8
push ecx
call fcn.10048660
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x100450f9
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1004ca8f
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.1004ca8f
add esp, 0x24
ret
Function at 0x10045240
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10045250
sub eax, edx
mov edi, eax
lea ebx, [edi + edi]
push ebx
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10045279
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
test edi, edi
je 0x10045290
nop
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x10045280
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x1004530f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10045302
mov edx, dword [esp + 0x10]
push 0
push ebx
push esi
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [edi + 0x10], eax
push esi
mov byte [edi + 0x14], al
call dword [0x10076004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x10045710
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10045746
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10045750
sub eax, edx
push eax
call fcn.10022300
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 2
push edx
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 4], 0x10
jne 0x100457ad
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push ecx
push 2
push edx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x100457bd
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x100457ce
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x10046e10
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x10046e32
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10046e26
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x10046e62
cmp dword [esi + 8], 0
jne 0x10046e55
mov ecx, dword [eax + 8]
push 0x1006b874
push ecx
call fcn.1004e1fd
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10046e55
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.1004ecff
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10046e84
mov eax, dword [esi + 8]
test eax, eax
je 0x10046e7e
push eax
call fcn.1004e691
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x100484e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10048505
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x1004854c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x10048550
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x100485ac
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x10048573
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x100485e8
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x1006bc1f
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x1006bc20
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x100485b7
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x1004afa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1007841c]
mov dword [ebp - 4], eax
jmp 0x1004afb9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1004afd6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1004afb0
mov esp, ebp
pop ebp
ret

Function at 0x1004b000
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1007842c], eax
je 0x1004b01e
mov eax, 0x10dd
jmp 0x1004b0ff
mov eax, dword [0x1007843c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1004b09c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1004b07a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1004b07a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1004b170
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.1004cfbf
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1004b026
mov dword [0x1007843c], 0
call fcn.1004b110
mov ecx, dword [0x10078438]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x1004b0e9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1004cfbf
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x1004b0b4
mov dword [0x10078438], 0
mov dword [0x1007842c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1004b670
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1004b685
xor eax, eax
jmp 0x1004b6fa
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x1004b6b2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x1004b6f5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x1004b6f3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x1004b6ef
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x1004b6f3
xor eax, eax
jmp 0x1004b6fa
jmp 0x1004b6a9
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1004bfc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1004c090
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1004c07c
cmp dword [ebp - 4], 0x50000000
jb 0x1004bffc
cmp dword [ebp - 4], 0x80000000
ja 0x1004bffc
mov dword [ebp - 4], 0x80010000
jmp 0x1004bfd5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.1004e9b0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004c022
jmp 0x1004c07c
cmp dword [ebp - 0x10], 0x10000
jne 0x1004c065
cmp dword [ebp - 0x14], 0x10000
jb 0x1004c065
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1004c058
mov eax, dword [ebp - 0x24]
jmp 0x1004c07e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004c077
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.1004c090
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004bfd5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1004c0c0
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.1004c190
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1004c184
cmp dword [ebp - 4], 0x50000000
jb 0x1004c101
cmp dword [ebp - 4], 0x80000000
ja 0x1004c101
mov dword [ebp - 4], 0x4fff0000
jmp 0x1004c0da
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.1004e9b0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004c127
jmp 0x1004c184
cmp dword [ebp - 0x10], 0x10000
jne 0x1004c16a
cmp dword [ebp - 0x14], 0x10000
jb 0x1004c16a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1004c15d
mov eax, dword [ebp - 0x24]
jmp 0x1004c186
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004c17f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.1004c190
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004c0da
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1004ca8f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100760a0]
jne 0x1004ca99
repz ret
jmp fcn.1005170b