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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov ebx, ecx
push 9
pop ecx
and dword [ebp - 8], 0
mov esi, 0x100a6ec
lea edi, [ebp - 0x114]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
push 0x36
xor eax, eax
pop ecx
lea edi, [ebp - 0xef]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea esi, [ebx + 0x11c]
mov ecx, esi
stosb byte es:[edi], al
mov dword [ebp - 0x10], esi
call fcn.0101eb36
lea ecx, [ebp - 0x214]
push ecx
push eax
push 0x148
push dword [ebx + 0x13c]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x104d51c
push 0
push 0x30
push 0x100a780
call fcn.0102e0c1
mov ecx, esi
jmp 0x104d57b
lea eax, [ebp - 0x214]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x104d524
lea edi, [ebp - 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x104d534
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
and ecx, 3
push 9
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
lea eax, [ebp - 0x114]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x104d58d
push edi
push 0x30
push 0x100a74c
call fcn.0102e0c1
mov ecx, dword [ebp - 0x10]
push dword [ebx + 0x3b0]
call fcn.0101eb49
xor eax, eax
jmp 0x104d627
mov dword [ebp - 0xc], edi
push 0x80
lea eax, [ebp - 0x314]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x104d5fb
mov esi, dword [ebx + 0x110]
cmp esi, edi
mov dword [ebp - 8], edi
jle 0x104d5f3
mov eax, dword [ebx + 0x10c]
lea eax, [edi + eax + 0x32]
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x104d5e5
inc dword [ebp - 8]
add edi, 0x8c
cmp dword [ebp - 8], esi
jl 0x104d5b9
xor edi, edi
cmp dword [ebp - 8], esi
mov dword [ebp - 8], 1
jl 0x104d5f6
mov dword [ebp - 8], edi
inc dword [ebp - 0xc]
jmp 0x104d590
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
jne 0x104d624
push edi
push 0x30
push 0x100a714
call fcn.0102e0c1
push dword [ebx + 0x3b0]
mov ecx, dword [ebp - 0x10]
call fcn.0101eb49
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0105b9a4
leave
ret
Function at 0x104e14f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov ebx, ecx
push 9
pop ecx
and dword [ebp - 0xc], 0
mov esi, 0x100a6ec
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
push 0x36
xor eax, eax
pop ecx
lea edi, [ebp - 0xe7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebx
stosb byte es:[edi], al
call fcn.0104c414
lea ecx, [ebx + 0x11c]
call fcn.0101eb36
lea ecx, [ebp - 0x20c]
push ecx
push eax
push 0x148
push dword [ebx + 0x13c]
mov dword [ebx + 0x3b0], eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x104e1ce
push 0
push 0x30
push 0x100a7c0
jmp 0x104e249
push 8
mov edi, 0x1007750
lea esi, [ebp - 0x20c]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
lea ecx, [ebx + 0x19c]
jne 0x104e1eb
push eax
jmp 0x104e1ed
push 1
call sub.MFC42.DLL_CWnd::EnableWindow
lea eax, [ebp - 0x20c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x104e1fa
lea edi, [ebp - 0x10c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x104e20a
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 8]
push eax
and ecx, 3
push 9
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
lea eax, [ebp - 0x10c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x104e250
push edi
push 0x30
push 0x100a74c
call fcn.0102e0c1
jmp 0x104e2b6
xor esi, esi
push 0x80
lea eax, [ebp - 0x30c]
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x104e28b
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.0104c47f
mov dword [ebp - 0xc], 1
inc esi
jmp 0x104e252
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], edi
jne 0x104e2a8
push edi
push 0x30
push 0x100a714
call fcn.0102e0c1
jmp 0x104e2af
mov ecx, ebx
call fcn.0104c665
mov ecx, ebx
call fcn.0104b3b0
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0105b9a4
leave
ret
Function at 0x10561e5
Capabilities:
Check for time delay via gettickcount
Query service configuration
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x200
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x1056311
push 5
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x1056308
push ebx
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call esi
mov ebx, eax
cmp ebx, edi
je 0x10562fd
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x105628c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10562f6
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
push 0x40
call esi
mov ebx, eax
test ebx, ebx
je 0x10562fd
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x10562f6
cmp dword [ebx + 4], 2
jne 0x10562f6
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xc], eax
call edi
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
ja 0x10562f6
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10562f6
mov eax, dword [ebp - 0x28]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x10562d3
cmp dword [ebp - 0x20], 0x435
jne 0x10562f6
jmp 0x10562e7
cmp eax, 4
je 0x10562ed
cmp eax, 5
je 0x10562ed
cmp eax, 6
je 0x10562ed
cmp eax, 7
je 0x10562ed
push 0x32
call esi
jmp 0x10562f0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10562a3
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
leave
ret 8
Function at 0x10563be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x100b7f0
push 0x80000002
mov dword [ebp - 8], 3
mov dword [ebp - 0xc], 8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10563f6
xor eax, eax
inc eax
jmp 0x105646d
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0x100b7dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x105642c
cmp esi, 2
je 0x1056465
mov eax, esi
jmp 0x105646b
cmp dword [ebp - 8], 3
jne 0x1056465
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1056456
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x105646b
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1056469
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x1056471
Capabilities:
Get common file path

Disassembly:
push 0x104
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1056489
push 3
pop eax
jmp 0x10564a2
push 0x100b828
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
neg eax
sbb eax, eax
and eax, 0xfffffff2
add eax, 0xe
ret 4
Function at 0x10564f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x208
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 0x7c]
push ebx
push edi
push 0x13
pop ecx
mov dword [ebp + 0x74], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x8c], bl
lea edi, [ebp - 0x8b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x6c]
push eax
push 0x20019
push ebx
xor edi, edi
push 0x100b7f0
inc edi
push 0x80000002
mov dword [ebp + 0x64], 0x50
mov dword [ebp + 0x68], 7
mov dword [ebp + 0x70], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x105655a
mov eax, edi
jmp 0x105662e
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jge 0x1056581
xor eax, eax
inc eax
jmp 0x105662e
movzx eax, word [ebp + 0x5a]
push eax
movzx eax, word [ebp + 0x58]
push eax
movzx eax, byte [ebp + 0x5e]
push eax
movzx eax, word [ebp + 0x5c]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x190]
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push 0x100b84c
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x24
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
lea eax, [ebp - 0x190]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x6c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x8c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10565e7
sub eax, edx
mov dword [ebp + 0x60], eax
je 0x105661f
cmp edi, ebx
jne 0x105661f
cmp dword [ebp + 0x68], 7
je 0x1056604
mov dword [ebp + 0x70], ebx
jmp 0x105662b
lea eax, [ebp - 0x8c]
push 0x100b840
push eax
call dword [sym.imp.msvcrt.dll__strcmpi]
test eax, eax
pop ecx
pop ecx
je 0x1056624
mov dword [ebp + 0x70], ebx
cmp edi, 2
jne 0x105662b
mov dword [ebp + 0x70], 1
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x74]
xor ecx, dword [ebp + 0x7c]
pop edi
pop ebx
call fcn.0105b9a4
add ebp, 0x78
leave
ret
Function at 0x1056902
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
push 0x1004dc8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push 0x100ba40
push eax
mov esi, ecx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 5
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push 8
call sub.MFC42.DLL_operatornew
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
je 0x10569aa
mov dword [edi], esi
call fcn.0101ea91
push ebx
push 4
push ebx
push ebx
push edi
push 0x1056715
mov dword [edi + 4], eax
call sub.MFC42.DLL_AfxBeginThread
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
mov ebx, eax
push 0
lea eax, [esi + 0x60]
push eax
call edi
push eax
push dword [ebx + 0x2c]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp + 8]
test eax, eax
je 0x10569aa
mov dword [esi + 0x64], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0105b9a4
leave
ret 4

