joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a170
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push edi
push ebx
push ebp
push eax
mov eax, dword [esp + 0x28]
push 0
push esi
push ecx
push edx
push eax
call fcn.004036c0
add esp, 0x24
test ax, ax
je 0x40a1b8
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov word [ecx + 6], ax
pop ebx
ret
cmp word [0x464f78], 0
jne 0x40a249
lea edx, [esp + 0x30]
lea eax, [esp + 0x34]
push edx
push 0
push eax
push 0x4035f0
push 0
push 0
call fcn.004427ea
add esp, 0x18
mov dword [0x464f74], eax
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a249
mov ax, word [esp + 0x34]
cmp ax, 2
jne 0x40a251
cmp dword [esp + 0x20], 0xffffffff
jne 0x40a21d
test esi, esi
jge 0x40a21d
mov ecx, dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push 2
push esi
push 0xffffffffffffffff
jmp 0x40a22a
mov ecx, dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push 2
push esi
push 1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.004036c0
mov ecx, dword [0x464f74]
add esp, 0x24
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
test ax, ax
jne 0x40a26b
mov edx, dword [0x464f74]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
cmp dword [esp + 0x20], 1
jne 0x40a285
test esi, esi
jle 0x40a285
mov eax, dword [esp + 0x28]
push edi
push ebx
push ebp
push eax
push 1
push esi
push 1
jmp 0x40a292
mov eax, dword [esp + 0x28]
push edi
push ebx
push ebp
push eax
push 1
push esi
push 0xffffffffffffffff
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.004036c0
mov eax, dword [esp + 0x38]
add esp, 0x24
mov word [eax + 6], 0x46
mov ecx, dword [0x464f74]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
ret
Function at 0x40f1e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x465898]
push esi
mov esi, dword [esp + 8]
test eax, eax
jne 0x40f214
call fcn.0040f260
test eax, eax
je 0x40f1fc
or eax, 0xffffffff
pop esi
ret
mov eax, dword [0x465898]
mov dword [0x461288], 0
test eax, eax
jne 0x40f214
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
je 0x40f24e
push ebx
push edi
lea edi, [eax + 1]
mov eax, dword [edx]
xor ebx, ebx
mov bl, byte [esi]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
mov ebx, dword [0x465898]
shr eax, 8
mov ecx, dword [ebx + ecx*4]
inc esi
xor eax, ecx
dec edi
mov dword [edx], eax
jne 0x40f228
pop edi
pop ebx
mov eax, dword [edx]
pop esi
ret

Function at 0x40f260
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
call fcn.004385ba
add esp, 4
mov dword [0x465898], eax
test eax, eax
jne 0x40f27a
or eax, 0xffffffff
ret
push esi
xor edx, edx
jmp 0x40f284
mov eax, dword [0x465898]
mov ecx, edx
mov esi, 8
test cl, 1
je 0x40f29a
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x40f29c
shr ecx, 1
dec esi
jne 0x40f28b
mov dword [eax + edx*4], ecx
inc edx
cmp edx, 0xff
jle 0x40f27f
xor eax, eax
pop esi
ret
Function at 0x410460
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.00414900
add esp, 4
cmp eax, ebx
mov dword [0x466a44], eax
jne 0x41048d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, 0x10
xor eax, eax
mov edi, 0x466980
mov dword [0x466a40], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, 0x466a00
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, 0x4669c0
rep stosd dword es:[edi], eax
mov al, byte [0x463e64]
push 0x46008c
cmp al, bl
jne 0x4104d8
push str.sntlconfig.xml
call fcn.004407ff
add esp, 8
mov esi, eax
jmp 0x4104ed
push 0x463e64
call fcn.004407ff
add esp, 8
mov esi, eax
mov byte [0x463e64], bl
cmp esi, ebx
jne 0x410509
mov eax, dword [0x466a44]
push eax
call fcn.00414cb0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 2
push ebx
push esi
call fcn.0044351a
add esp, 0xc
test eax, eax
je 0x41052c
push esi
call fcn.0044069c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.004431d6
push ebx
push ebx
push esi
call fcn.0044351a
add esp, 0x14
test eax, eax
je 0x410559
push esi
call fcn.0044069c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x10]
inc edx
push edx
call fcn.004385ba
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x41058b
mov eax, dword [0x466a44]
push eax
call fcn.00414cb0
push esi
call fcn.0044069c
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
xor eax, eax
inc ecx
mov edi, ebp
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
push eax
push 1
push ebp
call fcn.004410f1
push esi
mov edi, eax
mov dword [esp + 0x30], ebx
call fcn.0044069c
mov ecx, dword [0x466a44]
push 0x410b70
push 0x4106b0
push ecx
call fcn.00414e00
mov edx, dword [0x466a44]
push edi
push edi
push ebp
push edx
call fcn.00414e30
add esp, 0x30
test eax, eax
jne 0x410606
push ebp
call fcn.0043859f
mov eax, dword [0x466a44]
push eax
call fcn.00414cb0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x24]
mov ecx, 0x10
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea ebx, [edx + 0x40]
mov ecx, 0x10
mov edi, ebx
mov esi, 0x466a60
rep stosd dword es:[edi], eax
lea edi, [edx + 0x80]
mov ecx, 0x10
rep stosd dword es:[edi], eax
lea edi, [edx + 0xc0]
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x466980
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x466a00
lea edi, [edx + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x4669c0
lea edi, [edx + 0xc0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x466a40]
mov dword [edx + 0x100], ecx
mov edx, dword [0x466a44]
push edx
call fcn.00414cb0
push ebp
call fcn.0043859f
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x411810
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edi
mov edi, dword [esi + 0xc]
mov edx, 0xc6ef3720
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 8]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
sub eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add edx, 0x61c88647
sub ecx, esi
dec edi
jne 0x411849
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 0xc
ret 8

Function at 0x4118f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esi + 4]
xor edx, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
sub edx, 0x61c88647
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
add eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x411926
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x411aa0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebx, 4
sub esi, ecx
lea eax, [edi + ecx]
lea edx, [esp + ebp + 0x10]
add edi, ebx
mov cl, byte [esi + eax]
mov byte [edx], cl
mov byte [eax], cl
add edx, 4
inc eax
dec ebx
jne 0x411ac3
inc ebp
cmp ebp, 4
jl 0x411aab
cmp edi, 0xb0
jge 0x411b7a
mov ebp, 0x4617a0
xor eax, eax
lea ecx, [esp + 0x10]
inc eax
mov edx, eax
and edx, reloc.WSOCK32.dll_closesocket
jns 0x411afe
dec edx
or edx, 0xfffffffc
inc edx
xor ebx, ebx
add ecx, 4
mov bl, byte [esp + edx*4 + 0x13]
mov dl, byte [ebx + 0x4615a0]
mov bl, byte [ecx - 4]
xor bl, dl
cmp eax, 4
mov byte [ecx - 4], bl
jl 0x411aee
mov al, byte [ebp]
mov cl, byte [esp + 0x10]
xor cl, al
add ebp, 4
mov byte [esp + 0x10], cl
mov esi, 1
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x411b38
inc esi
cmp esi, 4
jl 0x411b2f
xor esi, esi
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov ebx, dword [esp + 0x24]
mov dl, byte [eax]
add eax, 4
mov byte [edi + ebx], dl
inc edi
dec ecx
jne 0x411b58
inc esi
cmp esi, 4
jl 0x411b4f
cmp edi, 0xb0
jl 0x411ae8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x411b90
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebp
push esi
call fcn.00411c20
add esp, 8
lea edi, [ebp + 0x10]
mov ebx, 9
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x4615a0]
mov byte [eax + esi - 1], dl
jl 0x411bb0
push 0
push esi
call fcn.00411c50
push esi
call fcn.00411ca0
push edi
push esi
call fcn.00411c20
add esp, 0x14
add edi, 0x10
dec ebx
jne 0x411bae
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x4615a0]
mov byte [eax + esi - 1], dl
jl 0x411be5
push 0
push esi
call fcn.00411c50
add ebp, 0xa0
push ebp
push esi
call fcn.00411c20
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x411c20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push esi
sub ecx, eax
mov esi, 0x10
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x411c31
pop esi
pop ebx
ret
Function at 0x411dc0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [ebp + 0xa0]
push eax
push esi
call fcn.00411c20
add esp, 8
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x4616a0]
mov byte [eax + esi - 1], dl
jl 0x411dde
push 0x10
push esi
call fcn.00411c50
add esp, 8
lea edi, [ebp + 0x90]
mov ebx, 9
push edi
push esi
call fcn.00411c20
push esi
call fcn.00411e50
add esp, 0xc
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x4616a0]
mov byte [eax + esi - 1], dl
jl 0x411e1b
push 0x10
push esi
call fcn.00411c50
add esp, 8
sub edi, 0x10
dec ebx
jne 0x411e09
push ebp
push esi
call fcn.00411c20
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x411e50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
xor edi, edi
lea eax, [esp + edi + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
sub eax, ecx
mov esi, 1
mov dword [esp + 0x10], eax
lea edx, [esi - 2]
and edx, 3
add edx, edi
mov al, byte [edx + ebp]
push eax
push 9
call fcn.00411d70
lea ecx, [esi + 1]
mov bl, al
and ecx, 3
add ecx, edi
mov dl, byte [ecx + ebp]
push edx
push 0xd
call fcn.00411d70
xor bl, al
mov eax, esi
and eax, 3
add eax, edi
mov cl, byte [eax + ebp]
push ecx
push 0xb
call fcn.00411d70
mov edx, dword [esp + 0x28]
xor bl, al
mov eax, dword [esp + 0x40]
mov cl, byte [edx + eax]
push ecx
push 0xe
call fcn.00411d70
add esp, 0x20
xor bl, al
mov eax, dword [esp + 0x28]
inc esi
mov byte [eax], bl
lea edx, [esi - 1]
inc eax
cmp edx, 4
mov dword [esp + 0x28], eax
jl 0x411e76
add edi, 4
cmp edi, 0x10
jl 0x411e5d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
pop edi
mov dword [ebp + 0xc], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x412410
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push edi
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 2
jne 0x412456
cmp dword [esp + 8], 5
jne 0x412456
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x412456
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..GlobalSNTNLUSB
jmp 0x41246a
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..SNTNLUSB
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412483
mov ax, 0x1d03
pop edi
add esp, 0x94
ret
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push esi
push 0
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0xb0]
push eax
mov eax, dword [esp + 0xb0]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4124d6
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop esi
pop edi
add esp, 0x94
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 6
jne 0x4124fb
push edi
mov esi, 0x1d43
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop esi
pop edi
add esp, 0x94
ret
call esi
mov esi, eax
push edi
sub esi, 0x39
neg esi
sbb esi, esi
and esi, 0xffffffa0
add esi, 0x1d6d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop esi
pop edi
add esp, 0x94
ret
Function at 0x412530
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0041be90
mov ebp, dword [esp + 0x18]
add esp, 4
test ebp, ebp
je 0x412605
mov al, byte [esi + 1]
and al, 0xf
cmp al, 0xf
je 0x41255d
pop edi
pop esi
mov ax, 0x1d02
pop ebp
ret
xor eax, eax
mov cl, byte [eax + esi + 8]
mov byte [eax + esi], cl
inc eax
cmp eax, 0x40
jb 0x41255f
push esi
push ebp
call fcn.00411dc0
add esp, 8
xor eax, eax
mov dl, byte [eax + esi + 0x10]
mov cl, byte [eax + esi]
xor cl, dl
mov byte [eax + esi], cl
inc eax
cmp eax, 0x10
jb 0x412578
lea edi, [esi + 0x10]
push ebx
push edi
push ebp
call fcn.00411dc0
mov ecx, 0xfffffff0
add esp, 8
mov eax, edi
sub ecx, esi
mov dl, byte [eax + 0x10]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x10
jb 0x4125a1
lea edi, [esi + 0x20]
push edi
push ebp
call fcn.00411dc0
mov ecx, 0xffffffe0
add esp, 8
mov eax, edi
sub ecx, esi
mov dl, byte [eax + 0x10]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x10
jb 0x4125c9
lea eax, [esi + 0x30]
push eax
push ebp
call fcn.00411dc0
mov cl, byte [esi + 6]
mov al, byte [esi + 0x3e]
add esp, 8
cmp cl, al
pop ebx
jne case.0x41263f.4
mov dl, byte [esi + 7]
mov al, byte [esi + 0x3f]
cmp dl, al
je 0x412605
pop edi
pop esi
mov ax, 0x1d02
pop ebp
ret
mov dl, byte [esi + 4]
mov cl, byte [esi + 5]
xor eax, eax
mov al, byte [esi + 1]
mov edi, eax
add eax, edx
mov dl, byte [esi + 3]
add ecx, eax
mov al, byte [esi + 2]
add ecx, edx
add eax, ecx
xor ecx, ecx
mov cl, byte [esi]
and eax, 0xff
xor eax, ecx
je 0x412635
pop edi
pop esi
mov ax, 0x1d0d
pop ebp
ret
mov eax, edi
and eax, 0xf
cmp eax, 7
ja case.default.0x41263f
jmp dword [eax*4 + 0x412688]
pop edi
pop esi
xor ax, ax
pop ebp
ret
pop edi
pop esi
mov ax, 0x1d41
pop ebp
ret
pop edi
pop esi
mov ax, 0x1d04
pop ebp
ret
pop edi
pop esi
mov ax, 0x1d0a
pop ebp
ret
pop edi
pop esi
mov ax, 0x1d15
pop ebp
ret
pop edi
pop esi
mov ax, 0x1d42
pop ebp
ret
pop edi
pop esi
mov ax, 0x1d3f
pop ebp
ret
pop edi
pop esi
mov ax, 0x1dff
pop ebp
ret
Function at 0x413360
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x158
push ebx
push ebp
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x10]
mov byte [esp + 0x64], al
rep stosd dword es:[edi], eax
mov ecx, 0x2b
lea edi, [esp + 0x65]
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x174]
stosw word es:[edi], ax
cmp ebx, 0x3a
stosb byte es:[edi], al
ja 0x413575
mov ebp, dword [esp + 0x178]
test ebp, ebp
je 0x413575
mov eax, dword [esp + 0x17c]
test eax, eax
je 0x413575
cmp dword [esp + 0x180], 0x50
jb 0x413575
push esi
lea esi, [esp + 0x118]
test ebx, ebx
je 0x4133fa
mov esi, dword [esp + 0x174]
lea eax, [esp + 0x1e]
push 2
push eax
mov byte [esp + 0x20], 7
call fcn.00411a70
mov cl, byte [esp + 0x16c]
mov dl, byte [esp + 0x170]
mov al, byte [esi]
mov byte [esp + 0x20], cl
mov cl, byte [esi + 1]
mov byte [esp + 0x21], dl
mov dl, byte [esi + 2]
mov byte [esp + 0x23], cl
mov byte [esp + 0x22], al
mov al, byte [esi + 3]
lea ecx, [esp + 0x26]
push 2
push ecx
mov byte [esp + 0x2c], dl
mov byte [esp + 0x2d], al
call fcn.00411a70
cmp ebx, 4
jbe 0x413478
lea ecx, [ebx - 4]
add esi, 4
mov edx, ecx
lea edi, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, 0x39
mov ecx, edx
sub eax, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x413484
push eax
lea eax, [esp + ebx + 0x28]
push eax
jmp 0x41347f
lea ecx, [esp + 0x28]
push 0x35
push ecx
call fcn.00411a70
cmp ebx, 4
jbe 0x413492
sub bl, 4
mov byte [esp + 0x5d], bl
jmp 0x413497
mov byte [esp + 0x5d], 0
mov dl, byte [esp + 0x26]
mov al, byte [esp + 0x27]
lea ecx, [esp + 0x68]
push ebp
push ecx
mov byte [esp + 0x66], dl
mov byte [esp + 0x67], al
call fcn.00411aa0
lea edx, [esp + 0x58]
lea eax, [esp + 0x70]
push edx
push eax
call fcn.00411dc0
add esp, 0x10
xor eax, eax
mov cl, byte [esp + eax + 0x40]
mov bl, byte [esp + eax + 0x50]
xor bl, cl
mov byte [esp + eax + 0x50], bl
inc eax
cmp eax, 0x10
jb 0x4134c6
lea edx, [esp + 0x40]
lea eax, [esp + 0x68]
push edx
push eax
call fcn.00411dc0
add esp, 8
xor eax, eax
mov cl, byte [esp + eax + 0x30]
mov bl, byte [esp + eax + 0x40]
xor bl, cl
mov byte [esp + eax + 0x40], bl
inc eax
cmp eax, 0x10
jb 0x4134ee
lea edx, [esp + 0x30]
lea eax, [esp + 0x68]
push edx
push eax
call fcn.00411dc0
add esp, 8
xor eax, eax
mov cl, byte [esp + eax + 0x20]
mov bl, byte [esp + eax + 0x30]
xor bl, cl
mov byte [esp + eax + 0x30], bl
inc eax
cmp eax, 0x10
jb 0x413516
lea edx, [esp + 0x20]
lea eax, [esp + 0x68]
push edx
push eax
call fcn.00411dc0
lea ecx, [esp + 0x20]
lea edx, [esp + 0x70]
push ecx
push edx
call fcn.00411aa0
lea eax, [esp + 0x28]
push eax
call fcn.0041be90
mov edi, dword [esp + 0x194]
mov ecx, 0x14
lea esi, [esp + 0x2c]
add esp, 0x14
rep movsd dword es:[edi], dword [esi]
pop esi
pop edi
pop ebp
xor ax, ax
pop ebx
add esp, 0x158
ret
pop edi
pop ebp
mov ax, 0x1d10
pop ebx
add esp, 0x158
ret
Function at 0x414190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x41421b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x414212
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.ServiceName
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414220
cmp dword [esp + 0x10], 1
jne 0x414220
mov edx, dword [esp + 4]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
xor eax, eax
pop esi
add esp, 8
ret
or eax, 0xffffffff
pop esi
add esp, 8
ret

Function at 0x414270
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x18
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4142e4
push eax
push eax
push eax
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4142e2
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00414250
add esp, 8
pop esi
add esp, 0x18
ret
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x4143d0
Capabilities:
Check if file exists
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x418]
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
push edi
lea ecx, [esp + 0x14]
push 0x200
xor ebx, ebx
push ecx
push ebp
mov byte [esp + 0x1f], 0
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x41447f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x414475
mov eax, dword [0x4618d4]
mov cl, byte [0x4618d8]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [str.Device_]
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x14], edx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push ebp
push 1
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x41452a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x414567
mov ecx, dword [0x4618c8]
mov edi, ebp
mov dword [esp + 0x214], ecx
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x4618cc]
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + 0x218], dl
sub edi, ecx
lea edx, [esp + 0x214]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 3
push eax
mov ecx, edx
push 1
push eax
and ecx, 3
lea eax, [esp + 0x22c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x414534
mov ecx, dword [esp + 0x428]
mov edx, dword [esp + 0x424]
mov eax, dword [esp + 0x420]
push 0
push ecx
push edx
push eax
lea ecx, [esp + 0x42c]
push 4
push ecx
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x414521
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41453c
mov byte [esp + 0x13], 1
jmp 0x41447f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [esp + 0x13]
test al, al
je 0x414567
lea edx, [esp + 0x14]
push edx
push ebp
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x414567
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x404
ret