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

Disassembly:
sub esp, 0x41c
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [esp + 0x430]
mov edx, dword [ebp + 0xa10]
lea eax, [esp + 0x220]
push eax
push ecx
push 0x148
push edx
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x40
lea eax, [esp + 0x128]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x234]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x104
lea edx, [esp + 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
jmp 0x4154d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4154d0
sub eax, edx
test eax, eax
jle 0x4154f1
lea ecx, [ecx]
cmp byte [esp + eax + 0x18], 0x5c
je 0x4154f1
mov byte [esp + eax + 0x18], 0
dec eax
test eax, eax
jg 0x4154e0
lea eax, [esp + 0x18]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4154f6
mov ecx, dword [0x553434]
mov edx, dword [0x553438]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x11c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415518
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x415526
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x415543
mov ecx, dword [0x553420]
mov dl, byte [0x553424]
push 0
push 0
push 3
push 0
mov dword [eax], ecx
push 7
mov byte [eax + 4], dl
push closesocket
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea esi, [ebp + 0x74]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
xor ebx, ebx
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x53
push esi
push edi
call ebp
test eax, eax
je 0x41561e
inc ebx
add esi, 0x53
cmp ebx, 0x17
jl 0x415583
mov esi, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push 0x53
lea eax, [esi + 0x7e9]
push eax
push edi
call ebp
test eax, eax
je 0x41561e
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x53
lea edx, [esp + 0x128]
push edx
push edi
call ebp
test eax, eax
je 0x41561e
lea eax, [esi + 0x840]
push eax
add esi, 0x83c
push esi
lea ecx, [esp + 0x124]
push str._d__d
push ecx
call fcn.00526e94
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00524d83
add esp, 0x41c
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x415603
Function at 0x417fe0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [ecx + 0x294], eax
lea eax, [esp + 4]
push eax
push 0
push ecx
push 0x417f60
push 0
push 0
mov dword [ecx + 0x298], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x418016
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 8
Function at 0x41aec0
Capabilities:
Unmount volume via ioctl

Disassembly:
sub esp, 0x108
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
add eax, 2
lea edx, [esp + 4]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41aee4
lea eax, [esp + 4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41af00
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 2], 0x5c
lea eax, [esp + eax*2 + 2]
jne 0x41af20
xor ecx, ecx
mov word [eax], cx
push esi
push edi
call fcn.005273e9
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41afa9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
lea eax, [esp + 0x10]
push eax
push edi
push edi
push edi
push edi
push 0x90018
push esi
call ebx
mov edi, eax
test edi, edi
je 0x41afa1
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 0x90020
push esi
call ebx
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call ebx
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00524d83
add esp, 0x108
ret
Function at 0x41b4d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x34]
mov ecx, dword [esi + 0x734]
mov ebp, dword [esi + 0x2c7a]
mov ebx, dword [esi + 0x2c7e]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov edi, dword [ecx]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], eax
cmp edi, 8
jb 0x41b51b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
lea edx, [esp + 0x14]
push edx
lea eax, [esi + 2]
push eax
call fcn.0044d480
add esp, 8
test eax, eax
je 0x41b69e
mov ecx, ebp
or ecx, ebx
je 0x41b69e
push 1
push 0x1200
call fcn.00525178
mov ebx, eax
add esp, 8
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x41b674
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x35c]
push eax
push ebp
push 0
push edx
add ebx, 0x1000
call fcn.005269a0
push 0
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
mov ebp, edx
mov edx, dword [esp + 0x1c]
push esi
push edx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
jne 0x41b670
cmp dword [esp + 0x1c], ebp
jne 0x41b670
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x24]
push eax
push 0x1000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b670
cmp dword [esp + 0x20], 0x1000
jne 0x41b670
mov ecx, dword [esp + 0x10]
add ecx, 0x400
mov eax, edi
mov ebp, ecx
shl eax, 6
mov ecx, 8
add eax, ebx
sub ebp, ebx
sub ecx, edi
mov dword [esp + 0x24], ecx
lea edi, [eax + ebp]
mov esi, edi
mov edx, 0x40
mov ecx, eax
sub esi, eax
mov ebx, dword [esi + ecx]
cmp ebx, dword [ecx]
jne 0x41b616
sub edx, 4
add ecx, 4
cmp edx, 4
jae 0x41b602
jmp 0x41b627
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], 1
add eax, 0x40
sub dword [esp + 0x24], 1
jne 0x41b5f4
cmp dword [esp + 0x28], 0
je 0x41b668
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x35c]
mov ecx, dword [esp + 0x2c]
push 0x1000
push eax
mov eax, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.0044d780
add esp, 0x18
test eax, eax
je 0x41b670
mov dword [esp + 0x18], 1
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41b685
push eax
call fcn.0044d800
add esp, 4
test ebx, ebx
je 0x41b692
push ebx
call fcn.005251b8
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
Function at 0x41c400
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push eax
push 1
push 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c44b
pop edi
lea eax, [esi - 6]
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00524d83
add esp, 0x14
ret
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x41c4cb
mov ecx, 2
cmp cx, word [eax + 8]
jne 0x41c4cb
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.005257e0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov eax, 2
push ecx
mov word [esp + 0xc], ax
call sub.WS2_32.dll_htons
push 0x10
lea edx, [esp + 0xc]
push edx
push esi
mov word [esp + 0x16], ax
call sub.WS2_32.dll_connect
test eax, eax
je 0x41c4b8
pop edi
mov eax, 0xfffffff8
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00524d83
add esp, 0x14
ret
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00524d83
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
mov eax, 0xfffffffa
call fcn.00524d83
add esp, 0x14
ret

Function at 0x41c4f0
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push esi
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x41c50e
mov eax, 0xfffffff1
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x20]
push ebx
push ebp
push edi
push ecx
mov byte [esp + 0x14], 4
mov byte [esp + 0x15], 1
call sub.WS2_32.dll_htons
mov edx, dword [esi + 0xc]
mov ebp, dword [esp + 0x30]
mov word [esp + 0x12], ax
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
test ebp, ebp
jne 0x41c542
mov ebp, str.socks
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c547
sub eax, edx
mov ebx, eax
lea edi, [ebx + 8]
push edi
call fcn.005018ce
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
push ebx
lea ecx, [esi + 8]
push ebp
push ecx
mov dword [esi], edx
mov dword [esi + 4], eax
call fcn.005257e0
add esp, 0x10
push 0
push edi
push esi
mov esi, dword [esp + 0x30]
push esi
call sub.WS2_32.dll_send
cmp edi, eax
pop edi
pop ebp
pop ebx
jne 0x41c504
push 0
push 8
lea edx, [esp + 0x14]
push edx
push esi
call sub.WS2_32.dll_recv
cmp eax, 8
jne 0x41c504
cmp byte [esp + 0xc], 0
jne 0x41c504
xor eax, eax
cmp byte [esp + 0xd], 0x5a
pop esi
sete al
dec eax
and eax, 0xfffffff1
add esp, 0x10
ret
Function at 0x41c5d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
test ecx, ecx
je 0x41c6a5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41c6a5
push esi
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41c5f0
push ebx
sub ecx, esi
push ebp
mov dword [esp + 0xc], ecx
lea edx, [eax + 1]
push edi
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x41c603
sub eax, edx
mov ebx, eax
movzx eax, bl
movzx edi, cl
lea ebp, [edi + eax + 3]
push ebp
mov dword [esp + 0x18], eax
call fcn.005018ce
mov ecx, dword [esp + 0x24]
mov esi, eax
mov al, byte [esp + 0x14]
push edi
push ecx
lea edx, [esi + 2]
push edx
mov byte [esi], 1
mov byte [esi + 1], al
call fcn.005257e0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea edx, [edi + esi + 3]
push edx
mov byte [edi + esi + 2], bl
call fcn.005257e0
mov edi, dword [esp + 0x38]
add esp, 0x1c
push 0
push ebp
push esi
push edi
call sub.WS2_32.dll_send
cmp ebp, eax
jne 0x41c685
push 0
push 2
push esi
push edi
call sub.WS2_32.dll_recv
cmp eax, 2
jne 0x41c685
cmp byte [esi], 1
je 0x41c68f
cmp byte [esi + 1], 0
je 0x41c68f
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.005018c3
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x41c6b0
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x18
cmp dword [esp + 0x28], 0
push edi
je 0x41c6c9
cmp dword [esp + 0x30], 0
je 0x41c6c9
mov edi, 1
jmp 0x41c6cb
xor edi, edi
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41c6dd
mov eax, 0xfffffff1
pop edi
add esp, 0x18
ret
push ebp
push eax
call sub.WS2_32.dll_gethostbyname
mov ebp, eax
test ebp, ebp
jne 0x41c6f3
lea eax, [ebp - 0xf]
pop ebp
pop edi
add esp, 0x18
ret
push ebx
push esi
mov esi, dword [esp + 0x2c]
push 0
mov eax, edi
neg eax
push 3
lea ecx, [esp + 0x38]
sbb al, al
push ecx
and al, 2
mov bl, 5
push esi
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 1
mov byte [esp + 0x42], al
call sub.WS2_32.dll_send
cmp eax, 3
jne 0x41c7e7
push 0
push 2
lea edx, [esp + 0x38]
push edx
push esi
call sub.WS2_32.dll_recv
cmp eax, 2
jne 0x41c7e7
cmp byte [esp + 0x30], bl
jne 0x41c7e7
mov al, byte [esp + 0x31]
test al, al
je 0x41c779
cmp al, 2
jne 0x41c7e7
test edi, edi
je 0x41c7e7
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push esi
call fcn.0041c5d0
add esp, 0xc
test eax, eax
je 0x41c7e7
mov byte [esp + 0x10], bl
mov byte [esp + 0x13], 1
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax]
push edx
mov dword [esp + 0x18], ecx
call sub.WS2_32.dll_htons
push 0
mov word [esp + 0x1c], ax
push 0xa
lea eax, [esp + 0x18]
push eax
push esi
call sub.WS2_32.dll_send
cmp eax, 0xa
jne 0x41c7e7
push 0
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call sub.WS2_32.dll_recv
cmp eax, 0xa
jne 0x41c7e7
cmp byte [esp + 0x1c], bl
jne 0x41c7e7
movzx eax, byte [esp + 0x1d]
pop esi
neg eax
pop ebx
sbb eax, eax
pop ebp
and eax, 0xfffffff1
pop edi
add esp, 0x18
ret
pop esi
pop ebx
pop ebp
mov eax, 0xfffffff1
pop edi
add esp, 0x18
ret

Function at 0x41c800
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x404
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x400
lea eax, [esp + 4]
push 0
push eax
call fcn.00526520
mov edx, dword [esp + 0x418]
lea ecx, [esp + 0x41c]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x400
push eax
call fcn.005274c6
lea eax, [esp + 0x1c]
add esp, 0x1c
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c850
push 0
sub eax, edx
mov edx, dword [esp + 0x40c]
push eax
lea ecx, [esp + 8]
push ecx
push edx
call sub.WS2_32.dll_send
mov ecx, dword [esp + 0x400]
inc eax
neg eax
sbb eax, eax
and eax, 0xa
xor ecx, esp
add eax, 0xfffffff6
call fcn.00524d83
add esp, 0x404
ret
Function at 0x41c920
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x408
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
mov ebp, dword [esp + 0x418]
push esi
push edi
push 0x400
xor esi, esi
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00526520
mov edi, dword [esp + 0x428]
add esp, 0xc
mov bl, 0xd
lea ecx, [ecx]
push 0
push 1
lea ecx, [esp + 0x1b]
push ecx
push edi
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x41c9d7
mov dl, byte [esp + 0x13]
mov byte [esp + esi + 0x14], dl
inc esi
cmp esi, 4
jl 0x41c99c
cmp byte [esp + esi + 0x13], 0xa
jne 0x41c99c
cmp byte [esp + esi + 0x12], bl
jne 0x41c99c
cmp byte [esp + esi + 0x11], 0xa
jne 0x41c99c
cmp byte [esp + esi + 0x10], bl
je 0x41c9a4
cmp esi, 0x400
jl 0x41c960
lea eax, [esp + 0x14]
push eax
call fcn.0041c890
mov dword [ebp], eax
add esp, 4
neg eax
sbb eax, eax
and eax, 0xc
add eax, 0xfffffff4
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00524d83
add esp, 0x408
ret
mov eax, 0xfffffff5
jmp 0x41c9be
Function at 0x41d070
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x104
lea eax, [esp + 8]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x41d0b3
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00524d83
add esp, 0x108
ret
lea eax, [esp + 4]
dec eax
push edi
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41d0c0
mov ecx, dword [str.drivers_]
mov edx, dword [0x554094]
mov dword [eax], ecx
mov cx, word [0x554098]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, esi
mov ecx, esi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41d0e8
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41d0f2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 8]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10c]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.00524d83
add esp, 0x108
ret

Function at 0x41d1f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x110], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 4]
push eax
push 0xf013f
push 0
push esi
push closesocket
call edi
test eax, eax
je 0x41d253
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push esi
push closesocket
call edi
test eax, eax
je 0x41d253
xor al, al
pop edi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00524d83
add esp, 0x114
ret
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.UpperFilters
push edx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41d23b
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 8]
push ebx
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0041d130
mov ecx, dword [esp + 0x120]
add esp, 0xc
test eax, eax
setne al
pop edi
xor ecx, esp
call fcn.00524d83
add esp, 0x114
ret
Function at 0x41d2c0
Capabilities:
Delete registry key
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.SystemCurrentControlSetServices_bcfntSecurity
push closesocket
mov dword [0x5c4d28], eax
call esi
push str.SystemCurrentControlSetServices_bcfntEnum
push closesocket
call esi
push str.SystemCurrentControlSetServices_bcfnt
push closesocket
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 4]
push ecx
push 0xf013f
push 0
push str.SystemCurrentControlSetControlClass4D36E967_E325_11CE_BFC1_08002BE10318
push closesocket
call esi
test eax, eax
je 0x41d361
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push str.SystemCurrentControlSetControlClass4D36E967_E325_11CE_BFC1_08002BE10318
push closesocket
call esi
test eax, eax
je 0x41d361
xor eax, eax
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00524d83
add esp, 0x114
ret
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.UpperFilters
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41d349
mov ecx, dword [esp + 8]
push str.bcfnt
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0041d130
add esp, 0xc
test eax, eax
je 0x41d449
mov ecx, dword [esp + 8]
sub ecx, eax
lea edx, [esp + ecx + 0xa]
push edx
lea ecx, [eax + 6]
push ecx
push eax
call fcn.005257e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add esp, 0xc
sub eax, 6
push eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push eax
push 0
push str.UpperFilters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
jne 0x41d400
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41d454
push ebx
mov ebx, str.bcfnt
mov esi, str.SystemCurrentControlSetControlClass4D36E967_E325_11CE_BFC1_08002BE10318
call fcn.0041d1f0
pop ebx
test al, al
je 0x41d433
push str.BCFNT
call fcn.0041d1a0
add esp, 4
jmp 0x41d454
cmp byte [esp + 0x120], 0
jne 0x41d454
mov ecx, str.bcfnt.sys
call fcn.0041d070
jmp 0x41d454
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00524d83
add esp, 0x114
ret
Function at 0x41d750
Capabilities:
Get disk information

Disassembly:
sub esp, 0xb0
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [0x5526e0]
mov ecx, dword [0x5526e4]
mov edx, dword [0x5526e8]
push ebx
push ebp
push esi
mov dword [esp + 0xa8], eax
mov ax, word [0x5526ec]
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov word [esp + 0xb8], ax
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x18], eax
xor esi, esi
jmp 0x41d7c0
mov eax, dword [esp + 0x18]
mov edx, 1
mov ecx, esi
shl edx, cl
test eax, edx
je 0x41d858
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xb0]
lea ecx, [esi + 0x41]
push eax
mov word [esp + 0xbc], cx
call fcn.0044d480
add esp, 8
test eax, eax
je 0x41d858
push 0x90
lea ecx, [esp + 0x20]
push ebp
push ecx
call fcn.00526520
mov edi, dword [esp + 0x20]
add esp, 0xc
push ebp
lea edx, [esp + 0x14]
push edx
push 0x90
lea eax, [esp + 0x28]
push eax
push ebp
push ebp
push 0x70048
push edi
mov dword [esp + 0x30], ebp
call ebx
test eax, eax
je 0x41d84f
cmp dword [esp + 0x1c], 1
jne 0x41d84f
lea ecx, [esp + 0x3c]
push 0x554348
push ecx
call fcn.0041d6e0
add esp, 8
test eax, eax
jne 0x41d866
push edi
call fcn.0044d800
add esp, 4
inc esi
cmp esi, 0x1a
jl 0x41d7c0
xor eax, eax
jmp 0x41d87a
movzx esi, word [esp + 0xb4]
push edi
call fcn.0044d800
add esp, 4
mov ax, si
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00524d83
add esp, 0xb0
ret
Function at 0x41d8a0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x30
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [0x5526e0]
mov ecx, dword [0x5526e4]
mov edx, dword [0x5526e8]
mov dword [esp + 0x1c], eax
mov ax, word [0x5526ec]
push ebx
mov bx, word [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x55118c]
push edi
mov word [esp + 0x30], ax
xor edi, edi
lea eax, [esp + 0xc]
mov dword [esp + 0x2c], edx
mov edx, dword [0x551190]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov word [esp + 0x34], bx
call fcn.0044d480
add esp, 8
test eax, eax
jne 0x41d935
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00524d83
add esp, 0x30
ret
push esi
push 0x90
push edi
push 0x5c4d30
call fcn.00526520
mov esi, dword [esp + 0x1c]
add esp, 0xc
push edi
lea edx, [esp + 0x10]
push edx
push 0x90
push 0x5c4d30
push edi
push edi
push 0x70048
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov dword [0x5c5dd4], eax
call fcn.0044d800
add esp, 4
pop esi
cmp dword [0x5c5dd4], edi
je 0x41d922
cmp dword [0x5c4d30], 1
jne 0x41d922
mov ecx, dword [0x5c4d64]
mov edx, dword [0x5c4d68]
mov eax, dword [0x5c4d60]
mov dword [0x5c5dc8], ecx
lea ecx, [esp + 0x18]
push ecx
mov dword [0x5c5dc4], eax
mov eax, dword [0x5c4d6c]
mov dword [0x5c5dcc], edx
lea edx, [esp + 0x14]
push edx
mov dword [0x5c5dd0], eax
push 0x5c5dc0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov word [esp + 0x30], bx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x41d9e9
mov dword [0x5c5dd4], edi
mov ecx, dword [esp + 0x34]
mov eax, dword [0x5c5dd4]
pop edi
pop ebx
xor ecx, esp
call fcn.00524d83
add esp, 0x30
ret