joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e30
Capabilities:
Create process on windows

Disassembly:
push edi
push ebx
sub esp, 0x494
mov ebx, dword [esp + 0x4a0]
lea edx, [esp + 0x4c]
mov ecx, 0x44
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov dword [esp + 0x4c], 0x44
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x4a4]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x403f04
mov dword [esp + 4], 0xffffffff
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov dword [esp + 4], 0x40802c
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeProcess
sub esp, 8
test eax, eax
je 0x403f5c
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push ebx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push edi
add esp, 0x494
pop ebx
pop edi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.Failed_to_create_process___s_:__lu
mov dword [esp + 4], 0x400
lea ebx, [esp + 0x90]
mov dword [esp], ebx
call sub.msvcrt.dll__snprintf
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.OCRA
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
add esp, 0x494
pop ebx
pop edi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Failed_to_get_exit_status__error__lu_.
mov dword [esp + 4], 0x400
lea ebx, [esp + 0x90]
mov dword [esp], ebx
call sub.msvcrt.dll__snprintf
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.OCRA
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
jmp 0x403ede
Function at 0x4045b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x404610
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x404706
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x404680
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x404655
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x404665
cmp byte [esp + 0x1e], 0
je 0x404665
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x404665
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004045b0
nop

Function at 0x4049a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408060
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x408078]
sub esp, 4
test ebx, ebx
je 0x4049eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4049e4
test esi, esi
je 0x4049e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4049c0
mov dword [esp], 0x408060
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x404d80
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00404980
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x404db6
jmp 0x404df5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x404db3
cmp al, 0x20
je 0x404db3
cmp al, 0x22
jne 0x404dd9
jmp 0x404e44
cmp al, 0x20
lea esi, [esi]
je 0x404de0
test al, al
je 0x404df5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x404dc7
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x404e5a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x404de7
cmp al, 0x20
je 0x404de7
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x404e04
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404004
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x404e4e
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x404e40
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x404de0
cmp al, 9
je 0x404de7
jmp 0x404df5
Function at 0x401140
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
xor ebx, ebx
push 1
push 2
push ebx
push 1
push eax
push ecx
mov byte [esi], bl
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
je 0x4011b5
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
push ebx
push str.DriverVersion
push edi
mov dword [esp + 0x30], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011ab
cmp dword [esp + 0x14], 1
jne 0x4011ab
cmp byte [esi], 0
je 0x4011ab
push edi
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
ret
push edi
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4013a0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
ret

Function at 0x4013d0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x401400
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x401760
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4017e7
push ebx
push esi
push edi
mov edi, str.inf_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x114]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x401970
Capabilities:
Delete registry key

Disassembly:
push ecx
push edi
push str.SYSTEMCurrentControlSetEnum
call fcn.00401840
mov edi, eax
add esp, 4
test edi, edi
jne 0x401988
pop edi
pop ecx
ret
push ebx
push ebp
lea eax, [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetEnumVSBUS
push 0x80000002
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4019cc
mov ecx, dword [esp + 0x10]
push str.VSPORT
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
push edi
push str.SYSTEMCurrentControlSetEnum
call fcn.004017f0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call esi
test eax, eax
jne 0x401a10
mov ecx, dword [esp + 0x10]
push str.evsports
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass
push 0x80000002
call esi
test eax, eax
jne 0x401a3f
mov ecx, dword [esp + 0x10]
push str.1DC95397_FD3B_44D2_9B94_4E851D8D1511
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x401a50
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402d10
push eax
mov dword fs:[0], esp
sub esp, 0x58
lea eax, [esp + 0x68]
push edi
push 0
push 0
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401a93
or eax, eax
pop edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x1c
push ecx
push 0
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x401c22
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov ebx, 1
push 0x20019
push 2
push 0
lea edx, [esp + 0x30]
push ebx
push edx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x401c01
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.InfSection
push esi
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
jne 0x401bfa
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401bfa
lea edx, [esp + 0x10]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.InfPath
push esi
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
jne 0x401be3
cmp dword [esp + 0x10], 0x28
jne 0x401b6c
mov byte [esp + 0x67], 0
lea edx, [esp + 0x40]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x20]
push 3
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x78], 0
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push 0x405454
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x401bd2
lea edx, [esp + 0x40]
push edx
call fcn.00401760
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x24]
push eax
push edi
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
jmp 0x401c01
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
inc eax
push ecx
push eax
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x401ac7
pop esi
pop ebp
pop ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x401eb0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401f00
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x14]
push 0
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401f21
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x401300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor eax, eax
nop dword [eax + eax]
mov edx, eax
mov ecx, eax
sar edx, 5
or ecx, 0x1f
cmp ecx, 0x68
lea edi, [ebx + edx*4]
mov ecx, 9
mov esi, 0x20
cmovge esi, ecx
xor edx, edx
bts edx, esi
xor ecx, ecx
cmp esi, 0x20
cmovae ecx, edx
add eax, 0x20
xor edx, ecx
dec edx
or dword [edi], edx
cmp eax, 0x68
jle 0x401310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4033c0
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 0x403421
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x403404
cmp edi, 2
jb 0x403404
cmp byte [esi], cl
jne 0x403404
cmp byte [esi + 1], cl
jne 0x403404
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4a0f48]
jmp 0x4033d5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4a0f48]
test edi, edi
jne 0x4033d5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x403450
cmp cl, 0x23
jne 0x403437
cmp byte [esi], cl
jne 0x403437
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 + 0x4a0f48]
test cl, cl
jne 0x403428
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x403560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
je 0x403573
mov dword [eax], 0
call fcn.00403460
mov esi, eax
test esi, esi
je 0x40364f
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x403645
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 0x403645
push esi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x403645
push 0
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403645
mov eax, dword [0x4feb00]
test eax, eax
je 0x4035e0
inc dword [eax + 0xb0]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x403645
push esi
push ebx
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, ebx
je 0x40362c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x4feb00]
add esp, 4
test eax, eax
je 0x40361b
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
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x40363e
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
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
pop ebp
ret
Function at 0x40b0b0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40b0ed
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40b0d3
cmp byte [esi], bl
jne 0x40b0d3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x4a0f48]
test bl, bl
jne 0x40b0c4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040b050
Function at 0x410a60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4fe040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4feb00]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3e28]
mov esi, 4
mov eax, dword [edi + 0xc8]
add edi, 0xc8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4a0f48]
sub esi, 1
jne 0x410aa1
mov eax, dword [0x4feb00]
not ebx
cmp dword [eax + 0x3e48], ebx
jne 0x410adb
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.00417430
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x410b06
inc esi
test ecx, ecx
je 0x410af4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x410af9
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.00417c60
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e7f2
mov esp, ebp
pop ebp
ret
Function at 0x416350
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 + 0x5264], 0
lea esi, [edi + 0x5268]
je 0x4163d2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41638c
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.00417f30
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00403960
mov edx, dword [esi]
mov ecx, 0x4feafc
push dword [edi + 0x5264]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5270]
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.00403960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416890
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 [0x4feb00]
test bl, bl
je 0x4168d6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x4168b7
cmp byte [esi], bl
jne 0x4168b7
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 + 0x4a0f48]
test bl, bl
jne 0x4168a8
mov edi, dword [0x4feb00]
mov esi, dword [edi + 0x5228]
xor ecx, ecx
not eax
test esi, esi
jle 0x4168fc
mov edi, dword [edi + 0x5230]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x416902
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x4168f0
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x420850
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 0x42088a
mov eax, dword [0x4feb00]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x42087d
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 0x4208bb
mov eax, dword [0x4feb00]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x4208ae
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 0x4208ec
mov eax, dword [0x4feb00]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x4208df
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 0x420939
mov eax, dword [0x4feb00]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42092c
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 0x42096a
mov eax, dword [0x4feb00]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42095d
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 0x42099b
mov eax, dword [0x4feb00]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x42098e
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.00423190