joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025830
Capabilities:
Accept command line arguments
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100668d8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.1003ac40
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x10025884
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10025884
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.10018c20
jmp 0x100258fb
cmp dword [ebp + 8], 0
jne 0x100258f6
cmp dword [ebp + 0xc], 0
je 0x100258f6
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], 0
lea ecx, [ebp - 0x41c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x100258de
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.10018c20
cmp dword [ebp - 0x420], 0
je 0x100258f4
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100258fb
jmp 0x100259d0
movzx ecx, word [ebp - 0x210]
test ecx, ecx
jne 0x1002590b
jmp 0x100259d0
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.1003ac40
add esp, 0xc
push 0
push 0x2a
lea ecx, [ebp - 0x418]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10025979
push 0x100551c0
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x10025979
mov eax, 1
jmp 0x100259d2
push 0
push 0x26
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100259c8
push 0x10055200
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x100259c8
mov eax, 1
jmp 0x100259d2
xor edx, edx
jne 0x10025859
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a5ba
mov esp, ebp
pop ebp
ret
Function at 0x1002a1e0
Capabilities:
Accept command line arguments
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100668d8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.1003ac40
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x1002a214
jmp 0x1002a355
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], 0
lea ecx, [ebp - 0x41c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x1002a26b
cmp dword [ebp - 0x41c], 1
jne 0x1002a26b
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.10018c20
cmp dword [ebp - 0x420], 0
je 0x1002a281
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x210]
test ecx, ecx
jne 0x1002a290
jmp 0x1002a355
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.1003ac40
add esp, 0xc
push 0
push 0x2a
lea ecx, [ebp - 0x418]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1002a2fe
push 0x10055a60
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1002a2fe
mov eax, 1
jmp 0x1002a357
push 0
push 0x26
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1002a34d
push str.Internet_ExplorerIEXPLORE.EXE
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1002a34d
mov eax, 1
jmp 0x1002a357
xor edx, edx
jne 0x1002a209
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a5ba
mov esp, ebp
pop ebp
ret

Function at 0x1002ade0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1005ead8
push 0x1003a7b0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x100668d8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x1002ae31
jmp 0x1002ae4f
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0x4550
je 0x1002ae4f
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x1002ae68
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002c2f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x100668d8]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x214], 0
cmp dword [0x10068358], 0
jne 0x1002c433
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1002c33e
xor eax, eax
jmp 0x1002c503
push str.psapi.dll
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
jne 0x1002c350
call fcn.10001fa0
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
jne 0x1002c380
mov dword [ebp - 0x33c], 0
jmp 0x1002c3f6
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0x3fffffff
jle 0x1002c3ae
mov dword [ebp - 0x340], 0
jmp 0x1002c3ea
mov eax, dword [ebp - 0x324]
shl eax, 1
call fcn.1003a650
mov dword [ebp - 0x344], esp
mov edx, dword [ebp - 0x32c]
push edx
mov eax, dword [ebp - 0x324]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x328]
push ecx
mov edx, dword [ebp - 0x344]
push edx
call fcn.10002490
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
push ecx
call fcn.10018e30
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x1002c418
xor eax, eax
jmp 0x1002c503
xor edx, edx
jne 0x1002c418
push str.GetMappedFileNameA
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10068358], eax
cmp dword [0x10068358], 0
jne 0x1002c443
xor eax, eax
jmp 0x1002c503
push 0x104
lea ecx, [ebp - 0x320]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x10068358]
mov dword [ebp - 0x218], eax
xor eax, eax
jne 0x1002c466
cmp dword [ebp - 0x218], 0
jbe 0x1002c500
xor ecx, ecx
jne 0x1002c477
lea edx, [ebp - 0x320]
push edx
call fcn.1004f7fd
add esp, 4
push 0x5c
lea eax, [ebp - 0x320]
push eax
call fcn.1002c520
add esp, 8
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0
je 0x1002c500
mov ecx, dword [ebp - 0x334]
add ecx, 1
mov dword [ebp - 0x334], ecx
xor edx, edx
jne 0x1002c4b9
mov dword [ebp - 0x338], 0
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp - 0x334]
push ecx
call fcn.1002c260
add esp, 8
xor edx, edx
jne 0x1002c4dd
cmp dword [ebp - 0x338], 0xdf677bed
je 0x1002c4f9
cmp dword [ebp - 0x338], 0x64149c92
jne 0x1002c500
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x344]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003a5ba
mov esp, ebp
pop ebp
ret
Function at 0x10033167
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1006852c], 0
push esi
jne 0x100330da
call fcn.10033000
test eax, eax
je 0x1003311d
mov eax, dword [0x1006852c]
cmp eax, 1
jne 0x100330fb
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1003311d
pop esi
ret
push eax
call dword [0x10068534]
test eax, eax
jne 0x10033165
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10033121
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1006852c]
call dword [0x10068534]
mov edi, eax
test edi, edi
je 0x10033146
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10033162
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1006852c]
call dword [0x10068530]
add edi, 0x10
cmp edi, esi
jb 0x1003314e
mov eax, edi
pop edi
pop esi
ret
jmp 0x100330c7

Function at 0x10033e70
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x10033ea2
xor ecx, ecx
jmp 0x10033eae
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
mov esi, ecx
test ecx, ecx
je 0x10033f61
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esi]
cmp dword [esp + 0x14], eax
jne 0x10033ed4
mov dword [esp + 0x10], esi
jmp 0x10033f34
push eax
push 1
push 0x40
call ebx
test eax, eax
jne 0x10033f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10033f20
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x10033f34
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10033f34
push str.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10033f34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x10033f57
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x10033ec6
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
test eax, eax
jne 0x10033f75
mov ecx, dword [edi]
add ecx, 8
call fcn.10033cf0
test eax, eax
je 0x10033f75
mov edx, dword [esp + 0xc]
mov dword [eax], edx
pop edi
pop esi
add esp, 8
ret
Function at 0x10033f90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051570
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100668d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
jne 0x10033fdc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x10033fe9
mov dword [ebp - 0x14], ebx
jmp 0x10033ffb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10034095
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, ebx
je 0x10033fc8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10033fc8
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.10033e70
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x10034038
push 0x1005f1e0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.1003a9b9
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x1003404e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x10034084
push 0x1005f1e0
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 4
call fcn.1003a9b9
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10034078
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
push eax
add ecx, 8
call fcn.10033dd0
mov eax, 0x1003407e
ret
mov esi, dword [esi]
mov eax, dword [esi]
test eax, eax
je 0x10034093
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100340b0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1005159b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100668d8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.1003ac40
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x18], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1003414b
push 0x1005f1e0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.1003a9b9
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x100341c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, 0x10068544
jmp fcn.10033f90
Function at 0x100355f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10035624
push str.SetFilePointerEx__
push eax
push 0xed
push str..QHImageHlp.c
call fcn.10033ad0
add esp, 0x10
xor eax, eax
ret
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10035657
push str.ReadFile__
push eax
push 0xf0
push str..QHImageHlp.c
call fcn.10033ad0
add esp, 0x10
xor eax, eax
ret
cmp edi, dword [esp + 4]
je 0x10035679
push 0x100580d4
push 1
push 0xf2
push str..QHImageHlp.c
call fcn.10033b00
add esp, 0x10
xor eax, eax
ret
mov eax, 1
ret
Function at 0x10036bb0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x10037d50
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x10037d80
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x10037db0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x10038f24
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058398
push 0x1004050c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
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 ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x10038faa
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x10038f82
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x10038fb0
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x10038f7a
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x10038f7a
mov al, 1
jmp 0x10038f7c
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003900f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x10068560]
test esi, esi
je 0x10039033
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x10039017
pop esi
pop ecx
ret
Function at 0x10039036
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1006856c], eax
je 0x1003904c
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x1006857c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x10039099
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x1003908a
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1003908a
push eax
call fcn.10039100
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.1003a080
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1003905b
mov dword [0x1006857c], ebx
call fcn.100390d9
mov esi, dword [0x10068578]
cmp esi, ebx
je 0x100390c6
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.1003a080
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x100390ae
pop edi
mov dword [0x10068578], ebx
mov dword [0x1006856c], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10039383
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10068570]
push esi
test eax, eax
push edi
jne 0x100393ed
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x100393eb
push 8
call fcn.1003b290
mov esi, eax
pop ecx
test esi, esi
jne 0x100393af
push 8
pop edi
jmp 0x100393ca
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100393db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1003a080
pop ecx
and dword [0x10068574], 0
mov dword [0x10068570], edi
mov eax, edi
jmp 0x100393ed
mov dword [esi + 4], edi
mov eax, dword [0x10068578]
mov dword [esi], eax
mov dword [0x10068578], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x100396aa
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x100396ce
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x100396d1
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x100396e4
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x100396eb
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x10068564]
mov ecx, dword [0x10068560]
test eax, eax
jne 0x10039705
test ecx, ecx
je 0x1003971a
mov eax, ecx
mov dword [0x10068564], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x1003971a
cmp edx, dword [ebp + 8]
jb 0x1003971a
cmp edx, dword [ebp - 4]
jbe 0x10039873
mov eax, ecx
test ecx, ecx
mov dword [0x10068564], eax
je 0x1003974a
test eax, eax
je 0x1003973e
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1003973e
cmp ecx, dword [ebp + 8]
jb 0x1003973e
cmp ecx, dword [ebp - 4]
jbe 0x10039873
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x10068564], eax
jne 0x10039729
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x100397b2
cmp edi, 0x70000000
jb 0x1003976f
cmp edi, 0x80000000
ja 0x1003976f
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100397b2
cmp dword [ebp - 0x10], ebx
jne 0x1003978a
cmp dword [ebp - 0x14], ebx
jae 0x1003979a
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x1003975a
jmp 0x100397b2
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x10068564], eax
jne 0x10039829
cmp esi, dword [ebp - 4]
jae 0x1003989a
cmp esi, 0x70000000
jb 0x100397d0
cmp esi, 0x80000000
ja 0x100397d0
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1003989a
cmp dword [ebp - 0x10], ebx
jne 0x1003981e
cmp dword [ebp - 0x14], ebx
jb 0x1003981e
mov ecx, esi
and ecx, 0xffff
je 0x10039806
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x10068564], eax
jne 0x10039829
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x100397b2
mov dword [eax], 0x52727464
mov eax, dword [0x10068564]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x10068564]
mov edx, dword [0x10068560]
mov dword [eax + 4], edx
mov eax, dword [0x10068564]
mov dword [0x10068560], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x1003985b
mov eax, dword [0x10068564]
mov dword [eax + 8], ecx
mov eax, dword [0x10068564]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x1003989a
cmp esi, dword [ebp - 4]
ja 0x1003989a
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.1003ac40
add esp, 0xc
mov eax, esi
jmp 0x1003989c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret