joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f6b9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100974fc], ebx
push esi
push edi
jne 0x1003f739
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003f774
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x100974fc], eax
je 0x1003f774
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10097500], eax
call esi
cmp dword [0x10097300], 2
mov dword [0x10097504], eax
jne 0x1003f739
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1009750c], eax
je 0x1003f739
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10097508], eax
mov eax, dword [0x10097508]
test eax, eax
je 0x1003f77e
call eax
test eax, eax
je 0x1003f765
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1009750c]
test eax, eax
je 0x1003f765
test byte [ebp - 8], 1
jne 0x1003f77e
cmp dword [0x1009730c], 4
jb 0x1003f778
or byte [ebp + 0x12], 0x20
jmp 0x1003f79d
xor eax, eax
jmp 0x1003f7ad
or byte [ebp + 0x12], 4
jmp 0x1003f79d
mov eax, dword [0x10097500]
test eax, eax
je 0x1003f79d
call eax
mov ebx, eax
test ebx, ebx
je 0x1003f79d
mov eax, dword [0x10097504]
test eax, eax
je 0x1003f79d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100974fc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003fe23
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003fe51
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x1003fe56
cmp eax, 1
je 0x1003fe56
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1003fe5a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1005392c]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x1003fed2
push ebx
call fcn.1003fe23
test eax, eax
pop ecx
jne 0x1003fea1
call fcn.10038161
mov dword [eax], 0xf
call fcn.10038158
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.100341e0
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x1003fee4
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1003fe94
inc eax
cmp eax, 0x104
ja 0x1003fe94
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x1003ff1c
cmp eax, dword [ebp + 0x10]
jg 0x1003feff
mov eax, dword [ebp + 0x10]
push eax
call fcn.1003574b
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x1003ff31
call fcn.10038158
mov dword [eax], 0xc
jmp 0x1003fe94
cmp eax, dword [ebp + 0x10]
jle 0x1003ff31
call fcn.10038158
mov dword [eax], 0x22
jmp 0x1003fe94
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.10035050
pop ecx
pop ecx
jmp 0x1003fe96
Function at 0x10041313
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1004ac00
call fcn.10033db0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x100975cc], edi
jne 0x10041357
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10041342
mov dword [0x100975cc], ebx
jmp 0x10041357
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10041357
mov dword [0x100975cc], 2
mov eax, dword [0x100975cc]
cmp eax, ebx
jne 0x10041377
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1004143a
cmp eax, 2
je 0x10041380
cmp eax, edi
jne 0x100413a8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x10041393
mov eax, dword [0x10097480]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x100413af
xor eax, eax
jmp 0x1004143a
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10035840
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x100413e2
cmp esi, edi
jne 0x100413f8
push dword [ebp - 0x20]
call fcn.1003574b
pop ecx
mov esi, eax
cmp esi, edi
je 0x100413a8
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1004142b
cmp dword [ebp + 0x14], edi
jne 0x10041415
push edi
push edi
jmp 0x1004141b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x10041437
push esi
call fcn.10033f05
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.10033deb
ret
Function at 0x10041443
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1004ac10
call fcn.10033db0
xor esi, esi
cmp dword [0x100975d0], esi
jne 0x10041487
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10041472
mov dword [0x100975d0], edi
jmp 0x10041487
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10041487
mov dword [0x100975d0], 2
mov eax, dword [0x100975d0]
cmp eax, 2
je 0x10041568
cmp eax, esi
je 0x10041568
cmp eax, 1
jne 0x100414cc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x100414b5
mov eax, dword [0x10097480]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x100414d3
xor eax, eax
jmp 0x1004157a
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.10035840
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x10041509
cmp edi, esi
jne 0x10041524
lea eax, [ebx + ebx]
push eax
call fcn.1003574b
pop ecx
mov edi, eax
cmp edi, esi
je 0x100414cc
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10041557
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x10041541
push esi
push esi
jmp 0x10041547
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x10041563
push edi
call fcn.10033f05
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1004157a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.10033deb
ret
Function at 0x10041683
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10035840
mov eax, dword [0x1005392c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1003bd45
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x100417b6
push 2
push esi
push dword [ebp + 8]
call fcn.1003bd45
add esp, 0xc
cmp eax, ebx
je 0x100417b6
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x10041756
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.10033d50
push 0x8000
push dword [ebp + 8]
call fcn.1004200f
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1004170c
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.1003b6d7
add esp, 0xc
cmp eax, 0xffffffff
je 0x1004172c
sub edi, eax
test edi, edi
jg 0x10041704
jmp 0x10041744
call fcn.10038161
cmp dword [eax], 5
jne 0x10041741
call fcn.10038158
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1004200f
pop ecx
pop ecx
jmp 0x1004179e
jge 0x1004179e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003bd45
push dword [ebp + 8]
call fcn.10040086
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x1004179e
call fcn.10038158
mov dword [eax], 0xd
call fcn.10038161
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.1003bd45
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100417b8
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.100341e0
leave
ret
Function at 0x100424c9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x100424e2
or eax, 0xffffffff
jmp 0x10042543
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1004253f
push 0x3d
push esi
call fcn.10032cc7
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1004253f
cmp esi, eax
je 0x1004253f
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x10097320]
sete cl
cmp eax, dword [0x10097324]
mov dword [ebp - 8], ecx
jne 0x10042525
mov edi, eax
call fcn.10042468
mov dword [0x10097320], eax
cmp eax, ebx
jne 0x1004257e
cmp dword [ebp + 0xc], ebx
je 0x10042547
cmp dword [0x10097328], ebx
je 0x10042547
call fcn.10041f7f
test eax, eax
je 0x1004257e
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x10042550
xor eax, eax
jmp 0x10042542
push 4
call fcn.1003574b
cmp eax, ebx
pop ecx
mov dword [0x10097320], eax
je 0x1004253f
mov dword [eax], ebx
cmp dword [0x10097328], ebx
jne 0x1004257e
push 4
call fcn.1003574b
cmp eax, ebx
pop ecx
mov dword [0x10097328], eax
je 0x1004253f
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x10097320]
call fcn.1004241b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x100425df
cmp dword [esi], ebx
je 0x100425df
lea esi, [esi + edi*4]
push dword [esi]
call fcn.10033f05
cmp dword [ebp - 8], ebx
pop ecx
jne 0x100425c2
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x10042620
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x100425b9
mov eax, edi
shl eax, 2
push eax
push dword [0x10097320]
call fcn.10035893
cmp eax, ebx
pop ecx
pop ecx
je 0x10042620
jmp 0x1004261b
cmp dword [ebp - 8], ebx
jne 0x1004268b
cmp edi, ebx
jge 0x100425ee
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x10097320]
call fcn.10035893
cmp eax, ebx
pop ecx
pop ecx
je 0x1004253f
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x10097320], eax
cmp dword [ebp + 0xc], ebx
je 0x10042675
push dword [ebp - 4]
call fcn.100330a0
inc eax
inc eax
push eax
call fcn.1003574b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x10042675
push dword [ebp - 4]
push esi
call fcn.10035050
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1004266e
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.10033f05
pop ecx
cmp dword [ebp - 8], ebx
je 0x10042683
push dword [ebp - 4]
call fcn.10033f05
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x10042542
push dword [ebp - 4]
call fcn.10033f05
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x1004254c
Function at 0x4193a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4193a9
lcall 0x5de5, 0x8b10c483
jmp loc.0096a720
Function at 0x401270
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4d5560
push 0x433100
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x4ea00c]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x4012ba
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4012f0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x40147b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x401328
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x40147b
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x401354
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x40147b
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x401377
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x401426
push 0x4bd53c
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
add eax, dword [ebp - 0x20]
push eax
call fcn.0043f520
add esp, 8
test eax, eax
jne 0x401421
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0xc], 0
je 0x4013c2
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax + 0x10], 0
jne 0x4013c4
jmp 0x401426
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x40
jb 0x4013f1
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0x727444
je 0x4013f3
jmp 0x401426
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 8], 0
jne 0x401407
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x40147b
jmp 0x40136e
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x40147b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0x678
jne 0x401751
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x401763
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4018ab
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x40
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4018a8
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40188c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
call fcn.004332a0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
call fcn.004332a0
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
je 0x401869
lea ecx, [ebp - 0x10]
push ecx
push 0x40
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401867
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x664
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.004332a0
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 1
jmp 0x401870
mov dword [ebp - 8], 1
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x401bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ecb30]
mov dword [ebp - 4], eax
jmp 0x401bd9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x401bf6
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 0x401bd0
mov esp, ebp
pop ebp
ret

Function at 0x401c00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4ecb40], eax
je 0x401c1e
mov eax, 0x10dd
jmp 0x401cff
mov eax, dword [0x4ecb50]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401c9c
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 0x401c7a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x401c7a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00401d70
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.0042e299
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x401c26
mov dword [0x4ecb50], 0
call fcn.00401d10
mov ecx, dword [0x4ecb4c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x401ce9
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.0042e299
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x401cb4
mov dword [0x4ecb4c], 0
mov dword [0x4ecb40], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402270
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 0x402285
xor eax, eax
jmp 0x4022fa
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 0x4022b2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x4022f5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x4022f3
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 0x4022ef
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 0x4022f3
xor eax, eax
jmp 0x4022fa
jmp 0x4022a9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4023a0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x4ecb44], 0
je 0x4023b9
mov eax, dword [0x4ecb44]
jmp 0x402459
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x4023cb
xor eax, eax
jmp 0x402459
push 8
call fcn.0042e7eb
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402421
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x40240a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0042e299
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x4ecb44], eax
mov dword [0x4ecb48], 0
mov eax, dword [ebp - 4]
jmp 0x402459
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x40243b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4023eb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x4ecb4c]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x4ecb4c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4