joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406af7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x2c
mov eax, 0x42117e
call fcn.0040dd4e
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x34], ebx
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
movzx ecx, word [ecx + 8]
shr eax, 4
inc eax
push ecx
movzx eax, ax
push eax
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
cmp eax, ebx
jne 0x406b60
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004034f0
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
mov eax, esi
jmp 0x406bd1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
je 0x406bb2
mov eax, dword [ebp + 0xc]
and eax, 0xf
xor edx, edx
movzx ecx, word [esi]
mov dword [ebp - 0x38], ecx
cmp edx, eax
je 0x406b8c
inc edx
lea esi, [esi + ecx*2 + 2]
cmp edx, 0x10
jb 0x406b76
jmp 0x406bb2
push ebx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405c8d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x406ba2
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x38]
lea edx, [esi + eax*2 + 2]
lea ecx, [esi + 2]
call fcn.00406492
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.004034f0
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
mov eax, dword [ebp - 0x30]
call fcn.0040ddd1
ret 8

Function at 0x406c9a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406d03
cmp dword [ebp + 0x10], 1
je 0x406cdb
cmp dword [ebp + 0x10], 2
je 0x406cdb
push 0xd
pop eax
jmp 0x406d03
mov eax, dword [ebp - 4]
test edi, edi
je 0x406cfd
test eax, eax
je 0x406cf8
test al, 1
jne 0x406cd6
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x406cfd
jmp 0x406cd6
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x4083dd
Capabilities:
Identify system language via api

Disassembly:
push 0x214
mov eax, 0x42162b
call fcn.0040dd4e
push str.en_us
mov dword [ebp - 0x21c], ecx
call fcn.004029a0
and dword [ebp - 4], 0
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x40849f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetGeoInfoW
push edi
call esi
push str.GetUserGeoID
push edi
mov ebx, eax
call esi
mov esi, eax
test ebx, ebx
je 0x40849f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0040d7e0
add esp, 0xc
push 0x10
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push 0x103
lea eax, [ebp - 0x218]
push eax
push 6
push esi
call ebx
test eax, eax
je 0x40849f
lea eax, [ebp - 0x218]
push eax
call fcn.0040eeee
pop ecx
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.00402870
mov byte [ebp - 4], 0
test edi, edi
je 0x4084ae
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
call fcn.0040ddd1
ret

Function at 0x408684
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x298
mov eax, 0x421755
call fcn.0040dd4e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x2a0], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x2a4], esi
mov word [esi], ax
mov dword [ebp - 4], ebx
xor edi, edi
inc edi
push edi
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
mov dword [ebp - 0x2a0], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4086e6
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402870
jmp 0x40875c
push 0x31
push str.SHGetSpecialFolderPath___failed_for_CSIDL_APPDATA
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call fcn.0040440d
mov dword [ebp - 4], edi
push str.WT::System::Util::GetPerUserAppDataPath
push 0x138
push str.SourceWtSystemUtilWinUtil.cpp
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x29c]
call fcn.004046a1
mov byte [ebp - 4], 3
push ebx
push edi
lea ecx, [ebp - 0x234]
call fcn.00401480
lea ecx, [ebp - 0x29c]
call fcn.004049d4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x29c]
call fcn.0040406d
mov eax, esi
call fcn.0040ddd1
ret
Function at 0x4090ef
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xd4
mov eax, 0x421981
call fcn.0040dd4e
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xd8]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x28]
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, str.SourceWtSystemWin32RegistryKey.cpp
cmp eax, ebx
jge 0x4091d2
lea eax, [esi + 8]
push eax
mov edx, str.RegQueryInfoKey_failure_reading_registry_key_info_
lea ecx, [ebp - 0x64]
call fcn.004047fc
mov byte [ebp - 4], 1
push 0x422e30
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00404958
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014d0
push str.WT::System::Win32::CRegistryKey::EnumerateSubKeyNames
push 0x176
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040461e
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.004049d4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xcc]
call fcn.0040406d
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, dword [ebp - 0xd4]
add eax, 2
and eax, 0xfffffffe
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], ebx
cmp dword [ebp - 0xd8], ebx
jbe 0x409302
jmp 0x4091fe
mov eax, dword [ebp - 0xd4]
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xdc], eax
call fcn.00405c8d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40921a
lea eax, [ebp - 0x2c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xdc]
push ecx
push eax
push dword [ebp - 0xd0]
push dword [esi + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jge 0x4092b2
lea eax, [esi + 8]
push eax
mov edx, str.RegEnumKeyExW_failure_reading_registry_names_
lea ecx, [ebp - 0x64]
call fcn.004047fc
mov byte [ebp - 4], 5
push 0x422e30
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00404958
mov byte [ebp - 4], 7
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014d0
push str.WT::System::Win32::CRegistryKey::EnumerateSubKeyNames
push 0x187
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040461e
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xcc]
call fcn.004049d4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xcc]
call fcn.0040406d
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov ecx, dword [ebp - 0xdc]
cmp ecx, ebx
je 0x4092db
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4092c8
lea eax, [ebp - 0x2c]
cmp word [eax + ecx*2 - 2], bx
jne 0x4092db
dec ecx
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401520
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0x2c]
push eax
call fcn.00409089
inc dword [ebp - 0xd0]
mov eax, dword [ebp - 0xd0]
cmp eax, dword [ebp - 0xd8]
jb 0x4091f8
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014d0
call fcn.0040ddd1
ret 4
Function at 0x409319
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x409321
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409334
test al, 0x10
je 0x409334
mov al, 1
ret
xor al, al
ret

Function at 0x40a859
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x421b67
call fcn.0040dd4e
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x40a950
cmp byte [esi + 0x4a], bl
je 0x40a950
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x40a895
xor al, al
jmp 0x40a952
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040a61f
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a8f3
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x40a8f8
dec eax
je 0x40a8fc
dec eax
dec eax
je 0x40a94c
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401480
mov al, bl
jmp 0x40a952
mov edx, dword [ebp - 0x2c]
jmp 0x40a8be
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a908
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x40a92e
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a91b
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0041155b
add esp, 0x10
cmp edi, eax
jne 0x40a8e1
cmp byte [esi + 0x4a], 0
je 0x40a94c
test edi, edi
jne 0x40a8b0
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00405c07
jmp 0x40a8b0
mov bl, 1
jmp 0x40a8e3
mov al, 1
call fcn.0040ddd1
ret

Function at 0x40d7c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a6a8]
jne 0x40d7d2
repz ret
jmp fcn.0041362c
Function at 0x41d09c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a6a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004130cf
and dword [ebp - 0x14], 0
cmp dword [0x42cc44], 0
mov dword [ebp - 0x18], eax
jne 0x41d14f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41d1f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x426094
push ebx
call edi
test eax, eax
je 0x41d1f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42cc44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42cc48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42cc4c], eax
call edi
push eax
call esi
mov dword [0x42cc54], eax
test eax, eax
je 0x41d14f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42cc50], eax
mov eax, dword [0x42cc50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41d1a8
cmp dword [0x42cc54], ecx
je 0x41d1a8
push eax
call esi
push dword [0x42cc54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41d1a8
test ebx, ebx
je 0x41d1a8
call edi
test eax, eax
je 0x41d19f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41d19f
test byte [ebp - 8], 1
jne 0x41d1a8
or dword [ebp + 0x10], 0x200000
jmp 0x41d1db
mov eax, dword [0x42cc48]
cmp eax, dword [ebp - 0x18]
je 0x41d1db
push eax
call esi
test eax, eax
je 0x41d1db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d1db
mov eax, dword [0x42cc4c]
cmp eax, dword [ebp - 0x18]
je 0x41d1db
push eax
call esi
test eax, eax
je 0x41d1db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42cc44]
call esi
test eax, eax
je 0x41d1f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41d1f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d7c8
leave
ret
Function at 0x406f90
Capabilities:
Set socket configuration

Disassembly:
add byte [eax], al
add ah, bh
les ebx, [0xc25d5e5f]
sbb byte [eax], al
nop
nop
nop
nop
push ebp
mov ebp, dword [ebx + eax*4 - 0x14]
and al, 0x53
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp ebp, dword [edi + edx*2]
mov dword [ebp - 0xc], esi
in al, 5
mov esi, 0xd40f440
mov al, byte [esi]
cmp al, 0x30
jl 0x40707d
cmp al, 0x39
jg 0x40707d
push 0x40b134
push esi
call dword [sym.imp.MSVCRT.dll_strspn]
mov edx, eax
mov edi, esi
out dx, eax
leave
push dword [ebx]
rol byte [ebx - 0x5139f73c], 0xf7
rol dword [ebp - 0x7a6b2ec5], 1
mov word [eax + eax - 0x31], es
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov ch, al
mov dword [ebp + 0xc], edx
cwde
inc ebp
xchg ecx, eax
mov ecx, dword [eax + 0xc]
scasb al, byte es:[edi]
sbb dword [edi], ecx
test byte [eax - 0x77000000], ch
pop ebp
cld
mov edx, dword [ebp + 0x13]
push 0x38
push edx
call 0x99f74a60
invalid
sbb eax, 0xc1ac15ff
sub byte [eax], al
cmp eax, ecx
mov edx, 0x85750c45
mov esi, dword [0x2240c1d8]
call esi
test eax, eax
je 0x4070ae
call esi
pop edi
jo 0x4070a1
cmp ah, 0x42
add byte [0x385df88b], cl
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov dword [ebx + 0x24], esi
mov edi, eax
pop ebp
cmp byte [ebx + 0x56890453], cl
add al, 0x89
jae 0x4070d2
mov eax, dword [ebp - 0xa]
invalid
mov dl, 0x81
in al, dx
push esp
add al, byte [eax]
mov cl, byte [ebx + 0x4a530c4d]
xor esi, esi
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
push ecx
push edi
mov dword [ebp + 0x61], eax
mov eax, dword [ebp + 0x10]
push edi
mov edx, ebx
in al, dx
mov al, byte [eax]
mov dword [ebp - 4], esi
test byte [edi - 0x761f8a77], dl
jne 0x4070ec
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x6d], edx
je 0x13d7bc5
inc ebx
lcall 0x8b3c, 0x74253c14
inc ebp
hlt

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4119dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411a85
test eax, edx
je 0x411a88
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411a05
push edx
mov edx, eax
mov eax, esp
call fcn.00406c28
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411a1b
push eax
lea eax, [esp + 8]
call fcn.00406c28
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411a2a
movzx eax, word [eax]
sub eax, ecx
jmp 0x411a51
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x411a6b
add ecx, 4
js 0x411a42
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411a68
push eax
mov eax, ecx
mov edx, 2
call fcn.004061c4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411a4f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411a51
xor eax, eax
ret
test eax, eax
je 0x411a98
test edx, edx
jne 0x4119ec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41991f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406524
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040b4a4
mov edi, eax
cmp edi, 0x104
jbe 0x419942
mov eax, edi
add eax, eax
call fcn.00404280
mov esi, eax
jmp 0x419944
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040b4a4
push edi
push esi
call fcn.0040b8f4
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41997d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x419967
mov eax, esp
cmp esi, eax
je 0x41998a
mov eax, esi
call fcn.0040429c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4199c4
cmp bl, 0
je 0x4199c0
cmp bl, 0x41
jl 0x4199bb
cmp bl, 0x5a
jg 0x4199bb
or bl, 0x20
xor al, bl
inc esi
jmp 0x41999f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x419904

Function at 0x44c270
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x44c276
ret
Function at 0x4573a4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x457561
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x45753d
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x45753d
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x457370]
call fcn.004084e0
add esp, 4
lea eax, [ebp - 4]
call fcn.00409918
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x5563e8]
push eax
call fcn.00443468
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00408318
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.004048ac
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x44abb0]
call fcn.00453ecc
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x45751b
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.00455a54
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
call fcn.004547ec
call fcn.0044f1d4
push eax
call fcn.0040b834
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00454b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45753d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457568
lea eax, [ebp - 8]
mov edx, dword [0x457370]
call fcn.004084ec
lea eax, [ebp - 4]
call fcn.00409918
ret
Function at 0x10082b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
or dword [ebp + 0x10], 1
pop ebp
jmp sym.opencv_core249.dll_void___cdecl_cv::dft_class_cv::_InputArray_const___class_cv::_OutputArray_const___int__int_
Function at 0x10102ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018e2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101fc010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebx + 8]
mov dword [ebx + 0x28], ecx
lea eax, [ebx + 0x30]
mov dword [ebx + 0x2c], eax
mov dword [eax + 4], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx], 0x42ff0000
mov dword [ebx + 0xc], 0
mov dword [ecx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x24], 0
test esi, esi
je 0x10102d34
cmp byte [ebp + 0xc], 0
jne 0x10102cb6
mov eax, dword [esi]
and eax, 0x4fff
mov dword [ebx + 4], 2
add eax, 0x42ff0000
mov dword [ebx], eax
mov eax, dword [esi + 0x14]
mov dword [ecx], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov edx, dword [ebx + 0xc]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x10], eax
mov eax, 0xba50
mov edi, dword [esi]
mov ecx, edi
mov esi, dword [esi + 4]
and ecx, 7
add ecx, ecx
sar edi, 3
shr eax, cl
and edi, 0x1ff
and eax, 3
inc edi
mov ecx, eax
shl edi, cl
mov ecx, dword [ebx + 8]
imul edx, edi
test esi, esi
cmove esi, edx
imul ecx, esi
add ecx, dword [ebx + 0x18]
mov dword [ebx + 0x20], ecx
sub ecx, esi
add ecx, edx
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebx + 0x2c]
mov dword [ecx], esi
mov ecx, dword [ebx + 0x2c]
mov dword [ecx + 4], edi
jmp 0x10102d34
mov dword [ebx + 0x1c], 0
lea ecx, [ebp - 0x48]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], 0
push dword [esi + 4]
mov dword [ebp - 0x58], 0x10000
push dword [esi + 0x10]
mov dword [ebp - 0x54], ebx
push dword [esi]
mov dword [ebp - 0x50], 0
push dword [esi + 0x18]
mov dword [ebp - 0x4c], 0
push dword [esi + 0x14]
mov dword [ebp - 0x5c], vtable.cv::_OutputArray.0
call sym.opencv_core249.dll_public:_void___thiscall_cv::Mat::constructor_int__int__int__void___unsigned_int_
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call sym.opencv_core249.dll_public:_void___thiscall_cv::Mat::copyTo_class_cv::_OutputArray_const__const
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call sym.opencv_core249.dll_public:_void___thiscall_cv::Mat::release_void_
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
cmp eax, ecx
je 0x10102d34
push eax
call sym.opencv_core249.dll_void___cdecl_cv::fastFree_void__
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10176850
mov esp, ebp
pop ebp
ret 8