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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [edi + 0x14]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1069889
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
mov esi, 0x1106960
push esi
mov dword [ebp - 4], ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x106986f
push esi
push dword [edi + 0x14]
push 0x1022d0c
call fcn.010430af
add esp, 0xc
push edi
mov dword [edi + 0x18], esi
call dword [edi + 0x1c]
inc dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 8]
mov dword [ebp + 8], 0xfffa
call ebx
test eax, eax
je 0x1069843
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x106ac1e
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
call esi
cmp eax, 0xffffffff
jne 0x106ac4a
push ebx
push 0x1023180
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x106ac90
push edi
mov edi, dword [ebp + 0xc]
push edi
call esi
cmp eax, 0xffffffff
push edi
je 0x106ac65
push 0x1023150
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x106ac8f
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x106ac88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push 0x1023134
call fcn.010430af
add esp, 0x10
jmp 0x106ac8f
mov dword [ebp - 4], 1
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x106b173
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, 0x10c6040
push esi
push 0x1016188
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x106b1ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x10233a0
call fcn.010430af
add esp, 0xc
xor eax, eax
jmp 0x106b251
push edi
xor edi, edi
cmp dword [0x10bbbec], edi
mov dword [ebp - 4], edi
jbe 0x106b24d
xor esi, esi
mov eax, dword [0x10bbbe4]
add eax, esi
cmp dword [eax + 0x130], edi
je 0x106b235
push eax
call fcn.0106ac99
test eax, eax
mov eax, dword [0x10bbbe4]
jne 0x106b208
add eax, esi
push eax
push 0x1023378
call fcn.01071ac0
mov eax, dword [0x10bbbe4]
pop ecx
mov dword [esi + eax + 0x12c], 1
cmp dword [0x109a030], edi
pop ecx
je 0x106b227
xor eax, eax
jmp 0x106b250
push dword [esi + eax + 0x128]
push 0x1023354
call fcn.01071ac0
mov eax, dword [0x10bbbe4]
pop ecx
pop ecx
mov dword [esi + eax + 0x12c], edi
mov eax, dword [0x10bbbe4]
cmp dword [esi + eax + 0x134], edi
jne 0x106b204
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 0x140
cmp eax, dword [0x10bbbec]
jb 0x106b1bf
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x106b5ff
Capabilities:
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push 8
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x106b635
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x1023420
call fcn.01071ac0
pop ecx
pop ecx
mov eax, esi
jmp 0x106b6a0
push edi
push 0xe0000000
push 0x1023414
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebx
jne 0x106b66a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push 0x10233e4
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x106b698
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x106b67d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 4
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.01074953
cmp dword [ebp - 0x1c], 4
mov ebx, eax
jne 0x106b695
xor ebx, ebx
push esi
call edi
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x106b6a4
Capabilities:
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 8
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x106b6d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x10234ac
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x106b756
push ebx
push edi
push 0xe0000000
push 0x1023414
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x106b70d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x1023480
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x106b74f
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x106b735
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x1023450
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x106b74c
push 1
push 1
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.01074953
mov esi, eax
cmp esi, 1
jne 0x106b74c
xor esi, esi
push edi
call ebx
push dword [ebp - 4]
call ebx
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret

Function at 0x106b75b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1099a38]
push ebx
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x10c]
xor ebx, ebx
push eax
mov byte [ebp - 0x10c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x106b79b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1023524
jmp 0x106b7d8
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x106b7a4
sub eax, edx
add eax, 3
cmp dword [ebp + 8], 0
je 0x106b7bb
add eax, 8
jmp 0x106b7be
add eax, 7
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x106b7e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10234ec
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x106b864
lea eax, [ebp - 0x10c]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x106b7f0
cmp byte [ebx], cl
push esi
push edi
mov edx, 0x10094ec
je 0x106b829
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x106b80a
sub eax, esi
cmp byte [eax + ebx - 1], 0x5c
je 0x106b829
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x106b81d
mov esi, edx
movsw word es:[edi], word [esi]
mov edi, ebx
dec edi
cmp dword [ebp + 8], 0
je 0x106b844
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x106b832
mov esi, 0x10234e0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x106b853
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x106b844
mov esi, 0x10234d8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x106b856
mov esi, edx
movsw word es:[edi], word [esi]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
call fcn.0106bc50
leave
ret 4
Function at 0x106b91f
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x1099a38]
and dword [ebp - 0x148], 0
or dword [ebp - 0x14c], 0xffffffff
push ebx
mov dword [ebp - 4], eax
push esi
xor eax, eax
inc eax
push edi
push eax
mov dword [ebp - 0x154], eax
call fcn.0106b75b
push 0x1023740
push eax
mov dword [ebp - 0x150], eax
call fcn.0106b873
test eax, eax
mov esi, dword [sym.imp.msvcrt.dll_free]
mov dword [ebp - 0x158], eax
jne 0x106b984
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10236e8
jmp 0x106ba7a
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14c], eax
jne 0x106b9cd
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x106ba9d
cmp eax, 3
je 0x106ba9d
cmp eax, 2
je 0x106ba9d
call edi
push eax
push 0x10236a0
jmp 0x106ba7a
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [ebp - 0x144], 0x10
je 0x106ba4a
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x150]
call fcn.0106b873
test eax, eax
mov dword [ebp - 0x148], eax
je 0x106bae5
push 0x1023694
push eax
call fcn.0106b873
mov ebx, eax
test ebx, ebx
je 0x106baf3
push ebx
call edi
push ebx
call esi
mov dword [esp], 0x1023688
push dword [ebp - 0x148]
call fcn.0106b873
mov ebx, eax
test ebx, ebx
je 0x106bb04
push ebx
call edi
push ebx
call esi
push dword [ebp - 0x148]
call esi
and dword [ebp - 0x148], 0
pop ecx
pop ecx
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x106b9d3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x106ba88
call edi
push eax
push 0x1023658
call fcn.01071ac0
and dword [ebp - 0x154], 0
pop ecx
pop ecx
cmp dword [ebp - 0x14c], 0xffffffff
je 0x106ba9d
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
cmp dword [ebp - 0x150], edi
je 0x106bab0
push dword [ebp - 0x150]
call esi
pop ecx
cmp dword [ebp - 0x158], edi
je 0x106bac1
push dword [ebp - 0x158]
call esi
pop ecx
cmp dword [ebp - 0x148], edi
je 0x106bad2
push dword [ebp - 0x148]
call esi
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x154]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1023610
jmp 0x106ba7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10235cc
jmp 0x106ba7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102358c
jmp 0x106ba7a
Function at 0x106bc50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1099a38]
jne 0x106bc61
test ecx, 0xffff0000
jne 0x106bc61
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x10bbcf8], eax
mov dword [0x10bbcf4], ecx
mov dword [0x10bbcf0], edx
mov dword [0x10bbcec], ebx
mov dword [0x10bbce8], esi
mov dword [0x10bbce4], edi
mov word [0x10bbd10], ss
mov word [0x10bbd04], cs
mov word [0x10bbce0], ds
mov word [0x10bbcdc], es
mov word [0x10bbcd8], fs
mov word [0x10bbcd4], gs
pushfd
pop dword [0x10bbd08]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x10bbd0c], ecx
mov dword [0x10bbd00], eax
mov dword [0x10bbc48], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x10bbc04], eax
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [0x1099a34]
xor edi, edi
inc edi
mov dword [ebp - 4], eax
push 0
mov dword [0x10bbcfc], ecx
mov dword [0x10bbbf8], 0xc0000409
mov dword [0x10bbbfc], edi
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1023768
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret
Function at 0x106bd41
Capabilities:
Parse pe header
Terminate process

Disassembly:
pushfd
pushal
call fcn.01003826
popal
popfd
push 0x70
push 0x1023770
call fcn.0106bf63
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x106bd9d
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x106bd9d
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x106bdb5
cmp ecx, 0x20b
je 0x106bda2
mov dword [ebp - 0x1c], ebx
jmp 0x106bdc9
cmp dword [eax + 0x84], 0xe
jbe 0x106bd9d
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x106bdc3
cmp dword [eax + 0x74], 0xe
jbe 0x106bd9d
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x10c6a24], edi
mov dword [0x10c6a28], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10bbf20]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10bbf1c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10c6a2c], eax
call fcn.01048367
cmp dword [0x1099a3c], ebx
jne 0x106be26
push fcn.01048367
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0106c1f3
push 0x1009208
push 0x1009204
call sub.msvcrt.dll__initterm
mov eax, dword [0x10bbf18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10bbf14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1009200
push 0x10091f8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x106beb1
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x106be91
cmp cl, 0x22
jne 0x106be82
cmp byte [eax], 0x22
jne 0x106be9a
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x106bea5
cmp cl, 0x20
jbe 0x106be96
test byte [ebp - 0x54], 1
je 0x106bebc
movzx ecx, word [ebp - 0x50]
jmp 0x106bebf
cmp byte [eax], 0x20
jbe 0x106be9a
inc eax
mov dword [ebp - 0x20], eax
jmp 0x106beb1
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.0104a04a
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x106bedd
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x106bf19
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
Function at 0x106d611
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor eax, eax
cmp dword [ebp + 0xc], eax
push edi
mov dword [ebp - 8], eax
mov ebx, 0x8000000
mov edi, 0x80000000
je 0x106d654
push eax
push ebx
push 3
push eax
push 3
push edi
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x106d652
xor eax, eax
jmp 0x106d6c5
xor eax, eax
push eax
push ebx
push 3
push eax
push 3
push edi
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x106d6b7
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 0x10]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x106d6b4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp - 4]
push ebx
call fcn.0106d0a5
push esi
mov dword [ebp - 8], eax
call edi
cmp dword [ebp - 8], 0
jne 0x106d6b4
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call edi
cmp dword [ebp - 4], 0xffffffff
je 0x106d6c2
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x106e107
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x106e115
sub eax, ecx
mov ecx, eax
not eax
je 0x106e130
movsx edx, byte [esi]
rol eax, 3
xor eax, edx
inc esi
dec ecx
jne 0x106e124
pop esi
pop ebp
ret 4

Function at 0x106e1ef
Capabilities:
Parse pe header

Disassembly:
push 0x14
push 0x1023c78
call fcn.0106bf63
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
cmp edx, 0x200
jb 0x106e23c
mov dword [ebp - 0x20], ecx
cmp word [ecx], 0x5a4d
jne 0x106e23c
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
add ecx, edx
lea edx, [eax + 0xf8]
cmp edx, ecx
ja 0x106e23c
cmp dword [eax], 0x4550
jne 0x106e23c
cmp word [eax + 0x18], 0x10b
jne 0x106e23c
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x106e252
call fcn.0106bf9e
ret

Function at 0x106e258
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp edx, dword [ecx + 0x54]
mov dword [ebp - 4], edx
jae 0x106e26b
mov eax, edx
leave
ret
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
push esi
lea esi, [eax + ecx + 0x18]
xor eax, eax
test ebx, ebx
push edi
jbe 0x106e29f
lea ecx, [esi + 0xc]
mov edi, dword [ecx]
cmp edx, edi
jb 0x106e297
mov edx, dword [ecx + 4]
add edx, edi
mov edi, edx
mov edx, dword [ebp - 4]
cmp edx, edi
jb 0x106e2a6
inc eax
add ecx, 0x28
cmp eax, ebx
jb 0x106e283
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [eax + eax*4]
lea ecx, [esi + eax*8]
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, edx
jmp 0x106e2a1
Function at 0x106e470
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
lea ecx, [esi + eax]
push esi
lea eax, [ebp + 0x10]
push eax
push 0xb
mov dword [ebp - 4], ecx
pop edx
mov ecx, ebx
call fcn.0106e31b
mov edi, eax
test edi, edi
je 0x106e4cd
mov ecx, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
and dword [ebx + 0xd0], 0
and dword [ebx + 0xd4], 0
xor edi, edi
inc edi
mov dword [ebp - 8], edi
jmp 0x106e4d0
xor edi, edi
inc edi
push dword [ebp + 0xc]
mov edx, edi
push esi
push 0
mov ecx, ebx
call fcn.0106e31b
mov esi, eax
test esi, esi
je 0x106e584
jmp 0x106e576
mov edx, dword [esi]
test edx, edx
je 0x106e584
cmp dword [esi + 4], 0
je 0x106e566
push dword [ebp + 0xc]
and dword [esi + 4], 0
push dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 8], edi
call fcn.0106e2b6
push dword [ebp + 0xc]
mov edx, dword [esi + 0x10]
push dword [ebp + 8]
mov ecx, ebx
mov edi, eax
call fcn.0106e2b6
test edi, edi
je 0x106e563
test eax, eax
je 0x106e563
lea ecx, [edi + 4]
cmp ecx, dword [ebp - 4]
ja 0x106e563
mov dword [ebp + 0x10], ecx
lea edx, [eax + 4]
jmp 0x106e53f
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
ja 0x106e563
mov ecx, dword [edi]
test ecx, ecx
je 0x106e563
mov dword [eax], ecx
push 4
pop ecx
add dword [ebp + 0x10], ecx
add edx, ecx
add eax, ecx
add edi, ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
jbe 0x106e53c
xor edi, edi
inc edi
cmp dword [esi + 8], 0
je 0x106e573
and dword [esi + 8], 0
mov dword [ebp - 8], edi
add esi, 0x14
mov eax, dword [ebp - 4]
add eax, 0xffffffec
cmp esi, eax
jbe 0x106e4ee
movzx eax, word [ebx + 0x14]
lea esi, [eax + ebx + 0x18]
movzx eax, word [ebx + 6]
xor ebx, ebx
test eax, eax
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], eax
jbe 0x106e5de
mov edx, 0x20202020
mov eax, dword [esi]
mov ecx, dword [esi + 4]
or eax, edx
or ecx, edx
cmp eax, 0x6164692e
jne 0x106e5b9
cmp ecx, 0x20206174
je 0x106e5c4
inc ebx
add esi, 0x28
cmp ebx, dword [ebp + 0xc]
jb 0x106e5a1
jmp 0x106e5de
mov ecx, dword [ebp + 8]
lea eax, [ebx + ebx*4]
lea ecx, [ecx + eax*8 + 0x24]
mov eax, dword [ecx]
test eax, eax
js 0x106e5de
or eax, 0xc0000000
mov dword [ecx], eax
mov dword [ebp - 8], edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x106f014
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x50]
movzx edx, word [ecx + 6]
test edx, edx
mov dword [ebp - 0x14], eax
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
jbe 0x106f1a7
push ebx
lea ecx, [eax + 8]
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
push edi
test byte [ecx + 0x1f], 0x20
je 0x106f195
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
cmp eax, edx
mov ebx, dword [ecx + 4]
jae 0x106f05d
mov edx, eax
mov eax, dword [ecx + 0xc]
mov esi, dword [ebp + 0xc]
add esi, eax
cmp eax, dword [ebp + 0x10]
jae 0x106f195
lea edi, [eax + edx]
cmp edi, dword [ebp + 0x10]
ja 0x106f195
mov edi, dword [ebp + 8]
cmp word [edi + 4], 0x14c
jne 0x106f195
lea edx, [esi + edx - 5]
cmp esi, edx
mov dword [ebp - 0x1c], edx
jae 0x106f195
mov edi, dword [ebp + 0x18]
add ebx, 5
add eax, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
mov al, byte [esi]
cmp al, 0xe9
je 0x106f0d5
cmp al, 0xf
jne 0x106f183
lea eax, [esi + 1]
mov bl, byte [eax]
and bl, 0xf0
cmp bl, 0x80
jne 0x106f183
inc dword [ebp - 4]
inc dword [ebp - 8]
mov esi, eax
cmp esi, edx
jae 0x106f183
mov bl, byte [esi]
mov al, bl
and al, 0xf0
cmp al, 0x80
jne 0x106f0ec
mov eax, dword [ebp - 4]
test byte [eax - 1], 1
jne 0x106f183
mov eax, dword [ebp - 4]
xor edx, edx
test byte [eax], 1
jne 0x106f183
inc edx
inc eax
cmp edx, 5
jb 0x106f0f1
mov eax, dword [esi + 1]
cmp eax, 0x7f
jg 0x106f10e
cmp eax, 0xffffff80
jge 0x106f183
mov edx, dword [ebp - 8]
lea edi, [eax + edx]
cmp edi, dword [ebp - 0x14]
jae 0x106f183
mov ecx, dword [ebp + 8]
mov edx, edi
call fcn.0106e258
mov ecx, dword [ebp + 0x18]
test byte [eax + ecx], 1
jne 0x106f180
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
call fcn.0106e77b
mov ecx, dword [ebp + 0x14]
mov edx, edi
mov dword [ebp - 0x18], eax
call fcn.0106e77b
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0x7f
jg 0x106f16d
cmp eax, 0xffffff80
jl 0x106f16d
cmp bl, 0xe9
jne 0x106f160
mov byte [esi], 0xeb
mov byte [esi + 1], al
jmp 0x106f175
and bl, 0xf
or bl, 0x70
mov byte [esi - 1], bl
mov byte [esi], al
jmp 0x106f175
cmp eax, dword [esi + 1]
je 0x106f175
mov dword [esi + 1], eax
add dword [ebp - 4], 4
add esi, 4
add dword [ebp - 8], 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
inc esi
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp esi, edx
jb 0x106f0a6
add ecx, 0x28
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
jne 0x106f045
pop edi
pop esi
pop ebx
leave
ret 0x14