joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4082b3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, edx
push esi
mov esi, eax
push edi
test ecx, ecx
je 0x40834d
test ebx, ebx
je 0x40834d
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
push ecx
mov dword [ebx], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408342
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x408342
mov esi, dword [ebp - 0x10]
push esi
call fcn.00408543
push esi
push 0
push eax
mov dword [ebp - 8], eax
call fcn.00409830
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0x10
push 0
push eax
push esi
mov esi, dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408342
mov eax, dword [ebp - 4]
mov dword [ebx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40834f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408356
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x420e40
call fcn.00408f60
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x408377
mov dword [ebp - 4], 0xfffffffe
jmp 0x4083ad
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x40836e
mov edx, dword [ecx + 0x3c]
add edx, ecx
je 0x40836e
cmp dword [edx], 0x4550
jne 0x40836e
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x4083ad
call fcn.00408fa6
ret

Function at 0xdc7e58
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdc7e62
pushal
call 0xdc7e68
pop ebp
sub ebp, 0x10
sub ebp, 0x9c7e58
jmp 0xdc7e7e
mov eax, 0x9c7e58
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ce
mov edx, 0xbb1becfb
xor byte [eax], dl
inc eax
dec ecx
jne 0xdc7e95
jmp 0xdc7ea8
jo 0xdc7ee0
jo 0xdc7f1e
invalid
cli
xlatb
fist word [ebx + 0x28696b95]
adc edi, esi
sti
sti
sti
adc dl, ch
sti
sti
sti
scasb al, byte es:[edi]
scasd eax, dword es:[edi]
cmpsb byte [esi], byte es:[edi]
jo 0xdc7f75
sti
sti
sti
jo 0xdc7f6b
idiv ebx
sti
sti
jo 0xdc7f79
jmp 0xdc7f00
idiv ebx
jo 0xdc7f99
invalid
sti
xchg ebx, eax
arpl word [eax - 0x7f], cx
sti
cli
xlatb
fbstp tbyte [esi - 0x61]
fild word [edi]
jb 0xdc7f31
fist word [ebx]
invalid
enter 0x7a32, 9
dec ecx
mov bl, ah
mov dl, 0x7a
or dword [ecx - 0x78], ecx
jecxz 0xdc7f2b
dec ecx
mov bl, ah
mov dl, 0xc8
sub dword [eax + 0x13], edi
enter 0x7829, 0x13
invalid
add byte [edx], dl
hlt
Function at 0x46b320
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x46f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc08], eax
cmp esi, 0x182
jne 0x46b35a
lea ecx, [ebp - 0xc2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x46b378
cmp esi, 0x19f
jne 0x46b378
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor edi, edi
test esi, esi
jle 0x46b421
push ebx
mov ebx, dword [ebp - 0xc08]
lea esp, [esp]
lea esi, [ebp - 0xc0c]
mov dword [ebp - 0xc0c], 0
call fcn.0046b310
mov dl, byte [ebp - 0xc0c]
mov eax, dword [ebp - 0xc08]
mov esi, dword [ebp + 0xc]
xor byte [eax + edi], dl
cmp esi, 0xf
jne 0x46b417
lea eax, [ebp - 0xc10]
push eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.wepetejef
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push str.wujokinozalucawisuhej
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
lea edx, [ebp - 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
push str.naxoj
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, esi
jl 0x46b390
pop ebx
pop edi
cmp esi, 0x2d
pop esi
jne 0x46b43c
mov dword [0x27bc038], 0xa62e7790
mov dword [0x27bc03c], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x46b450
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x27bbf04]
push esi
push edi
mov edi, dword [0x27bbd4c]
mov esi, eax
cmp eax, 0x5dd
jne 0x46b472
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x470010]
call fcn.0046b2e0
cmp dword [0x27bbf04], 0x2f
jne 0x46b48d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
push edi
call fcn.0046b320
add esp, 8
cmp dword [0x27bbf04], 0x568
pop edi
pop esi
jne 0x46b4b7
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
ret
Function at 0x1003cee
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp byte [esi + 4], 0
push edi
je 0x1003d31
mov edi, 0x8000ffff
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003dbf
test byte [eax + 0x1c], 1
je 0x1003dbf
push edi
push 0x1001380
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1003dbf
push ebx
push 0x104
mov edi, 0x7ffe0030
push edi
call sub.msvcrt.dll_wcsnlen
pop ecx
pop ecx
add eax, 0xa
lea ebx, [esi + 0x20]
push ebx
push 0
mov dword [esi + 0x24], eax
inc eax
push eax
push 0x10013b4
push edi
call fcn.010078e9
mov edi, eax
test edi, edi
jge 0x1003d7f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003dbe
test byte [eax + 0x1c], 1
je 0x1003dbe
push edi
push 0x1001380
push 0xb
jmp 0x1003dab
mov eax, dword [esi + 0x24]
inc eax
push eax
push dword [ebx]
call fcn.01003cab
mov edi, eax
test edi, edi
jge 0x1003db8
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003dbe
test byte [eax + 0x1c], 1
je 0x1003dbe
push edi
push 0x1001380
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1003dbe
mov byte [esi + 4], 1
xor edi, edi
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x1005647
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ecx
test eax, 0xfffffcff
jne 0x100566b
test eax, 0x100
je 0x1005696
test eax, 0x200
je 0x1005696
mov ecx, 0x80070057
mov ebx, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005778
test byte [eax + 0x1c], 1
je 0x1005778
push ecx
push 0x10014c4
push 0x23
jmp 0x10056c9
cmp dword [ebp + 0x1c], ecx
je 0x10056a0
cmp dword [ebp + 0x20], ecx
jne 0x10056d9
mov ecx, 0x80070057
mov ebx, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005778
test byte [eax + 0x1c], 1
je 0x1005778
push ecx
push 0x10014c4
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1005778
push esi
push edi
lea edx, [ebp - 4]
push edx
or eax, 2
push eax
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
je 0x1005726
jle 0x1005704
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jge 0x1005726
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005776
test byte [eax + 0x1c], 1
je 0x1005776
push ebx
push 0x10014c4
push 0x25
jmp 0x1005767
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1005774
jle 0x1005747
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jge 0x1005774
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005776
test byte [eax + 0x1c], 1
je 0x1005776
push ebx
push 0x10014c4
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1005776
xor ebx, ebx
pop edi
pop esi
cmp dword [ebp + 8], 0
je 0x100578d
cmp dword [ebp + 8], 0xffffffff
je 0x100578d
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 0x1c
Function at 0x1005799
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push ebx
test eax, 0xfffffcff
jne 0x10057bc
test eax, 0x100
je 0x10057f5
test eax, 0x200
je 0x10057f5
mov ecx, 0x80070057
mov ebx, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100589f
test byte [eax + 0x1c], 1
je 0x100589f
push ecx
push 0x10014c4
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x100588a
push esi
push edi
lea ecx, [ebp - 4]
push ecx
or eax, 2
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
je 0x1005843
jle 0x1005821
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jge 0x1005843
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005888
test byte [eax + 0x1c], 1
je 0x1005888
push ebx
push 0x10014c4
push 0x28
jmp 0x1005879
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1005886
jle 0x1005859
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jge 0x1005886
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005888
test byte [eax + 0x1c], 1
je 0x1005888
push ebx
push 0x10014c4
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1005888
xor ebx, ebx
pop edi
pop esi
cmp dword [ebp - 4], 0
je 0x100589f
cmp dword [ebp - 4], 0xffffffff
je 0x100589f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x10058ab
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
test eax, 0xfffffcff
jne 0x10058d3
test eax, 0x100
je 0x10058fe
test eax, 0x200
je 0x10058fe
mov ecx, 0x80070057
mov ebx, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005a02
test byte [eax + 0x1c], 1
je 0x1005a02
push ecx
push 0x10014c4
push 0x2a
jmp 0x1005931
cmp dword [ebp + 0x1c], ecx
je 0x1005941
cmp dword [ebp + 0x20], ecx
jne 0x1005941
mov ecx, 0x80070057
mov ebx, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005a02
test byte [eax + 0x1c], 1
je 0x1005a02
push ecx
push 0x10014c4
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x10059ed
push esi
push edi
lea edx, [ebp - 4]
push edx
or eax, 1
push eax
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
je 0x100598e
jle 0x100596c
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jge 0x100598e
mov eax, dword [section..data]
cmp eax, section..data
je 0x10059eb
test byte [eax + 0x1c], 1
je 0x10059eb
push ebx
push 0x10014c4
push 0x2c
jmp 0x10059dc
push dword [ebp + 0x20]
lea eax, [ebp - 8]
push dword [ebp + 0x1c]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10059b2
mov edx, dword [ebp - 8]
mov dword [ecx], edx
test eax, eax
je 0x10059e9
jle 0x10059bc
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jge 0x10059e9
mov eax, dword [section..data]
cmp eax, section..data
je 0x10059eb
test byte [eax + 0x1c], 1
je 0x10059eb
push ebx
push 0x10014c4
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x10059eb
xor ebx, ebx
pop edi
pop esi
cmp dword [ebp - 4], 0
je 0x1005a02
cmp dword [ebp - 4], 0xffffffff
je 0x1005a02
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 0x1c

Function at 0x1005c2c
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
push ebx
push esi
push edi
push 0x10014d4
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x1005c92
call edi
test eax, eax
jle 0x1005c65
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jge 0x1005c92
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005ca6
test byte [eax + 0x1c], 1
je 0x1005ca6
push esi
push 0x10014c4
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1005ca6
call edi
cmp eax, 0xb7
jne 0x1005ca4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], ebx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1005e9e
Capabilities:
Check if file exists
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
xor bl, bl
push 0
call sub.sfc.dll_SfcIsFileProtected
test eax, eax
je 0x1005eb7
inc bl
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1005f0e
call esi
cmp eax, 2
je 0x1005f0e
call esi
cmp eax, 3
je 0x1005f0e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005f0e
test byte [eax + 0x1c], 4
je 0x1005f0e
call esi
test eax, eax
jle 0x1005ef3
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 8]
push eax
mov eax, dword [section..data]
push 0x10014c4
push 0x48
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100555d
test bl, bl
jne 0x1005fab
mov eax, dword [0x101a658]
mov esi, 0x101a450
test eax, eax
jne 0x1005f95
push edi
push 0x7ffe0030
mov edi, 0x104
push edi
push esi
call sub.msvcrt.dll_wcscpy_s
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1005f3e
sub eax, edx
sar eax, 1
mov dword [0x101a658], eax
je 0x1005f6d
cmp word [eax*2 + 0x101a44e], 0x5c
je 0x1005f6d
push 0x100129c
push edi
push esi
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push 0x1001504
push edi
push esi
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
mov eax, esi
lea edx, [eax + 2]
pop edi
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1005f82
sub eax, edx
sar eax, 1
mov dword [0x101a658], eax
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x1007ad8
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
jne 0x1007b19
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007bd8
test byte [eax + 0x1c], 2
je 0x1007bd8
push 0x8000ffff
push 0x10017d4
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1007bd8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, 0xffffffff
jne 0x1007b28
test ecx, ecx
je 0x1007b38
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CloseTrace]
or dword [esi + 0x10], 0xffffffff
and dword [esi + 0x14], 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1007bd8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jle 0x1007b63
and eax, ebx
or eax, edi
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007b8d
test byte [eax + 0x1c], 2
je 0x1007b8d
push ecx
push dword [esi + 8]
push 0x10017d4
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003300
push 4
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1007bd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1007bac
and eax, ebx
or eax, edi
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007bd6
test byte [eax + 0x1c], 2
je 0x1007bd6
push ecx
push dword [esi + 8]
push 0x10017d4
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003300
pop edi
pop ebx
mov ecx, esi
pop esi
jmp fcn.01007a80
Function at 0x10097b7
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebx], edi
mov dword [eax], edi
lea eax, [ebp - 8]
push eax
push 0x104
mov esi, 0x7ffe0030
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.0100972d
cmp eax, edi
mov dword [ebp + 8], eax
jge 0x1009814
mov eax, dword [section..data]
cmp eax, section..data
je 0x100988b
test byte [eax + 0x1c], 1
je 0x100988b
push dword [ebp + 8]
push 0x10017fc
push 0x47
jmp 0x100984f
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 1
add edi, 0x1c
push edi
push 0x1001810
push esi
call fcn.010078e9
mov dword [ebp + 8], eax
test eax, eax
jge 0x100985c
mov eax, dword [section..data]
cmp eax, section..data
je 0x100986e
test byte [eax + 0x1c], 1
je 0x100986e
push dword [ebp + 8]
push 0x10017fc
push 0x48
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x100986e
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
and dword [ebp + 8], 0
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
cmp dword [ebp - 4], 0
je 0x100988b
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100a517
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 4], ecx
cmp ebx, 0x7c
jb 0x100a695
mov edi, dword [ebp + 0xc]
cmp edi, ebx
ja 0x100a695
test edi, edi
je 0x100a695
test ebx, ebx
je 0x100a695
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [ebx + 0x10]
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
test eax, eax
jne 0x100a5a4
mov ecx, 0x8007000e
mov esi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100a69a
test byte [eax + 0x1c], 1
je 0x100a69a
push ecx
push 0x10018e4
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x100a69a
mov dword [eax], edi
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [esi]
push ebx
push dword [ebp + 8]
add eax, 0x10
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
mov esi, dword [esi]
mov eax, dword [eax + 8]
add esp, 0xc
cmp edi, 8
lea eax, [eax + esi + 0x10]
mov dword [ebp + 0x10], edi
mov ecx, 0x4cb2f
jl 0x100a638
mov edx, edi
shr edx, 3
mov ebx, edx
shl ebx, 3
sub edi, ebx
mov dword [ebp + 0x10], edi
movzx edi, byte [eax + 1]
imul ecx, ecx, 0x2fe8ed1f
movzx ebx, byte [eax + 2]
imul edi, edi, 0x25
add edi, ebx
movzx ebx, byte [eax + 3]
imul edi, edi, 0x25
add edi, ebx
movzx ebx, byte [eax + 4]
imul edi, edi, 0x25
add edi, ebx
movzx ebx, byte [eax + 5]
imul edi, edi, 0x25
add edi, ebx
movzx ebx, byte [eax + 6]
imul edi, edi, 0x25
add edi, ebx
imul edi, edi, 0x25
sub edi, ecx
movzx ecx, byte [eax]
imul ecx, ecx, 0x1a617d0d
add edi, ecx
movzx ecx, byte [eax + 7]
add ecx, edi
add eax, 8
dec edx
jne 0x100a5e5
mov edx, dword [ebp + 0x10]
dec edx
je 0x100a686
dec edx
je 0x100a67d
dec edx
je 0x100a674
dec edx
je 0x100a66b
dec edx
je 0x100a662
dec edx
je 0x100a659
dec edx
jne 0x100a68e
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx eax, byte [eax]
imul ecx, ecx, 0x25
add ecx, eax
mov dword [esi + 0xc], ecx
xor esi, esi
jmp 0x100a69a
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100b22a
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 4], ecx
cmp ebx, 0x1e4
jb 0x100b3ab
mov edi, dword [ebp + 0xc]
cmp edi, ebx
ja 0x100b3ab
test edi, edi
je 0x100b3ab
test ebx, ebx
je 0x100b3ab
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [ebx + 0x10]
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
test eax, eax
jne 0x100b2ba
mov ecx, 0x8007000e
mov esi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100b3b0
test byte [eax + 0x1c], 1
je 0x100b3b0
push ecx
push 0x10018e4
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x100b3b0
mov dword [eax], edi
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [esi]
push ebx
push dword [ebp + 8]
add eax, 0x10
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
mov esi, dword [esi]
mov eax, dword [eax + 8]
add esp, 0xc
cmp edi, 8
lea eax, [eax + esi + 0x10]
mov dword [ebp + 0x10], edi
mov ecx, 0x4cb2f
jl 0x100b34e
mov edx, edi
shr edx, 3
mov ebx, edx
shl ebx, 3
sub edi, ebx
mov dword [ebp + 0x10], edi
movzx edi, byte [eax + 1]
imul ecx, ecx, 0x2fe8ed1f
movzx ebx, byte [eax + 2]
imul edi, edi, 0x25
add edi, ebx
movzx ebx, byte [eax + 3]
imul edi, edi, 0x25
add edi, ebx
movzx ebx, byte [eax + 4]
imul edi, edi, 0x25
add edi, ebx
movzx ebx, byte [eax + 5]
imul edi, edi, 0x25
add edi, ebx
movzx ebx, byte [eax + 6]
imul edi, edi, 0x25
add edi, ebx
imul edi, edi, 0x25
sub edi, ecx
movzx ecx, byte [eax]
imul ecx, ecx, 0x1a617d0d
add edi, ecx
movzx ecx, byte [eax + 7]
add ecx, edi
add eax, 8
dec edx
jne 0x100b2fb
mov edx, dword [ebp + 0x10]
dec edx
je 0x100b39c
dec edx
je 0x100b393
dec edx
je 0x100b38a
dec edx
je 0x100b381
dec edx
je 0x100b378
dec edx
je 0x100b36f
dec edx
jne 0x100b3a4
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx eax, byte [eax]
imul ecx, ecx, 0x25
add ecx, eax
mov dword [esi + 0xc], ecx
xor esi, esi
jmp 0x100b3b0
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10