joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40257b
Capabilities:
Get file attributes

Disassembly:
push 0x5c
mov eax, 0x451bdb
call fcn.00441ba8
push 0x46c374
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
inc dword [0x46c4d4]
mov dword [ebp - 0x4c], vtable.FileRemover.0
and dword [ebp - 4], 0
push dword [0x46c4c8]
and dword [ebp - 0x48], 0
mov ebx, 0x46c4bc
mov edi, ebx
lea esi, [ebp - 0x44]
call fcn.00419166
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
push dword [0x46c4cc]
mov edi, ebx
lea esi, [ebp - 0x44]
call fcn.00419166
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4025e4
cmp eax, dword [ebp - 0x44]
je 0x4025e9
call fcn.0043d798
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x40]
je 0x4026d1
lea esi, [ebp - 0x3c]
call fcn.00402c2c
test eax, eax
je 0x402606
add eax, 4
jmp 0x402608
xor eax, eax
push eax
lea eax, [ebp - 0x68]
push 0x46c3bc
push eax
call fcn.00403694
add esp, 0xc
push eax
lea edi, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401047
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401464
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x402644
lea esi, [ebp - 0x2c]
push edi
push esi
call fcn.0043dcdf
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x40265b
mov dword [ebp - 0x48], 1
jmp 0x40267d
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
je 0x402671
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040422f
jmp 0x402676
call fcn.0040420b
mov dword [ebp - 0x48], eax
cmp eax, edi
je 0x4026bb
push edi
mov byte [ebp - 4], 0
push 1
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.TString.0
call fcn.00401464
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x4026b7
call fcn.0043d798
xor eax, eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 0x10]
jb 0x4026ae
call fcn.0043d798
add dword [ebp - 0x38], 0x20
jmp 0x4025c8
mov eax, dword [eax]
jmp 0x4026a1
push edi
mov byte [ebp - 4], 0
push 1
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.TString.0
call fcn.00401464
cmp dword [ebp - 0x48], 0
je 0x40270b
push dword [0x46c4cc]
mov edi, ebx
lea esi, [ebp - 0x44]
call fcn.00419166
push dword [0x46c4c8]
lea esi, [ebp - 0x3c]
call fcn.00419166
push dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push dword [ebp - 0x44]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push eax
push ebx
call fcn.00402ed5
push 0x46c374
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 0x48]
call fcn.00441c2b
ret

Function at 0x40420b
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 1
je 0x404221
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x406726
Capabilities:
Get graphical window text

Disassembly:
push 0x4cc
mov eax, 0x452356
call fcn.00441ba8
mov esi, ecx
push 0xf03
push esi
mov dword [ebp - 0x4d8], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
xor ebx, ebx
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.0043dae0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x258]
call fcn.0040122e
mov edi, vtable.TString.0
mov dword [ebp - 0x25c], edi
lea eax, [ebp - 0x25c]
push eax
mov dword [ebp - 4], ebx
call fcn.004087cb
lea eax, [ebp - 0x25c]
push eax
call fcn.0040887f
cmp dword [ebp - 0x244], ebx
jne 0x406823
push 0x88
lea ecx, [ebp - 0x23c]
call fcn.00402a20
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4067e3
lea eax, [ebp - 0x234]
push 0x10
push 0x45f1f0
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea esi, [ebp - 0x238]
mov dword [ebp - 0x23c], edi
call fcn.00401464
push ebx
push 1
lea esi, [ebp - 0x258]
mov dword [ebp - 0x25c], edi
call fcn.00401464
xor eax, eax
inc eax
call fcn.00441c2b
ret
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4068ad
push 0xa9
lea ecx, [ebp - 0x23c]
call fcn.00402a20
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x406861
lea eax, [ebp - 0x234]
push 0x10
push 0x45f1f0
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea esi, [ebp - 0x238]
mov dword [ebp - 0x23c], edi
call fcn.00401464
mov dword [ebp - 0x4d8], 1
push ebx
push 1
lea esi, [ebp - 0x258]
mov dword [ebp - 0x25c], edi
call fcn.00401464
mov eax, dword [ebp - 0x4d8]
jmp 0x40681d
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea esi, [ebp - 0x280]
call fcn.0040102d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], ebx
call fcn.004011e9
mov eax, esi
push eax
call fcn.004024ec
push 1
push dword [ebp - 0x4d8]
call dword [sym.imp.USER32.dll_EndDialog]
push ebx
push 1
lea esi, [ebp - 0x27c]
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x280], edi
call fcn.00401464
mov eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x4d8], eax
jmp 0x40688e
Function at 0x408dd7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov esi, eax
push esi
call fcn.0043d621
pop ecx
test eax, eax
ja 0x408df2
xor eax, eax
jmp 0x408ea5
push ebx
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0043dae0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
cmp byte [ebp + 0x10], bl
je 0x408e26
mov dword [ebp - 0x50], str.runas
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x58], 0x40
mov dword [ebp - 0x54], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 4], eax
cmp byte [ebp + 0x14], bl
je 0x408e98
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0x46
push dword [ebp - 0x24]
call edi
cmp eax, 0x102
jne 0x408e97
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x408e7a
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x408e66
push 0x46
push dword [ebp - 0x24]
call edi
cmp eax, 0x102
je 0x408e7a
pop edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret
Function at 0x408f1a
Capabilities:
Create directory

Disassembly:
push 0x290
mov eax, 0x45209e
call fcn.00441ba8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor ebx, ebx
lea eax, [ebp - 0x216]
push ebx
push eax
mov esi, ecx
call fcn.0043dae0
add esp, 0xc
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043ec80
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
call fcn.0041ae41
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], ebx
call fcn.00408ea8
mov eax, dword [ebp - 0x250]
sub eax, dword [ebp - 0x254]
pop ecx
sar eax, 5
pop ecx
mov dword [ebp - 0x23c], ebx
test eax, eax
jbe 0x409110
mov edi, vtable.TString.0
lea esi, [ebp - 0x238]
call fcn.0040102d
mov byte [ebp - 4], 1
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], ebx
push 0x45601c
lea eax, [ebp - 0x27c]
call fcn.0040122e
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x250]
sub eax, dword [ebp - 0x254]
sar eax, 5
cmp dword [ebp - 0x240], eax
jb 0x409000
call fcn.0043d798
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x254]
add eax, ecx
cmp eax, ebx
je 0x409017
add eax, 4
jmp 0x409019
xor eax, eax
lea ecx, [ebp - 0x27c]
push ecx
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00403694
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.004035f0
push ebx
push 1
lea esi, [ebp - 0x29c]
call fcn.00401464
push ebx
mov byte [ebp - 4], 1
push 1
lea esi, [ebp - 0x27c]
mov dword [ebp - 0x280], edi
call fcn.00401464
inc dword [ebp - 0x240]
mov eax, dword [ebp - 0x240]
add dword [ebp - 0x244], 0x20
cmp eax, dword [ebp - 0x23c]
jbe 0x408fca
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x40909d
lea eax, [ebp - 0x230]
push eax
call fcn.00408db7
pop ecx
test eax, eax
jne 0x4090db
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x4090bd
lea eax, [ebp - 0x230]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x4090db
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x248]
call fcn.00402bce
push ebx
push 1
lea esi, [ebp - 0x234]
mov dword [ebp - 0x238], edi
call fcn.00401464
mov eax, dword [ebp - 0x250]
sub eax, dword [ebp - 0x254]
inc dword [ebp - 0x23c]
sar eax, 5
cmp dword [ebp - 0x23c], eax
jb 0x408faf
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x260]
push eax
call fcn.00402b87
call fcn.00441c2b
ret
Function at 0x409d9f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x4691c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x88], eax
xor eax, eax
push 0x3e
mov word [ebp - 0x70], ax
xor ebx, ebx
lea eax, [ebp - 0x6e]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x80], edi
call fcn.0043dae0
add esp, 0xc
push 0xf4
lea eax, [ebp - 0x17c]
push ebx
push eax
mov dword [ebp - 0x180], ebx
call fcn.0043dae0
add esp, 0xc
push 0x40
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 8]
lea esi, [ebp - 0x74]
mov eax, edi
mov dword [ebp - 0x74], ebx
call fcn.0041a9cb
test al, 1
je 0x409f1c
cmp dword [ebp - 0x74], 0x40
jne 0x409f1c
mov eax, 0x5a4d
cmp ax, word [ebp - 0x70]
jne 0x409f1c
mov eax, dword [ebp - 0x34]
push ebx
cdq
push ebx
push edx
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0041aa52
test al, 1
je 0x409f1c
push 0xf8
lea eax, [ebp - 0x180]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0041a9cb
test al, 1
je 0x409f1c
cmp dword [ebp - 0x74], 0xf8
jne 0x409f1c
cmp dword [ebp - 0x180], 0x4550
jne 0x409f1c
movzx ecx, word [ebp - 0x17a]
mov esi, dword [ebp - 0x12c]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x7c], ebx
cmp ecx, ebx
jbe 0x409ef6
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x80]
lea esi, [ebp - 0x74]
call fcn.0041a9cb
test al, 1
je 0x409ee2
cmp dword [ebp - 0x74], 0x28
jne 0x409f1c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add ecx, edx
cmp ecx, dword [ebp - 0x78]
jbe 0x409ee2
mov dword [ebp - 0x78], ecx
inc dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x84]
jb 0x409e9e
mov edi, dword [ebp - 0x80]
mov esi, dword [ebp - 0x78]
test al, 1
je 0x409f1c
push ebx
push ebx
push ebx
push esi
push dword [ebp + 8]
mov eax, edi
call fcn.0041aa52
test al, 1
je 0x409f1c
mov eax, dword [ebp - 0x88]
mov dword [eax], esi
mov dword [eax + 4], ebx
xor eax, eax
inc eax
jmp 0x409f1e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d493
leave
ret 8
Function at 0x40f10c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x40f199
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0043f100
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40f159
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40f17b
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40f256
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x40f1c1
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x40f1cc
xor eax, eax
jmp 0x40f217
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x40f1e9
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.0040e005
jmp 0x40f1fa
cmp ecx, 2
jne 0x40f201
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.0040e21f
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0043f100
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x40f242
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x40f256
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40f117
pop edi
pop ebx
leave
ret
Function at 0x41a47b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4530bf
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4691c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x1c]
call fcn.0041d917
and dword [esp + 0x30], 0
mov esi, eax
call fcn.004091c2
mov eax, esi
push eax
push 0x15
push edi
call fcn.00416248
lea eax, [esp + 0x14]
call fcn.0041df6b
mov esi, eax
mov byte [esp + 0x30], 1
call fcn.004091ea
call fcn.004091c2
mov eax, esi
push eax
push 0x14
push edi
call fcn.0041628e
lea eax, [esp + 0xc]
call fcn.0041df6b
mov esi, eax
mov byte [esp + 0x30], 2
call fcn.004091ea
call fcn.004091c2
mov eax, esi
push eax
push 0x13
push edi
call fcn.0041628e
push 0x800000
call fcn.0041a291
push 0xffffffffffffffff
push 8
call fcn.00415fe8
push 0xffffffffffffffff
push 0x16
call fcn.00415fe8
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.0041dfca
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.0041dfca
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041d976
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41e5ad
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
lea edi, [eax + 0x78]
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 0xc]
xor ebx, ebx
sar esi, 2
mov dword [esp + 0x10], 0x41e418
mov dword [esp + 0x14], 0x41e423
mov dword [esp + 0x18], 0x41e42e
mov dword [esp + 0x1c], 0x41e439
mov dword [esp + 0x20], 0x41e444
mov dword [esp + 0x24], 0x41e44f
mov dword [esp + 0x28], 0x41e45a
mov dword [esp + 0x2c], 0x41e465
mov dword [esp + 0x30], 0x41e474
mov dword [esp + 0x34], 0x41e483
mov dword [esp + 0x38], 0x41e48e
mov dword [esp + 0x3c], 0x41e499
mov dword [esp + 0x40], 0x41e4a4
mov dword [esp + 0x44], 0x41e4af
mov dword [esp + 0x48], 0x41e4be
mov dword [esp + 0x4c], 0x41e4cd
mov dword [esp + 0x50], 0x41e4d8
mov dword [esp + 0x54], 0x41e4e3
mov dword [esp + 0x58], 0x41e4ee
mov dword [esp + 0x5c], 0x41e4f9
mov dword [esp + 0x60], 0x41e504
mov dword [esp + 0x64], 0x41e50f
mov dword [esp + 0x68], 0x41e51a
mov dword [esp + 0x6c], 0x41e525
mov dword [esp + 0x70], 0x41e530
mov dword [esp + 0x74], 0x41e53b
mov dword [esp + 0x78], 0x41e546
mov dword [esp + 0x7c], 0x41e551
test esi, esi
jbe 0x41e6e5
add eax, 8
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x41e6c4
call fcn.0043d798
mov eax, dword [edi + 0xc]
push dword [eax + ebx*4]
lea eax, [esp + 0x14]
push dword [esp + 0x10]
push eax
push str.Kernel32.dll
call fcn.0041e860
add esp, 0x10
inc ebx
cmp ebx, esi
jb 0x41e6b2
mov eax, edi
call fcn.0041e6f3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e860
Capabilities:
Parse pe header

