joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010ea66
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.100f94a0
mov eax, dword [0x10198220]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1010aef9
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x1010eb99
push 2
push esi
push dword [ebp + 8]
call fcn.1010aef9
add esp, 0xc
cmp eax, ebx
je 0x1010eb99
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1010eb39
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.100f9e80
push 0x8000
push dword [ebp + 8]
call fcn.1010ec11
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1010eaef
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.1010a82e
add esp, 0xc
cmp eax, 0xffffffff
je 0x1010eb0f
sub edi, eax
test edi, edi
jg 0x1010eae7
jmp 0x1010eb27
call fcn.100fb154
cmp dword [eax], 5
jne 0x1010eb24
call fcn.100fb14b
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1010ec11
pop ecx
pop ecx
jmp 0x1010eb81
jge 0x1010eb81
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1010aef9
push dword [ebp + 8]
call fcn.100fae05
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x1010eb81
call fcn.100fb14b
mov dword [eax], 0xd
call fcn.100fb154
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.1010aef9
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1010eb9b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.100fab39
leave
ret
Function at 0x1011550f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x10115552
call fcn.1011ffd6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10115552
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1011556d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.10114674
test ebx, ebx
mov esi, eax
je 0x1011556b
test edi, edi
je 0x1011556b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x10116ada
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1013372d
call fcn.100faa9c
sub esp, 0x150
mov eax, dword [0x10198220]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x10116b22
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x10116b26
cmp eax, esi
jb 0x10116b2d
xor eax, eax
jmp 0x10116c02
call fcn.10111836
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.10116a98
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x10116bf2
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x10116b81
xor esi, esi
jmp 0x10116bf5
test byte [ebp - 0x158], 2
jne 0x10116b91
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x10116bf2
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x10116bf2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x10116b7d
cmp dword [ebp - 0x154], edi
jbe 0x10116b7d
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x10116b7d
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10001180
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100fab39
leave
ret 8
Function at 0x1011723f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x10117276
call fcn.1011ffd6
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10117287
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x101172c0
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x101172a5
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x101172ad
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x101172be
test ax, ax
jne 0x101172be
test si, si
je 0x101172c0
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x101172cf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10117521
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x10133805
call fcn.100faa9c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.1011ffd6
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x1011756f
call fcn.1011ffd6
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10117580
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1011758c
or eax, 0xffffffff
jmp 0x1011768f
mov ecx, esi
call fcn.10117061
mov dword [ebp - 0x14], eax
call fcn.10113782
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x101175cf
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x101175cf
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x101175cf
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.10114ba3
push dword [ebp - 0x14]
call fcn.101136da
push edi
push eax
push ebx
mov ecx, esi
call fcn.10117314
xor ebx, ebx
cmp eax, ebx
je 0x10117643
test byte [esi + 0x38], 0x10
je 0x10117611
push 4
pop edi
mov ecx, esi
call fcn.10115813
test ah, 1
je 0x10117609
push 5
pop edi
push edi
mov ecx, esi
call fcn.1011317e
cmp dword [esi + 0x1c], ebx
je 0x10117643
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.10115978
jmp 0x10117643
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x10117657
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x10117670
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x10117670
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.1011709b
cmp dword [esi + 0x54], ebx
je 0x1011768c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10117f6a
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.100f9e80
add esp, 0xc
call fcn.1011ffc6
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x1011803a
cmp dword [ebp - 8], ebx
je 0x10118035
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x10117e3c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.100fbc7c
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x10118044
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x1011800d
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x10118027
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x1011803f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x10118046
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x10118044
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1011804d
Capabilities:
Resume thread

Disassembly:
mov eax, 0x10133858
call fcn.100faa9c
push ecx
push esi
push 0x40
call fcn.10111729
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x1011807c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.101200cf
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.10117f6a
test eax, eax
jne 0x101180a3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x101180c0
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x101180be
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x101187a4
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.100f9e80
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x1015d1c4]
je 0x101188ab
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10118814
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x1011881b
cmp ebx, ebx
jne 0x1011881b
xor eax, eax
jmp 0x101188ae
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x10118828
mov byte [esi + 0x20], bl
jmp 0x1011883c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.100f5b16
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.100f5b16
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.100f5b16
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x10118897
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x101188ab
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1011add9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x10198220]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x1011ae28
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x1011ae28
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1011ae34
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.100fab39
leave
ret 8
Function at 0x1011b742
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10198220]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.1011b72b
cmp dword [esi], 0
mov ebx, eax
je 0x1011b7a2
push edi
mov edi, dword [ebp + 0x18]
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.100fbb82
add esp, 0xc
cmp eax, 1
pop edi
je 0x1011b7bf
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.1011b1ec
mov ecx, esi
call fcn.1011b6dc
jmp 0x1011b7bf
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.100f7687
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.1011add9
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.100fab39
leave
ret

Function at 0x101203a5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x101203da
cmp edi, dword [esi + 0xc]
jge 0x101203da
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x101203da
cmp edi, dword [eax + 8]
jge 0x101203da
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x101203dc
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x10120539
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x1012056d
jmp fcn.1010f4b3
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x101205de
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x101206d7
cmp eax, dword [edi + 0xc]
jge 0x101206d7
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x1012062f
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x101206c0
cmp dword [ebp + 0xc], ebx
je 0x101206c0
jmp 0x10120659
push 0x10
call fcn.10120271
cmp eax, ebx
je 0x10120645
mov ecx, eax
call fcn.10120530
mov esi, eax
jmp 0x10120647
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x10120670
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10120680
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x10120692
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1010f4b3
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.100f9e80
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x101206d2
cmp ecx, dword [esi + 8]
jge 0x101206d2
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x101206d8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x417190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c79
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x42c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x38
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 8]
push 0
push esi
call sub.MSVCR120.dll_memset
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov dword [esi], 0x42ff0000
add esp, 0xc
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x30]
mov dword [esi + 0x2c], eax
mov dword [eax + 4], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0x2010000
mov dword [ebp - 0x20], esi
call dword [sym.imp.opencv_world300.dll_public:_void___thiscall_cv::Mat::copyTo_class_cv::_OutputArray_const__const]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x446694
Capabilities:
Encode data using xor

Disassembly:
push 0xe4ed3b87
call fcn.00446727
push esi
mov edx, dword fs:[0x30]
test edx, edx
js 0x44ce70
mov edx, dword [edx + 0xc]
push ebx
mov ebx, dword [edx + 0x1c]
mov ebx, dword [ebx + 8]
push 1
push 0x3476f98b
call fcn.00446727
mov edx, esp
jmp 0x44ce60
cmp bl, bh
cmp ecx, 0x2570
and ecx, eax
test eax, eax
adc ecx, edx
push 0x60ce1
push 0x3dd918
add al, dh
mov edx, edx
inc eax
and dl, bl
adc edi, 0x372aa244
or al, 6
add byte [eax + 0x18], ch
fnstcw word [0x8bc60200]
rol byte [eax + 0x22], cl
rol dword [ecx + 0x2aa244d7], cl
aaa
call 0x44ce8a
sub edi, edi
movsx ebp, bh
imul ebx, edx
xchg ah, dh
mov bh, 0x89
test dl, 0x7c
lea ebx, [0x66ea7878]
add edi, 0xfffffa20
imul ecx, ecx
or edx, 0x6eb41563
add edi, 0x5e1
test edi, ecx
mov ebx, ebp
test dh, ah
dec dh
imul ecx, ebx, 0xb5347774
xor al, ch
cmp edi, 0xad5
jl 0x44ce8c
pop ebp

Function at 0x446727
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
xor eax, eax
imul eax, eax, 0xf
movzx ecx, byte [esi + 3]
sub esi, 0xffffffee
sub eax, ecx
lea esi, [esi - 0x11]
cmp byte [esi + 3], 0xa
jae 0x446604
xor eax, dword [esp + 0xc]
pop ecx
pop ebx
xor eax, 0x21d93f23
jne 0x446738
sub ecx, 0xffffffef
add esp, 8
push dword [ecx + 2]
pop edi
add edi, ebx
add edx, edx
add edx, ebx
jmp 0x44ced3
lea ecx, [ebx + 9]
push 0xffffffffffffffff
push dword [ecx + 0x33]
pop edx
add ecx, dword [edx + ebx + 0x78]
pop edx
mov edi, dword [ecx + 0x17]
inc edx
mov eax, dword [edi + ebx]
add edi, 4
lea esi, [eax + ebx - 3]
cmp edx, dword [ecx + 0xf]
jae 0x44cef9
jmp 0x446600
jne 0x44ced9
imul ecx, ecx
mov edx, 0x3df91aa
mov edx, 0x3df91aa
test dh, dh
mov dl, 0x74
lea ebx, [0x357175ce]
inc bl
cmp edi, ecx
xchg dh, cl
dec eax
mov esi, 0xf398c73
imul ecx, ebp, 0xbdfa2faf
lea edx, [0x1747d595]
das
cli
mov ebp, 0xd595158d
inc edi
pop ss
xchg bl, ch
xchg ch, dl
sbb ch, cl
mov ecx, 0x9f6bbc8c
mov bl, 4
imul ecx, edi, 0xd1fe3ef3
xor cl, dl
mov esi, ecx
mov dl, 0xdc
add ebp, 0x359b
inc esi
xor dl, cl
imul edx, edx
sub ebp, 0x1344
jb 0x44cf39
mov ch, ch
lea ebx, [0x60eb5c73]
inc edx
sub edx, edx
test ebp, 0x57f1f79
sbb dh, dl
test dh, dl
mov ecx, 0xeb49b402
adc cl, cl
movsx ecx, bx
dec edx
movsx edi, cx
xchg cl, dh
lea eax, [0xcc14003a]
lea ecx, [0xfa5bc1ae]
xchg ecx, eax
movsx eax, bx
sub dh, 0x6d
test ah, ah
movzx edx, bp
mov eax, 0xfffff1e2
push dword [esi + 0xe3105ac]
add byte [eax], al
Function at 0x4014d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471650
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0x2c
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.0044ed90
lea edi, [esi + 0x3c]
add esp, 0xc
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], edi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x4015c8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x10]
call fcn.0041a620
lea eax, [edi + 0x10]
mov dword [eax], 0
xorps xmm0, xmm0
mov dword [edi + 0x2c], 0
mov eax, esi
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x84], 0
movups xmmword [esi + 0x74], xmm0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret