joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42a916]
xorps xmm0, xmm0
push ebx
push esi
cdq
push edi
mov edi, eax
mov byte [ebp - 1], 0
mov ebx, edx
movlpd qword [ebp - 0xc], xmm0
add edi, 0x83aa6260
push 0
adc ebx, 0
call sub.cvirte.dll_time
add esp, 4
test ebx, ebx
jl 0x40673c
jg 0x4066ff
cmp edi, eax
jbe 0x40673c
mov esi, dword [ebp - 0xc]
sub edi, eax
mov eax, dword [ebp - 8]
mov ecx, 0x3e8
sbb ebx, 0
nop
add esi, edi
adc eax, ebx
sub ecx, 1
jne 0x406710
test eax, eax
jg 0x406735
jl 0x40673c
cmp esi, 0x927c0
jb 0x40673c
test eax, eax
jl 0x406748
jg 0x406735
cmp esi, 0xfc5d36bf
jb 0x406748
mov esi, 0xfc5d36bf
jmp 0x406748
mov dword [ebp - 8], 0
mov esi, 0x927c0
call fcn.00406320
test eax, eax
je 0x40675b
push 0
call fcn.00407140
add esp, 4
push 0x4064f0
push esi
push 0
push 0
call dword [0x42c084]
mov dword [0x42c060], eax
test eax, eax
jne 0x406780
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
je 0x4067bb
call edi
push eax
lea eax, [ebp - 0x10c]
push str.CVI_Demo_Exe__x
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x406774
push 0x104
push 0x42c088
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4067f3
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ecx + str.Unknown_DLL_EXE]
lea ecx, [ecx + 1]
mov byte [ecx + 0x42c087], al
test al, al
jne 0x4067e0
call edi
push eax
lea eax, [ebp - 0x10c]
push str.CVI_Demo_Last_Time_Timer_Called___d
push eax
call esi
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call fcn.004070f0
add esp, 0x24
mov dword [0x42c064], eax
test eax, eax
je 0x406774
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, byte [ebp - 1]
cmp eax, 0xb7
push 0
push 0
push 0
push 2
push dword [0x42c064]
mov esi, 1
cmovne ebx, esi
call fcn.00407220
add esp, 0x14
mov dword [0x42c068], eax
test eax, eax
jne 0x406869
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x40688e
call fcn.00406320
test eax, eax
je 0x406880
push 0
call fcn.00407140
add esp, 4
call dword [0x42c070]
mov ecx, dword [0x42c068]
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4072b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x42c444], 0
je 0x4072cb
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x108]
push str.National_Instruments_LabWindows_CVI_Startup_SDK_stubs__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x407304
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x42c444], 0
jne 0x40733a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x42c444], eax
test eax, eax
jne 0x40733a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42c444], eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x42c444], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x406037
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x406046
pop dword [ebp - 0x18]
mov eax, 0x406046
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x69ba5a1e
sub dword [ebp - 0x28], 0x1b6814d3
mov dword [ebp - 0x24], 0x118e91b8
sub dword [ebp - 0x24], 0xdf5b4573
mov dword [ebp - 0x20], 0x7cc1b68
add dword [ebp - 0x20], 0x448028c6
mov dword [ebp - 0x1c], 0xcacfb02b
sub dword [ebp - 0x1c], 0xcacfb02b
lea eax, [ebp - 0x28]
push eax
mov eax, 0x6bddcee7
add eax, 0x9463016d
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x50142d12
sub dword [ebp - 0x28], 0xdba1c3bc
mov dword [ebp - 0x24], 0x641894c6
sub dword [ebp - 0x24], 0x22ac3351
mov dword [ebp - 0x20], 0x1f17c796
sub dword [ebp - 0x20], 0xbba85b2a
mov dword [ebp - 0x1c], 0x7edb9f70
add dword [ebp - 0x1c], 0x81246090
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xc39050f2
add eax, 0x3cb07f5a
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3be23
push 0
call eax
mov ecx, 0x3d1104b2
add ecx, 0xc2ef4c87
xor esi, esi
add esi, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x18]
mov edx, 0x143da0ab
add edx, 0xf69d9ab1
add dword [ebp - 0xc], 0x3f4f90dd
mov ebx, dword [edi]
xor dword [ebp - 4], esi
sub ebx, edx
mov dword [esi], ebx
mov dword [ebp - 0xc], 0x52e3a923
add esi, 4
add edi, 0x1f6f0c8e
add edi, 0xe090f376
loop 0x40615f
add eax, 0x2683be02
sub eax, 0x2682864b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
or dword [esi + 0x2c], 0x100
or eax, 0xffffffff
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x1108]
push eax
lea ebx, [edi + 0x110c]
push ebx
push str.RemCom_stdout
lea edx, [ebp - 0x20]
push str..pipe_s_s_d
push 0x40cdc8
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], edx
mov dword [ebp - 4], 1
call fcn.00401856
mov ecx, dword [edi + 0x1108]
push ecx
push ebx
push str.RemCom_stdin
push str..pipe_s_s_d
push 0x40ced0
call fcn.00401856
mov edx, dword [edi + 0x1108]
push edx
push ebx
push str.RemCom_stderr
push str..pipe_s_s_d
push 0x40cfd8
call fcn.00401856
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
add esp, 0x3c
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x40cdc8
call edi
lea ecx, [ebp - 0xc]
push ecx
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x40cfd8
mov dword [esi + 0x3c], eax
call edi
lea edx, [ebp - 0xc]
push edx
push 0xffffffffffffffff
push 0
push 0
push 0xff
mov dword [esi + 0x40], eax
push 4
push 1
push 0x40ced0
call edi
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x38], eax
cmp ecx, 0xffffffff
je 0x401155
cmp dword [esi + 0x40], 0xffffffff
je 0x401155
cmp eax, 0xffffffff
je 0x401155
mov edi, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
push ecx
call edi
mov eax, dword [esi + 0x38]
push 0
push eax
call edi
mov ecx, dword [esi + 0x40]
push 0
push ecx
call edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 0x40]
push edx
call edi
mov eax, dword [esi + 0x38]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401180
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.004018f0
lea ecx, [ebp - 0x160]
push ecx
push esi
mov dword [ebp - 0x160], 0x44
call fcn.00401000
add esp, 0x14
test eax, eax
jne 0x4011de
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018da
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea edx, [ebp - 0x108]
push str.cmd.exe__q__c___s_
push edx
mov dword [edi], 0
mov dword [ebp - 0x10c], 0
call fcn.00401856
movsx eax, byte [esi + 0x1000]
add esp, 0xc
lea ecx, [esi + 0x1000]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x160]
push edx
push eax
mov eax, dword [esi + 0x1104]
push 0
or eax, 0x8000000
push eax
push 1
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40128c
mov eax, dword [ebp - 0x11c]
mov dword [edi], 0
cmp dword [esi + 0x1210], 0
mov ebx, eax
jne 0x401296
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018da
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004018da
mov esp, ebp
pop ebp
ret
Function at 0x4018da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4018e4
repz ret
jmp fcn.00402e07

