joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403855
Capabilities:
Connect pipe
Create directory
Create mailslot
Get common file path
Get disk information
Query environment variable
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2600
call fcn.004040c0
cmp dword [0x705444], 0x37
jne 0x4039c2
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push esi
push esi
push esi
push 0x401348
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xa00]
push eax
push esi
push esi
push 0x4013ac
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1e00]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x4013f0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push esi
lea eax, [ebp - 0x1a00]
push eax
push esi
call edi
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
lea eax, [ebp - 0x1200]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
push esi
lea eax, [ebp - 0x2600]
push eax
push esi
call edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
lea eax, [ebp - 0x600]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x4014c8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push esi
lea eax, [ebp - 0xe00]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push esi
push esi
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
pop edi
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [0x706fc8]
mov cl, byte [ecx + eax + 0x38d6]
mov edx, dword [0x6f7d00]
mov byte [edx + eax], cl
leave
ret 4
Function at 0x403dba
Capabilities:
Move file
Set console window title
Terminate process

Disassembly:
cmp dword [0x705444], 0x26
push esi
jne 0x403dfd
xor esi, esi
push esi
push esi
push esi
call fcn.00404613
push esi
push esi
push esi
push esi
call fcn.00404578
push esi
call fcn.004044b7
push esi
call fcn.004044e7
push esi
push esi
call fcn.004043ab
push esi
call fcn.0040424c
add esp, 0x30
call fcn.00404135
call fcn.004040eb
mov eax, dword [0x418dd4]
mov ecx, dword [0x418008]
mov dword [0x705444], eax
mov dword [0x706fc8], ecx
cmp eax, 0x81
jne 0x403e98
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x4016fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessIoCounters]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleActiveScreenBuffer]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x40173c
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.00403b05
xor eax, eax
pop esi
ret 0x10

Function at 0x407b90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428628]
jne 0x407b9a
repz ret
jmp fcn.0040d582
Function at 0x40d2a5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406cc5
and dword [ebp - 4], 0
cmp dword [0x70762c], 0
mov ebx, eax
jne 0x40d356
push 0x402a1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d407
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402a10
push edi
call esi
test eax, eax
je 0x40d407
push eax
call fcn.00406c53
mov dword [esp], 0x402a00
push edi
mov dword [0x70762c], eax
call esi
push eax
call fcn.00406c53
mov dword [esp], 0x4029ec
push edi
mov dword [0x707630], eax
call esi
push eax
call fcn.00406c53
mov dword [esp], 0x4029d0
push edi
mov dword [0x707634], eax
call esi
push eax
call fcn.00406c53
pop ecx
mov dword [0x70763c], eax
test eax, eax
je 0x40d356
push 0x4029b8
push edi
call esi
push eax
call fcn.00406c53
pop ecx
mov dword [0x707638], eax
mov eax, dword [0x707638]
cmp eax, ebx
je 0x40d3ae
cmp dword [0x70763c], ebx
je 0x40d3ae
push eax
call fcn.00406cce
push dword [0x70763c]
mov esi, eax
call fcn.00406cce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d3ae
test edi, edi
je 0x40d3ae
call esi
test eax, eax
je 0x40d3a5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d3a5
test byte [ebp - 0xc], 1
jne 0x40d3ae
or dword [ebp + 0x10], 0x200000
jmp 0x40d3e7
mov eax, dword [0x707630]
cmp eax, ebx
je 0x40d3e7
push eax
call fcn.00406cce
pop ecx
test eax, eax
je 0x40d3e7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d3e7
mov eax, dword [0x707634]
cmp eax, ebx
je 0x40d3e7
push eax
call fcn.00406cce
pop ecx
test eax, eax
je 0x40d3e7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x70762c]
call fcn.00406cce
pop ecx
test eax, eax
je 0x40d407
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d409
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100036f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10003751
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10003734
cmp edi, 2
jb 0x10003734
cmp byte [esi], cl
jne 0x10003734
cmp byte [esi + 1], cl
jne 0x10003734
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10044408]
jmp 0x10003705
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10044408]
test edi, edi
jne 0x10003705
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10003780
cmp cl, 0x23
jne 0x10003767
cmp byte [esi], cl
jne 0x10003767
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10044408]
test cl, cl
jne 0x10003758
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10003890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100038a4
mov dword [ebx], 0
mov edx, 0x1004401c
call fcn.10003790
mov esi, eax
test esi, esi
je 0x10003992
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10003988
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10003988
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x10003988
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10003988
mov eax, dword [0x1005b8d8]
test eax, eax
je 0x1000391c
inc dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x10003988
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x1000396d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1005b8d8]
add esp, 4
test eax, eax
je 0x1000395a
dec dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x1000397f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100063e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1004d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [edi + 0xec]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10044408]
sub esi, 1
jne 0x10006420
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e94], ebx
jne 0x10006457
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.10018c10
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004085b
mov esp, ebp
pop ebp
ret 4
Function at 0x10008510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x1005b8d8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x47ec]
mov edx, dword [eax]
inc dword [esi + 0xa8]
mov ecx, dword [edi + 0x264]
mov dword [ebp - 4], edx
cmp dword [ecx + 0x7c], 1
jle 0x1000854f
push ecx
add ecx, 0x78
call fcn.10024bb0
mov edx, dword [ebp - 4]
mov edi, dword [edi + 0x264]
mov esi, dword [edx + ebx*4 + 0x70]
mov eax, dword [edi]
test eax, eax
je 0x100085c2
cmp eax, 1
jne 0x10008573
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x10008573
cmp dword [eax + 0x20], 0
je 0x100085c2
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x100085a9
lea edx, [eax + 1]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x10008594
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x10008599
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.100193a0
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [edx + 0x3c]
mov eax, dword [edi + 0x18]
add dword [edx + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [edx + 0x40], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x188]
mov eax, dword [eax + 0x180]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10008602
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x100085fb
cmp byte [ecx + 0xb1], 0
jne 0x100085fb
mov edx, ebx
call fcn.10008510
add esi, 4
cmp esi, edi
jne 0x100085e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009720
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x1005b8d8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
mov ebx, dword [esi + 0x3e60]
mov ecx, ebx
mov dword [esp + 0x18], edx
mov eax, dword [ebx + 0xc]
and eax, 4
or eax, 0x1000103
or edi, eax
cmp dword [ebx + 0x190], 0
mov dword [ebp + 0x10], edi
jne 0x1000976c
cmp dword [esi + 0x4a28], 0
mov eax, 0x228
je 0x10009771
mov eax, 0x1f8
movss xmm4, dword [eax + ebx]
xorps xmm3, xmm3
movss xmm5, dword [eax + ebx + 4]
subss xmm4, dword [ecx + 0xf0]
subss xmm5, dword [ecx + 0xf4]
mov ecx, dword [ebp + 8]
movss xmm2, dword [0x10049234]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 2
cvttss2si eax, dword [ecx]
movd xmm1, eax
cvttss2si eax, dword [ecx + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm3
cvtdq2ps xmm0, xmm0
lahf
xor ecx, ecx
test ah, 0x44
mov eax, 1
cmovnp ecx, eax
ucomiss xmm0, xmm3
lahf
test ah, 0x44
mov eax, dword [esp + 0x10]
cmovnp eax, dword [esp + 0x14]
or eax, ecx
comiss xmm3, xmm1
mov dword [esp + 0x10], eax
jb 0x100097f9
addss xmm1, xmm4
comiss xmm1, xmm2
jae 0x100097f9
movaps xmm1, xmm2
comiss xmm3, xmm0
jb 0x1000980a
addss xmm0, xmm5
comiss xmm0, xmm2
jae 0x1000980a
movaps xmm0, xmm2
or dword [esi + 0x4714], 2
mov ecx, dword [esp + 0x1c]
movss dword [esi + 0x4734], xmm1
movss dword [esi + 0x4738], xmm0
mov dword [esi + 0x471c], 1
mov eax, dword [ebx + 4]
push edx
test ecx, ecx
je 0x1000984f
push ecx
push eax
push str._s__s__08X
lea eax, [esp + 0x24]
push 0
push eax
call fcn.10003640
add esp, 0x18
jmp 0x10009864
push eax
push str._s__08X
lea eax, [esp + 0x20]
push 0
push eax
call fcn.10003640
add esp, 0x14
movss xmm0, dword [esi + 0x37b8]
xor edx, edx
mov ecx, dword [esp + 0x14]
push edi
movss dword [esp + 0x20], xmm0
call fcn.1000c190
mov edi, dword [esi + 0x3e60]
add esp, 4
movss xmm0, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
movss dword [esi + 0x37b8], xmm0
cmp word [edi + 0xb6], 1
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
mov dword [edi + 0x74], edx
mov byte [edi + 0xc6], al
jne 0x100098ca
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [ebx + 0xf0], ecx
mov dword [ebx + 0xf4], eax
mov edi, edx
mov al, 0x23
not edi
mov edx, 0x100435f1
mov ebx, edi
cmp al, 0x23
jne 0x100098e5
cmp byte [edx], al
jne 0x100098e5
cmp byte [edx + 1], al
cmove ebx, edi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x10044408]
test al, al
jne 0x100098d7
mov edi, dword [esp + 0x1c]
not ebx
cmp dword [esi + 0x3eac], ebx
jne 0x10009915
xor edx, edx
xor ecx, ecx
call fcn.10006470
mov eax, dword [esp + 0x18]
cmp dword [esi + 0x47fc], eax
jne 0x10009964
test dword [ebp + 0x10], 0x800000
jne 0x10009964
cmp word [edi + 0x14c], 0
jne 0x1000993d
cmp byte [edi + 0x152], 0
je 0x10009964
xor edx, edx
mov ecx, edi
call fcn.1000eba0
xor dl, dl
mov ecx, edi
call fcn.10014260
mov edx, edi
mov ecx, ebx
call fcn.10006470
mov eax, dword [esi + 0x4820]
mov dword [esi + 0x3ecc], eax
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009be0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x10009c1f
cmp bl, 0x23
jne 0x10009c01
cmp byte [esi], bl
jne 0x10009c01
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x10044408]
test bl, bl
jne 0x10009bf2
mov ecx, dword [0x1005b8d8]
not eax
mov esi, dword [ecx + 0x3e48]
mov edi, dword [ecx + 0x3e50]
lea ebx, [edi + esi*8]
test esi, esi
je 0x10009c5e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10009c58
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x10009c5a
mov esi, edx
test esi, esi
jne 0x10009c40
cmp edi, ebx
je 0x10009c6d
cmp dword [edi], eax
jne 0x10009c6d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10017460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5b40], 0
lea esi, [edi + 0x5b44]
je 0x100174e2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001749c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10019860
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10003ca0
mov edx, dword [esi]
mov ecx, 0x1005b8d4
push dword [edi + 0x5b40]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5b4c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10003ca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100178d0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x1005b8d8]
test bl, bl
je 0x10017916
or edi, 0xffffffff
cmp bl, 0x23
jne 0x100178f7
cmp byte [esi], bl
jne 0x100178f7
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10044408]
test bl, bl
jne 0x100178e8
mov edi, dword [0x1005b8d8]
mov ecx, dword [edi + 0x5ae4]
not eax
mov edx, dword [edi + 0x5aec]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x1001793d
cmp dword [edx + 4], eax
je 0x10017940
add edx, 0x24
cmp edx, ecx
jne 0x10017931
xor eax, eax
ret
mov eax, edx
ret

Function at 0x10017b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x1005b8d8]
sub esp, 8
push esi
mov esi, ecx
mov dword [eax + 0x5ad4], 0
push edi
test esi, esi
je 0x10017bcd
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.10017be0
mov edx, 0x10044020
mov ecx, esi
mov edi, eax
call fcn.10003790
mov esi, eax
test esi, esi
je 0x10017bcd
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10022120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002215a
mov eax, dword [0x1005b8d8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1002214d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002218b
mov eax, dword [0x1005b8d8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1002217e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100221bc
mov eax, dword [0x1005b8d8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100221af
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10022209
mov eax, dword [0x1005b8d8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100221fc
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1002223a
mov eax, dword [0x1005b8d8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1002222d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1002226b
mov eax, dword [0x1005b8d8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1002225e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10024aa0
Function at 0x100258f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
movss dword [esp + 0x10], xmm3
mov dword [esp + 0x14], ecx
movzx ebx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xa]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xb]
shl ebx, 8
add ebx, eax
mov eax, dword [0x1005b8d8]
test eax, eax
je 0x1002593a
inc dword [eax + 0xb0]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movzx edx, byte [esi]
add esp, 4
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
mov dword [esp + 0xc], eax
movzx ecx, byte [esi + 2]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
add edx, ecx
cmp edx, 0x57bc0000
jne 0x100259f5
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
jne 0x100259f5
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
mov edx, dword [esp + 0xc]
movzx edi, byte [esi + 0xb]
shl ecx, 8
add ecx, eax
mov dword [0x1005b908], esi
movzx eax, byte [esi + 0xa]
add esi, 0x10
shl ecx, 8
add ecx, eax
mov dword [0x1005b910], edx
shl ecx, 8
add ecx, edx
mov dword [0x1005b914], edx
add edi, ecx
mov ecx, esi
mov dword [0x1005b90c], edi
call fcn.10028fa0
cmp eax, esi
je 0x100259f5
nop
cmp dword [0x1005b914], edi
ja 0x100259f5
mov ecx, eax
mov esi, eax
call fcn.10028fa0
cmp eax, esi
jne 0x100259e0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10025a13
mov ecx, 0x1e
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x108]
jmp 0x10025a57
push 0x78
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0xffff
mov byte [esp + 0x2c], 1
add esp, 0xc
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 1
lea esi, [esp + 0x18]
mov dword [esp + 0x50], 0x7f7fffff
mov dword [esp + 0x5c], 0x3f800000
mov word [esp + 0x60], ax
movss xmm0, dword [esp + 0x10]
lea edi, [esp + 0x90]
comiss xmm0, dword [0x10049170]
mov eax, dword [esp + 0xc]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1e
mov byte [esp + 0x98], 1
lea esi, [esp + 0x90]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
jbe 0x10025aa0
movss dword [esp + 0x28], xmm0
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x48]
cmovne ecx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.10025610
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10