joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401830
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetEnumUSB
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401962
push 0x103
lea ecx, [ebp - 0x10f]
push esi
push ecx
mov byte [ebp - 0x110], al
call fcn.004097d0
add esp, 0xc
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x214]
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x110]
push edx
push eax
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x218]
cmp eax, esi
jbe 0x401950
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x401900
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x214]
push 0
push 0
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x210]
push eax
push esi
push ecx
mov dword [ebp - 0x220], 0xff
call edi
test eax, eax
jne 0x401947
lea edx, [ebp - 0x210]
push edx
call fcn.00401980
add esp, 4
cmp eax, 1
je 0x401962
inc esi
cmp esi, dword [ebp - 0x218]
jb 0x401900
invalid
invalid
Function at 0x401f60
Capabilities:
Inspect section memory permissions

Disassembly:
mov ebp, 0xffffff78
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x4021d0
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x401f86
cmp dword [eax + 0xc], ebx
je 0x402029
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004019e1
out dx, al
call 0x5d79340f
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
stc
invalid
call fcn.004019e1
loop 0x401ffe
fdivr qword [ebx]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x402095
add eax, esi
cmp dword [eax], ebx
je 0x402095
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x402090
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40207a
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x402082
cmp edx, ebx
jne 0x4021d0
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x402051
add eax, dword [eax + 4]
jmp 0x40203e
mov dword [ebp + 0xc], ebx
jmp 0x4020a0
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4020b8
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4020d6
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x402134
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40211b
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x402124
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40212e
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x402110
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40209a
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x402181
dec eax
je 0x402178
sub eax, 3
je 0x40216f
mov dword [ebp - 4], 0x40
jmp 0x40219e
mov dword [ebp - 4], 4
jmp 0x402184
mov dword [ebp - 4], 0x20
jmp 0x402184
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4021d0
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x402150
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004019e1
inc ebp
mov ah, 0x97
xchg esi, eax
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x4021dc
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402240
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esi
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.004019f1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004019a6
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004019f1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004019a6
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.004019f1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004019a6
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004019e1
sub dword [edx + 0x49], esi
pop eax
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.004019f1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004019a6
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.004019e1
mov al, byte [0x809a2804]
movsd dword es:[edi], dword [esi]
pushfd
stc
invalid
Function at 0x403fb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x404]
push 0x400
push edx
call fcn.0040464c
add esp, 0x14
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403ffe
mov esp, ebp
pop ebp
ret

Function at 0x403ffe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411014]
jne 0x404008
repz ret
jmp fcn.00404887

Function at 0x409d4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411014]
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.00407d51
and dword [ebp - 0x14], 0
cmp dword [0x412b5c], 0
mov dword [ebp - 0x18], eax
jne 0x409dff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409ea7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409ea7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x412b5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x412b60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x412b64], eax
call edi
push eax
call esi
mov dword [0x412b6c], eax
test eax, eax
je 0x409dff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x412b68], eax
mov eax, dword [0x412b68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409e58
cmp dword [0x412b6c], ecx
je 0x409e58
push eax
call esi
push dword [0x412b6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409e58
test ebx, ebx
je 0x409e58
call edi
test eax, eax
je 0x409e4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409e4f
test byte [ebp - 8], 1
jne 0x409e58
or dword [ebp + 0x10], 0x200000
jmp 0x409e8b
mov eax, dword [0x412b60]
cmp eax, dword [ebp - 0x18]
je 0x409e8b
push eax
call esi
test eax, eax
je 0x409e8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409e8b
mov eax, dword [0x412b64]
cmp eax, dword [ebp - 0x18]
je 0x409e8b
push eax
call esi
test eax, eax
je 0x409e8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x412b5c]
call esi
test eax, eax
je 0x409ea7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409ea9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ffe
leave
ret
Function at 0x10003f7f
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x10004435
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10004443
or eax, eax
ret

Function at 0x1000d8d8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100c21b8
call fcn.100c0df0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.10001d16
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.10001d16
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov al, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
mov al, byte [edi + 0x2d]
mov byte [esi + 0x2d], al
mov al, byte [edi + 0x2e]
mov byte [esi + 0x2e], al
mov al, byte [edi + 0x2f]
mov byte [esi + 0x2f], al
mov al, byte [edi + 0x30]
mov byte [esi + 0x30], al
mov al, byte [edi + 0x31]
mov byte [esi + 0x31], al
mov ax, word [edi + 0x32]
mov word [esi + 0x32], ax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10017522
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
xor ebx, ebx
push 0x3c
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov ax, word [edi]
mov word [esi + 0x10], ax
mov ax, word [edi + 2]
mov word [esi + 0x12], ax
mov eax, dword [edi + 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov eax, dword [edi + 8]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x20], eax
mov ax, word [edi + 0x18]
mov word [esi + 0x14], ax
movzx eax, word [edi + 0x1a]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
mov eax, dword [edi + 0x20]
mov dword [esi + 0x44], eax
lea eax, [edi + 0x28]
push eax
lea eax, [esi + 0x4c]
push eax
call sub.MSVCRT.dll_memcpy
mov ax, word [esi + 0x10]
add esp, 0xc
and ax, 0xf000
cmp ax, 0x8000
jne 0x100175a4
mov eax, dword [edi + 0x6c]
or dword [esi + 0x18], ebx
or dword [esi + 0x1c], eax
movzx eax, word [edi + 0x74]
or dword [esi + 0x38], ebx
cdq
or dword [esi + 0x3c], eax
mov ax, word [edi + 0x78]
shl ax, 0x10
or word [esi + 0x12], ax
mov ax, word [edi + 0x7a]
shl ax, 0x10
or word [esi + 0x14], ax
mov eax, dword [esp + 0x14]
mov cx, word [eax + 0x48]
mov eax, 0x80
cmp cx, ax
jbe 0x1001761a
mov dx, word [edi + 0x80]
movzx ebx, dx
add ebx, eax
movzx eax, cx
cmp ebx, eax
jle 0x100175f0
xor al, al
jmp 0x1001761c
cmp dx, 0x1c
jb 0x1001761a
mov eax, dword [edi + 0x88]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x8c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x90]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x94]
mov dword [esi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
ret 8

Function at 0x1001843a
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
mov eax, ecx
jbe 0x10018469
push edi
movzx ecx, byte [esi + edx]
mov edi, eax
and edi, 0xff
xor ecx, edi
shr eax, 8
movzx ecx, word [ecx*2 + 0x100e77e0]
xor eax, ecx
inc esi
cmp esi, dword [esp + 0xc]
jb 0x10018446
pop edi
pop esi
ret 4
Function at 0x1001a10c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100c2c09
call fcn.100c0df0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100cb96c
mov dword [esi + 4], 0x100cdf3c
mov dword [esi + 8], 0x100cb750
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x60], eax
push fcn.10044d08
push 0x1001a293
push 6
lea eax, [esi + 0x160]
push 8
push eax
mov byte [ebp - 4], 6
call fcn.100c10d3
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100cdf08
mov dword [esi + 4], 0x100cdeec
mov dword [esi + 8], 0x100cdedc
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10023a39
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
test edi, edi
mov ax, word [esi]
jbe 0x10023a69
push ebx
movzx ecx, byte [edx]
movzx ebx, al
xor ecx, ebx
xor ebx, ebx
mov bl, ah
mov ax, word [ecx*2 + 0x100e79e4]
xor ax, bx
inc edx
dec edi
jne 0x10023a4d
pop ebx
mov word [esi], ax
pop edi
pop esi
ret 8

Function at 0x10028334
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100c38ee
call fcn.100c0df0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100cb96c
mov dword [esi + 4], 0x100cbbe4
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.10002417
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100cf520
mov dword [esi + 4], 0x100cf510
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1002c6a2
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100c3c4f
call fcn.100c0df0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [edi + 4]
push eax
call fcn.10002b01
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.10015c7b
mov al, byte [edi + 0x14]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x14], al
mov al, byte [edi + 0x15]
mov byte [esi + 0x15], al
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1002c73d
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x100c3c7d
call fcn.100c0df0
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [esi]
lea ecx, [ebx + 0x18]
mov dword [ebx], eax
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.1002c7dc
and dword [ebp - 4], 0
lea eax, [esi + 0x24]
push eax
lea ecx, [ebx + 0x24]
call fcn.1002c899
lea eax, [esi + 0x30]
lea ecx, [ebx + 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.1002c983
mov eax, dword [ebp + 8]
push 8
add esi, 0x40
lea edi, [ebx + 0x40]
pop ecx
add eax, 0x60
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebx + 0x60]
mov byte [ebp - 4], 2
call fcn.10015c7b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10035375
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x14
pop eax
cmp edx, eax
jb case.0x10035480.8
mov esi, dword [ebp + 8]
mov di, word [esi]
mov word [ecx], di
mov di, word [esi + 2]
mov bx, word [ecx]
mov word [ecx + 2], di
mov di, word [esi + 4]
mov word [ecx + 4], di
mov di, word [esi + 6]
mov word [ecx + 6], di
xor edi, edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x18], edi
cmp bx, 2
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x1c], edi
je 0x100354d9
cmp bx, 9
je 0x100354d3
cmp bx, 1
jne 0x10035401
cmp edx, 0x20
jb case.0x10035480.8
mov eax, dword [esi + 0x10]
push 0x20
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edi
movzx eax, word [esi + 0x18]
cdq
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
movzx eax, word [esi + 0x1a]
mov dword [ecx + 0xc], eax
pop eax
jmp 0x10035551
cmp bx, 8
jne 0x1003546a
push 0x28
pop eax
cmp edx, eax
jb case.0x10035480.8
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edi
mov edx, dword [esi + 0x18]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edi
movzx edx, word [esi + 0x20]
movzx ebx, word [esi + 0x22]
cmp edx, edi
mov dword [ecx + 0xc], ebx
jbe 0x10035551
lea ecx, [eax + 0xc]
cmp ecx, dword [ebp + 0xc]
ja case.0x10035480.8
mov ecx, dword [eax + esi + 8]
lea eax, [eax + ecx + 0xd]
cmp eax, dword [ebp + 0xc]
ja case.0x10035480.8
cmp ecx, 0x400
ja case.0x10035480.8
inc edi
cmp edi, edx
jb 0x10035437
jmp 0x10035551
movzx edx, bx
add edx, 0xfffffffd
cmp edx, 0xb
ja case.0x10035480.8
movzx edx, byte [edx + 0x10035568]
jmp dword [edx*4 + 0x10035558]
cmp dword [ebp + 0xc], 0x18
jb case.0x10035480.8
mov esi, dword [esi + 0x14]
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], edi
lea eax, [esi + 0x18]
cmp dword [ebp + 0xc], eax
jb case.0x10035480.8
cmp esi, 0x40000000
jbe case.0x10035480.6
jmp case.0x10035480.8
push 0x18
pop eax
cmp dword [ebp + 0xc], eax
jb case.0x10035480.8
cmp bx, 8
jb 0x10035551
add eax, 4
cmp dword [ebp + 0xc], eax
jb case.0x10035480.8
jmp 0x10035551
cmp bx, 2
jne 0x10035500
cmp edx, 0x20
jb case.0x10035480.8
mov eax, dword [esi + 0x10]
push 0x20
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edi
mov eax, dword [esi + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edi
jmp 0x1003552b
cmp edx, 0x38
jb case.0x10035480.8
mov eax, dword [esi + 0x10]
push 0x38
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x2c]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 0xc], eax
pop esi
push dword [ebp + 0x10]
call fcn.1003532d
push edi
push 4
push edx
push eax
call fcn.100c0f80
xor ecx, ecx
add eax, esi
adc edx, ecx
cmp edx, ecx
ja case.0x10035480.8
jb 0x10035551
cmp eax, dword [ebp + 0xc]
jbe 0x10035551
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc