joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411825
Capabilities:
Reference sql statements

Disassembly:
push 0x24
mov eax, 0x5af011
call fcn.00580e9e
mov ebx, ecx
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push str.SELECT_b_sent_b_recv_FROM_bandwidth_WHERE_b_hour____
lea eax, [ebp - 0x1c]
push eax
call fcn.00484810
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x1c]
call fcn.004846f0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004844a0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], 0
jne 0x41189e
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00483fc0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
inc esi
call fcn.00483fc0
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00483f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00484270
call fcn.00580f43
ret 0xc

Function at 0x4118fc
Capabilities:
Reference sql statements

Disassembly:
push 0x24
mov eax, 0x5aefe6
call fcn.00580e9e
mov ebx, ecx
xor ecx, ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push str.SELECT_sum_b_sent___sum_b_recv__FROM_bandwidth_WHERE_b_hour_____AND_b_hour_____
lea eax, [ebp - 0x1c]
push eax
call fcn.00484810
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x1c]
call fcn.004846f0
push dword [ebp + 0xc]
push 2
lea eax, [ebp - 0x1c]
call fcn.004846f0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004844a0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], 0
jne 0x411982
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00483fc0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
inc esi
call fcn.00483fc0
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00483f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00484270
call fcn.00580f43
ret 0x10
Function at 0x411be2
Capabilities:
Reference sql statements

Disassembly:
push 0x2c
mov eax, 0x5b2045
call fcn.00580e9e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
push str.SELECT_name__path__severity__status__action_FROM_realtime_WHERE_applied__0_ORDER_BY_t_on_DESC_
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.00484a30
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], bl
jne 0x411cc3
xor esi, esi
lea edi, [ebp - 0x38]
call fcn.00484040
push eax
lea eax, [ebp + 8]
push eax
call fcn.00408561
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0041395f
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004085a2
inc esi
call fcn.00484040
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408561
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
call fcn.0041395f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004085a2
push 2
pop esi
call fcn.00483f80
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x14]
call fcn.004137f7
push 3
pop esi
call fcn.00483f80
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x18]
call fcn.004137f7
push 4
pop esi
call fcn.00483f80
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x1c]
call fcn.004137f7
mov eax, edi
push eax
call fcn.004840c0
jmp 0x411c0c
mov byte [ebp - 4], bl
lea esi, [ebp - 0x38]
call fcn.00483f30
or dword [ebp - 4], 0xffffffff
call fcn.00580f43
ret 0x18

Function at 0x411e03
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x5aef0c
call fcn.00580e9e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call fcn.0040850b
mov dword [ebp - 4], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
push str.SELECT_r_threats_FROM_scan_logs_WHERE_id__
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
call fcn.00484810
mov byte [ebp - 4], 2
push dword [ebp + 0x10]
push ebx
lea eax, [ebp - 0x20]
call fcn.004846f0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004844a0
mov byte [ebp - 4], 3
cmp byte [ebp - 0x2c], 0
jne 0x411e77
lea edi, [ebp - 0x34]
call fcn.00484040
push eax
push dword [ebp + 0xc]
call fcn.00408606
mov byte [ebp - 4], 2
lea esi, [ebp - 0x34]
call fcn.00483f30
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00484270
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
call fcn.00580f43
ret 0xc
Function at 0x411ed5
Capabilities:
Reference sql statements

Disassembly:
push 0x24
mov eax, 0x5aeec8
call fcn.00580e9e
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.SELECT_r_time__r_app__r_os__r_comp__r_user__r_logs__r_sigs__r_found__r_end_FROM_scan_logs_WHERE_id__
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
call fcn.00484810
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x1c]
call fcn.004846f0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004844a0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], bl
jne 0x411fd0
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00484040
push eax
push dword [ebp + 0x10]
call fcn.00408606
inc esi
call fcn.00484040
push eax
push dword [ebp + 0x14]
call fcn.00408606
push 2
pop esi
call fcn.00484040
push eax
push dword [ebp + 0x18]
call fcn.00408606
push 3
pop esi
call fcn.00484040
push eax
push dword [ebp + 0x1c]
call fcn.00408606
push 4
pop esi
call fcn.00484040
push eax
push dword [ebp + 0x20]
call fcn.00408606
push 5
pop esi
call fcn.00484040
push eax
push dword [ebp + 0x24]
call fcn.00408606
push 6
pop esi
call fcn.00483f80
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
push 7
pop esi
call fcn.00483f80
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
push 8
pop esi
call fcn.00484040
push eax
push dword [ebp + 0x30]
call fcn.00408606
mov byte [ebp - 4], 1
mov esi, edi
call fcn.00483f30
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00484270
mov al, 1
jmp 0x411fed
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00483f30
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00484270
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00580f43
ret 0x2c
Function at 0x412e81
Capabilities:
Reference sql statements

Disassembly:
push 0x44
mov eax, 0x5b513a
call fcn.00580e9e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call fcn.00413b6f
mov dword [ebp - 4], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.SELECT_c_id__c_path__c_proc__c_size__c_mod__c_on__c_blocked_FROM_doc_events2_WHERE_c_on____i_AND_c_on____i_
push 0x3e8
lea eax, [ebp + 0x14]
push eax
call fcn.00470e70
add esp, 0x14
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push ecx
call fcn.00484a30
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x14]
call fcn.00408461
cmp byte [ebp - 0x20], 0
jne 0x412f85
lea eax, [ebp - 0x50]
push eax
call fcn.0040ff1e
mov byte [ebp - 4], 5
xor esi, esi
lea edi, [ebp - 0x28]
call fcn.00483fc0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov esi, ebx
call fcn.00484040
push eax
lea eax, [ebp - 0x48]
call fcn.0041348d
push 2
pop esi
call fcn.00484040
push eax
lea eax, [ebp - 0x44]
call fcn.0041348d
push 3
pop esi
call fcn.00483fc0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 4
pop esi
call fcn.00483f80
mov dword [ebp - 0x38], eax
push 5
pop esi
call fcn.00483f80
mov dword [ebp - 0x34], eax
push 6
pop esi
call fcn.00483f80
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00413e26
mov eax, edi
push eax
call fcn.004840c0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x50]
push eax
call fcn.00412fa9
jmp 0x412ee8
mov byte [ebp - 4], bl
lea esi, [ebp - 0x28]
call fcn.00483f30
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
call fcn.00580f43
ret 0x10
Function at 0x4130fd
Capabilities:
Reference sql statements

Disassembly:
push 0x44
mov eax, 0x5b509e
call fcn.00580e9e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call fcn.00413b6f
mov dword [ebp - 4], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
push str.SELECT_c_id__c_path__c_proc__c_size__c_mod__c_on__c_blocked_FROM_doc_events2_WHERE_c_blocked__1_ORDER_BY_c_on_DESC_
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.00484a30
mov byte [ebp - 4], 2
cmp byte [ebp - 0x20], 0
jne 0x4131db
lea eax, [ebp - 0x50]
push eax
call fcn.0040ff1e
mov byte [ebp - 4], 3
xor esi, esi
lea edi, [ebp - 0x28]
call fcn.00483fc0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov esi, ebx
call fcn.00484040
push eax
lea eax, [ebp - 0x48]
call fcn.0041348d
push 2
pop esi
call fcn.00484040
push eax
lea eax, [ebp - 0x44]
call fcn.0041348d
push 3
pop esi
call fcn.00483fc0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 4
pop esi
call fcn.00483f80
mov dword [ebp - 0x38], eax
push 5
pop esi
call fcn.00483f80
mov dword [ebp - 0x34], eax
push 6
pop esi
call fcn.00483f80
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00413e26
mov eax, edi
push eax
call fcn.004840c0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
push eax
call fcn.00412fa9
jmp 0x41313e
mov byte [ebp - 4], bl
lea esi, [ebp - 0x28]
call fcn.00483f30
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
call fcn.00580f43
ret 8