Function at 0x406b94
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402fd7
and dword [ebp - 0x14], 0
cmp dword [0x40dd54], 0
mov dword [ebp - 0x18], eax
jne 0x406c47
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406cef
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406cef
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40dd54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40dd58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40dd5c], eax
call edi
push eax
call esi
mov dword [0x40dd64], eax
test eax, eax
je 0x406c47
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40dd60], eax
mov eax, dword [0x40dd60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406ca0
cmp dword [0x40dd64], ecx
je 0x406ca0
push eax
call esi
push dword [0x40dd64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406ca0
test ebx, ebx
je 0x406ca0
call edi
test eax, eax
je 0x406c97
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406c97
test byte [ebp - 8], 1
jne 0x406ca0
or dword [ebp + 0x10], 0x200000
jmp 0x406cd3
mov eax, dword [0x40dd58]
cmp eax, dword [ebp - 0x18]
je 0x406cd3
push eax
call esi
test eax, eax
je 0x406cd3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406cd3
mov eax, dword [0x40dd5c]
cmp eax, dword [ebp - 0x18]
je 0x406cd3
push eax
call esi
test eax, eax
je 0x406cd3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40dd54]
call esi
test eax, eax
je 0x406cef
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406cf1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004018da
leave
ret
Function at 0x40e174
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100338c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0xc]
lea eax, [esp + 0x44]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
call fcn.004067b4
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea eax, [esp + 0xc]
lea edx, [esp + 8]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], edx
call fcn.004067b4
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x44]
mov dword [ecx], edx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00422e44
test al, al
je 0x40e222
lea edx, [esp + 0x14]
push edx
push 8
mov ecx, esi
call fcn.0040e304
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x40e233
push eax
call fcn.00429a21
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp eax, edi
pop edi
pop esi
je 0x40e252
push eax
call fcn.00429a21
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x40e574
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100338c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0xc]
lea eax, [esp + 0x44]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
call fcn.004067b4
lea eax, [esp + 0xc]
lea edx, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], edx
call fcn.004067b4
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
mov dword [esp + 0x10], 2
call fcn.004067b4
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.00422e44
test al, al
je 0x40e640
lea ecx, [esp + 0x14]
push ecx
push 0xa
mov ecx, esi
call fcn.0040e304
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x40e651
push eax
call fcn.00429a21
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp eax, edi
pop edi
pop esi
je 0x40e670
push eax
call fcn.00429a21
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x40f4a4
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10033988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x34]
push edi
mov dword [esp + 0xc], 0x10036408
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x2c], 0
jne 0x40f52b
mov edi, dword [esi + 4]
mov eax, dword [edi + 4]
lea edx, [esp + 0xc]
push edx
push eax
push edi
mov ecx, esi
call fcn.0040f134
push 1
mov ecx, esi
mov ebx, eax
call fcn.0040f334
mov dword [edi + 4], ebx
mov ecx, dword [ebx + 4]
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
mov ebx, dword [eax + 0x18]
mov edi, edx
sub edi, ebx
cmp edi, 0x1770
jbe 0x40f597
mov edx, dword [eax + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [eax + 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov ecx, esi
mov dword [esi + 0x18], edx
call fcn.0040f174
mov edi, dword [esi + 4]
mov ecx, dword [edi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0040f134
push 1
mov ecx, esi
mov ebx, eax
call fcn.0040f334
mov dword [edi + 4], ebx
mov edx, dword [ebx + 4]
pop edi
pop esi
mov dword [edx], ebx
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov eax, dword [ecx]
sub edx, dword [eax + 0x18]
cmp edx, 0x1770
ja 0x40f5c4
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0040f3d4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0040f414
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x42188e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
push ebx
push esi
push edi
je 0x4219a4
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4219a4
xor esi, esi
xor ebx, ebx
xor edx, edx
test edi, edi
jbe 0x4219a0
mov eax, edi
sub eax, edx
cmp eax, 2
jb 0x4218cf
cmp byte [edx + ecx], 0xd
jne 0x4218cf
cmp byte [edx + ecx + 1], 0xa
je 0x42190a
mov al, byte [edx + ecx]
cmp al, 0xa
je 0x42190a
cmp al, 0x3d
jne 0x4218e4
inc ebx
cmp ebx, 2
ja 0x4219a4
cmp al, 0x7f
ja 0x4219a4
movzx eax, al
mov al, byte [eax + 0x10036920]
cmp al, 0x7f
je 0x4219a4
cmp al, 0x40
jae 0x421909
test ebx, ebx
jne 0x4219a4
inc esi
inc edx
cmp edx, edi
jb 0x4218b9
test esi, esi
je 0x4219a0
mov ecx, dword [ebp + 0xc]
lea eax, [esi + esi*2]
lea eax, [eax + eax + 7]
shr eax, 3
cmp dword [ecx], eax
jae 0x42192e
mov dword [ecx], eax
push 0xfffffffffffffff0
jmp 0x4219a6
mov ecx, dword [ebp + 8]
push 3
xor ebx, ebx
xor esi, esi
test edx, edx
pop edi
jbe 0x421998
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0xd
je 0x421990
cmp al, 0xa
je 0x421990
movzx eax, al
movzx eax, byte [eax + 0x10036920]
xor edx, edx
cmp al, 0x40
sete dl
shl ebx, 6
and eax, 0x3f
or eax, ebx
mov ebx, eax
sub edi, edx
inc esi
cmp esi, 4
jne 0x421990
xor esi, esi
test edi, edi
jbe 0x42197b
shr eax, 0x10
mov byte [ecx], al
inc ecx
cmp edi, 1
jbe 0x421988
mov eax, ebx
shr eax, 8
mov byte [ecx], al
inc ecx
cmp edi, 2
jbe 0x421990
mov byte [ecx], bl
inc ecx
inc dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x42193f
sub ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
jmp 0x4219a7
push 0xffffffffffffffee
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42db87
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x42dbb5
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x42dbbc
cmp ebx, dword [eax + 4]
jae 0x42dbbc
xor eax, eax
jmp 0x42ddac
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42dbcd
xor eax, eax
inc eax
jmp 0x42ddab
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42dbe3
cmp ecx, edx
jae 0x42dd28
cmp dword [eax + 4], 0
je 0x42dbec
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42dbd4
cmp dword [ebp + 8], 0
je 0x42dc0e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42dd28
cmp eax, esi
jae 0x42dd28
mov eax, dword [0x1003fd78]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42dc33
cmp dword [esi*4 + 0x1003fd80], edi
je 0x42dd2c
inc esi
cmp esi, eax
jl 0x42dc21
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x10036094]
test eax, eax
je 0x42dda8
cmp dword [ebp - 8], 0x1000000
jne 0x42dda8
test byte [ebp - 0xc], 0xcc
je 0x42dcb1
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42dda8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42dda8
cmp word [eax + 0x18], 0x10b
jne 0x42dda8
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42dda8
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42dcb1
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42dcb1
test byte [ecx + 0x27], 0x80
jne 0x42dd28
push 1
push 0x1003fdc0
call dword [0x10036070]
test eax, eax
jne 0x42dbc5
mov ecx, dword [0x1003fd78]
test ecx, ecx
mov edx, ecx
jle 0x42dce5
lea eax, [ecx*4 + 0x1003fd7c]
cmp dword [eax], edi
je 0x42dce5
dec edx
sub eax, 4
test edx, edx
jg 0x42dcd9
test edx, edx
jne 0x42dd16
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42dcf2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42dd0a
lea eax, [edx*4 + 0x1003fd80]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42dcf8
cmp ecx, 0x10
jge 0x42dd16
inc ecx
mov dword [0x1003fd78], ecx
push 0
push 0x1003fdc0
call dword [0x10036070]
jmp 0x42dbc5
xor eax, eax
jmp 0x42ddab
test esi, esi
jle 0x42dbc5
mov ebx, dword [0x10036070]
push 1
push 0x1003fdc0
call ebx
test eax, eax
jne 0x42dbc5
cmp dword [esi*4 + 0x1003fd80], edi
je 0x42dd82
mov eax, dword [0x1003fd78]
lea esi, [eax - 1]
test esi, esi
jl 0x42dd70
cmp dword [esi*4 + 0x1003fd80], edi
je 0x42dd6c
dec esi
jns 0x42dd60
test esi, esi
jge 0x42dd80
cmp eax, 0x10
jge 0x42dd7b
inc eax
mov dword [0x1003fd78], eax
lea esi, [eax - 1]
jmp 0x42dd82
je 0x42dd9a
xor ecx, ecx
test esi, esi
jl 0x42dd9a
lea eax, [ecx*4 + 0x1003fd80]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42dd88
push 0
push 0x1003fdc0
call ebx
jmp 0x42dbc5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4577b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4577de
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4577e5
cmp ebx, dword [eax + 4]
jae 0x4577e5
xor eax, eax
jmp 0x4579d5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4577f6
xor eax, eax
inc eax
jmp 0x4579d4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45780c
cmp ecx, edx
jae 0x457951
cmp dword [eax + 4], 0
je 0x457815
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4577fd
cmp dword [ebp + 8], 0
je 0x457837
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x457951
cmp eax, esi
jae 0x457951
mov eax, dword [0x7c133b68]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45785c
cmp dword [esi*4 + 0x7c133b70], edi
je 0x457955
inc esi
cmp esi, eax
jl 0x45784a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x7c12e0cc]
test eax, eax
je 0x4579d1
cmp dword [ebp - 8], 0x1000000
jne 0x4579d1
test byte [ebp - 0xc], 0xcc
je 0x4578da
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4579d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4579d1
cmp word [eax + 0x18], 0x10b
jne 0x4579d1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4579d1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4578da
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4578da
test byte [ecx + 0x27], 0x80
jne 0x457951
push 1
push 0x7c133bb0
call dword [0x7c12e000]
test eax, eax
jne 0x4577ee
mov ecx, dword [0x7c133b68]
test ecx, ecx
mov edx, ecx
jle 0x45790e
lea eax, [ecx*4 + 0x7c133b6c]
cmp dword [eax], edi
je 0x45790e
dec edx
sub eax, 4
test edx, edx
jg 0x457902
test edx, edx
jne 0x45793f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45791b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x457933
lea eax, [edx*4 + 0x7c133b70]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x457921
cmp ecx, 0x10
jge 0x45793f
inc ecx
mov dword [0x7c133b68], ecx
push 0
push 0x7c133bb0
call dword [0x7c12e000]
jmp 0x4577ee
xor eax, eax
jmp 0x4579d4
test esi, esi
jle 0x4577ee
mov ebx, dword [0x7c12e000]
push 1
push 0x7c133bb0
call ebx
test eax, eax
jne 0x4577ee
cmp dword [esi*4 + 0x7c133b70], edi
je 0x4579ab
mov eax, dword [0x7c133b68]
lea esi, [eax - 1]
test esi, esi
jl 0x457999
cmp dword [esi*4 + 0x7c133b70], edi
je 0x457995
dec esi
jns 0x457989
test esi, esi
jge 0x4579a9
cmp eax, 0x10
jge 0x4579a4
inc eax
mov dword [0x7c133b68], eax
lea esi, [eax - 1]
jmp 0x4579ab
je 0x4579c3
xor ecx, ecx
test esi, esi
jl 0x4579c3
lea eax, [ecx*4 + 0x7c133b70]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4579b1
push 0
push 0x7c133bb0
call ebx
jmp 0x4577ee
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret