joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ece
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402f37
cmp dword [ebp + 0x10], 1
je 0x402f0f
cmp dword [ebp + 0x10], 2
je 0x402f0f
push 0xd
pop eax
jmp 0x402f37
mov eax, dword [ebp - 4]
test edi, edi
je 0x402f31
test eax, eax
je 0x402f2c
test al, 1
jne 0x402f0a
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x402f31
jmp 0x402f0a
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x40347d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4100e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
mov dword [ebp - 0x218], eax
cmp eax, edi
je 0x4035ec
push str.SetProcessDPIAware
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4034be
call eax
push ebx
push esi
push edi
push edi
push edi
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 0x5a
push ebx
call esi
push 8
push ebx
mov dword [ebp - 0x21c], eax
call esi
push 0xa
push ebx
mov dword [ebp - 0x210], eax
call esi
push ebx
mov dword [ebp - 0x214], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.SoftwareKingsoftOffice6.0pluginshighresolution
call fcn.004032de
mov ebx, eax
mov dword [esp], 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00404f10
add esp, 0xc
cmp ebx, edi
je 0x4035ea
push 0xa
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call fcn.00405285
lea eax, [ebp - 0x20c]
push eax
call fcn.00404541
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x10
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x40c41c
push ebx
call esi
push 0xa
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.00405285
lea eax, [ebp - 0x20c]
push eax
call fcn.00404541
add esp, 0x10
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push str.screenwidth
push ebx
call esi
push 0xa
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.00405285
lea eax, [ebp - 0x20c]
push eax
call fcn.00404541
add esp, 0x10
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push str.screenheight
push ebx
call esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00404a0c
leave
ret

Function at 0x404a0c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4100e0]
jne 0x404a16
repz ret
jmp fcn.0040754c
Function at 0x4080a5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4100e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405c66
and dword [ebp - 0x14], 0
cmp dword [0x411c3c], 0
mov dword [ebp - 0x18], eax
jne 0x408158
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408200
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408200
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411c3c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411c40], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411c44], eax
call edi
push eax
call esi
mov dword [0x411c4c], eax
test eax, eax
je 0x408158
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411c48], eax
mov eax, dword [0x411c48]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4081b1
cmp dword [0x411c4c], ecx
je 0x4081b1
push eax
call esi
push dword [0x411c4c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4081b1
test ebx, ebx
je 0x4081b1
call edi
test eax, eax
je 0x4081a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4081a8
test byte [ebp - 8], 1
jne 0x4081b1
or dword [ebp + 0x10], 0x200000
jmp 0x4081e4
mov eax, dword [0x411c40]
cmp eax, dword [ebp - 0x18]
je 0x4081e4
push eax
call esi
test eax, eax
je 0x4081e4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4081e4
mov eax, dword [0x411c44]
cmp eax, dword [ebp - 0x18]
je 0x4081e4
push eax
call esi
test eax, eax
je 0x4081e4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411c3c]
call esi
test eax, eax
je 0x408200
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408202
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404a0c
leave
ret
Function at 0x10004190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100041b6
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x10003e00
push 0
push 0
mov dword [0x1004a4ac], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10006770
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 0x100067d1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100067b4
cmp edi, 2
jb 0x100067b4
cmp byte [esi], cl
jne 0x100067b4
cmp byte [esi + 1], cl
jne 0x100067b4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10041b40]
jmp 0x10006785
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10041b40]
test edi, edi
jne 0x10006785
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10006800
cmp cl, 0x23
jne 0x100067e7
cmp byte [esi], cl
jne 0x100067e7
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 + 0x10041b40]
test cl, cl
jne 0x100067d8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x100068e0
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 0x100068f4
mov dword [ebx], 0
mov edx, 0x10046c54
call fcn.10006810
mov esi, eax
test esi, esi
je 0x100069e2
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 0x100069d8
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 0x100069d8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x100069d8
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 0x100069d8
mov eax, dword [0x1004a4dc]
test eax, eax
je 0x1000696c
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 0x100069d8
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 0x100069bd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1004a4dc]
add esp, 4
test eax, eax
je 0x100069aa
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 0x100069cf
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 0x1000a220
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1004a040]
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 + 0x10041b40]
sub esi, 1
jne 0x1000a260
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e94], ebx
jne 0x1000a297
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.1001cd80
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003f434
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x1004a4dc]
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 0x1000c33f
push ecx
add ecx, 0x78
call fcn.100284c0
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 0x1000c3b2
cmp eax, 1
jne 0x1000c363
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x1000c363
cmp dword [eax + 0x20], 0
je 0x1000c3b2
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x1000c399
lea edx, [eax + 1]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x1000c384
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x1000c389
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.1001d370
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 0x1000c3f2
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x1000c3eb
cmp byte [ecx + 0xb1], 0
jne 0x1000c3eb
mov edx, ebx
call fcn.1000c300
add esi, 4
cmp esi, edi
jne 0x1000c3d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d6e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x1004a4dc]
push edi
mov dword [ebp - 4], edx
mov ebx, dword [esi + 0x3e60]
cmp dword [ebx + 0x190], 0
jne 0x1000d70f
cmp dword [esi + 0x4a28], 0
mov eax, 0x228
je 0x1000d714
mov eax, 0x1f8
movss xmm1, dword [eax + ebx]
xorps xmm5, xmm5
movss xmm0, dword [eax + ebx + 4]
mov edi, 1
mov ecx, dword [ebp + 8]
subss xmm1, dword [ebx + 0xf0]
subss xmm0, dword [ebx + 0xf4]
movss xmm4, dword [0x10047e58]
cvttss2si eax, dword [ecx]
movd xmm3, eax
cvttss2si eax, dword [ecx + 4]
cvtdq2ps xmm3, xmm3
movd xmm2, eax
ucomiss xmm3, xmm5
cvtdq2ps xmm2, xmm2
lahf
xor ecx, ecx
test ah, 0x44
cmovnp ecx, edi
mov edi, 2
ucomiss xmm2, xmm5
lahf
test ah, 0x44
mov eax, 0
cmovnp eax, edi
or eax, ecx
comiss xmm5, xmm3
mov dword [ebp - 0xc], eax
jb 0x1000d78b
addss xmm3, xmm1
maxss xmm3, xmm4
comiss xmm5, xmm2
jb 0x1000d798
addss xmm2, xmm0
maxss xmm2, xmm4
or dword [esi + 0x4714], edi
lea eax, [ebp + 8]
push edx
push 0x10041281
movss dword [esi + 0x4734], xmm3
movss dword [esi + 0x4738], xmm2
mov dword [esi + 0x471c], 1
push dword [ebx + 4]
push str._s__s__08X
push 0
push eax
call fcn.100066c0
movss xmm0, dword [esi + 0x37b8]
xor edx, edx
mov ecx, dword [ebp + 8]
push 0x1000107
movss dword [ebp - 8], xmm0
call fcn.100108e0
mov edi, dword [esi + 0x3e60]
add esp, 0x1c
movss xmm0, dword [ebp - 8]
mov edx, dword [ebp - 4]
movss dword [esi + 0x37b8], xmm0
cmp word [edi + 0xb6], 1
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov dword [edi + 0x74], edx
mov byte [edi + 0xc6], al
jne 0x1000d834
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, 0x10046231
mov ebx, edi
cmp al, 0x23
jne 0x1000d84f
cmp byte [edx], al
jne 0x1000d84f
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 + 0x10041b40]
test al, al
jne 0x1000d841
mov edi, dword [ebp - 8]
not ebx
cmp dword [esi + 0x3eac], ebx
jne 0x1000d87e
xor edx, edx
xor ecx, ecx
call fcn.1000a2b0
mov eax, dword [ebp - 4]
cmp dword [esi + 0x47fc], eax
jne 0x1000d8c3
cmp word [edi + 0x14c], 0
jne 0x1000d89c
cmp byte [edi + 0x152], 0
je 0x1000d8c3
xor edx, edx
mov ecx, edi
call fcn.10012f70
xor dl, dl
mov ecx, edi
call fcn.10018480
mov edx, edi
mov ecx, ebx
call fcn.1000a2b0
mov eax, dword [esi + 0x4820]
mov dword [esi + 0x3ecc], eax
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000dad0
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 0x1000db0f
cmp bl, 0x23
jne 0x1000daf1
cmp byte [esi], bl
jne 0x1000daf1
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 + 0x10041b40]
test bl, bl
jne 0x1000dae2
mov ecx, dword [0x1004a4dc]
not eax
mov esi, dword [ecx + 0x3e48]
mov edi, dword [ecx + 0x3e50]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1000db4e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1000db48
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000db4a
mov esi, edx
test esi, esi
jne 0x1000db30
cmp edi, ebx
je 0x1000db5d
cmp dword [edi], eax
jne 0x1000db5d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1001b620
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 + 0x5ae8], 0
lea esi, [edi + 0x5aec]
je 0x1001b6a2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001b65c
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.1001d830
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10006d70
mov edx, dword [esi]
mov ecx, 0x1004a4d8
push dword [edi + 0x5ae8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5af4]
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.10006d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001ba90
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 [0x1004a4dc]
test bl, bl
je 0x1001bad6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1001bab7
cmp byte [esi], bl
jne 0x1001bab7
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 + 0x10041b40]
test bl, bl
jne 0x1001baa8
mov edi, dword [0x1004a4dc]
mov ecx, dword [edi + 0x5a8c]
not eax
mov edx, dword [edi + 0x5a94]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x1001bafd
cmp dword [edx + 4], eax
je 0x1001bb00
add edx, 0x24
cmp edx, ecx
jne 0x1001baf1
xor eax, eax
ret
mov eax, edx
ret
Function at 0x10025b50
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 0x10025b8a
mov eax, dword [0x1004a4dc]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10025b7d
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 0x10025bbb
mov eax, dword [0x1004a4dc]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x10025bae
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 0x10025bec
mov eax, dword [0x1004a4dc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x10025bdf
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 0x10025c39
mov eax, dword [0x1004a4dc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x10025c2c
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 0x10025c6a
mov eax, dword [0x1004a4dc]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10025c5d
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 0x10025c9b
mov eax, dword [0x1004a4dc]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10025c8e
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.100283b0
Function at 0x1003cfa0
Capabilities:
Hash data with crc32

Disassembly:
push ecx
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov edi, edx
je 0x1003d012
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x1003cfe8
or edi, 0xffffffff
nop
cmp cl, 0x23
jne 0x1003cfcf
cmp byte [esi], cl
jne 0x1003cfcf
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 + 0x10041b40]
test cl, cl
jne 0x1003cfc0
mov ecx, dword [0x1004a4dc]
not eax
cmp dword [ecx + 0x3eac], eax
jne 0x1003cffe
mov dword [ecx + 0x3eb0], eax
cmp dword [ecx + 0x3ed4], eax
jne 0x1003d058
mov byte [ecx + 0x3ed8], 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x1004a4dc]
xor edx, edx
mov esi, dword [eax + 0x3e60]
mov ecx, dword [esi + 0xe4]
mov eax, dword [esi + 0xec]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.10006770
mov ecx, dword [esi]
mov ebx, eax
add esp, 4
cmp dword [ecx + 0x3e94], ebx
jne 0x1003d056
push ecx
push edi
mov edx, 0xb
mov ecx, ebx
call fcn.1001cd80
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1003f3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1004a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
cmp eax, 7
jb 0x1003f421
cmp esi, 0xffffffff
je 0x1003f421
cmp eax, 0xffffffff
je 0x1003f421
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push 0x40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 0xffffffff
je 0x1003f421
mov dword [ebp - 0xb], edi
mov cl, 0xe0
mov byte [ebp - 0xc], 0xb8
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov byte [ebp - 7], 0xff
mov ax, word [ebp - 8]
mov word [esi + 4], ax
xor eax, eax
pop edi
mov byte [esi + 6], cl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003f434
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.1003f434
mov esp, ebp
pop ebp
ret
Function at 0x10001b8a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
cmp dword [ebp + 0x10], 0
jne 0x10001ba4
mov dword [ebp + 0xc], 0x61a8
mov dword [ebp - 4], esp
push dword [ebp + 0xc]
push 0
push 0x11010
push 0x1000f2c4
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0
xor eax, eax
call dword [sym.imp.USER32.dll_MessageBoxTimeoutA]
nop
nop
cmp dword [ebp - 4], esp
je 0x10001be9
push 0x7a
push 0x4010b96
push 6
call fcn.10004558
add esp, 0xc
mov dword [ebp - 4], esp
push 0
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 4], esp
je 0x10001c1c
push 0xad
push 0x4010b96
push 6
call fcn.10004558
add esp, 0xc
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001d6c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x10001dbe
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001db6
push 0x4f
push 0x4010b85
push 6
call fcn.10004558
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x10001dc4
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10001dd8
mov eax, 0
jmp 0x10001e14
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001e09
push 0x101
push 0x4010b85
push 6
call fcn.10004558
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x10001e14
mov esp, ebp
pop ebp
ret 8

Function at 0x1000219c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 5
push 0x1000f2c4
push 0x1000f2c4
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str.open
mov eax, dword [ebp + 8]
and eax, 0xff
push eax
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x100021f0
push 0
push 0x4010082
push 6
call fcn.10004558
add esp, 0xc
mov esp, ebp
pop ebp
ret 8

Function at 0x10005110
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10005179
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.100047b0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret