joyce8/EMBER2024-capa huggingface dataset:
Function at 0x120735c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x120b37b8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x120735f9
inc eax
mov dword [esi + 0x10], eax
jmp 0x1207370c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x1207360d
mov eax, 0xffffffc7
jmp 0x1207370e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x1207361e
cmp dword [esi + 8], eax
jne 0x1207360d
cmp dword [esi + 8], eax
jne 0x12073637
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x12073637
mov eax, 0xffffffc7
jmp 0x1207370e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1207364b
push eax
mov ecx, ebx
call fcn.12072df0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.120449f0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x1207367c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.12044a10
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.12072560
test eax, eax
mov dword [esp + 0x38], eax
je 0x120736af
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x120bafb0
call fcn.12044bf0
mov eax, dword [esp + 0x38]
jmp 0x1207370e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.12073420
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x120736f3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.12073440
mov esi, eax
test esi, esi
jne 0x12073723
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.12073420
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x120736c5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x120bafb0
call fcn.12044bf0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x120bafb0
call fcn.12044bf0
mov eax, esi
jmp 0x1207370e

Function at 0x12076850
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x120768b0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x120768b0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x120768b0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x120768b0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x120768f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x1207ca10
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x120b3de8
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.120acba5
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.1207c3b0
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.120acad3
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.120a9397
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.120a9397
push 1
push 0
push 0
mov ecx, esi
call fcn.120a933f
push 1
push 0
push 1
mov ecx, esi
call fcn.120a933f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.120acc17
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x1207cb90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x120b3e08
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.120acba5
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.1207c3b0
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.120acad3
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 0x1207cc54
cmp dword [esp + 0x40], 1
jne 0x1207cc52
cmp ecx, eax
jge 0x1207cc54
mov eax, ecx
cmp eax, 0xc8
jge 0x1207cc60
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.1207ca10
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.120acc17
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x1207d3e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x120b3e73
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.120a77b4
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.120ace4d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.120ae463
test eax, eax
je 0x1207d4fc
mov ecx, dword [esp + 0x3c]
call fcn.120ace7a
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 0x1207d4c0
push edi
mov ecx, esi
call fcn.120aa4de
mov ecx, esi
call fcn.1207d660
cmp dword [esp + 0x38], 1
jne 0x1207d4f5
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.120aa619
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 0x1207ff20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1207ff53
push esi
call fcn.12083020
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1207ff4c
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 0x1207ffd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1207ffc2
mov eax, dword [esi + 8]
test eax, eax
je 0x1207ff77
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 0x1207ffbe
cmp eax, 2
je 0x1207ffc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1207ff6a
cmp eax, 3
je 0x1207ff9d
cmp eax, 1
jne 0x1207ff6a
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 0x1207ff6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1207ff6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.12080000
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1207ffe8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.12080000
add esp, 4
pop esi
ret

Function at 0x12093e50
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x120bedf8
push 0x12097a64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.12095f40
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x12094000
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x12094041
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x120940ae
cmp dword [esp + 0x1c], 2
jne 0x120940ae
cmp dword [esp + 0x10], 5
jne 0x120940ae
cmp dword [esp + 0x14], 1
jne 0x120940ae
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x12094098
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x12094089
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x12094091
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x120940ae
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x120a85aa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x120a85e2
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.120a6661
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.120a6639
jmp 0x120a85ee
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x120a9c9b
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 0x120a9cdd
call fcn.120af854
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x120a9cdd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x120a9cd4
xor eax, eax
jmp 0x120a9ce5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.120a9ceb
pop edi
pop esi
pop ebx
ret 4

Function at 0x120afd84
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 0x120afdb2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x120afdd0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.120afcea
jmp 0x120afdd0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x120afdd0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.120afcea
test edi, edi
mov eax, edi
jne 0x120afdba
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x10001ca6
Capabilities:
Encode data using xor

Disassembly:
inc ecx
xor dl, byte [esi - 0x69adcb4]
sub ecx, dword [ebp - 0x1d]
sbb bl, bl
dec esi
pop ebp
push ss
and ebp, dword [0x7af9b0ba]
pop ss
xor ebx, 0x3d
mov byte [0xd431e49e], al
inc edx
xor ebp, dword [ecx - 0x40603175]
push esi
sbb al, byte [edx - 0x54c63f23]
mov cl, 0x22
or edx, 0x64
adc ecx, ecx
xor dl, byte [eax - 0x64]
push eax
pushfd
push eax
pushfd
jae 0x10001c71
test byte [ecx + 0x145f7281], ah
sub al, 0x5a
adc esi, dword [ecx + 0x187ac12c]
invalid
Function at 0x401a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], ecx
cmp dword [eax], ecx
jle 0x401b94
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
nop
mov esi, dword [edx]
add esi, ecx
mov al, byte [esi]
mov byte [ebp - 0x14], al
mov eax, dword [edx + 4]
mov al, byte [ecx + eax]
mov byte [ebp - 0x10], al
mov eax, dword [edx + 8]
mov al, byte [ecx + eax]
mov byte [ebp - 8], al
mov eax, dword [edx + 0xc]
mov al, byte [ecx + eax]
mov byte [ebp - 4], al
push dword [ebp - 4]
push 9
call fcn.00401900
push dword [ebp - 8]
mov bl, al
push 0xd
call fcn.00401900
push dword [ebp - 0x10]
xor bl, al
push 0xb
call fcn.00401900
mov edi, dword [ebp - 0x14]
xor bl, al
push edi
push 0xe
call fcn.00401900
push dword [ebp - 4]
xor bl, al
push 0xd
mov byte [esi], bl
call fcn.00401900
push dword [ebp - 8]
mov bl, al
push 0xb
call fcn.00401900
mov esi, dword [ebp - 0x10]
xor bl, al
push esi
push 0xe
call fcn.00401900
push edi
push 9
xor bl, al
call fcn.00401900
mov ecx, dword [ebp - 0xc]
xor bl, al
mov eax, dword [ebp + 8]
push dword [ebp - 4]
push 0xb
mov eax, dword [eax + 4]
mov byte [ecx + eax], bl
call fcn.00401900
push dword [ebp - 8]
mov bl, al
push 0xe
call fcn.00401900
push esi
push 9
xor bl, al
call fcn.00401900
push edi
push 0xd
xor bl, al
call fcn.00401900
mov ecx, dword [ebp - 0xc]
xor bl, al
mov eax, dword [ebp + 8]
push dword [ebp - 4]
push 0xe
mov eax, dword [eax + 8]
mov byte [ecx + eax], bl
call fcn.00401900
push dword [ebp - 8]
mov bl, al
push 9
call fcn.00401900
xor bl, al
push esi
push 0xd
call fcn.00401900
push edi
push 0xb
xor bl, al
call fcn.00401900
mov edx, dword [ebp + 8]
xor bl, al
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov byte [ecx + eax], bl
inc ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
cmp ecx, dword [eax]
jl 0x401a80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0xc
xor ecx, ecx
test edx, edx
je 0x401ca5
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp edx, 0x40
jb 0x401c81
lea eax, [edx - 1]
add eax, ebx
cmp edi, eax
ja 0x401bde
lea eax, [edx - 1]
add eax, edi
cmp eax, ebx
jae 0x401c81
lea eax, [edx - 1]
add eax, esi
cmp edi, eax
ja 0x401bf4
lea eax, [edx - 1]
add eax, edi
cmp eax, esi
jae 0x401c81
mov eax, edx
lea ebx, [edi + 0x20]
mov edx, esi
and eax, 0xffffffc0
sub edx, dword [ebp + 0xc]
mov dword [ebp + 8], edx
mov edx, edi
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edx
add eax, 0x10
mov edx, esi
sub edx, edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edx
nop
movups xmm0, xmmword [eax - 0x10]
mov edx, dword [ebp - 4]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + esi]
lea ebx, [ebx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [ebx - 0x60], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [edx + eax - 0x40], xmm1
mov edx, dword [ebp - 8]
movups xmm1, xmmword [edx + ebx - 0x40]
mov edx, dword [ebp + 0x14]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [ebx - 0x40], xmm1
movups xmm1, xmmword [ecx + esi + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [ebx - 0x30], xmm1
cmp ecx, dword [ebp - 0xc]
jb 0x401c20
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
cmp ecx, edx
jae 0x401ca2
sub esi, ebx
lea eax, [ecx + ebx]
sub edi, ebx
sub edx, ecx
nop
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + edi - 1], cl
sub edx, 1
jne 0x401c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401e60
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b6b6
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x148], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401ee0
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.00404cb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x148]
mov eax, dword [0x410568]
push ecx
cmp eax, dword [0x41056c]
je 0x401f27
mov ecx, eax
call fcn.00404bc0
add dword [0x410568], 0x18
jmp 0x401f32
push eax
mov ecx, 0x410564
call fcn.00405390
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov bl, 0x41
mov dword [ebp - 0x14c], 0x5c3a41
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x14c]
mov byte [ebp - 0x14c], bl
push eax
call esi
cmp eax, 2
jne 0x402019
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0x130], 0
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f90
sub eax, edx
lea ecx, [ebp - 0x130]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.00404cb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
mov eax, dword [0x410568]
push ecx
cmp eax, dword [0x41056c]
je 0x401fd4
mov ecx, eax
call fcn.00404bc0
add dword [0x410568], 0x18
jmp 0x401fdf
push eax
mov ecx, 0x410564
call fcn.00405390
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x11c]
cmp edx, 0x10
jb 0x402019
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40200f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40205a
push edx
push ecx
call fcn.0040aa56
add esp, 8
inc bl
cmp bl, 0x5b
jl 0x401f50
mov edx, dword [ebp - 0x134]
mov dword [0x40f400], 1
cmp edx, 0x10
jb 0x40206a
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402060
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040aa56
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a67e
mov esp, ebp
pop ebp
ret
Function at 0x405c60
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Get common file path
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
xorps xmm0, xmm0
push 0
push 0x40f420
movups xmmword [0x40f408], xmm0
movq qword [0x40f418], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x40f420
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov cl, 0x68
mov dword [ebp - 0x14], 0xd1b3468
mov dword [ebp - 0x10], 0x1b181d1c
xor eax, eax
mov dword [ebp - 0xc], 0xf070446
mov byte [ebp - 8], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xb
jae 0x405cdf
mov cl, byte [ebp - 0x14]
jmp 0x405cd0
lea eax, [ebp - 0x13]
mov byte [ebp - 8], 0
push eax
push 0x104
push 0x40f420
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x40f420
call esi
mov edi, eax
push 0
cmp edi, 0xffffffff
jne 0x405d4f
push 0x80
push 1
push 0
push 0
push 0x40000000
push 0x40f420
call esi
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x18
push 0x40f408
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x405d6c
push 0
push 0x18
push 0x40f408
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x405dc3
push str.yet_another_boring_and_typical_and_lame_windows_binary
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test esi, esi
je 0x405dc3
test al, al
je 0x405da3
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405dc3
cmp byte [ebp - 0x15], 0
jne 0x405dc3
call fcn.00405e00
test al, al
jne 0x405dcb
push 0
push 0
push str.Failed_on_loading_network_functions
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a67e
mov esp, ebp
pop ebp
ret