joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bb8c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b9fd

Function at 0x41bf87
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040cef0
mov eax, dword [0x47f600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041abf2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41bfc9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c125
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428070
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x481d18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cf7e
mov ecx, dword [esi*4 + 0x481d18]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41c11e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c11e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c11e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cf7e
add esp, 0x14
test edx, edx
jl 0x41c11e
jg 0x41c094
test eax, eax
jb 0x41c11e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c11e
jl 0x41c0ae
cmp dword [ebp - 0x1008], eax
ja 0x41c11e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c0cc
test ebx, ebx
je 0x41c105
cmp ecx, edi
jae 0x41c105
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c0e6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c0f2
cmp byte [ecx + 1], 0xa
jne 0x41c0f2
inc ecx
jmp 0x41c0f2
movzx eax, al
movsx eax, byte [eax + 0x47f8d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c0cc
cmp edx, ebx
jne 0x41c0cc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c123
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c539
leave
ret
Function at 0x41c41c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x481d18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c45c
cmp byte [ebx], 0xa
jne 0x41c45c
or byte [eax + edi + 0x28], 4
jmp 0x41c461
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c55f
mov al, byte [edx]
cmp al, 0x1a
je 0x41c541
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c490
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c4b5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c4bf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c472
jmp 0x41c55f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c53c
cmp dword [ebp - 0xc], 0
je 0x41c53c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481d18]
test byte [eax + edi + 0x28], 0x48
je 0x41c516
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c501
mov byte [esi], dl
jmp 0x41c512
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481d18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c55f
cmp byte [ebp - 1], 0xa
jne 0x41c525
cmp esi, ebx
jne 0x41c525
mov byte [esi], 0xa
jmp 0x41c55e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cf9c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c55f
mov byte [esi], 0xd
jmp 0x41c55e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481d18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c55b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c55f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c568
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x481d18]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c5ab
cmp word [esi], dx
jne 0x41c5ab
or byte [edi + eax + 0x28], 4
jmp 0x41c5b0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c703
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c6e3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c5f2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c628
cmp eax, edx
jae 0x41c634
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c5ca
jmp 0x41c703
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c6df
cmp dword [ebp - 0x14], 0
je 0x41c6df
mov eax, dword [ebx*4 + 0x481d18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c6b7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c680
mov word [esi], cx
jmp 0x41c6b3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481d18]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481d18]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481d18]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c703
pop ebx
cmp word [ebp - 4], bx
jne 0x41c6c8
cmp esi, dword [ebp + 0xc]
jne 0x41c6c8
mov word [esi], bx
jmp 0x41c700
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cf9c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c703
push 0xd
jmp 0x41c6fc
mov ecx, dword [ebx*4 + 0x481d18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c6fa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c703
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40cdbd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43d3d8
cmp edx, dword [eax]
je 0x40cddf
add eax, 8
inc ecx
cmp eax, 0x43d468
jl 0x40cdd0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43d3d8]
jne 0x40cf0d
mov eax, dword [0x44d144]
cmp eax, 1
je 0x40cee7
test eax, eax
jne 0x40ce10
cmp dword [0x43cfb4], 1
je 0x40cee7
cmp edx, 0xfc
je 0x40cf0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ce47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040cfb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d0a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ce8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d0a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x435dfc
push edi
call fcn.0040fc10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040cfb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040cfc0
lea eax, [ebp - 0xa0]
push 0x435ddc
push eax
call fcn.0040cfc0
push dword [esi + 0x43d3dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040cfc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040fb79
add esp, 0x2c
pop edi
jmp 0x40cf0d
lea eax, [ebp + 8]
lea esi, [esi + 0x43d3dc]
push 0
push eax
push dword [esi]
call fcn.0040d0a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4134d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xcd0
mov al, 6
mov byte [esp + 0x306], 0
mov byte [esp + 0x307], 1
mov byte [esp + 0x304], 0x52
mov byte [esp + 0x305], 0x36
mov byte [esp + 5], al
mov byte [esp + 9], al
mov eax, dword [esp + 0x304]
mov dword [esp + 0xa], eax
mov eax, dword [0x45dc78]
push ebx
mov ebx, dword [esp + 0xcd8]
mov byte [esp + 0x30c], 0
mov byte [esp + 0x30d], 0
mov cx, word [esp + 0x30c]
push ebp
push esi
push edi
test eax, eax
mov byte [esp + 0x14], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], 0
mov word [esp + 0x1e], cx
mov ebp, ebx
je 0x4135cd
shl ebp, 5
add ebp, ebx
lea eax, [esp + 0x14]
shl ebp, 4
sub ebp, ebx
shl ebp, 2
mov dx, word [ebp + 0x44dd28]
mov cl, byte [ebp + 0x44d4f8]
push edx
push eax
push ecx
call fcn.004166c0
add esp, 0xc
test eax, eax
jne 0x4136b6
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
call esi
mov edi, eax
mov eax, dword [0x45dc78]
test eax, eax
je 0x41360f
mov ax, word [ebp + 0x44dd28]
mov dl, byte [ebp + 0x44d4f8]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call fcn.004165c0
add esp, 0xc
test eax, eax
je 0x41363b
call dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x41363b
shl ebp, 5
add ebp, ebx
lea edx, [esp + 0x10]
shl ebp, 4
sub ebp, ebx
push 0
shl ebp, 2
push edx
lea ecx, [esp + 0x1c]
mov eax, dword [ebp + 0x44dd28]
mov edx, dword [ebp + 0x44d4f4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413583
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcd0
ret
mov eax, dword [ebp + 0x44dd28]
lea edx, [esp + 0x10]
push 0
push edx
mov edx, dword [ebp + 0x44d4f4]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41363b
call dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, dword [esp + 0xce8]
mov ecx, 5
lea esi, [esp + 0x22]
lea eax, [esp + 0x214]
rep movsd dword es:[edi], dword [esi]
push eax
push 0xc0801800
push ebx
movsb byte es:[edi], byte [esi]
call fcn.00413b30
test eax, eax
jne 0x41366e
mov byte [0x45dc74], 0x80
jmp 0x41368c
lea ecx, [esp + 0x214]
push ecx
push 0xc0f01800
push ebx
call fcn.00413b30
test eax, eax
jne 0x4136b6
mov byte [0x45dc74], 0xf0
lea edi, [esp + 0x21a]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x44dcfc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcd0
ret
Function at 0x4167c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
call fcn.004165b0
push 0x100
mov ebx, eax
call fcn.0040a1dc
mov esi, eax
mov edx, 0x40
mov ecx, edx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x58]
lea ecx, [esp + 0x14]
mov byte [esi], 2
mov byte [esi + 2], al
mov byte [esi + 3], 0x48
mov byte [esi + 8], 0
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], edx
mov byte [esi + 0x14], 0xe
mov byte [esi + 0x15], 6
mov byte [esi + 0x30], 0x25
mov byte [esi + 0x34], dl
mov dword [esi + 0x18], ebx
call dword [0x45dc7c]
mov al, byte [esi + 1]
add esp, 8
test al, al
jne 0x416830
push 0x64
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x416834
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x416841
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x416853
cmp eax, 0x102
jne 0x416853
push 0x43e2ac
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
mov dl, byte [esp + 0x13]
mov dword [esp + 0x50], eax
mov cl, byte [esp + 0x51]
mov byte [esp + 0x53], al
mov al, byte [esp + 0x52]
push ebx
mov byte [esp + 0x54], dl
mov byte [esp + 0x56], cl
mov byte [esp + 0x55], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040a080
mov eax, dword [esp + 0x54]
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x40
ret

Function at 0x4168a0
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.004165b0
push 0x100
mov ebx, eax
call fcn.0040a1dc
mov ebp, eax
mov esi, dword [esp + 0x1c]
mov ecx, 0x40
xor eax, eax
mov edi, ebp
push ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x1c]
mov byte [ebp], 2
mov byte [ebp + 2], al
mov eax, dword [esp + 0x24]
mov byte [ebp + 3], 0x48
mov byte [ebp + 8], 0
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], eax
mov byte [ebp + 0x14], 0xe
mov byte [ebp + 0x15], 6
mov byte [ebp + 0x30], 0x12
mov byte [ebp + 0x34], al
mov dword [ebp + 0x18], ebx
call dword [0x45dc7c]
mov dword [esp + 0x20], eax
mov al, byte [ebp + 1]
add esp, 8
test al, al
jne 0x416915
push 0x64
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x416919
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416926
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x416938
cmp eax, 0x102
jne 0x416938
push 0x43e2ac
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [esi + 8]
mov ecx, 0x12
mov edi, 0x43e0a0
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x416952
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416976
mov ecx, 0x12
mov edi, 0x43e0b2
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x41696d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416976
or esi, 0xffffffff
jmp 0x41697a
mov esi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.0040a080
add esp, 4
test esi, esi
je 0x416995
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004167c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x416a20
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0xc
xor eax, eax
lea edx, [esp]
mov dword [esp], eax
mov dword [esp + 4], eax
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
push eax
mov eax, dword [esp + 0x20]
push 0xc
push edx
push 0x2d1400
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
ret

Function at 0x41b280
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
push 0xf01ff
push 0x43e42c
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x41b2fa
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
pop edi
jne 0x41b2d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b2f3
mov ebx, dword [esp + 0x10]
cmp ebx, 4
jne 0x41b2f3
lea ecx, [esp + 0xc]
push ecx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41b2f3
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x41b330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x118
mov ecx, dword [esp + 0x120]
mov al, byte [esp + 0x11c]
mov byte [esp + 8], al
mov ax, word [0x43e440]
mov edx, dword [ecx]
mov cl, byte [0x43e442]
mov dword [esp + 9], edx
mov edx, dword [esp + 0x124]
mov word [esp + 0xd], ax
push esi
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x1b], cl
call fcn.0041d250
lea ecx, [esp + 0x14]
push 1
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.0041d290
mov si, word [esp + 0x144]
add esp, 0x14
xor cl, cl
xor dl, dl
test si, si
mov byte [esp + 4], cl
mov byte [esp + 8], dl
jbe 0x41b3f4
push ebx
push edi
mov edi, dword [esp + 0x134]
cmp cl, 8
jb 0x41b3b7
xor cl, cl
mov byte [esp + 0xc], cl
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
and eax, 0xff
and ebx, 0xff
add eax, edi
mov bl, byte [esp + ebx + 0x14]
xor byte [eax], bl
inc cl
inc dl
xor ax, ax
mov al, dl
mov byte [esp + 0xc], cl
cmp ax, si
mov byte [esp + 0x10], dl
jb 0x41b3ac
pop edi
pop ebx
xor al, al
pop esi
add esp, 0x118
ret
xor al, al
pop esi
add esp, 0x118
ret
Function at 0x41d030
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0x449b00]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x449a90]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x41d043
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp word [esp + 0x10c], 1
je 0x41d085
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x449b38]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x41d0b7
mov bl, byte [esp + ecx + 0x4c]
jmp 0x41d0bb
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x41d0ac
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x41d0d9
mov bl, byte [esp + ecx + 0x4c]
jmp 0x41d0dd
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x41d0ce
xor ecx, ecx
mov eax, 0x449aa0
xor ebx, ebx
mov bl, byte [ecx + 0x449b48]
cmp byte [esp + ebx + 0x14], 0
je 0x41d108
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x449b60]
cmp byte [esp + ebx + 0x14], 0
je 0x41d11f
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0x449b00
jl 0x41d0ef
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x41d077
lea edx, [esp + 0x84]
push edx
call fcn.0041d160
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x41d960
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
xor ebp, ebp
call fcn.0041db40
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41d988
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
lea eax, [edx*4 + 4]
push eax
call fcn.0040a1dc
mov esi, dword [esp + 0x20]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x41d9b2
pop edi
pop esi
mov dword [ebx], eax
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [ebx]
xor eax, eax
push 0x8000
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.0040a1dc
add esp, 4
mov ebx, eax
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
push 0x8000
push ebx
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x41da15
mov eax, dword [esp + 0x20]
push ebx
mov dword [eax], 0
call fcn.0040a080
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x8000]
cmp eax, ecx
jae 0x41db1b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41db17
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call fcn.00425380
add esp, 0xc
test eax, eax
jne 0x41daf6
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 8
push ecx
call fcn.0040a1dc
mov ecx, dword [esi]
mov edi, ebx
add esp, 4
mov dword [ecx + ebp*4], eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi]
repne scasb al, byte es:[edi]
mov edi, dword [edx + ebp*4]
not ecx
add ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi]
mov edi, ebx
not ecx
mov edx, dword [eax + ebp*4]
add ecx, 3
mov dword [edx], ecx
mov eax, dword [esi]
mov edx, dword [0x44a3d8]
mov ecx, dword [eax + ebp*4]
add ecx, 4
mov dword [ecx], edx
mov al, byte [0x44a3dc]
mov byte [ecx + 4], al
mov ecx, dword [esi]
xor eax, eax
mov edx, dword [ecx + ebp*4]
or ecx, 0xffffffff
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
add eax, 0x8000
lea ebx, [ebx + ecx + 1]
cmp ebx, eax
jb 0x41da27
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx], ebp
call fcn.0040a080
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x41e280
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
mov eax, ebp
push esi
push edi
lea edi, [esp + 0x30]
mov ecx, dword [eax]
mov esi, 0x10
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov eax, ebx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov ecx, ebp
mov edx, dword [eax + 0xc]
sub ecx, ebx
mov dword [esp + 0x2c], edx
sub edi, ebx
mov dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
dec esi
mov byte [edi + eax - 1], dl
jne 0x41e2d8
xor eax, eax
xor edx, edx
xor ecx, ecx
mov al, byte [eax + 0x44ad88]
xor byte [esp + ecx + 0x10], al
mov al, byte [esp + ecx + 0x10]
and eax, 0xff
inc ecx
cmp ecx, 0x30
jb 0x41e2eb
add eax, edx
and eax, 0xff
inc edx
cmp edx, 0x12
jb 0x41e2e9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 0xc], ecx
xor ecx, ecx
mov cl, byte [eax + 0xf]
mov esi, ebx
sub esi, eax
mov edi, 0x10
xor edx, edx
mov dl, byte [esi + eax]
xor edx, ecx
mov cl, byte [edx + 0x44ad88]
mov dl, byte [eax]
xor dl, cl
mov cl, dl
mov byte [eax], dl
and ecx, 0xff
inc eax
dec edi
jne 0x41e33f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x41e370
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4210e0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret