joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fca0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47fff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004751c4
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f640
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004750f2
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004716ee
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004716ee
push 1
push 0
push 0
mov ecx, esi
call fcn.00471696
push 1
push 0
push 1
mov ecx, esi
call fcn.00471696
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00475236
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43fe20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004751c4
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f640
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004750f2
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43fee4
cmp dword [esp + 0x40], 1
jne 0x43fee2
cmp ecx, eax
jge 0x43fee4
mov eax, ecx
cmp eax, 0xc8
jge 0x43fef0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043fca0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00475236
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x440660
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480083
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046fad3
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047546c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00477e38
test eax, eax
je 0x44077c
mov ecx, dword [esp + 0x3c]
call fcn.00475499
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x440740
push edi
mov ecx, esi
call fcn.00472a33
mov ecx, esi
call fcn.004408e0
cmp dword [esp + 0x38], 1
jne 0x440775
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00472bc6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4431a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4431d3
push esi
call fcn.00446290
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4431cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x443259
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443242
mov eax, dword [esi + 8]
test eax, eax
je 0x4431f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44323e
cmp eax, 2
je 0x443242
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4431ea
cmp eax, 3
je 0x44321d
cmp eax, 1
jne 0x4431ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4431ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4431ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00443280
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443268
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00443280
add esp, 4
pop esi
ret

Function at 0x44efb0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44f053
test eax, eax
jbe 0x44f053
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44f053
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44effe
xor esi, esi
jmp 0x44f004
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44f02f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00450f40
add esi, eax
push esi
mov ebx, esi
call fcn.00450f40
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44f010
pop ebp
test edi, edi
pop edi
jne 0x44f053
test ebx, ebx
je 0x44f053
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045f250
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44f195
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44f2ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44f2ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046ff25
mov esi, eax
test esi, esi
je 0x44f2ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44f2ad
mov ecx, esi
call fcn.0044f100
cmp edi, eax
jge 0x44f2ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44f233
mov dword [esp + 0x34], 1
jmp 0x44f28e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44f2ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044e6e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46f2b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00479429
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46f2e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0046f2f4
pop edi
pop esi
pop ebx
ret 8

Function at 0x4708c8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x470900
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046e93b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046e913
jmp 0x47090c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4721bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4721fe
call fcn.00479429
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4721fe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4721f5
xor eax, eax
jmp 0x472206
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047220c
pop edi
pop esi
pop ebx
ret 4

Function at 0x479959
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x479987
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4799a5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004798bf
jmp 0x4799a5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4799a5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004798bf
test edi, edi
mov eax, edi
jne 0x47998f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x43ea18]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x41c], 0x400
push 0x414a32
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_777]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401bf8
xor al, al
jmp 0x401c49
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x401c37
xor al, al
jmp 0x401c49
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov al, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411734
mov esp, ebp
pop ebp
ret
Function at 0x4035a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push 1
pop edx
mov al, byte [ecx]
cmp dword [ebp + 0xc], edx
mov byte [ebp + 0xb], al
jle 0x4035bf
xor al, byte [edx + ecx]
inc edx
cmp edx, dword [ebp + 0xc]
mov byte [ebp + 0xb], al
jl 0x4035b3
lea eax, [ebp + 0xb]
push 1
push eax
lea eax, [ebp + 0xe]
push eax
call fcn.0040558f
mov al, byte [ebp + 0xe]
add esp, 0xc
pop ebp
ret

Function at 0x40384f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
or esi, 0xffffffff
call fcn.004059ec
cmp eax, 1
jne 0x4038da
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push 6
push eax
call fcn.004044bf
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4038da
push ebx
mov ebx, dword [ebp + 8]
push edi
and byte [ebx + 0x88], al
lea esi, [ebx + 0x88]
xor edi, edi
movsx ax, byte [ebp + edi - 8]
and eax, 0xff
push eax
push str._02hx
push esi
call sub.MSVCR80.dll_strlen
pop ecx
lea eax, [eax + ebx + 0x88]
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
cmp edi, 5
jge 0x4038c7
push 0x4171b4
push esi
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
inc edi
cmp edi, 6
jl 0x40388c
push esi
call fcn.0040549e
pop ecx
pop edi
xor eax, eax
pop ebx
jmp 0x4038dc
mov eax, esi
pop esi
leave
ret

Function at 0x4038df
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
or esi, 0xffffffff
call fcn.004059ec
cmp eax, 1
jne 0x403966
lea eax, [ebp - 8]
push 6
push eax
call fcn.0040450f
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x403966
push ebx
mov ebx, dword [ebp + 8]
push edi
and byte [ebx + 0x88], al
lea esi, [ebx + 0x88]
xor edi, edi
movsx ax, byte [ebp + edi - 8]
and eax, 0xff
push eax
push str._02hx
push esi
call sub.MSVCR80.dll_strlen
pop ecx
lea eax, [eax + ebx + 0x88]
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
cmp edi, 5
jge 0x403953
push 0x4171b4
push esi
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
inc edi
cmp edi, 6
jl 0x403918
push esi
call fcn.0040549e
pop ecx
pop edi
xor eax, eax
pop ebx
jmp 0x403968
mov eax, esi
pop esi
leave
ret

Function at 0x40456b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
mov edi, 0x20019
push eax
push edi
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call esi
test eax, eax
jne 0x4045e5
lea eax, [ebp - 4]
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4045de
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp + 8]
push dword [ebp + 8]
push eax
push 0
push str.ServiceName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4045e9
cmp dword [ebp + 8], 1
jne 0x4045e9
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
xor eax, eax
pop edi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x4045e5
Function at 0x40460e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 4]
push edi
push eax
xor esi, esi
push 0x20019
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x404676
push esi
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x404674
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.004045fe
pop ecx
pop ecx
jmp 0x404676
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x404731
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
mov dword [eax], ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x200
push eax
push edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4047b6
call esi
cmp eax, 2
jne 0x4047a8
lea eax, [ebp - 0x208]
push str.Device_
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp - 0x208]
push edi
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push edi
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x404822
call esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x40484f
lea eax, [ebp - 0x408]
push str.._
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp - 0x408]
push edi
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x408]
push 0xffffffffffffffff
push ebx
push 3
push ebx
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404828
push ebx
lea eax, [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 4
push eax
push 0x170002
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x404819
call esi
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40482d
mov byte [ebp - 1], 1
jmp 0x4047ab
call esi
mov dword [ebp - 8], eax
cmp byte [ebp - 1], bl
je 0x40484c
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x40484c
call esi
jmp 0x40484f
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405664
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
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
mov dword [eax + 0x24], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
ret
Function at 0x405776
Capabilities:
Encode data using xor
Encrypt data using hc-128

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov esi, dword [eax + 0x10]
mov dword [ebp + 8], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x24], ecx
lea ecx, [eax + 0x30]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], 0x30
mov edx, dword [ecx + 0x34]
mov ecx, dword [ecx]
mov dword [ebp - 0x18], ecx
mov edi, edx
mov ecx, edx
mov ebx, edx
shr edi, 0x11
shl ecx, 0xf
or edi, ecx
mov ecx, edx
shr ecx, 0x13
shl ebx, 0xd
or ecx, ebx
xor edi, ecx
mov ecx, dword [ebp - 0x18]
shr edx, 0xa
xor edi, edx
mov edx, ecx
mov ebx, ecx
shr edx, 0x12
shl ebx, 0xe
or edx, ebx
mov ebx, ecx
shl ebx, 0x19
shr ecx, 7
or ebx, ecx
mov ecx, dword [ebp - 0x18]
xor edx, ebx
shr ecx, 3
xor edx, ecx
mov ecx, dword [ebp - 8]
add edi, edx
add edi, dword [ecx + 0x20]
add ecx, 4
mov dword [ebp - 8], ecx
add edi, dword [ecx - 8]
dec dword [ebp - 0x20]
mov dword [ecx + 0x38], edi
jne 0x4057bb
mov edi, dword [ebp + 8]
lea ecx, [eax + 0x2c]
mov dword [ebp - 8], 0x4173d4
mov dword [ebp - 0x18], ecx
mov ecx, esi
mov edx, esi
shl ecx, 0x15
shr edx, 0xb
or ecx, edx
mov edx, esi
mov ebx, esi
shl edx, 0x1a
shr ebx, 6
or edx, ebx
mov ebx, esi
xor ecx, edx
mov edx, esi
shr edx, 0x19
shl ebx, 7
or edx, ebx
mov ebx, dword [ebp - 0x10]
xor ecx, edx
mov edx, esi
not edx
and edx, dword [ebp - 0x14]
and ebx, esi
or edx, ebx
mov ebx, edi
add ecx, edx
mov edx, dword [ebp - 0x18]
shr ebx, 0xd
add ecx, dword [edx]
mov edx, dword [ebp - 8]
add dword [ebp - 8], 4
add dword [ebp - 0x18], 4
add ecx, dword [edx]
mov edx, edi
shl edx, 0x13
or edx, ebx
mov ebx, edi
shr ebx, 0x16
shl edi, 0xa
or ebx, edi
mov edi, dword [ebp + 8]
xor edx, ebx
mov ebx, dword [ebp + 8]
shl edi, 0x1e
shr ebx, 2
or edi, ebx
mov ebx, dword [ebp - 4]
and ebx, dword [ebp + 8]
xor edx, edi
mov edi, dword [ebp - 4]
add ecx, dword [ebp - 0x24]
or edi, dword [ebp + 8]
and edi, dword [ebp - 0xc]
or edi, ebx
mov ebx, dword [ebp - 0x14]
add edx, edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
add esi, ecx
cmp dword [ebp - 8], 0x4174d4
lea edi, [edx + ecx]
mov dword [ebp - 0x24], ebx
mov dword [ebp + 8], edi
jl 0x40582e
mov ecx, dword [ebp - 4]
add dword [eax], edi
add dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
add dword [eax + 8], ecx
mov ecx, dword [ebp - 0x1c]
add dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
add dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
add dword [eax + 0x10], esi
add dword [eax + 0x18], ecx
add dword [eax + 0x1c], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a47
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
and byte [ebp - 1], bl
cmp dword [ebp + 8], esi
push edi
je 0x405aeb
cmp dword [ebp + 0xc], esi
jl 0x405aeb
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x405aeb
mov eax, dword [ebp + 0x14]
cmp eax, 1
jle 0x405aeb
cmp dword [ebp + 0xc], esi
jle 0x405ae3
dec eax
mov dword [ebp + 0x10], eax
cmp esi, dword [ebp + 0x10]
jge 0x405ae3
mov eax, esi
push 4
cdq
pop ecx
idiv ecx
cmp edx, 3
je 0x405aad
mov eax, dword [ebp + 8]
mov dl, byte [ebp - 1]
shl dl, 2
mov cl, byte [ebx + eax]
mov al, cl
and cl, 3
add cl, dl
shr al, 2
mov byte [ebp - 1], cl
inc ebx
jmp 0x405ab4
mov al, byte [ebp - 1]
and byte [ebp - 1], 0
cmp al, 0xa
jae 0x405abf
add al, 0x30
mov byte [esi + edi], al
jmp 0x405add
cmp al, 0x24
jae 0x405ac7
add al, 0x37
jmp 0x405aba
cmp al, 0x3e
jae 0x405acf
add al, 0x3d
jmp 0x405aba
cmp al, 0x3f
jae 0x405ad9
mov byte [esi + edi], 0x2d
jmp 0x405add
mov byte [esi + edi], 0x5f
inc esi
cmp ebx, dword [ebp + 0xc]
jl 0x405a7f
and byte [esi + edi], 0
xor eax, eax
jmp 0x405aee
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405bb3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
or ebx, 0xffffffff
cmp dword [ebp + 0xc], 0
push esi
je 0x405c6c
mov esi, dword [ebp + 8]
test esi, esi
je 0x405c6c
push 0x105
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR80.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push str.Global_
push str._s_s
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll__snprintf]
lea eax, [ebp - 0xc]
push eax
call fcn.00405a00
add esp, 0x24
test eax, eax
jne 0x405c31
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
jne 0x405c35
push 3
jmp 0x405c6e
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405c66
cmp eax, 0x80
je 0x405c61
cmp eax, 0x102
jne 0x405c68
push 2
pop ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
jmp 0x405c68
or ebx, 0xffffffff
jmp 0x405c68
xor ebx, ebx
mov eax, ebx
jmp 0x405c6f
push 1
pop eax
pop esi
pop ebx
leave
ret