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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0xc
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x101a33b7
lea eax, [ebp - 0xc]
mov dword [ebp + 0x14], eax
mov edx, dword [edi + 8]
cmp edx, 0xffffffff
je 0x101a33ea
mov ecx, dword [ebp + 8]
cmp ecx, edx
jb 0x101a33ea
mov esi, dword [edi]
test esi, esi
je 0x101a33ea
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
sub ecx, edx
push dword [ebp + 0xc]
push ecx
push esi
call fcn.10023d70
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], 0xffffffff
mov dword [ebp - 4], 0
test ebx, ebx
je 0x101a3405
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov eax, dword [edi + 4]
mov ecx, 0x103
mov dword [ebp + 0x10], eax
test eax, eax
je 0x101a3475
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101a342a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
push dword [ebp + 0x14]
push 0
push 0
push 0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
test eax, eax
je 0x101a344f
call eax
jmp 0x101a3455
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp + 0x10], eax
test esi, esi
je 0x101a3463
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x101a3475
cmp ecx, 0x103
jne 0x101a34ea
mov eax, dword [edi]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x101a34ea
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
test ebx, ebx
je 0x101a3491
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov edi, dword [edi]
jmp 0x101a3494
mov edi, dword [ebp + 0x10]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101a34aa
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
push dword [ebp + 0x14]
push 0
push 0
push 0
push ebx
push dword [ebp + 0xc]
push 0
push edi
test eax, eax
je 0x101a34cc
call eax
jmp 0x101a34d2
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x101a34df
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop ebx
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x101a4e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101a4e7b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3f
call fcn.10003680
add esp, 4
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
test eax, eax
je 0x101a4ea5
call eax
jmp 0x101a4eab
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test esi, esi
je 0x101a4eb8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x20

Function at 0x101a55c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], ebx
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x22c], eax
je 0x101a5723
cmp dword [ebx], 0
je 0x101a5723
push edi
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.msvcrt.dll_memset
xor edi, edi
add esp, 0xc
cmp dword [ebp + 0x14], edi
jbe 0x101a5722
mov ebx, dword [ebx]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101a563f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3b
call fcn.10003680
add esp, 4
push 0x104
test eax, eax
je 0x101a565f
lea ecx, [ebp - 0x210]
push ecx
push edi
push ebx
call eax
jmp 0x101a566e
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test esi, esi
je 0x101a567b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x101a571f
mov dx, word [ebp - 0x210]
test dx, dx
je 0x101a570f
lea eax, [ebp - 0x210]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101a56a0
sub eax, esi
mov dword [ebp - 0x218], 0
sar eax, 1
xor ecx, ecx
mov word [ebp - 0x228], cx
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], 7
push eax
lea eax, [ebp - 0x210]
push eax
cmp dx, 0x7b
jne 0x101a56ed
call fcn.100070c0
mov ecx, dword [ebp - 0x22c]
jmp 0x101a56f8
call fcn.100070c0
mov ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x228]
push eax
call fcn.10052070
lea ecx, [ebp - 0x228]
call fcn.10005250
mov ebx, dword [ebp - 0x234]
inc edi
cmp edi, dword [ebp + 0x14]
jb 0x101a5627
mov esi, dword [ebp + 8]
pop edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101a573b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x101b00e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1024dcec]
test ecx, ecx
je 0x101b014a
cmp ecx, 2
ja 0x101b014a
mov eax, dword [ebp + 8]
test eax, eax
je 0x101b014a
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x101b014a
cmp ecx, 2
jne 0x101b0126
test edx, edx
jle 0x101b014a
lea esp, [esp]
movzx ecx, byte [eax]
lea eax, [eax + 1]
mov cl, byte [ecx + 0x1024dbe8]
mov byte [eax - 1], cl
sub edx, 1
jne 0x101b0110
pop ebp
ret
cmp ecx, 1
jne 0x101b014a
push ebx
mov bl, byte [ebp + 0x10]
test edx, edx
jle 0x101b0149
movzx ecx, byte [eax]
lea eax, [eax + 1]
mov cl, byte [ecx + 0x1024dbe8]
xor cl, bl
mov byte [eax - 1], cl
sub edx, 1
jne 0x101b0133
pop ebx
pop ebp
ret

Function at 0x101b0fd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x1025bd40]
add esp, 0x18
test al, 1
jne 0x101b1046
or eax, 1
mov dword [0x1025bd38], 0
mov dword [0x1025bd40], eax
xor eax, eax
push 0x102017c0
mov dword [0x1025bd3c], 7
mov word [0x1025bd28], ax
call fcn.101c8090
add esp, 4
cmp dword [0x1025bd38], 0
jne 0x101b117f
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [0x10257d10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360Common.dll
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x101b117f
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.101b13a0
add esp, 8
test eax, eax
jne 0x101b10d9
lea eax, [ebp - 0x20c]
push eax
call fcn.100a1350
add esp, 4
test eax, eax
jne 0x101b10d9
mov dword [0x1025b428], eax
mov eax, 0x1025bd28
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1025b428], eax
test eax, eax
je 0x101b117f
push str.Get360CommonInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1025b42c], eax
test eax, eax
jne 0x101b1131
push dword [0x1025b428]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1025b42c], 0
mov eax, 0x1025bd28
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
call eax
test eax, eax
je 0x101b117f
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
je 0x101b117f
mov ecx, dword [eax]
push 0x103
push 0x1025bb20
push eax
call dword [ecx]
test eax, eax
je 0x101b117f
mov ecx, 0x1025bb20
lea edx, [ecx + 2]
jmp 0x101b1160
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101b1160
sub ecx, edx
sar ecx, 1
push ecx
push 0x1025bb20
mov ecx, 0x1025bd28
call fcn.100070c0
mov ecx, dword [ebp - 4]
mov eax, 0x1025bd28
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x101b1700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x101b187e
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x101b187e
cmp dword [ebp + 0x14], 0
je 0x101b187e
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 4]
push 0x10202940
mov dword [ebp - 4], eax
call fcn.10023e80
test al, al
jne 0x101b175b
push 0
push 0x10202940
lea ecx, [ebp - 4]
call fcn.10003740
push 0x1025c02a
push 0x20a
mov dword [ebp + 0xc], 0x104
mov dword [ebp - 8], 1
call fcn.101c85a0
mov esi, eax
add esp, 8
test esi, esi
je 0x101b1849
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 0xea
jne 0x101b181e
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
push 0x1025c02a
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101c85a0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x101b1849
mov eax, dword [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x101b1840
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101b1827
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 4]
call fcn.10003740
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [ebp - 4]
add esi, 0xfffffff0
push esi
call fcn.10002a60
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
or ecx, 0xffffffff
mov dword [edi], eax
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x101b1875
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
push 0x10202940
mov ecx, esi
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x101b18b0
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101b30a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [ebp + 8]
cmp eax, esi
jne 0x101b30bd
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret 4
call fcn.10175070
push esi
push 0
test eax, eax
je 0x101b30cd
push 1
jmp 0x101b30d2
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x101b30f0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x101b45f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push str.360DiagnoseScan.exe
push eax
call fcn.100db670
add esp, 4
push eax
lea eax, [ebp - 8]
push eax
call fcn.10007f40
mov edx, dword [ebp - 4]
add esp, 0xc
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101b4634
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x101b4646
xor edi, edi
jmp 0x101b46a3
mov ecx, dword [ebx + 0xd0]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebx + 0xd0]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor edi, edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x101b469e
mov esi, eax
jmp 0x101b4670
mov ecx, dword [ebx + 0xd0]
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x101b4696
push eax
mov ecx, ebx
call fcn.101b3d20
inc edi
cmp edi, esi
jl 0x101b4670
mov esi, dword [ebp - 8]
mov edi, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101b46bb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101b6790
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1025be30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push str.360note.dat
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [0x10257d10]
call fcn.100da6a0
add esp, 0x28
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str.360safe_antiadwa
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x101b684f
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x101b684f
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.360note.dat
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x101b68e1
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x101b68d0
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101b6893
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x28
call fcn.10003680
add esp, 4
push 1
test eax, eax
je 0x101b68b5
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x414]
push ecx
call eax
jmp 0x101b68c9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test esi, esi
je 0x101b68d0
push esi
call edi
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.100d9c10
add esp, 8
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10023e80
test al, al
jne 0x101b692e
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101b6910
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10003740
mov ecx, 0x1025bdd0
call fcn.101b7d40
push 0x1025be30
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x101bda30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x6c]
test esi, esi
je 0x101bda49
push esi
call ebx
lea ecx, [edi + 0x88]
mov byte [edi + 0x84], 0
lea eax, [ebp + 8]
cmp ecx, eax
je 0x101bda6f
cmp dword [ebp + 0x1c], 8
jb 0x101bda66
mov eax, dword [ebp + 8]
push dword [ebp + 0x18]
push eax
call fcn.100070c0
mov byte [edi + 0x68], 0
mov dword [edi + 0x64], 0
test esi, esi
je 0x101bda81
push esi
call ebx
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x101bdaa7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x101bdac0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push edi
push 0x101bdd10
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [edi + 4], eax
test esi, esi
je 0x101bdac7
push esi
call ebx
push 0xffffffffffffffff
mov ecx, edi
call fcn.101bdee0
mov al, byte [edi + 0x84]
mov byte [ebp - 1], al
test esi, esi
je 0x101bdae0
push esi
call ebx
mov edx, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
cmp edx, 8
jb 0x101bdb19
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x101bdb0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101bdb22
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0x18
call fcn.101e6c40
int3
Function at 0x101c4e8a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x101c4eb4
mov eax, 0x10202940
push eax
push eax
push 0
push 0
call fcn.101c3926
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x101c6137
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x101c63f6
Capabilities:
Check mutex on windows

Disassembly:
push 0xa4
mov eax, 0x101fece5
call fcn.101c8d20
mov esi, ecx
mov dword [ebp - 0xa0], esi
xor ebx, ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
push 0x41
lea eax, [ebp - 0x98]
push eax
call fcn.101c6be2
add esp, 0x14
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x98]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x9c], edi
test edi, edi
je 0x101c6542
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x101c646f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.101c6a35
test eax, eax
je 0x101c64a4
mov dword [esi], eax
mov eax, dword [esi]
inc dword [eax + 0x5bc]
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
jne 0x101c6542
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x101c6542
push 0x5c0
call fcn.101c6701
pop ecx
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x101c64c7
push edi
mov ecx, eax
call fcn.101c6583
jmp 0x101c64c9
mov eax, ebx
mov byte [ebp - 4], bl
mov dword [esi], eax
test eax, eax
je 0x101c654a
xor ebx, ebx
inc ebx
mov dword [ebp - 0xb0], ebx
push eax
call fcn.101c6b81
pop ecx
test eax, eax
jne 0x101c647d
mov dword [ebp - 0xa8], 3
push 0x1023723c
lea eax, [ebp - 0xa8]
jmp 0x101c655f
mov eax, esi
call fcn.101c8c80
ret
mov dword [ebp - 0xa4], 1
push 0x1023723c
lea eax, [ebp - 0xa4]
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x101c6583
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x101fed18
call fcn.101c8ca0
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.101c63c7
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x101c65cf
mov eax, dword [ebp + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.101c8c60
ret 4
push 0x1023723c
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x101c679b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.101c693e
mov edi, eax
test edi, edi
je 0x101c6826
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x101c67d6
mov esi, edi
jmp 0x101c6812
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x101c680b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x101c67fe
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.101c68d9
jmp 0x101c6812
push str.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x101c6812
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.101c693e
mov edi, eax
test edi, edi
jne 0x101c67cb
test esi, esi
jne 0x101c683b
mov ecx, dword [ebx]
add ecx, 8
call fcn.101c6ad2
mov esi, eax
test esi, esi
je 0x101c683b
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x101c7d40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x101c7d7e
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x101c7d77
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x101c7d80
add eax, 0x28
cmp eax, edi
jne 0x101c7d67
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x101c86a0
Capabilities:
Get process heap force flags

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx + 0xa4]
shl eax, 0x10
or eax, dword [ecx + 0xa8]
ret

Function at 0x101cb700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x101cbaf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x101cbb05
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101cbb17
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.101cc190
push 0x10237728
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll__CxxThrowException
int3