Function at 0x418500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
cmp esi, edi
jne 0x418520
mov eax, 0xa0
jmp 0x4185de
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x418529
mov dword [eax], edi
push ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 8]
mov dword [esi], edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x418555
cmp eax, 2
je 0x41859d
jmp 0x4185dd
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, str.LaunchPermission
push ebx
push dword [ebp - 4]
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x41857c
cmp eax, 0x7a
jne 0x41859b
push dword [ebp - 0xc]
call fcn.00573e8f
pop ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push dword [ebp - 4]
call edi
mov dword [ebp - 8], eax
xor edi, edi
cmp dword [ebp - 8], edi
je 0x4185cc
mov eax, dword [esi]
cmp eax, edi
je 0x4185af
push eax
call fcn.00573db2
pop ecx
mov ebx, dword [ebp + 0xc]
mov dword [esi], edi
cmp ebx, edi
je 0x4185cc
mov ecx, esi
call fcn.00418a20
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x4185cc
mov dword [ebx], 1
cmp dword [ebp - 4], edi
je 0x4185da
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop ebx
pop edi
leave
ret
Function at 0x4185e1
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x6b06f8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6a]
mov esi, ecx
push eax
mov dword [ebp - 0x80], esi
mov edi, edx
call fcn.005783f0
and dword [ebp - 0x74], 0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x78], 0xff
call fcn.00418b68
test eax, eax
je 0x418637
xor eax, eax
jmp 0x4186a0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [edi]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push 0
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
cmp eax, 0x7a
jne 0x41869d
push dword [ebp - 0x74]
and dword [ebp - 0x70], 0
call fcn.00573e8f
pop ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
push dword [ebp - 0x80]
mov dword [edi], eax
push 0
mov dword [ebp - 0x78], 0xff
call esi
test eax, eax
jne 0x41869d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.0057372c
add ebp, 0x198
leave
ret

Function at 0x4189b4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push 0x670fd0
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push closesocket
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x418a0c
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push eax
push dword [ebp + 0xc]
push 3
push esi
push str.LaunchPermission
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x418a1a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x418cd7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x6b06f8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0xa4]
push esi
push eax
mov dword [ebp - 0xa8], 0x11c
call fcn.005783f0
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x418d54
cmp dword [ebp - 0xa4], 5
jne 0x418d4f
xor eax, eax
inc eax
cmp dword [ebp - 0xa0], eax
jb 0x418d4b
jne 0x418d3c
cmp word [ebp + 0x6c], 2
jmp 0x418d49
cmp dword [ebp - 0xa0], 2
jne 0x418d54
cmp word [ebp + 0x6c], ax
jae 0x418d54
mov esi, eax
jmp 0x418d54
jae 0x418d54
xor esi, esi
inc esi
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0057372c
add ebp, 0x78
leave
ret
Function at 0x41c336
Capabilities:
Hash data with md5

Disassembly:
push edi
xor eax, eax
lea edi, [ecx + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov eax, ecx
pop edi
ret
Function at 0x41c71a
Capabilities:
Get common file path

Disassembly:
push 0x80c
mov eax, 0x5b1baa
call fcn.00580ed4
mov eax, dword [ebp + 8]
and dword [ebp - 0x818], 0
mov dword [ebp - 0x814], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [ebp + 0xc]
call fcn.004087dc
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41c75b
sub eax, edx
lea edi, [ebp - 0x810]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x41c76f
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x814]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00408561
mov dword [ebp - 0x818], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004085a2
mov eax, dword [ebp - 0x814]
call fcn.00580f57
ret
Function at 0x41ca36
Capabilities:
Get disk information

Disassembly:
push 0x80c
mov eax, 0x5b4db3
call fcn.00580ed4
lea eax, [ebp - 0x814]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x814], 0
lea esi, [ebp - 0x814]
je 0x41cac4
lea eax, [ebp - 0x818]
push eax
call fcn.0040850b
and dword [ebp - 4], 0
push esi
push 0x67764c
lea eax, [ebp - 0x818]
call fcn.00417833
pop ecx
pop ecx
lea eax, [ebp - 0x818]
push eax
mov eax, ebx
call fcn.0041395f
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41ca9d
sub eax, ecx
sar eax, 1
lea esi, [esi + eax*2 + 2]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x818]
call fcn.004085a2
cmp word [esi], 0
jne 0x41ca67
call fcn.00580f57
ret

Function at 0x41caca
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b4d7a
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
call fcn.0042682e
lea eax, [esp + 0x14]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x14], 0
lea edi, [esp + 0x14]
je 0x41cba3
lea eax, [esp + 0xc]
push eax
call fcn.0040850b
and dword [esp + 0x828], 0
push edi
push 0x67764c
lea eax, [esp + 0x14]
call fcn.00417833
pop ecx
pop ecx
lea esi, [esp + 0xc]
call fcn.004087dc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x41cb75
mov eax, esi
push eax
mov eax, dword [esp + 0x14]
call fcn.0041395f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41cb7a
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
or dword [esp + 0x828], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004085a2
cmp word [edi], 0
jne 0x41cb31
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.0057372c
mov esp, ebp
pop ebp
ret
Function at 0x41cbc6
Capabilities:
Get disk information

Disassembly:
push 0xa88
mov eax, 0x5b1b58
call fcn.00580ed4
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa88], eax
call fcn.00426a1b
lea eax, [ebp - 0x8dc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
lea edi, [ebp - 0x8dc]
cmp word [ebp - 0x8dc], bx
je 0x41cd62
lea eax, [ebp - 0xa80]
push eax
call fcn.0040850b
mov dword [ebp - 4], ebx
push edi
push 0x67764c
lea eax, [ebp - 0xa80]
call fcn.00417833
pop ecx
pop ecx
lea esi, [ebp - 0xa80]
call fcn.004087dc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x41cd33
lea eax, [ebp - 0xa7c]
call fcn.0041bcb6
xor eax, eax
push 0xc6
mov word [ebp - 0xdc], ax
lea eax, [ebp - 0xda]
push ebx
push eax
call fcn.005783f0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xa84]
push eax
push 0x64
lea eax, [ebp - 0xdc]
push eax
push dword [ebp - 0xa80]
mov dword [ebp - 0xa84], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41cd33
mov eax, dword [ebp - 0xa84]
push eax
push ecx
mov dword [ebp - 0xa7c], eax
mov eax, esp
mov dword [ebp - 0xa90], esp
mov ecx, esi
push ecx
push eax
mov dword [ebp - 0x8e8], ebx
call fcn.00408532
mov byte [ebp - 4], 1
push ecx
mov eax, esp
mov dword [ebp - 0xa94], esp
lea ecx, [ebp - 0xdc]
push ecx
push eax
call fcn.00408561
mov byte [ebp - 4], 2
lea eax, [ebp - 0xa8c]
push eax
mov byte [ebp - 4], bl
call fcn.0041cd68
add esp, 0x10
mov byte [ebp - 4], 3
mov esi, eax
call fcn.004087dc
lea ecx, [ebp - 0xa78]
movzx edx, word [eax]
inc eax
mov word [ecx], dx
inc eax
inc ecx
inc ecx
cmp dx, bx
jne 0x41cd04
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa8c]
call fcn.004085a2
lea eax, [ebp - 0xa7c]
push eax
mov eax, dword [ebp - 0xa88]
call fcn.004269b0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x41cd38
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa80]
call fcn.004085a2
cmp word [edi], bx
jne 0x41cc0a
call fcn.00580f57
ret

Function at 0x41d080
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x5abb2f
call fcn.00580e6b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
call fcn.004083f9
mov dword [ebp - 4], ebx
push ebx
push ebx
push 3
push ebx
push ebx
push closesocket
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41d103
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
inc eax
push eax
call fcn.00573e8f
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
mov byte [esi + eax], bl
call fcn.004084c5
push esi
call fcn.00573db2
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
call fcn.00580f43
ret
Function at 0x41d10c
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x5a8747
call fcn.00580e6b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
xor ebx, ebx
mov esi, closesocket
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x41d150
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41d1be
mov byte [ebp + 0xb], 1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x41d18b
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x14]
call esi
cmp byte [ebp + 0xb], bl
je 0x41d1a1
push dword [ebp - 0x10]
call esi
push dword [0x6c8c4c]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004085a2
call fcn.00580f43
ret
mov dword [ebp - 0x10], esi
jmp 0x41d150

Function at 0x41d424
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x41d4b5
lea eax, [ebp - 8]
push eax
push 0x28
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41d4b2
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x41d4ad
mov eax, dword [ebp - 0x10]
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push ebx
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41d4ad
mov byte [ebp - 1], 1
push dword [ebp - 8]
call esi
push edi
call esi
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret