joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403720
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d9b08
push eax
mov dword fs:[0], esp
sub esp, 0x448
push esi
push edi
mov edi, dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x40375b
lea eax, [ebp - 0x454]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x403748
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov ebx, dword [ebp - 0x10]
xor esi, esi
call edi
cmp esi, 0x2b259d
jle 0x403782
cmp ebx, 0x785074d5
jne 0x40378b
inc esi
cmp esi, 0x1c1b
jl 0x403770
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x4037bd
inc esi
cmp esi, 0x4f6a4
jl 0x4037a0
cmp dword [0x8fb080], 0x400
jne 0x403800
push 0
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [ebp - 0x30]
call fcn.00403890
push 0
mov dword [ebp - 4], 0
call fcn.00403bc4
add esp, 4
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.004038b0
mov edx, dword [0x4dc13c]
mov eax, dword [0x4dc110]
mov dword [0x8fb080], edx
mov dword [0x8fb084], eax
call fcn.004033e0
mov ebx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40383a
cmp ebx, 0x785074d5
jne 0x403843
inc esi
cmp esi, 0x11915
jl 0x403826
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
nop
cmp dword [0x8fb080], 0x51f
jne 0x403862
lea ecx, [ebp - 0x54]
push ecx
call esi
sub edi, 1
jne 0x403850
mov eax, dword [0x8f9fd4]
mov dword [0x8fa614], eax
call eax
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404530
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4db0c8]
jne 0x40453a
repz ret
jmp fcn.00406c9e
Function at 0x4068bf
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.004045b1
and dword [ebp - 4], 0
cmp dword [0x4dca10], 0
mov ebx, eax
jne 0x406970
push 0x4019f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406a21
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019ec
push edi
call esi
test eax, eax
je 0x406a21
push eax
call fcn.0040453f
mov dword [esp], 0x4019dc
push edi
mov dword [0x4dca10], eax
call esi
push eax
call fcn.0040453f
mov dword [esp], 0x4019c8
push edi
mov dword [0x4dca14], eax
call esi
push eax
call fcn.0040453f
mov dword [esp], 0x4019ac
push edi
mov dword [0x4dca18], eax
call esi
push eax
call fcn.0040453f
pop ecx
mov dword [0x4dca20], eax
test eax, eax
je 0x406970
push 0x401994
push edi
call esi
push eax
call fcn.0040453f
pop ecx
mov dword [0x4dca1c], eax
mov eax, dword [0x4dca1c]
cmp eax, ebx
je 0x4069c8
cmp dword [0x4dca20], ebx
je 0x4069c8
push eax
call fcn.004045ba
push dword [0x4dca20]
mov esi, eax
call fcn.004045ba
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4069c8
test edi, edi
je 0x4069c8
call esi
test eax, eax
je 0x4069bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4069bf
test byte [ebp - 0xc], 1
jne 0x4069c8
or dword [ebp + 0x10], 0x200000
jmp 0x406a01
mov eax, dword [0x4dca14]
cmp eax, ebx
je 0x406a01
push eax
call fcn.004045ba
pop ecx
test eax, eax
je 0x406a01
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406a01
mov eax, dword [0x4dca18]
cmp eax, ebx
je 0x406a01
push eax
call fcn.004045ba
pop ecx
test eax, eax
je 0x406a01
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dca10]
call fcn.004045ba
pop ecx
test eax, eax
je 0x406a21
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406a23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x100038c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100038cf
pop dword [ebp - 0x24]
mov eax, 0xa656a821
sub eax, 0x96566f52
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x67d499dc
add dword [ebp - 0x34], 0xe67dab6f
mov dword [ebp - 0x30], 0x1caec628
sub dword [ebp - 0x30], 0xea7b79e3
mov dword [ebp - 0x2c], 0xc643e153
add dword [ebp - 0x2c], 0x860862db
mov dword [ebp - 0x28], 0xbcd2ac34
add dword [ebp - 0x28], 0x432d53cc
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x2cfe0aa2
sub dword [ebp - 0x34], 0xb88ba14c
mov dword [ebp - 0x30], 0x63d02210
add dword [ebp - 0x30], 0xdd9c3f65
mov dword [ebp - 0x2c], 0x689a859b
sub dword [ebp - 0x2c], 0x52b192f
mov dword [ebp - 0x28], 0x5f3ae467
sub dword [ebp - 0x28], 0x5f3ae467
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x38076083
sub eax, 0x2805c077
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36ef7
push 0
call eax
mov ecx, 0x652c8efe
sub ecx, 0x652c542f
mov esi, eax
mov edx, 0x10024a00
add edx, dword [ebp - 0x24]
mov edi, 0xa30bf59f
mov dword [ebp - 0xc], 0xcc3f6d78
mov ebx, dword [edx]
sub dword [ebp - 0x1c], 0x5746d457
xor ebx, edi
sub dword [ebp - 0xc], 0xcd3a90a8
mov dword [esi], ebx
add dword [ebp - 0x10], ebx
add esi, 4
add edx, 0xa3c07b11
add edx, 0x5c3f84f3
loop 0x100039e0
add eax, 0x22d70537
add eax, 0xdd29d8d8
mov ebx, eax
add eax, 0x2c546f6d
add eax, 0xd3ab9098
mov ecx, 0xdedce2d4
add ecx, 0x31231d2c
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10001720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10001748
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x10001670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10004280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x1004e00c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push 0x40
mov dword [0x1004e6b8], edi
mov dword [0x1004e6bc], 0x10001350
mov dword [0x1004e6c4], 5
mov dword [0x1004e6c0], 0x1004e630
mov eax, dword [edi]
push 0x3000
mov dword [0x1004e6c8], eax
mov al, byte [edi + 4]
push 5
push 0
mov byte [0x1004e6cc], al
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100042f7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x10004301
mov eax, dword [edi]
mov dword [ebx], eax
mov al, byte [edi + 4]
mov byte [ebx + 4], al
mov eax, edi
mov byte [ebx + 5], 0xe9
sub eax, ebx
sub eax, 5
mov dword [ebx + 6], eax
lea eax, [esp + 8]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x10001350
mov byte [edi], 0xe9
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x1004e6c0]
mov edx, str.___Info:_Hooked_BOOL_wglSwapLayerBuffers_HDC__UINT_
mov dword [eax], ebx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10001820
mov ecx, eax
call fcn.10004510
mov ecx, dword [esp + 0xc]
mov al, 1
pop edi
pop ebx
xor ecx, esp
mov byte [0x1004e6b4], 1
call fcn.100407ae
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10004380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1004e00c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x40
push dword [0x1004e6c4]
push dword [0x1004e6b8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [0x1004e6c4]
push 0x1004e6c8
push dword [0x1004e6b8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [0x1004e6c4]
push dword [0x1004e6b8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x1004e6b4], 0
call fcn.100407ae
mov esp, ebp
pop ebp
ret
Function at 0x100063a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1004e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x10047f84
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov ebx, dword [ebp - 8]
add esp, 0xc
test ebx, ebx
jne 0x100063f0
lea eax, [ebx - 3]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100407ae
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10006409
mov esi, 0xfffffffd
jmp 0x10006481
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
js 0x10006402
jne 0x1000641f
xor esi, esi
jmp 0x10006481
lea eax, [esi + 1]
push 0x1004341d
push eax
call fcn.10040a07
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000643b
lea esi, [eax - 2]
jmp 0x10006481
push 0
push 0
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push ebx
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x1000646c
push edi
call fcn.1004081d
mov esi, 0xfffffffd
jmp 0x1000647e
mov ecx, dword [ebp - 0xc]
push eax
push edi
call fcn.10007560
push edi
mov esi, eax
call fcn.1004081d
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100407ae
mov esp, ebp
pop ebp
ret 4

Function at 0x1000cb60
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 0x1000cbac
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1000cb8f
cmp edi, 2
jb 0x1000cb8f
cmp byte [esi], cl
jne 0x1000cb8f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10043630]
test edi, edi
jne 0x1000cb75
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1000cbdb
cmp cl, 0x23
jne 0x1000cbc2
cmp byte [esi], cl
jne 0x1000cbc2
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 + 0x10043630]
test cl, cl
jne 0x1000cbb3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x1000ccc0
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 0x1000ccd4
mov dword [ebx], 0
mov edx, 0x10047f84
call fcn.1000cbf0
mov esi, eax
test esi, esi
je 0x1000cdc2
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 0x1000cdb8
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 0x1000cdb8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x1000cdb8
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 0x1000cdb8
mov eax, dword [0x1004e688]
test eax, eax
je 0x1000cd4c
inc dword [eax + 0x374]
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 0x1000cdb8
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 0x1000cd9d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1004e688]
add esp, 4
test eax, eax
je 0x1000cd8a
dec dword [eax + 0x374]
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 0x1000cdaf
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 0x1000fbc0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042503
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1004e00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004e688]
test eax, eax
je 0x1000fc0a
inc dword [eax + 0x374]
push 0x3be8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x11]
add esp, 4
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1000fc3e
push ecx
mov ecx, eax
call fcn.1000b4b0
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x1000fc43
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov esi, 0x1004aa79
mov eax, dword [0x1004e688]
test eax, eax
mov dword [ebp - 0x24], 0
cmove eax, edi
mov dword [ebp - 0x38], str.Window
mov dword [0x1004e688], eax
or edx, 0xffffffff
mov al, 0x57
or edi, 0xffffffff
cmp al, 0x23
jne 0x1000fc82
cmp byte [esi], al
jne 0x1000fc82
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x10043630]
test al, al
jne 0x1000fc74
mov edi, dword [ebp - 0x18]
not edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0x1001ca20
mov dword [ebp - 0x2c], 0x1001cac0
mov esi, dword [edi + 0x2da0]
mov ecx, dword [edi + 0x2da4]
mov dword [ebp - 0x28], 0x1001cb90
cmp esi, ecx
jne 0x1000fd5f
inc esi
test ecx, ecx
je 0x1000fcdc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000fce1
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1000fd5f
mov eax, dword [0x1004e688]
test eax, eax
je 0x1000fcf9
inc dword [eax + 0x374]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, dword [edi + 0x2da8]
add esp, 4
mov dword [ebp - 0x18], eax
test edx, edx
je 0x1000fd53
mov ecx, dword [edi + 0x2da0]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2da8]
add esp, 0xc
test ecx, ecx
je 0x1000fd46
mov eax, dword [0x1004e688]
test eax, eax
je 0x1000fd46
dec dword [eax + 0x374]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [edi + 0x2da8], eax
mov dword [edi + 0x2da4], esi
mov eax, dword [edi + 0x2da0]
movups xmm0, xmmword [ebp - 0x38]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2da8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, edi
inc dword [edi + 0x2da0]
mov byte [edi], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10012720
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 0x1001275f
cmp bl, 0x23
jne 0x10012741
cmp byte [esi], bl
jne 0x10012741
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 + 0x10043630]
test bl, bl
jne 0x10012732
mov ebx, dword [0x1004e688]
not eax
mov esi, dword [ebx + 0x19e8]
mov edi, dword [ebx + 0x19f0]
mov ecx, edi
test esi, esi
je 0x100127a4
nop dword [eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10012798
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1001279a
mov esi, edx
test esi, esi
jne 0x10012780
mov ecx, dword [ebx + 0x19f0]
mov edx, dword [ebx + 0x19e8]
lea ecx, [ecx + edx*8]
cmp edi, ecx
je 0x100127bc
cmp dword [edi], eax
jne 0x100127bc
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1001c340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x1004e688]
push edi
cmp byte [esi + 0x2db8], 0
je 0x1001c3df
cmp dword [esi + 0x2dc0], 0
lea edi, [esi + 0x2dc4]
je 0x1001c3d1
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1001c389
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, edi
call fcn.1001d680
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.1000d2b0
mov edx, dword [edi]
mov ecx, 0x1004e636
push dword [esi + 0x2dc0]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2dcc]
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
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.1000d2b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001c920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x1004e688]
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov dword [esi + 0x2d90], 0
test eax, eax
je 0x1001ca18
lea edi, [esi + 0x2d94]
mov dword [esi + 0x2d90], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1001c978
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, edi
call fcn.1001d680
mov ecx, dword [edi + 4]
xor edx, edx
mov dword [edi], 0
test ecx, ecx
jne 0x1001c98f
push 8
mov ecx, edi
call fcn.1001d680
mov edx, dword [edi]
mov eax, dword [edi + 8]
mov dword [ebp - 4], 0
mov byte [edx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2da0], 0
mov ebx, dword [edi]
jle 0x1001c9d7
xor ebx, ebx
nop dword [eax]
mov eax, dword [esi + 0x2da8]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2da0]
jl 0x1001c9b0
mov ebx, dword [edi]
mov ecx, dword [ebp - 8]
lea eax, [ebx - 1]
neg ebx
mov edi, 0x1004e636
mov edx, 0x1004ab30
sbb ebx, ebx
and ebx, eax
mov eax, dword [esi + 0x2d9c]
test eax, eax
cmovne edi, eax
call fcn.1000cbf0
mov esi, eax
test esi, esi
je 0x1001ca18
push esi
push ebx
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
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10036440
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0x54], 0x100000
push esi
push edi
mov edi, edx
je 0x100364b0
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x10036488
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x1003646f
cmp byte [esi], cl
jne 0x1003646f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10043630]
test cl, cl
jne 0x10036460
mov ecx, dword [0x1004e688]
not eax
cmp dword [ecx + 0x1a2c], eax
jne 0x1003649e
mov dword [ecx + 0x1a30], eax
cmp dword [ecx + 0x1a64], eax
jne 0x100364f5
pop edi
mov byte [ecx + 0x1a68], 1
pop esi
ret
mov esi, dword [0x1004e688]
xor edx, edx
mov eax, dword [esi + 0x19f8]
mov ecx, dword [eax + 0xbc]
mov eax, dword [eax + 0xc4]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.1000cb60
add esp, 4
cmp dword [esi + 0x1a2c], eax
jne 0x100364e6
mov dword [esi + 0x1a30], eax
cmp dword [esi + 0x1a64], eax
jne 0x100364f5
mov byte [esi + 0x1a68], 1
pop edi
pop esi
ret

Function at 0x1003be20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1004e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 8]
mov edi, edx
push eax
push 0x40
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push 0x90
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100407ae
mov esp, ebp
pop ebp
ret