Function at 0x1056a49
Capabilities:
Check systemkerneldebuggerinformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push 0x23
mov esi, ecx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x1056a74
cmp dword [ebp - 8], 2
jb 0x1056a74
movzx eax, byte [ebp - 4]
mov dword [esi + 0x74], eax
pop esi
leave
ret
Function at 0x105a9d3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [0x107f9ac], ebx
push esi
jle 0x105aa24
xor esi, esi
mov eax, dword [0x107f9b4]
mov ecx, dword [ebp + 0xc]
add eax, esi
cmp ecx, dword [eax + 8]
jne 0x105aa18
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0xc]
jne 0x105aa18
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
lea eax, [eax + ecx*2]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x105ab3f
inc ebx
add esi, 0x24
cmp ebx, dword [0x107f9ac]
jl 0x105a9e4
mov eax, dword [0x107f9b0]
cmp dword [0x107f9ac], eax
jl 0x105aa92
lea eax, [eax + eax*8 + 0x120]
shl eax, 2
push eax
push dword [0x107f9b4]
call dword [sym.imp.msvcrt.dll_realloc]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x105aa6e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100d198
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov edx, dword [0x107f9b0]
push edi
lea edx, [edx + edx*8]
xor eax, eax
mov ecx, 0x120
lea edi, [esi + edx*4]
mov dword [0x107f9b4], esi
rep stosd dword es:[edi], eax
add dword [0x107f9b0], 0x20
pop edi
push dword [ebp + 8]
lea esi, [ebx + ebx*8]
shl esi, 2
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, dword [0x107f9b4]
lea eax, [eax + eax + 2]
mov word [esi + ecx + 0x16], ax
mov eax, dword [0x107f9b4]
movzx eax, word [esi + eax + 0x16]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ecx, dword [0x107f9b4]
push dword [ebp + 8]
mov dword [esi + ecx + 0x18], eax
mov eax, dword [0x107f9b4]
push dword [esi + eax + 0x18]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [0x107f9b4]
add eax, esi
mov cx, word [eax + 0x16]
sub cx, 2
mov word [eax + 0x14], cx
mov eax, dword [0x107f9b4]
and dword [esi + eax + 0x20], 0
mov eax, dword [0x107f9b4]
mov ecx, dword [ebp + 0xc]
mov dword [esi + eax + 8], ecx
mov eax, dword [0x107f9b4]
mov ecx, dword [ebp + 0x10]
mov dword [esi + eax + 0xc], ecx
movzx eax, byte [ebp + 0x14]
mov ecx, dword [0x107f9b4]
mov dword [esi + ecx], eax
mov eax, dword [0x107f9b4]
mov byte [esi + eax + 0x1c], 0
mov eax, dword [0x107f9b4]
add esp, 0x10
mov dword [esi + eax + 4], 1
inc dword [0x107f9ac]
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x10
Function at 0x105abd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x164], edi
mov dword [ebp - 4], edi
jle 0x105ac25
mov eax, dword [esi + 0x16c]
mov eax, dword [edi + eax]
mov ecx, dword [0x107f9b4]
push dword [ebp + 8]
lea eax, [eax + eax*8]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x105acbe
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x3c
cmp eax, dword [esi + 0x164]
jl 0x105abe2
mov eax, dword [esi + 0x168]
cmp dword [esi + 0x164], eax
jl 0x105ac8f
add eax, 0x20
imul eax, eax, 0x3c
push eax
push dword [esi + 0x16c]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 8], eax
jne 0x105ac6d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100d198
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov edi, dword [esi + 0x168]
imul edi, edi, 0x3c
add edi, dword [ebp + 8]
mov dword [esi + 0x16c], eax
xor eax, eax
mov ecx, 0x1e0
rep stosd dword es:[edi], eax
add dword [esi + 0x168], 0x20
mov eax, dword [ebp - 4]
imul eax, eax, 0x3c
lea ecx, [esi + 0x16c]
mov edx, dword [ecx]
mov dword [eax + edx], ebx
mov ecx, dword [ecx]
mov edx, dword [esi + 0xc]
mov dword [eax + ecx + 4], edx
inc dword [esi + 0x164]
mov ecx, dword [0x107f9b4]
lea eax, [ebx + ebx*8]
lea eax, [ecx + eax*4 + 4]
inc dword [eax]
pop edi
leave
ret 4
Function at 0x105ad7f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x107c360]
push esi
mov esi, dword [0x107f9bc]
inc ecx
cmp ecx, esi
mov dword [ebp - 4], ecx
jge 0x105ae5c
mov edx, dword [0x107f9c0]
mov eax, ecx
imul eax, eax, 0x1a0
lea eax, [eax + edx + 0xc]
cmp dword [eax], 0xdeadbeef
je 0x105adc8
inc ecx
add eax, 0x1a0
cmp ecx, esi
mov dword [ebp - 4], ecx
jl 0x105adae
jmp 0x105ae53
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
imul edi, edi, 0x1a0
mov dword [0x107c360], ecx
mov dword [edi + edx + 0xc], eax
mov edx, dword [0x107f9c0]
mov eax, dword [ebp + 8]
mov dword [edi + edx], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [0x107f9c0]
mov dword [edi + edx + 4], eax
mov eax, dword [0x107f9c0]
lea eax, [edi + eax + 0x10]
mov dl, byte [esi]
inc esi
mov byte [eax], dl
inc eax
test dl, dl
jne 0x105ae03
push ebx
xor ebx, ebx
cmp dword [0x107f9ac], ebx
jle 0x105ae51
mov dword [ebp + 0x10], ebx
mov eax, dword [0x107f9b4]
mov edx, dword [ebp + 0x10]
add eax, edx
cmp dword [eax], 0
je 0x105ae44
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
lea eax, [eax + ecx*2]
push eax
mov eax, dword [0x107f9c0]
lea esi, [edi + eax]
call fcn.0105abd0
mov ecx, dword [ebp - 4]
add dword [ebp + 0x10], 0x24
inc ebx
cmp ebx, dword [0x107f9ac]
jl 0x105ae1b
pop ebx
pop edi
cmp ecx, dword [0x107f9bc]
pop esi
jl 0x105ae7a
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100d1e0
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
imul ecx, ecx, 0x1a0
add ecx, dword [0x107f9c0]
mov dword [0x107f9c4], ecx
leave
ret 0x10
Function at 0x105ae90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push dword [eax + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0105dcea
test eax, eax
jge 0x105aee7
mov eax, dword [0x100b0c4]
mov dword [ebp - 0x404], eax
mov eax, dword [0x100b0c8]
mov dword [ebp - 0x400], eax
cmp dword [esi + 0x30], ebx
mov dword [ebp + 0x14], ebx
jle 0x105af39
mov eax, dword [esi + 0x38]
mov edi, dword [eax]
lea ecx, [ebp - 0x404]
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [edi]
jne 0x105af1c
test dl, dl
je 0x105af18
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [edi + 1]
jne 0x105af1c
inc ecx
inc ecx
inc edi
inc edi
test dl, dl
jne 0x105aefa
xor ecx, ecx
jmp 0x105af21
sbb ecx, ecx
sbb ecx, 0xffffffff
xor ebx, ebx
cmp ecx, ebx
je 0x105afdd
inc dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
add eax, 0x2c
cmp ecx, dword [esi + 0x30]
jl 0x105aef2
mov eax, dword [esi + 0x34]
cmp dword [esi + 0x30], eax
jl 0x105af8f
add eax, 0x20
imul eax, eax, 0x2c
push eax
push dword [esi + 0x38]
call dword [sym.imp.msvcrt.dll_realloc]
mov edx, eax
cmp edx, ebx
pop ecx
pop ecx
jne 0x105af77
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100d198
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov edi, dword [esi + 0x34]
imul edi, edi, 0x2c
xor eax, eax
add edi, edx
mov ecx, 0x160
mov dword [esi + 0x38], edx
rep stosd dword es:[edi], eax
add dword [esi + 0x34], 0x20
inc dword [esi + 0x30]
lea eax, [ebp - 0x404]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x105af9b
mov edi, dword [ebp + 0x14]
sub eax, ecx
imul edi, edi, 0x2c
inc eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [esi + 0x38]
mov dword [edi + ecx], eax
mov eax, dword [esi + 0x38]
add eax, edi
cmp dword [eax], ebx
jne 0x105afc6
xor eax, eax
jmp 0x105afdd
mov eax, dword [eax]
lea edx, [ebp - 0x404]
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
cmp cl, bl
jne 0x105afce
mov eax, dword [esi + 0x38]
add eax, edi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop ebx
call fcn.0105b9a4
leave
ret 0x10
Function at 0x105b021
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp eax, edx
push edi
mov byte [ebp - 3], 0
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov dword [ebp - 8], ebx
jne 0x105b04d
inc dword [esi + 8]
jmp 0x105b050
inc dword [esi + 0xc]
inc dword [esi + 4]
cmp dword [ebp + 0x14], ebx
mov ecx, 0xfffff000
je 0x105b05f
and edx, ecx
and eax, ecx
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
je 0x105b0d0
push 0x105afee
lea eax, [ebp - 8]
push eax
push 0xc
push ecx
push dword [esi + 0x24]
lea eax, [ebp - 0x10]
push eax
call fcn.0105e59c
add esp, 0x18
test eax, eax
je 0x105b096
mov byte [ebp - 3], 1
jmp 0x105b19a
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jle 0x105b0d0
mov eax, dword [esi + 0x24]
mov edi, dword [eax]
mov edx, dword [eax + 4]
cmp edi, edx
je 0x105b0b2
cmp edx, dword [ebp - 0xc]
jne 0x105b0b2
mov byte [ebp - 2], 1
cmp edi, dword [ebp - 0x10]
jne 0x105b0bb
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
je 0x105b0c7
cmp byte [ebp - 2], 0
jne 0x105b0d0
inc ebx
add eax, 0xc
cmp ebx, dword [esi + 0x1c]
jl 0x105b0a0
mov eax, dword [esi + 0x20]
cmp ecx, eax
jl 0x105b125
lea eax, [eax + eax*2 + 0x60]
shl eax, 2
push eax
push dword [esi + 0x24]
call dword [sym.imp.msvcrt.dll_realloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x105b10e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100d198
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov edx, dword [esi + 0x20]
mov dword [esi + 0x24], edi
push 0x60
lea edx, [edx + edx*2]
xor eax, eax
pop ecx
lea edi, [edi + edx*4]
rep stosd dword es:[edi], eax
add dword [esi + 0x20], 0x20
mov edx, dword [ebp - 8]
mov ecx, dword [esi + 0x24]
lea eax, [edx + edx*2]
lea ecx, [ecx + eax*4]
mov eax, dword [esi + 0x1c]
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 2
push eax
push ecx
add ecx, 0xc
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x24]
mov edx, dword [ebp - 0xc]
lea eax, [eax + eax*2]
add esp, 0xc
inc dword [esi + 0x1c]
mov dword [ecx + eax*4 + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x24]
mov edx, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x24]
lea eax, [eax + eax*2]
and dword [ecx + eax*4 + 8], 0
cmp byte [ebp - 1], 0
jne 0x105b184
inc dword [esi + 0x18]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x105b191
inc dword [esi + 0x10]
jmp 0x105b19a
cmp byte [ebp - 2], 0
jne 0x105b19a
inc dword [esi + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x24]
lea eax, [eax + eax*2]
pop edi
lea eax, [ecx + eax*4 + 8]
inc dword [eax]
movzx eax, byte [ebp - 3]
pop esi
pop ebx
leave
ret 0x10