Disassembly:
push 0x4c
mov eax, 0x4509f4
call fcn.00441b3f
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x41e87d
xor eax, eax
call fcn.00441c17
ret
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x41e875
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x41e875
push 4
call fcn.0043d89c
pop ecx
cmp eax, ebx
je 0x41e8a7
lea ecx, [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x41e8a9
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 1
mov esi, dword [esi + 0x80]
add esi, edi
jmp 0x41e8e9
mov eax, dword [esi + 0xc]
push dword [ebp + 8]
add eax, edi
push eax
call fcn.004416bb
pop ecx
pop ecx
test eax, eax
jne 0x41e8e6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
call fcn.004184b9
add esi, 0x14
mov dword [ebp - 0x18], esi
cmp dword [esi + 0xc], ebx
jne 0x41e8c6
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
test eax, 0xfffffffc
jne 0x41e927
cmp dword [ebp - 0x30], ebx
je 0x41e90c
push dword [ebp - 0x30]
call fcn.0043d7a8
pop ecx
xor esi, esi
push dword [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.0043d7a8
pop ecx
mov eax, esi
jmp 0x41e877
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
sub eax, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x1c
mov edi, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x30]
and dword [ebp - 0x10], 0
sar edi, 2
test edi, edi
jbe 0x41e9e7
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
sar eax, 2
cmp esi, eax
jb 0x41e96f
call fcn.0043d798
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + esi*4]
mov esi, dword [eax + 0x10]
add esi, dword [ebp + 0x14]
cmp dword [esi], 0
je 0x41e9db
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx]
cmp dword [esi], eax
je 0x41e997
add esi, 4
cmp dword [esi], 0
jne 0x41e989
jmp 0x41e9db
push 0x1c
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
lea eax, [ebp - 0x44]
push eax
push 4
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
call ebx
test eax, eax
jne 0x41e9c2
push 1
push 6
call dword [sym.imp.USER32.dll_SetLastErrorEx]
jmp 0x41e9db
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [esi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
call ebx
inc dword [ebp - 0x18]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jb 0x41e95a
add dword [ebp - 0x14], 4
dec dword [ebp - 0x1c]
jne 0x41e945
cmp dword [ebp - 0x30], 0
je 0x41ea03
push dword [ebp - 0x30]
call fcn.0043d7a8
pop ecx
mov esi, dword [ebp - 0x18]
xor ebx, ebx
jmp 0x41e90e
Function at 0x42c7bd
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453553
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4691c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
and dword [esi + 0xd8], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.0041695e
and dword [esp + 0x30], 0
lea edi, [esi + 0x78]
push edi
call fcn.0040c44e
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00416e8b
lea ebx, [esi + 0x38]
push ebx
mov ecx, edi
call fcn.00417188
push eax
mov eax, dword [esi + 0x30]
call fcn.00418bff
mov dword [esp + 0x14], eax
test al, 1
je 0x42c9ea
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00416ebc
lea edi, [esi + 0x70]
push edi
mov dword [esp + 0x34], 1
call fcn.0040c44e
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041a1cf
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0041a24d
lea ecx, [esi + 0x80]
push ecx
mov dword [esp + 0x34], 2
call fcn.0040c44e
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041a71a
mov eax, edi
call fcn.0041a248
lea ecx, [esi + 0x78]
mov dword [esi + 0x98], eax
lea edi, [esi + 0x88]
call fcn.0041719b
push eax
call fcn.0041b03c
lea ecx, [esi + 0x78]
call fcn.00417193
push eax
call fcn.00419ffc
lea ecx, [esi + 0x78]
call fcn.0041a3e2
push eax
call fcn.0041b04a
push 0x10
lea eax, [esi + 0xe8]
push 0
push eax
call fcn.0043dae0
lea edi, [esi + 0x80]
add esp, 0xc
mov ecx, edi
call fcn.0041a759
and dword [esi + 0x108], 0
mov ecx, edi
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], edx
call fcn.0041a74b
mov ecx, edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
call fcn.0041a759
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x8c]
lea edi, [esi + 0x50]
push edi
mov dword [esi + 0x64], edx
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
push eax
push dword [ebx + 8]
call dword [edx + 0x1c]
mov dword [esp + 0x14], eax
test al, 1
je 0x42c9ea
xor ebx, ebx
push ebx
push 1
push dword [edi]
lea eax, [esi + 0xa0]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
call fcn.0042e351
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004172c3
test eax, eax
jne 0x42c9a6
lea eax, [esi + 0xa0]
call fcn.0042e3d2
push dword [eax + 8]
lea eax, [esi + 0xbc]
push 3
push dword [esi + 0x54]
push eax
call fcn.0042e351
mov dword [esi + 0xdc], 1
jmp 0x42c9b8
push ebx
push 1
push dword [esi + 0x54]
lea eax, [esi + 0xbc]
push eax
call fcn.0042e351
mov ecx, edi
call fcn.0041729b
test eax, eax
je 0x42c9ce
mov ecx, dword [esi + 0x28]
push dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x10c]
push ebx
push dword [eax + 4]
push dword [eax]
mov eax, dword [esi + 0x24]
push dword [ebp + 8]
call fcn.0041aa52
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc