joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ce4e
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x1c], 0
push edi
mov edi, 0x200
jne 0x100ce99
mov ecx, 0x8000ffff
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100cf4e
test byte [eax + 0x1c], 1
je 0x100cf4e
push ecx
push 0x10018f8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
jmp 0x100cf4e
mov ecx, esi
call fcn.0100cdb4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 4], eax
test eax, eax
je 0x100cee4
lea ebx, [esi + 0xc]
push ebx
push edi
push eax
mov dword [esi + 8], edi
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x100cf07
mov eax, dword [esi + 8]
cmp eax, dword [ebx]
jne 0x100cf48
cmp edi, 0x200
jne 0x100cf48
mov edi, 0x1000
jmp 0x100ce99
mov ecx, 0x8007000e
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100cf4e
test byte [eax + 0x1c], 1
je 0x100cf4e
push ecx
push 0x10018f8
push 0x10
jmp 0x100ce89
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100cf1b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jge 0x100cf48
mov eax, dword [section..data]
cmp eax, section..data
je 0x100cf4a
test byte [eax + 0x1c], 1
je 0x100cf4a
push edi
push 0x10018f8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
jmp 0x100cf4a
xor edi, edi
test edi, edi
jge 0x100cf55
mov ecx, esi
call fcn.0100cdb4
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x100d057
Capabilities:
Check if file exists
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x101a018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x5c], esi
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x60], esi
call fcn.0100d817
cmp dword [edi + 4], esi
jne 0x100d0b8
mov ecx, 0x8000ffff
mov esi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d21d
test byte [eax + 0x1c], 1
je 0x100d21d
push ecx
push 0x10018f8
push 0x16
jmp 0x100d212
cmp byte [edi + 0x1c], 0
jne 0x100d0ec
mov ecx, 0x8000ffff
mov esi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d21d
test byte [eax + 0x1c], 1
je 0x100d21d
push ecx
push 0x10018f8
push 0x17
jmp 0x100d212
lea eax, [ebp - 0x5c]
push eax
push esi
jmp 0x100d131
inc dword [ebp - 0x60]
cmp dword [ebp - 0x5c], 0
je 0x100d12a
cmp byte [ebp - 0x55], 0
jne 0x100d119
push 1
push dword [edi + 0x14]
lea ecx, [ebp - 0x54]
call fcn.0100d93e
mov esi, eax
test esi, esi
jl 0x100d167
mov byte [ebp - 0x55], 1
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x54]
call fcn.0100dfc5
mov esi, eax
test esi, esi
jl 0x100d18e
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
push ebx
mov ecx, edi
call fcn.0100cf60
mov esi, eax
test esi, esi
jge 0x100d0f3
cmp esi, 0x80070103
je 0x100d1aa
test esi, esi
jge 0x100d1aa
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d1ba
test byte [eax + 0x1c], 1
je 0x100d1ba
push esi
push 0x10018f8
push 0x1a
jmp 0x100d181
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d1ba
test byte [eax + 0x1c], 1
je 0x100d1ba
push esi
push 0x10018f8
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
jmp 0x100d1ba
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d1ba
test byte [eax + 0x1c], 1
je 0x100d1ba
push esi
push 0x10018f8
push 0x19
jmp 0x100d181
cmp byte [ebp - 0x55], 0
je 0x100d1b8
lea ecx, [ebp - 0x54]
call fcn.0100d837
xor esi, esi
test esi, esi
jge 0x100d21d
cmp byte [ebp - 0x55], 0
je 0x100d21d
lea ecx, [ebp - 0x54]
call fcn.0100d837
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100d21d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x100d21d
call edi
test eax, eax
jle 0x100d1f6
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d21d
test byte [eax + 0x1c], 1
je 0x100d21d
push ecx
push 0x10018f8
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
lea ecx, [ebp - 0x54]
call fcn.0100d920
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010110df
leave
ret 4
Function at 0x100d23d
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x1c], 0
push edi
mov byte [ebp - 1], 0
jne 0x100d27d
mov edi, 0x8000ffff
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d307
test byte [eax + 0x1c], 1
je 0x100d307
push edi
push 0x10018f8
push 0x1c
jmp 0x100d353
lea eax, [ebp - 1]
push eax
push dword [esi + 0x14]
call fcn.01005bea
mov edi, eax
test edi, edi
jge 0x100d2ae
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d307
test byte [eax + 0x1c], 1
je 0x100d307
push edi
push 0x10018f8
push 0x1d
jmp 0x100d353
cmp byte [ebp - 1], 0
jne 0x100d30d
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100d305
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x100d305
call esi
test eax, eax
jle 0x100d2de
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d305
test byte [eax + 0x1c], 1
je 0x100d305
push ecx
push 0x10018f8
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret
push 1
push dword [esi + 0x18]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100d305
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100d333
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jge 0x100d305
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d307
test byte [eax + 0x1c], 1
je 0x100d307
push edi
push 0x10018f8
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
jmp 0x100d307
Function at 0x100d93e
Capabilities:
Check if file exists
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x4c], 0
push esi
push edi
mov byte [ebp - 1], 0
je 0x100d98c
mov ecx, 0x8000ffff
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100daf0
test byte [eax + 0x1c], 1
je 0x100daf0
push ecx
push 0x10019cc
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
jmp 0x100daf0
cmp dword [ebp + 8], 0
jne 0x100d9bd
mov ecx, 0x8000ffff
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100daf0
test byte [eax + 0x1c], 1
je 0x100daf0
push ecx
push 0x10019cc
push 0xb
jmp 0x100d97c
xor eax, eax
cmp byte [ebp + 0xc], al
push 0x1000000
sete al
push 4
push 0x10019dc
push dword [ebp + 8]
lea esi, [ebx + 4]
mov ecx, esi
lea eax, [eax + eax + 1]
mov dword [ebx + 0x4c], eax
mov eax, dword [esi]
call dword [eax + 4]
mov edi, eax
test edi, edi
jge 0x100da12
mov eax, dword [section..data]
cmp eax, section..data
je 0x100daec
test byte [eax + 0x1c], 1
je 0x100daec
push edi
push 0x10019cc
push 0xc
jmp 0x100dad6
cmp byte [ebp + 0xc], 0
push 0
mov ecx, esi
je 0x100da86
push 1
call fcn.01012e73
mov edi, eax
test edi, edi
jge 0x100da50
mov eax, dword [section..data]
cmp eax, section..data
je 0x100daec
test byte [eax + 0x1c], 1
je 0x100daec
push edi
push 0x10019cc
push 0xd
jmp 0x100dad6
mov ecx, esi
mov byte [ebp - 1], 1
call fcn.01013016
mov edi, eax
test edi, edi
jge 0x100da7d
mov eax, dword [section..data]
cmp eax, section..data
je 0x100daec
test byte [eax + 0x1c], 1
je 0x100daec
push edi
push 0x10019cc
push 0xe
jmp 0x100dad6
mov dword [ebx + 0x4c], 2
jmp 0x100daea
push 2
call fcn.01012e73
mov edi, eax
test edi, edi
jge 0x100daaf
mov eax, dword [section..data]
cmp eax, section..data
je 0x100daec
test byte [eax + 0x1c], 1
je 0x100daec
push edi
push 0x10019cc
push 0xf
jmp 0x100dad6
mov ecx, esi
call fcn.010120e0
mov edi, eax
test edi, edi
jge 0x100dae3
mov eax, dword [section..data]
cmp eax, section..data
je 0x100daec
test byte [eax + 0x1c], 1
je 0x100daec
push edi
push 0x10019cc
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
jmp 0x100daec
mov dword [ebx + 0x4c], 4
xor edi, edi
test edi, edi
jge 0x100db4e
mov ecx, ebx
call fcn.0100d837
cmp byte [ebp - 1], 0
je 0x100db4e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100db4e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x100db4e
call esi
test eax, eax
jle 0x100db27
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100db4e
test byte [eax + 0x1c], 1
je 0x100db4e
push ecx
push 0x10019cc
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10110c5
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1018590
call fcn.01011354
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x101aab4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1010eda
cmp eax, esi
jne 0x1010ecd
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1010edd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1010eb4
xor esi, esi
inc esi
mov eax, dword [0x101aab0]
cmp eax, esi
jne 0x1010ef0
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1010f2b
mov eax, dword [0x101aab0]
test eax, eax
jne 0x1010f25
mov dword [0x101aab0], esi
push 0x1001264
push 0x1001258
call fcn.01010e31
pop ecx
pop ecx
test eax, eax
je 0x1010f2b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1010ff5
mov dword [0x101a6a0], esi
mov eax, dword [0x101aab0]
cmp eax, esi
jne 0x1010f4f
push 0x1001254
push 0x100124c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101aab0], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1010f5c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101aab8], ebx
je 0x1010f7d
push 0x101aab8
call fcn.010112c9
pop ecx
test eax, eax
je 0x1010f7d
push ebx
push 2
push ebx
call dword [0x101aab8]
push dword [0x101a688]
push dword [0x101a68c]
push dword [0x101a684]
call fcn.01010566
add esp, 0xc
mov dword [0x101a69c], eax
cmp dword [0x101a690], ebx
jne 0x1010fdb
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x101a6a0], ebx
jne 0x1010fe9
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101a69c]
call fcn.01011399
ret
call fcn.01011477
jmp 0x1010e92
Function at 0x1011c52
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, 0xffffffff
je 0x1011c6f
cmp dword [esi + 0x20], edi
je 0x1011c79
mov edi, 0x80041002
jmp 0x1011e08
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x10], eax
cmp eax, edi
jne 0x1011c95
mov edi, 0x80041007
jmp 0x1011e08
cmp eax, 0xffffffff
jne 0x1011ce8
mov eax, dword [section..data]
cmp eax, section..data
je 0x1011e03
test byte [eax + 0x1c], 1
je 0x1011e03
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push 0x1001e38
call fcn.01011bff
pop ecx
pop ecx
call edi
push eax
push 0x1001d70
push 0x2c
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
jmp 0x1011e03
cmp dword [ebp - 4], edi
ja 0x1011dbb
cmp eax, dword [esi + 8]
ja 0x1011dbb
push edi
push eax
push edi
push 2
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [esi + 0x1c], ebx
cmp ebx, edi
jne 0x1011d4d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1011e03
test byte [eax + 0x1c], 1
je 0x1011e03
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push 0x1001e00
call fcn.01011bff
pop ecx
pop ecx
call edi
push eax
push 0x1001d70
push 0x2e
jmp 0x1011cd3
mov ecx, dword [esi + 0x18]
mov eax, ecx
xor edx, edx
div dword [esi + 0x2c]
push 0
sub ecx, edx
mov edi, ecx
push edi
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x1011daa
mov eax, dword [section..data]
cmp eax, section..data
je 0x1011e03
test byte [eax + 0x1c], 1
je 0x1011e03
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push 0x1001dcc
call fcn.01011bff
pop ecx
pop ecx
call edi
push eax
push 0x1001d70
push 0x2f
jmp 0x1011cd3
mov ecx, dword [esi + 0x18]
sub ecx, edi
add ecx, eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], ecx
xor edi, edi
jmp 0x1011e0f
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1011e03
test byte [ecx + 0x1c], 1
je 0x1011e03
push dword [esi + 8]
push eax
push dword [ebp - 4]
push 0x1001d88
call fcn.01011bff
mov eax, dword [section..data]
add esp, 0x10
push dword [esi + 8]
push dword [esi + 0x10]
push dword [ebp - 4]
push 0x1001d70
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010033a3
mov edi, 0x80041005
mov ecx, esi
call fcn.01011b03
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1012343
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push esi
je 0x1012363
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1012363
cmp esi, 0x10000
jbe 0x101236d
mov eax, 0x80070057
jmp 0x10123ed
cmp dword [ecx + 0x40], 1
jne 0x101237a
mov eax, 0x80041008
jmp 0x10123ed
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
jne 0x1012389
mov eax, 0x80041002
jmp 0x10123ed
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10123a7
cmp dword [ebp - 4], esi
jne 0x10123a7
xor eax, eax
jmp 0x10123ed
mov eax, dword [section..data]
cmp eax, section..data
je 0x10123e8
test byte [eax + 0x1c], 1
je 0x10123e8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x10020f8
call fcn.01011bff
pop ecx
pop ecx
call esi
push eax
mov eax, dword [section..data]
push 0x1001d70
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
mov eax, 0x80041006
pop esi
leave
ret 8

Function at 0x10130f9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x101310d
mov eax, 0x80041002
pop esi
ret
cmp dword [esi + 0x40], 3
je 0x101311a
mov eax, 0x80041008
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101316d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1013166
test byte [eax + 0x1c], 1
je 0x1013166
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x10029c8
call fcn.01011bff
pop ecx
pop ecx
call esi
push eax
mov eax, dword [section..data]
push 0x1001d70
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003005
mov eax, 0x80041006
pop esi
ret
push edi
mov ecx, esi
call fcn.01012d42
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x10131bb
mov eax, dword [section..data]
cmp eax, section..data
je 0x10131b4
test byte [eax + 0x1c], 1
je 0x10131b4
push edi
push 0x1002988
call fcn.01011bff
mov eax, dword [section..data]
pop ecx
pop ecx
push edi
push 0x1001d70
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010119f3
mov eax, 0x80041006
jmp 0x10131c1
mov dword [esi + 0x18], eax
mov dword [esi + 0x40], eax
pop edi
pop esi
ret
Function at 0x10131f5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x101320a
mov eax, dword [ebp + 0x10]
jmp 0x1013296
mov eax, esi
and eax, 3
sub esi, eax
mov eax, dword [ebp + 0x10]
test esi, esi
jle 0x1013291
mov ecx, dword [ebp + 8]
lea edx, [esi - 1]
shr edx, 2
push ebx
inc ecx
inc edx
push edi
movzx edi, byte [ecx - 1]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x101a030]
movzx edi, byte [ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x101a030]
movzx edi, byte [ecx + 1]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x101a030]
movzx edi, byte [ecx + 2]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x101a030]
add ecx, 4
dec edx
jne 0x1013225
pop edi
pop ebx
jmp 0x1013291
mov ecx, dword [ebp + 8]
movzx ecx, byte [esi + ecx]
movzx edx, al
xor ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x101a030]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x101327a
pop esi
pop ebp
ret 0xc

Function at 0x1014eff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0xc]
cmp dword [eax], 0
mov esi, 0x1000
jne 0x1014f27
push esi
push esi
push eax
call fcn.01015a41
test eax, eax
jne 0x1015017
lea eax, [edi + 0x10]
cmp dword [eax], 0
jne 0x1014f3f
push esi
push esi
push eax
call fcn.01015a41
test eax, eax
jne 0x1015017
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
push ebx
mov bx, word [ebp + 0x14]
movzx eax, bl
add eax, 0xb15dcb
imul eax, eax, 0x25
movzx ecx, bh
add eax, ecx
test edx, edx
je 0x1014f75
imul eax, eax, 0x25
lea ecx, [edx + 8]
movzx edi, byte [ecx]
add eax, edi
mov edi, dword [ebp + 8]
imul eax, eax, 0x25
inc ecx
movzx ecx, byte [ecx]
add eax, ecx
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
jbe 0x1014f9f
mov dword [ebp + 8], ecx
mov cl, byte [esi]
mov byte [ebp + 0x17], cl
sub cl, 0x61
inc esi
cmp cl, 0x19
ja 0x1014f91
xor byte [ebp + 0x17], 0x20
movzx ecx, byte [ebp + 0x17]
imul eax, eax, 0x25
add eax, ecx
dec dword [ebp + 8]
jne 0x1014f7f
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
mov word [esi + 4], bx
test edx, edx
je 0x1014fb2
movzx eax, word [edx + 8]
jmp 0x1014fb4
xor eax, eax
cmp dword [ebp + 0x20], 0
mov word [esi + 6], ax
je 0x1014fd0
movzx eax, bx
lea eax, [edi + eax*2 + 0x408]
inc word [eax]
movzx eax, word [eax]
jmp 0x1014fd2
xor eax, eax
push dword [ebp + 0x1c]
mov word [esi + 8], ax
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push dword [edi + 0x10]
push eax
call fcn.0101583b
pop ebx
test eax, eax
jne 0x1015017
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x1014ffc
push 0x44
pop eax
jmp 0x1015017
push 0x14
push esi
mov word [esi + 0xa], ax
push dword [edi + 0xc]
push 0
call fcn.010157c8
test eax, eax
jne 0x1015017
inc dword [edi + 0x404]
pop edi
pop esi
leave
ret 0x1c
Function at 0x101570d
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp ecx, dword [edi + 8]
ja 0x1015723
push 0x57
pop eax
jmp 0x101576a
mov eax, dword [edi + 0xc]
push esi
lea esi, [eax + ecx - 1]
mov ecx, dword [edi]
dec eax
not eax
and esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
test ecx, ecx
jne 0x101574d
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x1015759
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
test eax, eax
jne 0x1015762
push 8
pop eax
jmp 0x1015769
mov dword [edi], eax
mov dword [edi + 8], esi
xor eax, eax
pop esi
pop edi
pop ebp
ret 8

Function at 0x10158ae
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push dword [eax + 0xc]
add eax, 0x10
push eax
push 0
call dword [sym.imp.ntdll.dll_RtlComputeCrc32]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret 8

Function at 0x1015a41
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x1015a9d
lea eax, [edi - 1]
not eax
and eax, edi
cmp edi, eax
jne 0x1015a9d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x10
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x1015a7c
push 8
jmp 0x1015a9f
cmp dword [ebp + 0xc], 0
mov dword [esi + 0xc], edi
je 0x1015a94
push dword [ebp + 0xc]
push esi
call fcn.0101570d
mov edi, eax
test edi, edi
jne 0x1015aa0
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
jmp 0x1015aaa
push 0x57
pop edi
test esi, esi
je 0x1015aaa
push esi
call fcn.010156c3
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1015bb4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
or dword [ebp - 8], 0xffffffff
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 3
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 1
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.01015973
mov edi, eax
cmp edi, esi
jne 0x1015cde
push ebx
mov ebx, 0xea
test esi, esi
je 0x1015c14
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor esi, esi
lea eax, [ebp + 0x14]
push eax
push 0x10
push dword [ebp + 0x14]
call fcn.01015695
test eax, eax
jl 0x1015c8a
mov eax, dword fs:[0x18]
push dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
push 8
pop edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x1015cdd
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push esi
push 2
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jge 0x1015c91
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
cmp edi, ebx
jne 0x1015c77
mov eax, dword [esi + 8]
mov dword [ebp + 0x14], eax
dec dword [ebp - 0xc]
cmp edi, ebx
jne 0x1015cce
cmp dword [ebp - 0xc], 0
jg 0x1015bf9
jmp 0x1015cdd
mov edi, 0x216
jmp 0x1015cdd
cmp dword [esi + 4], 3
je 0x1015c9e
mov edi, 0x65d
jmp 0x1015cdd
mov eax, dword [esi + 8]
cmp eax, 0x10
jae 0x1015cad
mov edi, 0x5b6
jmp 0x1015cdd
cmp dword [esi + 0x10], eax
je 0x1015cb7
push 9
pop edi
jmp 0x1015cdd
push dword [esi + 0x18]
lea eax, [esi + 0x1c]
push eax
movzx eax, word [esi + 0xe]
push eax
lea eax, [ebp - 4]
push eax
call fcn.01015b29
mov edi, eax
test edi, edi
jne 0x1015cdd
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
and dword [ebp - 4], edi
mov dword [ecx], eax
pop ebx
cmp dword [ebp - 8], 0xffffffff
je 0x1015ced
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x1015d06
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 4], 0
je 0x1015d14
push dword [ebp - 4]
call fcn.0101587c
mov eax, edi
pop edi
pop esi
leave
ret 0x10