joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b5f8
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov dword [esp], 0x104
call fcn.00426bf8
mov esi, eax
test esi, esi
je 0x42b682
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], 0x104
call sub.KERNEL32.DLL_GetFullPathNameA
sub esp, 0x10
mov ebx, eax
lea eax, [ebx - 1]
cmp eax, 0x103
jae 0x42b67a
cmp byte [esi + 1], 0x3a
jne 0x42b66b
mov al, byte [esi]
mov byte [esp + 0x18], al
mov word [esp + 0x19], 0x5c3a
mov byte [esp + 0x1b], 0
lea eax, [esp + 0x18]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetDriveTypeA
sub esp, 4
cmp eax, 1
jbe 0x42b67a
mov edi, dword [esp + 0x30]
inc ebx
test edi, edi
je 0x42b68d
cmp ebx, dword [esp + 0x38]
jbe 0x42b69d
mov dword [esp], esi
call fcn.00426c08
xor edi, edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00426c10
mov edi, eax
jmp 0x42b684
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00429884
mov dword [esp], esi
call fcn.00426c08
jmp 0x42b684

Function at 0x42b704
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebx
push edi
push esi
sub esp, 0x110
mov edi, dword [esp + 0x128]
mov ebx, dword [esp + 0x120]
test ebx, ebx
je 0x42b75e
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
bt eax, ecx
jae 0x42b7d3
add ebx, 0x40
mov byte [esp + 4], bl
mov word [esp + 5], 0x2e3a
mov byte [esp + 7], 0
lea eax, [esp + 8]
lea ecx, [esp + 0xd]
lea edx, [esp + 4]
push eax
push ecx
push 0x103
push edx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x42b77b
sub esp, 8
lea eax, [esp + 0x15]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
add esp, 8
test eax, eax
je 0x42b7c8
cmp eax, edi
jg 0x42b7c8
sub esp, 0xc
lea ebx, [esp + 0x19]
push ebx
call fcn.004298d0
add esp, 0x10
cmp eax, edi
jge 0x42b7bb
mov esi, dword [esp + 0x124]
test esi, esi
jne 0x42b7ac
sub esp, 0xc
push edi
call fcn.00426bf8
add esp, 0x10
mov esi, eax
test esi, esi
je 0x42b7c8
sub esp, 8
push ebx
push esi
call fcn.00429884
add esp, 0x10
jmp 0x42b7d5
call fcn.00434e50
mov dword [eax], 0x22
jmp 0x42b7d3
call fcn.00434e50
mov dword [eax], 8
xor esi, esi
mov eax, esi
add esp, 0x110
pop esi
pop edi
pop ebx
ret

Function at 0x42cbf4
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x42cc11
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.0042be20

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

Disassembly:
push ebx
sub esp, 8
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
mov ecx, eax
cmp ecx, 0xffffffff
je 0x429bd3
xor eax, eax
test bl, 2
je 0x429bce
and ecx, 1
je 0x429bce
call fcn.00434e50
mov dword [eax], 5
mov eax, 0xffffffff
add esp, 8
pop ebx
ret
add esp, 8
pop ebx
jmp fcn.0042be20
jmp 0x429b94
Function at 0x42f73c
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 0x1001
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.004298d0
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.004298d0
lea ecx, [esp + eax + 0x1c]
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 0x1002
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.004298d0
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.004298d0
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.00432b84
mov edi, dword [esi + 0x24]
test edi, edi
je 0x42f830
mov dword [esp], edi
call fcn.004298d0
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004298d0
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.004298d0
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00426c10
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x42f885
jmp 0x42f8cd
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004298d0
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.004298d0
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.00426bf8
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x42f8cd
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004298d0
lea eax, [ebp + eax + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.0042976b
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00429784
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.004298d0
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00429784
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.004298d0
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x42f8cf
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x431328
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 4]
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00426bf8
add esp, 0x10
mov dword [edi + 4], eax
push esi
push eax
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi]
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00426bf8
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x43139b
push esi
push eax
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x4313aa
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor ecx, ecx
and ecx, ebx
mov dword [esp + 8], ecx
push 0
push dword [edi + 8]
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00426bf8
add esp, 0x10
mov dword [edi + 8], eax
push esi
push eax
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi + 0xc]
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00426bf8
add esp, 0x10
mov dword [edi + 0xc], eax
push esi
push eax
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
and ecx, ebx
mov ebx, ebp
mov ebp, ecx
push 0
push dword [edi + 0x10]
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00426bf8
add esp, 0x10
mov dword [edi + 0x10], eax
push esi
push eax
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, ebp
and ebx, dword [esp + 8]
sub esp, 0xc
push 4
call fcn.00426bf8
add esp, 0x10
mov esi, eax
test esi, esi
je 0x431494
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x4314a3
push esi
call fcn.004324bc
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.00426c08
add esp, 0x10
mov eax, 1
jmp 0x4314ae
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x4314ac
push esi
call fcn.00426c08
add esp, 0x10
xor eax, eax
and ebx, eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x434d80
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [esp + 0x4c]
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov edi, eax
test edi, edi
je 0x434e46
sub esp, 0xc
lea eax, [esp + 0x14]
push eax
call sub.KERNEL32.DLL_GetLocalTime
add esp, 0xc
movzx eax, word [esp + 0xa]
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 8]
movzx ebp, word [esp + 0x10]
movzx eax, word [esp + 0x12]
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
sub esp, 0xc
push ebx
push esi
push eax
push ebp
push edx
push ecx
push dword [esp + 0x3c]
push str._02d__02d__04d__02d:_02d:_02d._03d
push 0x448b5c
call sub.USER32.DLL_wsprintfA
add esp, 0x24
push 0x448b5c
call fcn.004298d0
add esp, 4
push 0
lea ebx, [esp + 0x18]
push ebx
push eax
push 0x448b5c
push edi
call sub.KERNEL32.DLL_WriteFile
mov esi, dword [esp + 0x40]
push esi
call fcn.004298d0
add esp, 4
push 0
push ebx
push eax
push esi
push edi
call sub.KERNEL32.DLL_WriteFile
push edi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x434e78
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa0]
mov eax, dword [0x448b7c]
test eax, eax
mov ecx, dword [0x448b78]
jne 0x434f3d
test ecx, ecx
jne 0x434f3d
cmp dword [0x445460], 0
je 0x434f73
sub esp, 4
lea esi, [esp + 0x14]
push 0x80
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 4
push 0x5c
push esi
call fcn.00434c00
add esp, 0x10
test eax, eax
jne 0x434ee8
sub esp, 8
push 0x3a
push esi
call fcn.00434c00
add esp, 0x10
test eax, eax
je 0x434eeb
inc eax
mov esi, eax
mov dword [esp + 0xc], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x434f2e
call sub.KERNEL32.DLL_GetCurrentThreadId
sub esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x435008
push eax
call sub.USER32.DLL_EnumThreadWindows
add esp, 4
cmp dword [esp + 0xc], 0
mov eax, 0x11010
mov ecx, 0x12010
cmove ecx, eax
push ecx
push esi
push edi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x434fc0
cmp ecx, 0xffffffff
je 0x434fc0
test ecx, ecx
je 0x434f54
sub esp, 0xc
push edi
call ecx
add esp, 0x10
mov eax, dword [0x448b7c]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x434fc0
cmp byte [eax], 0
je 0x434fc0
sub esp, 8
push edi
push eax
call fcn.00434d80
add esp, 0xa0
jmp 0x434fc6
sub esp, 0xc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea ebx, [esp + 0x1c]
push 0
push ebx
push 2
push 0x4451dc
push esi
call sub.KERNEL32.DLL_WriteFile
push edi
call fcn.004298d0
add esp, 4
push 0
push ebx
push eax
push edi
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
push ebx
push 2
push 0x4451dc
push esi
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
add esp, 0x90
pop esi
pop edi
pop ebx
ret
Function at 0x436aa0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x450bb4]
test eax, eax
je 0x436ad5
mov ecx, dword [eax]
test ecx, ecx
je 0x436b38
add eax, 4
xor edi, edi
nop
cmp byte [ecx], 1
sbb edi, 0
inc edi
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x436ac0
jmp 0x436b64
mov esi, dword [0x450df4]
test esi, esi
jne 0x436b02
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x450df4], esi
test esi, esi
jne 0x436b02
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.00434fe8
mov esi, dword [0x450df4]
mov dword [esp], esi
call fcn.004298d0
test eax, eax
je 0x436b3c
xor ebx, ebx
xor edi, edi
mov ebp, esi
nop word cs:[eax + eax]
lea ebx, [eax + ebx + 1]
inc edi
lea ebp, [ebp + eax + 1]
mov dword [esp], ebp
call fcn.004298d0
test eax, eax
jne 0x436b20
inc ebx
jmp 0x436b43
xor edi, edi
jmp 0x436b64
mov ebx, 1
xor edi, edi
mov dword [esp], ebx
call fcn.00426bf8
mov dword [0x450bb0], eax
test eax, eax
je 0x436bbd
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004295a0
lea eax, [edi + 4]
mov dword [0x450bb8], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.00426bdc
mov esi, eax
test esi, esi
je 0x436bbd
mov edi, dword [0x450bb4]
test edi, edi
je 0x436bc1
mov edx, dword [edi]
test edx, edx
je 0x436bfa
lea eax, [edi + 4]
xor ecx, ecx
nop word [eax + eax]
cmp byte [edx], 0
je 0x436bb0
mov edx, dword [eax - 4]
mov dword [esi + ecx*4], edx
jmp 0x436bb1
dec ecx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x436ba0
jmp 0x436bf6
xor eax, eax
jmp 0x436c0d
mov ebx, dword [0x450bb0]
mov dword [esp], ebx
call fcn.004298d0
test eax, eax
je 0x436c02
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [ebx + eax + 1]
mov dword [esp], ebx
call fcn.004298d0
add ebp, 4
test eax, eax
jne 0x436be0
test edi, edi
je 0x436c02
mov dword [esp], edi
call fcn.00426c08
mov dword [0x450bb4], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x437e60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp], 0x450e40
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x4542f0]
cmp eax, 0x232
jl 0x437eca
mov eax, dword [esp + 0x74]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0x20726f72
mov dword [esp + 0x1c], 0x72652065
mov dword [esp + 0x18], 0x726f6870
mov dword [esp + 0x14], 0x616d6553
mov dword [esp + 4], eax
lea edi, [esp + 0x14]
mov dword [esp], edi
call fcn.00429784
mov dword [esp], edi
call fcn.00434fe8
mov eax, dword [0x4542f0]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x450e40]
mov dword [esp], eax
call sub.KERNEL32.DLL_InitializeCriticalSection
sub esp, 4
mov eax, dword [0x4542f0]
lea ecx, [eax + 1]
mov dword [0x4542f0], ecx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x450e40]
mov dword [esi], eax
mov dword [esp], 0x450e40
call sub.KERNEL32.DLL_LeaveCriticalSection
add esp, 0x60
pop esi
pop edi
ret
Function at 0x437f10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x20726f72
mov dword [esp + 0x10], 0x72652065
mov dword [esp + 0xc], 0x726f6870
mov dword [esp + 8], 0x616d6553
mov dword [esp + 4], eax
lea esi, [esp + 8]
mov dword [esp], esi
call fcn.00429784
mov dword [esp], esi
call fcn.00434fe8
add esp, 0x58
pop esi
ret

Function at 0x43cd64
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x454734]
mov dword [esp], eax
call fcn.0043d898
sub esp, 4
mov esi, eax
test esi, esi
je 0x43cdcb
xor edi, edi
nop
cmp edi, 3
ja 0x43cdcb
inc edi
xor ebx, ebx
xor eax, eax
nop word [eax + eax]
cmp byte [ebx*8 + 0x454738], 0
je 0x43cdc1
mov ecx, dword [ebx*8 + 0x45473c]
test ecx, ecx
je 0x43cdc1
mov edx, dword [esi + ebx*4]
test edx, edx
je 0x43cdc1
mov dword [esi + ebx*4], 0
mov dword [esp], edx
call ecx
mov eax, 1
inc ebx
cmp ebx, 0x32
jne 0x43cd94
test eax, eax
jne 0x43cd84
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x10005bcf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c4
mov eax, 0x1003132a
call fcn.10009696
mov edi, ecx
cmp dword [edi + 0x20], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3cc], eax
je 0x10005d61
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x3bc], 7
mov dword [ebp - 0x3b8], 1
jb 0x10005c14
mov eax, dword [esi]
lea ecx, [ebp - 0x3b8]
xor ebx, ebx
push ecx
push ebx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x10005d57
cmp dword [ebp - 0x3bc], 7
jne 0x10005d57
test ecx, ecx
je 0x10005c64
push esi
lea eax, [edi + 8]
push eax
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.10010ea0
jmp 0x10005d6e
mov eax, dword [ebp - 0x3b8]
add eax, 2
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3c0], ebx
lea ecx, [ebp - 0x3c8]
mov dword [ebp - 4], ebx
push ecx
push eax
call fcn.10010ea0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub eax, ecx
push 0
pop eax
cmove ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10005cba
mov eax, dword [esi]
lea edx, [ebp - 0x3b8]
push edx
push ecx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x10005c4c
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
mov esi, dword [ebp - 0x3cc]
xor eax, eax
test edx, edx
cmove ecx, eax
lea eax, [ecx + ebx*2]
push eax
lea ecx, [ebp - 0x28]
call fcn.10010ea0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.10010ea0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
inc eax
mov byte [ebp - 4], 1
add ebx, eax
call fcn.100023a0
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
push 0
mov eax, ecx
pop edi
cmove eax, edi
cmp byte [eax + ebx*2], 0
jne 0x10005cf2
test ecx, ecx
je 0x10005d53
mov edx, dword [ebp - 0x3c0]
sub edx, ecx
call fcn.10002962
mov al, 1
jmp 0x10005d59
xor al, al
call fcn.10009655
ret 8
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.10005db1
push 0x100437bc
lea eax, [ebp - 0x3b4]
push eax
call fcn.10010ea0
int3

Function at 0x100063cd
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10041bf0
call fcn.10009a30
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
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 0x10006443
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10006443
mov esi, dword [edx + ecx + 0xd8]
lea eax, [ecx + esi]
cmp edi, eax
jb 0x10006443
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10006443
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000644c
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
Function at 0x1000663a
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.10010ea0
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.10010ea0
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.10010ea0
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.10010ea0
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.10010ea0
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.10010ea0
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x10006641
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.10010ea0
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.10010ea0
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.10010ea0
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.10010ea0
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.10010ea0
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.10010ea0
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret