joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b2c1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0047b36a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x47b309
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c186
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040919f
jmp 0x47b314
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041fd75
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x483628
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x483641
call fcn.0041e952
mov esi, dword [eax + 0xc]
push 0x584014
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x483683
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x483683
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x483683
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048368c
jmp 0x483685
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4d0a42
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005562ae
pop ecx
test eax, eax
jne 0x4d0a84
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040949d
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d0a4a
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x519bec
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0040abd4
call fcn.0041e9a6
cmp dword [eax + 0x14], 0
jne 0x519c07
mov ecx, esi
pop esi
jmp fcn.0051945d
pop esi
ret

Function at 0x559a7d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5a4300
push 0x5a42f8
push str.FlsAlloc
push 0x1e
call fcn.005598fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x559ab1
push dword [ebp + 8]
mov ecx, esi
call dword [0x57394c]
call esi
jmp 0x559ab7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x559afb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5a4310
push 0x5a4308
push str.FlsGetValue
push 0x20
call fcn.005598fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x559b32
push dword [ebp + 8]
mov ecx, esi
call dword [0x57394c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x55d3eb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6e3fe4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x55d436
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0055d58a
test al, al
jne 0x55d430
sub edx, 2
cmp edx, edi
jne 0x55d416
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x55d458
lea eax, [edi + 2]
cmp edx, eax
je 0x55d458
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0055d337
add esp, 0x10
jmp 0x55d552
push esi
lea ecx, [ebp - 0x255]
call fcn.0055d58a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x55d49b
push dword [ebp - 0x25c]
jmp 0x55d448
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x55d4d8
cmp word [ebp - 0x226], 0
je 0x55d4f9
cmp word [ebp - 0x226], ax
jne 0x55d4d8
cmp word [ebp - 0x224], 0
je 0x55d4f9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0055d337
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x55d545
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x55d4b2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x55d52d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x55d552
push 0x55d167
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005625d0
add esp, 0x10
jmp 0x55d522
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054485d
leave
ret

Function at 0x55df14
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x55df25
pop esi
ret
push ebx
push edi
push esi
call fcn.0055dedd
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00557dc2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x55df4d
push ebx
push esi
push edi
call fcn.00546280
add esp, 0xc
push 0
call fcn.00557d88
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x55e311
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055df62
Function at 0x100ebb0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push 4
push 0x28
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0x100ebd5
xor al, al
jmp 0x100ebfd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x10], eax
push 0x28
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
setge al
leave
ret 0xc

Function at 0x100ec06
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [ebp + 0x14], bl
je 0x100ec22
cmp dword [ebp + 0x10], ebx
jne 0x100ec22
mov al, 1
jmp 0x100ece2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov ax, word [eax + 0xc]
shl ax, 1
cmp byte [ebp + 0x14], bl
mov word [ebp - 8], ax
mov word [ebp - 6], ax
lea eax, [ebp - 8]
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov esi, 0x12019f
je 0x100ec86
push ebx
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, 0xc000000f
je 0x100ec86
cmp eax, 0xc0000034
jne 0x100eca6
push ebx
push ebx
push 0x40
push 5
push ebx
push 0x80
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, ebx
jge 0x100ecae
xor al, al
jmp 0x100ece1
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.ntdll.dll_NtWriteFile]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
setge al
pop esi
pop ebx
leave
ret 0x10
Function at 0x1010127
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 8]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
add eax, ebx
adc ecx, esi
mov dword [ebp - 0xc], eax
mov eax, 0x10000
xor edx, edx
div dword [ebp - 4]
push ecx
push dword [ebp - 0xc]
mov dword [ebp - 8], ecx
push esi
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], esi
push ebx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x14], eax
jmp 0x101022f
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push eax
call fcn.0100e672
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
xor ecx, ecx
add eax, dword [ebp + 8]
adc ecx, dword [ebp + 0xc]
push ecx
push eax
call fcn.0100e6e6
test al, al
je 0x10101c0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sbb ecx, dword [ebp + 0xc]
imul esi, eax
mov dword [ebp - 0x30], ecx
jmp 0x10101c7
mov esi, dword [ebp + 0x10]
imul esi, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [edi + 0x24]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0xc0000017
mov dword [edi + 0x34], eax
jne 0x1010203
shr dword [ebp + 0x10], 1
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], ebx
jmp 0x1010218
mov ecx, 0xc0000000
mov edx, eax
and edx, ecx
cmp edx, ecx
je 0x1010245
cmp dword [ebp - 0x18], esi
jne 0x1010245
add dword [ebp + 0x14], esi
push dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
xor ecx, ecx
add dword [ebp + 8], eax
adc dword [ebp + 0xc], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01010036
test al, al
jne 0x1010175
inc al
pop edi
pop esi
pop ebx
leave
ret 0x10
mov edi, dword [edi + 0x124]
cmp edi, ebx
je 0x1010287
mov edx, eax
and edx, ecx
cmp edx, ecx
push esi
jne 0x101026b
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
push 0x10014f8
push 0x69a4
jmp 0x101027e
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x10014ec
push 0x69a5
push edi
call fcn.0100d8fc
add esp, 0x1c
xor al, al
jmp 0x101023e
Function at 0x1010356
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x36d8
call sub.ntdll.dll__chkstk
mov eax, dword [0x106000c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
push 0xc
mov dword [ebp - 4], eax
xor ebx, ebx
lea eax, [ebp - 0x36d0]
push eax
push ebx
push ebx
push 0x2d1080
lea eax, [ebp - 0x36d8]
push eax
push ebx
push ebx
mov esi, ecx
push ebx
push dword [esi + 0x24]
mov byte [esi + 0x106], bl
call edi
cmp eax, ebx
mov dword [esi + 0x34], eax
jl 0x1010430
cmp dword [ebp - 0x36d0], 7
jne 0x1010430
cmp dword [ebp - 0x36c8], 0xffffffff
je 0x1010430
cmp dword [ebp - 0x36c8], ebx
je 0x1010430
push 0x36c0
lea eax, [ebp - 0x36c4]
push eax
push ebx
push ebx
push 0x70050
lea eax, [ebp - 0x36d8]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x24]
call edi
cmp eax, ebx
mov dword [esi + 0x34], eax
jge 0x10103f1
xor al, al
jmp 0x1010432
cmp dword [ebp - 0x36c4], ebx
jne 0x1010430
mov ecx, dword [ebp - 0x36c0]
cmp ecx, 4
jbe 0x1010407
push 4
pop ecx
xor edx, edx
cmp ecx, ebx
jbe 0x1010430
lea eax, [ebp - 0x367c]
mov edi, dword [eax]
cmp edi, dword [ebp - 0x36c8]
je 0x1010429
inc edx
add eax, 0x90
cmp edx, ecx
jb 0x1010413
jmp 0x1010430
mov byte [esi + 0x106], 1
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0105f135
leave
ret

Function at 0x10108e9
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
mov ax, word [ecx + 0xc]
shl ax, 1
mov word [ebp - 8], ax
mov word [ebp - 6], ax
mov eax, dword [ecx + 8]
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0x20], eax
mov al, byte [ebp + 0x10]
xor esi, esi
neg al
push edi
mov edi, dword [ebp + 0x14]
push 0x10
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0x40
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
or eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
cmp ebx, esi
jge 0x1010977
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x10109da
xor eax, eax
cmp ebx, 0xc0000022
setne al
dec eax
and eax, 0x3fe
add eax, 0x7d7
jmp 0x10109b2
push 0x11
push 4
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
cmp ebx, esi
jge 0x10109ba
cmp ebx, 0x80000011
je 0x10109a6
cmp ebx, 0xc00000a3
mov eax, 0x7d6
jne 0x10109ab
mov eax, 0x830
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x10109da
push eax
call fcn.0100fe86
jmp 0x10109da
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push esi
push esi
push esi
push esi
push 0x90083
mov dword [eax], ecx
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [edi]
call dword [sym.imp.ntdll.dll_NtFsControlFile]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18
Function at 0x10125c5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01016458

Function at 0x1012e4f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x106000c]
push ebx
xor ebx, ebx
cmp byte [0x106510c], bl
mov dword [ebp - 4], eax
je 0x1012e75
xor eax, eax
inc eax
jmp 0x1012fa0
lea eax, [ebp - 0x74]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x8c]
push eax
push 0x20019
lea eax, [ebp - 0x64]
push eax
mov byte [0x106510c], 1
mov dword [ebp - 0x68], 0x1001624
mov word [ebp - 0x6c], 0x14
mov word [ebp - 0x6a], 0x16
mov dword [ebp - 0x70], 0x10015c8
mov word [ebp - 0x74], 0x5a
mov word [ebp - 0x72], 0x5c
mov dword [ebp - 0x8c], 0x18
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x80], 0x40
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jge 0x1012ee9
xor eax, eax
jmp 0x1012fa0
push esi
lea eax, [ebp - 0x98]
push eax
push 0x5c
lea eax, [ebp - 0x60]
push eax
push 1
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, 0x80000005
je 0x1012f9d
push dword [ebp - 0x64]
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
jl 0x1012f9d
cmp dword [ebp - 0x54], ebx
je 0x1012f9d
mov eax, dword [ebp - 0x58]
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp + eax - 0x60]
push eax
lea eax, [ebp - 0x94]
push eax
call esi
push 0x10015ac
lea eax, [ebp - 0xa0]
push eax
call esi
push 0x1001598
lea eax, [ebp - 0xa8]
push eax
call esi
push 1
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
test al, al
je 0x1012f7f
mov dword [0x1060050], 0x40002
jmp 0x1012f98
mov eax, dword [0x7ffe02c0]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffeffff
add eax, 0x20001
mov dword [0x1060050], eax
xor eax, eax
inc eax
jmp 0x1012f9f
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0105f135
leave
ret
Function at 0x1013c3c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x16c
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffd8f0
mov ebx, 0x1065118
jmp 0x1013c68
lea eax, [ebp - 8]
push eax
push 0
call dword [sym.imp.ntdll.dll_NtDelayExecution]
xor ecx, ecx
inc ecx
mov edx, ebx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1013c5c
mov edi, dword [0x1060058]
mov eax, edi
and eax, dword [0x106005c]
cmp eax, 0xffffffff
jne 0x1013d21
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor edi, edi
push edi
push 0x2c
lea eax, [ebp - 0x34]
push eax
push edi
call esi
test eax, eax
jl 0x1013d32
push edi
push 0x138
lea eax, [ebp - 0x16c]
push eax
push 2
call esi
test eax, eax
jl 0x1013d32
mov eax, dword [ebp - 0x140]
mul dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
mov edi, eax
mov esi, edx
xor eax, eax
cmp eax, esi
ja 0x1013ce0
jb 0x1013cdc
cmp ecx, edi
jae 0x1013ce0
mov edi, ecx
mov esi, eax
mov eax, edi
and eax, esi
cmp eax, 0xffffffff
jne 0x1013cee
push 0xfffffffffffffffe
pop edi
or esi, eax
test esi, esi
ja 0x1013d06
jb 0x1013cfc
cmp edi, 0x19000
ja 0x1013d06
xor edi, edi
and dword [0x106005c], edi
jmp 0x1013d1b
push 0
push 0xa
push esi
push edi
call sub.ntdll.dll__aulldiv
sub edi, eax
sbb esi, edx
mov dword [0x106005c], esi
mov dword [0x1060058], edi
xor esi, esi
cmp esi, dword [0x106005c]
jb 0x1013d3d
ja 0x1013d32
cmp dword [ebp + 8], edi
jbe 0x1013d3d
or eax, 0xffffffff
lock xadd dword [ebx], eax
xor eax, eax
jmp 0x1013d6d
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
je 0x1013d66
mov ecx, dword [ebp + 8]
sub dword [0x1060058], ecx
sbb dword [0x106005c], esi
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10163a7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov cx, word [ebp + 0xc]
xor eax, eax
push eax
push eax
mov word [ebp - 8], ax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 6], cx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], ecx
push 0x10018f0
lea ecx, [ebp - 8]
push 2
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x38], 0x10018d8
mov dword [ebp - 0x34], ecx
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
xor ecx, ecx
test eax, eax
setge cl
mov al, cl
leave
ret 8

Function at 0x101641d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.0101637e
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 7
push 0x10018d8
push 0x10018f0
push 2
call dword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
xor ecx, ecx
test eax, eax
setge cl
mov al, cl
pop ebp
ret 4
Function at 0x10264aa
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push 1
lea edi, [esi + 0x40]
push edi
push 0
call sub.ntdll.dll_RtlComputeCrc32
push 1
lea ecx, [esi + 0x41]
push ecx
push eax
call sub.ntdll.dll_RtlComputeCrc32
push 4
lea ecx, [ebp + 8]
push ecx
push eax
call sub.ntdll.dll_RtlComputeCrc32
push 8
push esi
push eax
call sub.ntdll.dll_RtlComputeCrc32
movzx ecx, byte [edi]
shl ecx, 1
push ecx
add esi, 0x42
push esi
push eax
call sub.ntdll.dll_RtlComputeCrc32
mov edx, dword [ebp + 0x10]
mov ecx, eax
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
pop edi
mov dword [edx], ecx
pop esi
pop ebp
ret 0xc

Function at 0x1026509
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x18
push esi
push 0
call sub.ntdll.dll_RtlComputeCrc32
cmp byte [0x1065274], 2
jb 0x1026530
test byte [esi + 0x31], 4
je 0x1026530
push 0x18
jmp 0x1026532
push 0x16
pop ecx
push ecx
add esi, 0x20
push esi
push eax
call sub.ntdll.dll_RtlComputeCrc32
mov edx, dword [ebp + 0xc]
mov ecx, eax
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
pop edi
mov dword [edx], ecx
pop esi
pop ebp
ret 8
Function at 0x1027bbf
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x6c]
call fcn.01039e02
xor ebx, ebx
push ebx
push 0x80
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.0102f625
test al, al
je 0x1027cf0
cmp dword [ebp - 0x2c], ebx
je 0x1027c02
push 0x1001d90
jmp 0x1027cea
lea eax, [ebp - 8]
push eax
push 4
pop esi
push esi
push ecx
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x6c]
call fcn.01038807
cmp al, bl
je 0x1027ce5
cmp dword [ebp - 8], esi
jne 0x1027ce5
cmp byte [ebp + 8], bl
jne 0x1027c69
push ebx
lea eax, [ebp - 8]
push eax
push esi
push ecx
push ecx
mov eax, esp
mov dword [ebp - 0xc], 0x444b4843
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0103a140
cmp al, bl
je 0x1027cf0
cmp dword [ebp - 8], esi
je 0x1027ce1
jmp 0x1027cf0
call fcn.0100ea6a
mov esi, eax
cmp esi, ebx
je 0x1027cf0
push ecx
push ecx
mov eax, esp
lea ecx, [esi + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], ebx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.01027abe
cmp al, bl
jne 0x1027cf0
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0x444b4843
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], ebx
xor edi, edi
push ebx
lea eax, [ebp - 8]
push eax
push 0x10
push ecx
push ecx
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0103a140
cmp al, bl
je 0x1027cf0
cmp dword [ebp - 8], 0x10
jne 0x1027cf0
inc dword [ebp + 8]
add edi, esi
cmp dword [ebp + 8], 2
jb 0x1027cb0
mov bl, 1
jmp 0x1027cf0
push 0x1001d68
call sub.ntdll.dll_DbgPrint
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.01039e32
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0xc
Function at 0x103647e
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test eax, eax
jne 0x10364dd
mov eax, dword [ecx + 0x60]
and dword [edx + 4], 0
mov dword [edx], eax
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov edx, dword [eax + 0x14]
mov dword [ecx + 4], edx
mov cx, word [eax + 0x18]
mov edx, dword [ebp + 0x18]
mov word [edx], cx
movzx ecx, byte [eax + 6]
push ecx
movzx ecx, byte [eax + 7]
add ecx, eax
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.0100dce6
test al, al
setne al
jmp 0x1036552
push edi
mov edi, dword [ecx + 0x64]
test edi, edi
jne 0x10364e9
xor al, al
jmp 0x1036551
mov cx, word [eax + 4]
test cx, cx
je 0x10364e5
push esi
movzx esi, cx
mov ecx, dword [edx + 4]
add ecx, esi
cmp ecx, edi
jb 0x1036503
xor al, al
jmp 0x1036550
mov dword [edx + 4], ecx
add eax, esi
mov dword [edx], eax
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov edx, dword [eax + 0x14]
mov dword [ecx + 4], edx
mov cx, word [eax + 0x18]
mov edx, dword [ebp + 0x18]
mov word [edx], cx
movzx ecx, byte [eax + 6]
push ecx
movzx ecx, byte [eax + 7]
add ecx, eax
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.0100dce6
test al, al
setne al
pop esi
pop edi
pop ebp
ret 0x18