joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10012eef
pop dword [ebp - 0x20]
mov eax, 0x10012eef
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xe240b451
add dword [ebp - 0x30], 0x6c1190fa
mov dword [ebp - 0x2c], 0x432e0d6a
sub dword [ebp - 0x2c], 0x10fac125
mov dword [ebp - 0x28], 0x755af185
add dword [ebp - 0x28], 0xd6f152a9
mov dword [ebp - 0x24], 0xd8f94755
add dword [ebp - 0x24], 0x2706b8ab
lea eax, [ebp - 0x30]
push eax
mov eax, 0xd43a744b
add eax, 0x3bc7dc39
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe1f95b98
add dword [ebp - 0x30], 0x92790dbe
mov dword [ebp - 0x2c], 0x66d42a47
sub dword [ebp - 0x2c], 0x2567c8d2
mov dword [ebp - 0x28], 0x9b66dd11
sub dword [ebp - 0x28], 0x37f770a5
mov dword [ebp - 0x24], 0xca844318
add dword [ebp - 0x24], 0x357bbce8
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x37f8a
push 0
call eax
mov ecx, 0x3a90
mov edi, eax
mov esi, 0x5542c090
sub esi, 0x453fb490
add esi, dword [ebp - 0x20]
mov ebx, 0xd1616345
sub ebx, 0xa721bef9
mov edx, dword [esi]
sub edx, ebx
sub dword [ebp - 0x14], 0x6ce15d6a
mov dword [edi], edx
xor dword [ebp - 8], ebx
add edi, 0x2d6c3bce
sub edi, 0x2d6c3bca
add esi, 4
loop 0x10013001
add eax, 0xb41d3125
sub eax, 0xb41c5412
xor ebx, ebx
add ebx, eax
add eax, 0xf430696
add eax, 0xf0bcf96f
mov ecx, 0x7ad4c5a0
add ecx, 0x952b3a60
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x1001ca50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001caeb
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001caa2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001caa2
cmp esi, ebx
jge 0x1001caa2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001cae5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001cae5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e0]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e0]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001cafd
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x1001cd20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da18], 0
mov eax, dword [ebp + 8]
je 0x1001cd48
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cd62
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.drvSOFT.x3d_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022ac0
leave
ret 4

Function at 0x1001cf30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da18], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001cf66
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cfc5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.drvSOFT.x3d_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.drvSOFT.x3d_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.drvSOFT.x3d_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022ac0
leave
ret 0x10

Function at 0x1001cfe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da18], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001d00c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001d03d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001d03b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.drvSOFT.x3d_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001d03d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022ac0
leave
ret 8
Function at 0x401000
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x1e9
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov eax, str.RY8W
test eax, eax
je 0x40110f
mov dword [ebp - 0x1c], 0x1a1
mov dword [ebp - 0x2c], 0
jmp 0x401072
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x1c]
jae 0x4010f3
mov dword [ebp - 0x14], 0x82
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x20], 0
push 0x10
push 0x10
push 0
call dword [sym.imp.GDI32.dll_GetPixel]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jae 0x4010bd
mov edx, str.RY8
test edx, edx
jne 0x401094
push 0
push 0
push 0
push 0
call dword [sym.imp.WS2_32.dll_send]
mov eax, 0x4ae9a0
test eax, eax
jne 0x4010e5
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x401069
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x401107
jmp 0x40110f
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov esp, ebp
pop ebp
ret

Function at 0x401144
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
call dword [sym.imp.USER32.dll_SwitchDesktop]
push 4
push 0x1000
push 0x1988
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x14], eax
mov eax, 0x416fd0
test eax, eax
je 0x4011be
push 0
call fcn.004011d7
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_IsChild]
mov dword [ebp - 0x14], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4011d7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], 0xe109
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [ebp - 0x3c], 0x3c0000
push 0
call section..text
add esp, 4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
jne 0x401294
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 8], 0x400000
push 0
call section..text
add esp, 4
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
jmp loc.00557000

Function at 0x40212d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x549b58
cmp edx, dword [eax]
je 0x40214f
add eax, 8
inc ecx
cmp eax, 0x549be8
jl 0x402140
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x549b58]
jne 0x40227d
mov eax, dword [0x549fcc]
cmp eax, 1
je 0x402257
test eax, eax
jne 0x402180
cmp dword [0x549a8c], 1
je 0x402257
cmp edx, 0xfc
je 0x40227d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4021b7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004027a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402920
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4021fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402920
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x411b28
push edi
call fcn.00403640
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004027a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004027b0
lea eax, [ebp - 0xa0]
push 0x411b08
push eax
call fcn.004027b0
push dword [esi + 0x549b5c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004027b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004035ab
add esp, 0x2c
pop edi
jmp 0x40227d
lea eax, [ebp + 8]
lea esi, [esi + 0x549b5c]
push 0
push eax
push dword [esi]
call fcn.00402920
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10043fa9
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x10001564
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x10044019
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10005d00
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10044010
cmp dword [ebp - 0xc], 4
jne 0x10044010
cmp dword [ebp - 0x10], edi
je 0x10044010
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x101b12b8], edi
xor eax, eax
jmp 0x10044058
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x101b12b8], edi
jge 0x10044053
lea eax, [ebp - 0x34]
push eax
mov dword [0x101b12b8], edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x10044053
cmp word [ebp - 0x14], 5
jb 0x10044053
call fcn.1012d784
test eax, eax
je 0x10044053
emms
mov dword [0x101b12b8], 1
mov eax, dword [0x101b12b8]
pop edi
leave
ret

Function at 0x100b965a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x101c0590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x100b9753
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
mov dword [ebp - 0xac], eax
call fcn.101a66d0
mov dword [ebp - 0xa8], esp
cmp dword [ebp - 0xac], esi
jne 0x100b9704
push 0x10006944
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, 0x8876086c
jmp 0x100b977e
push esi
push esi
push dword [ebp - 0xac]
push dword [ebp - 0xa8]
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
fld dword [ebp + 0x18]
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [ebp + 0x14]
fstp dword [esp]
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
call fcn.1012d784
jmp 0x100b977e
fld dword [ebp + 0x18]
push 1
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [ebp + 0x14]
fstp dword [esp]
push ebx
push edi
push esi
call fcn.1012d784
lea esp, [ebp - 0xc0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a5f85
leave
ret 0x20
Function at 0x10102345
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x10102464
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x10102464
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x10102397
call fcn.1012d784
mov eax, 0x80004005
jmp 0x10102469
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 8], eax
push edi
and dword [ebp + 0xc], 0
push 0x18
pop edi
sub edi, ebx
mov eax, 0x400000
cmp edi, eax
jbe 0x101023e2
mov edi, eax
push 0
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + ebx - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x10102458
cmp dword [ebp + 0xc], edi
jne 0x1010245d
add ebx, edi
cmp ebx, 0x18
jne 0x101023ce
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
push 0
push esi
call dword [eax + 0x28]
mov edi, eax
test edi, edi
jl 0x1010243e
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.1012d784
mov edi, eax
test edi, edi
jl 0x1010243e
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x10102453
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, edi
pop edi
jmp 0x10102469
call fcn.1012d784
mov edi, 0x80004005
jmp 0x1010243e
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8
Function at 0x10102474
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x10102593
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x10102593
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x101024c6
call fcn.1012d784
mov eax, 0x80004005
jmp 0x10102598
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 8], eax
push edi
and dword [ebp + 0xc], 0
push 0x18
pop edi
sub edi, ebx
mov eax, 0x400000
cmp edi, eax
jbe 0x10102511
mov edi, eax
push 0
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + ebx - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x10102587
cmp dword [ebp + 0xc], edi
jne 0x1010258c
add ebx, edi
cmp ebx, 0x18
jne 0x101024fd
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
push 0
push esi
call dword [eax + 0x28]
mov edi, eax
test edi, edi
jl 0x1010256d
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.1012d784
mov edi, eax
test edi, edi
jl 0x1010256d
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x10102582
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, edi
pop edi
jmp 0x10102598
call fcn.1012d784
mov edi, 0x80004005
jmp 0x1010256d
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8
Function at 0x10102fdb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x10103167
cmp dword [ebp + 0xc], edi
je 0x10103167
push edi
push 0x8000080
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1010302d
call fcn.1012d784
mov eax, 0x80004005
jmp 0x1010316c
push ebx
push esi
mov ebx, 0x400000
and dword [ebp + 8], 0
push 0x18
pop esi
sub esi, edi
cmp esi, ebx
jbe 0x10103043
mov esi, ebx
push 0
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + edi - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x101030b7
cmp dword [ebp + 8], 0
je 0x101030bc
cmp dword [ebp + 8], esi
jne 0x101030bc
add edi, esi
cmp edi, 0x18
jne 0x10103034
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x10103144
cmp dword [ebp - 0x20], ebx
je 0x10103144
cmp dword [ebp - 0x1c], ebx
je 0x10103144
cmp dword [ebp - 0x10], ebx
je 0x101030a0
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x10103144
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x101030c6
mov ecx, eax
call fcn.10102ecb
mov esi, eax
jmp 0x101030c8
call fcn.1012d784
mov edi, 0x80004005
jmp 0x10103149
xor esi, esi
mov dword [ebp - 0xc], esi
cmp esi, ebx
jne 0x101030d6
mov edi, 0x8007000e
jmp 0x10103149
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
cmp dword [ebp - 0x10], ebx
je 0x101030ff
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.1012d784
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x10103109
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x10103149
push dword [ebp - 0x24]
call fcn.1012d784
jmp 0x101030ee
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x24]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x10103149
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.1012d784
mov edi, eax
test edi, edi
jl 0x10103149
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x10103149
mov edi, 0x8876086c
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x1010315a
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
jmp 0x1010316c
mov eax, 0x8876086c
pop edi
leave
ret 8
Function at 0x10103176
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x10103302
cmp dword [ebp + 0xc], edi
je 0x10103302
push edi
push 0x8000080
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x101031c8
call fcn.1012d784
mov eax, 0x80004005
jmp 0x10103307
push ebx
push esi
mov ebx, 0x400000
and dword [ebp + 8], 0
push 0x18
pop esi
sub esi, edi
cmp esi, ebx
jbe 0x101031de
mov esi, ebx
push 0
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + edi - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10103252
cmp dword [ebp + 8], 0
je 0x10103257
cmp dword [ebp + 8], esi
jne 0x10103257
add edi, esi
cmp edi, 0x18
jne 0x101031cf
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x101032df
cmp dword [ebp - 0x20], ebx
je 0x101032df
cmp dword [ebp - 0x1c], ebx
je 0x101032df
cmp dword [ebp - 0x10], ebx
je 0x1010323b
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x101032df
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x10103261
mov ecx, eax
call fcn.10102ecb
mov esi, eax
jmp 0x10103263
call fcn.1012d784
mov edi, 0x80004005
jmp 0x101032e4
xor esi, esi
mov dword [ebp - 0xc], esi
cmp esi, ebx
jne 0x10103271
mov edi, 0x8007000e
jmp 0x101032e4
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
cmp dword [ebp - 0x10], ebx
je 0x1010329a
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.1012d784
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x101032a4
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x101032e4
push dword [ebp - 0x24]
call fcn.1012d784
jmp 0x10103289
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x24]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x101032e4
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.1012d784
mov edi, eax
test edi, edi
jl 0x101032e4
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x101032e4
mov edi, 0x8876086c
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x101032f5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
jmp 0x10103307
mov eax, 0x8876086c
pop edi
leave
ret 8