joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439308
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], eax
mov edi, dword [0x4448c4]
xor eax, eax
push ebp
push 0x439503
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0042758c
mov dword [ebp - 8], eax
mov dword [ebp - 0x234], 0x22c
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.004275ac
mov dword [ebp - 4], eax
jmp 0x4394c0
mov eax, dword [edi + 0x28]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4394af
inc esi
xor ebx, ebx
lea eax, [ebp - 0x23c]
mov edx, dword [edi + 0x28]
mov edx, dword [edx + 4]
mov edx, dword [edx + ebx*4]
call fcn.00408fec
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
call fcn.00418798
mov eax, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x210]
mov ecx, 0x104
call fcn.00408c64
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x240]
call fcn.00418798
mov edx, dword [ebp - 0x240]
pop eax
call fcn.00408e70
je 0x43948f
lea eax, [ebp - 0x24c]
mov edx, dword [edi + 0x28]
mov edx, dword [edx + 4]
mov edx, dword [edx + ebx*4]
call fcn.00408fec
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.00418798
mov eax, dword [ebp - 0x248]
push eax
lea eax, [ebp - 0x25c]
lea edx, [ebp - 0x210]
mov ecx, 0x104
call fcn.00408f9c
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x258]
call fcn.0041908c
mov edx, dword [ebp - 0x258]
lea eax, [ebp - 0x254]
call fcn.00408fec
mov eax, dword [ebp - 0x254]
lea edx, [ebp - 0x250]
call fcn.00418798
mov edx, dword [ebp - 0x250]
pop eax
call fcn.00408e70
jne 0x4394a7
push 0
mov eax, dword [ebp - 0x22c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
inc ebx
dec esi
jne 0x4393a7
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.004275cc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x439395
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43950a
lea eax, [ebp - 0x25c]
mov edx, 2
call fcn.00408228
lea eax, [ebp - 0x254]
mov edx, 8
call fcn.00408298
pop eax
jmp eax
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x403203
pop dword [ebp - 0x28]
mov eax, 0x7c32616f
add eax, 0x840dd094
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xee4033fb
sub dword [ebp - 0x38], 0x9fedeeb0
mov dword [ebp - 0x34], 0xe1f9823f
add dword [ebp - 0x34], 0x5039ca06
mov dword [ebp - 0x30], 0x8b263ba5
add dword [ebp - 0x30], 0xc1260889
mov dword [ebp - 0x2c], 0xbced872
add dword [ebp - 0x2c], 0xf431278e
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xe9a4436a
add dword [ebp - 0x38], 0x8ace25ec
mov dword [ebp - 0x34], 0x90ca19e4
add dword [ebp - 0x34], 0xb0a24791
mov dword [ebp - 0x30], 0xf8050f92
sub dword [ebp - 0x30], 0x9495a326
mov dword [ebp - 0x2c], 0x26ecf9e9
add dword [ebp - 0x2c], 0xd9130617
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x1f3384aa
add eax, 0xe10cebfe
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x371dd
push 0
call eax
mov ecx, 0xfa72d53d
add ecx, 0x58d74da
xor edx, edx
add edx, eax
mov esi, 0x63eb4bb2
add esi, 0x9c55b44e
add esi, dword [ebp - 0x28]
mov ebx, 0x101ab237
sub ebx, 0x196388e9
xor dword [ebp - 0x20], edi
mov edi, dword [esi]
sub dword [ebp - 0xc], 0x494bcbad
sub edi, ebx
mov dword [ebp - 0x24], 0x8c02f274
mov dword [edx], edi
add dword [ebp - 0x24], ecx
add edx, 0x8208337
sub edx, 0x8208333
add esi, 0xf414bb45
sub esi, 0xf414bb41
loop 0x403322
add eax, 0xfd65cde1
add eax, 0x29b4d4e
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401007
Capabilities:
Delete file
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x434718]
mov dword [ebp - 0x28], eax
mov eax, dword [0x43471c]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
call fcn.00401000
mov eax, dword [0x434720]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x434724]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x40105c
xor ecx, ecx
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x443974], 0xc
mov dword [ebp - 4], eax
jne 0x401086
push ecx
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x443974]
cmp eax, 0xfa9
jne 0x4010a2
mov dword [0x443970], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c7
push str.likavarepuyazahiwexanegiwitetu
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
and dword [0x4438c8], 0
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [0x44396c], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x443974], 0xb03
jne 0x401142
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
add ebx, 0x61c88647
sub edi, eax
dec dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
jne 0x40105a
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x4074cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43388c]
jne 0x4074d9
repz ret
jmp fcn.0040b79f

Function at 0x40b18d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405d18
and dword [ebp - 4], 0
cmp dword [0x438964], 0
mov ebx, eax
jne 0x40b23e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b2ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b2ef
push eax
call fcn.00405ca6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438964], eax
call esi
push eax
call fcn.00405ca6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x438968], eax
call esi
push eax
call fcn.00405ca6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43896c], eax
call esi
push eax
call fcn.00405ca6
pop ecx
mov dword [0x438974], eax
test eax, eax
je 0x40b23e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405ca6
pop ecx
mov dword [0x438970], eax
mov eax, dword [0x438970]
cmp eax, ebx
je 0x40b296
cmp dword [0x438974], ebx
je 0x40b296
push eax
call fcn.00405d21
push dword [0x438974]
mov esi, eax
call fcn.00405d21
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b296
test edi, edi
je 0x40b296
call esi
test eax, eax
je 0x40b28d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b28d
test byte [ebp - 0xc], 1
jne 0x40b296
or dword [ebp + 0x10], 0x200000
jmp 0x40b2cf
mov eax, dword [0x438968]
cmp eax, ebx
je 0x40b2cf
push eax
call fcn.00405d21
pop ecx
test eax, eax
je 0x40b2cf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2cf
mov eax, dword [0x43896c]
cmp eax, ebx
je 0x40b2cf
push eax
call fcn.00405d21
pop ecx
test eax, eax
je 0x40b2cf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438964]
call fcn.00405d21
pop ecx
test eax, eax
je 0x40b2ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b2f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x29807350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x29877b48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x29807376
xor eax, eax
jmp 0x29807433
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x29807398
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x29807398
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x29807433
cmp dword [esi + 0x4c], 0
je 0x29807431
call fcn.29806b4d
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x298073c2
push dword [esi + 0x4c]
push eax
call fcn.2981e5cc
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x29807431
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x298073ff
sub eax, 1
je 0x298073ff
dec eax
sub eax, 1
jne 0x29807431
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x298073b4
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x29807423
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x29807431
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x29807433
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.29801ca0
leave
ret 4
Function at 0x2981e5cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x2981e5db
pop dword [ebp - 0x3c]
mov eax, 0xa6aeac66
add eax, 0x82d33975
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x21c3e30c
add dword [ebp - 0x4c], 0x2c8e623f
mov dword [ebp - 0x48], 0xc0f9ceb5
sub dword [ebp - 0x48], 0x8ec68270
mov dword [ebp - 0x44], 0xe7589f86
sub dword [ebp - 0x44], 0x9b0c5b58
mov dword [ebp - 0x40], 0xb30cc59
add dword [ebp - 0x40], 0xf4cf33a7
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xf08d2705
add eax, 0x38f859bb
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x67829c66
add dword [ebp - 0x4c], 0xcefccf0
mov dword [ebp - 0x48], 0xa44ddf47
add dword [ebp - 0x48], 0x9d1e822e
mov dword [ebp - 0x44], 0xc78e58ea
add dword [ebp - 0x44], 0x9be11382
mov dword [ebp - 0x40], 0x8d15b4c
add dword [ebp - 0x40], 0xf72ea4b4
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x49000
push 0
call eax
mov ecx, 0xf50e5ee0
add ecx, 0xaf1ed47
xor esi, esi
add esi, eax
mov edx, 0x29897400
add edx, dword [ebp - 0x3c]
mov ebx, 0x1188ae06
add ebx, 0x732d6c2a
add dword [ebp - 0x10], ecx
mov edi, dword [edx]
mov dword [ebp - 0x1c], 0xd7e461bc
xor edi, ebx
sub dword [ebp - 4], esi
mov dword [esi], edi
sub dword [ebp - 0x2c], 0xbe1abc7a
add esi, 0x48b2ff1d
add esi, 0xb74d00e7
add edx, 0xe0f8b51f
sub edx, 0xe0f8b51b
loop 0x2981e6f4
add eax, 0xe105b060
add eax, 0x1efb730f
mov ebx, eax
add eax, 5
mov ecx, 0x797178f7
add ecx, 0xb00e8709
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x29827184
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x29855122
call fcn.298516be
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x298273a5
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.2981e5cc
add esp, 0x10
test eax, eax
js 0x2982739f
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x29827228
push edi
call fcn.298281ed
pop ecx
test al, al
je 0x29827228
mov eax, edi
call fcn.29851dd0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x2982723a
push edi
lea ecx, [ebp - 0x424]
call fcn.2981e5cc
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.2981e5cc
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x2982739f
push 0x60
push ebx
push eax
call fcn.29828560
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x29827292
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.29828560
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x29827292
call fcn.29825408
mov ebx, eax
jmp 0x2982736e
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x298272b9
call fcn.29825408
jmp 0x29827361
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x298272af
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x298272ec
mov ebx, 0x8007000e
jmp 0x29827363
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.2981e5cc
jmp 0x29827312
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x298272e5
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.2981e5cc
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.2981e5cc
mov ebx, eax
test edi, edi
je 0x2982736e
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x29827387
lea ecx, [ebp - 0x418]
call fcn.29825fb4
or dword [ebp - 4], 0xffffffff
jmp 0x29827397
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x2982738d
mov eax, ebx
jmp 0x298273d3
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x298273ba
lea ecx, [ebp - 0x418]
call fcn.29825fb4
or dword [ebp - 4], 0xffffffff
jmp 0x298273ca
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x298273c0
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.29851676
ret 0x10
Function at 0x100010a0
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.10001240
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10001164
cmp dword [ebp - 4], 0x50000000
jb 0x100010e1
cmp dword [ebp - 4], 0x80000000
ja 0x100010e1
mov dword [ebp - 4], 0x4fff0000
jmp 0x100010ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10001107
jmp 0x10001164
cmp dword [ebp - 0x14], 0x10000
jne 0x1000114a
cmp dword [ebp - 0x18], 0x10000
jb 0x1000114a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000113d
mov eax, dword [ebp - 8]
jmp 0x10001166
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000115f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10001240
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100010ba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10001170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10001270
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000122c
cmp dword [ebp - 4], 0x50000000
jb 0x100011ac
cmp dword [ebp - 4], 0x80000000
ja 0x100011ac
mov dword [ebp - 4], 0x80010000
jmp 0x10001185
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100011d2
jmp 0x1000122c
cmp dword [ebp - 0x14], 0x10000
jne 0x10001215
cmp dword [ebp - 0x18], 0x10000
jb 0x10001215
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10001208
mov eax, dword [ebp - 8]
jmp 0x1000122e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10001227
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10001270
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10001185
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100019a0
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 0x100019b5
xor eax, eax
jmp 0x10001a2a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x100019e2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10001a25
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10001a23
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x10001a1f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10001a23
xor eax, eax
jmp 0x10001a2a
jmp 0x100019d9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10001bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1000f370]
mov dword [ebp - 4], eax
jmp 0x10001c09
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10001c26
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 0x10001c00
mov esp, ebp
pop ebp
ret
Function at 0x10002070
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1000f380], eax
je 0x1000208e
mov eax, 0x10dd
jmp 0x1000216f
mov eax, dword [0x1000f390]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000210c
lea ecx, [ebp - 0x1c]
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 0x100020ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100020ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001710
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 - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000a3cc
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10002096
mov dword [0x1000f390], 0
call fcn.10001a30
mov ecx, dword [0x1000f38c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002159
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000a3cc
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10002124
mov dword [0x1000f38c], 0
mov dword [0x1000f380], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1000f384], 0
je 0x10002679
mov eax, dword [0x1000f384]
jmp 0x10002719
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000268b
xor eax, eax
jmp 0x10002719
push 8
call fcn.10009cee
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100026e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100026ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000a3cc
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1000f384], eax
mov dword [0x1000f388], 0
mov eax, dword [ebp - 8]
jmp 0x10002719
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100026fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100026ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1000f38c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1000f38c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4