joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40486d
Capabilities:
Query environment variable

Disassembly:
push 0x4c
mov eax, 0x5af05e
call fcn.00580bb4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov edi, ecx
push edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
call fcn.00408187
mov dword [ebp - 4], 1
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call ebx
mov esi, dword [ebp - 0x30]
mov edi, eax
inc edi
inc edi
call fcn.00408150
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebp - 0x38], 1
neg ecx
or ecx, eax
push ecx
call fcn.005723d9
pop ecx
push edi
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
call ebx
test eax, eax
je 0x404908
push edi
push dword [ebp - 0x34]
lea esi, [ebp - 0x58]
call fcn.00408163
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
push 0xffffffffffffffff
push 0
call fcn.004098e6
mov byte [ebp - 4], 1
push 0
push 1
call fcn.00409bbf
push dword [ebp - 0x34]
call fcn.0057426b
pop ecx
mov byte [ebp - 4], 0
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00409bbf
mov eax, dword [ebp - 0x30]
call fcn.00580c37
ret
Function at 0x406390
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x114
mov dword [ebp - 0x124], eax
xor ebx, ebx
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.005780d0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406426
cmp dword [ebp - 0x11c], 6
jb 0x406418
push ebx
push ebx
push ebx
push 3
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x406405
cmp eax, 0x80010119
jne 0x406426
push 0x68a200
push dword [ebp - 0x124]
call fcn.004056f0
pop ecx
jmp 0x406423
push dword [ebp - 0x124]
call fcn.00405223
mov bl, al
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0057340c
leave
ret
Function at 0x410abe
Capabilities:
Reference sql statements

Disassembly:
push 0x40
mov eax, 0x5b1e8a
call fcn.00580b7e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push str.SELECT__FROM_logs_WHERE_flags____ORDER_BY_cfired_DESC_LIMIT___
lea eax, [ebp - 0x1c]
push eax
call fcn.00484440
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x1c]
call fcn.00484320
push dword [ebp + 0x14]
push 2
lea eax, [ebp - 0x1c]
call fcn.00484320
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004840d0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], bl
jne 0x410bbf
lea eax, [ebp - 0x4c]
push eax
call fcn.0040ff6c
mov byte [ebp - 4], 3
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00483bb0
mov dword [ebp - 0x4c], eax
push 0x687924
inc esi
call fcn.00483c70
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004085d2
push 2
pop esi
call fcn.00483bb0
mov dword [ebp - 0x44], eax
push 0x687928
push 3
pop esi
call fcn.00483c70
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004085d2
push 0x68792c
push 4
pop esi
call fcn.00483c70
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004085d2
push 5
pop esi
call fcn.00483bb0
mov dword [ebp - 0x38], eax
push 6
pop esi
call fcn.00483bb0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00413919
mov eax, edi
push eax
call fcn.00483cf0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
push eax
call fcn.00410a80
jmp 0x410b12
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00483b60
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00483ea0
or dword [ebp - 4], 0xffffffff
call fcn.00580c23
ret 0x10

Function at 0x411156
Capabilities:
Reference sql statements

Disassembly:
push 0x34
mov eax, 0x5b1db9
call fcn.00580b7e
and dword [ebp - 4], 0
push str.SELECT_id__value_FROM_reports_WHERE_type__
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
call fcn.00484440
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x24]
call fcn.00484320
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004840d0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x38], 0
jne 0x4111fd
push 0x687b60
xor esi, esi
inc esi
lea edi, [ebp - 0x40]
call fcn.00483c70
mov ebx, eax
test ebx, ebx
je 0x4111f2
xor esi, esi
call fcn.00483bb0
mov esi, eax
mov dword [ebp - 0x2c], ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.0040852d
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push eax
mov edi, dword [ebp + 0x10]
call fcn.00413a6b
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
call fcn.00466fa2
lea eax, [ebp - 0x40]
push eax
call fcn.00483cf0
jmp 0x41119c
mov byte [ebp - 4], 1
lea esi, [ebp - 0x40]
call fcn.00483b60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00483ea0
or dword [ebp - 4], 0xffffffff
call fcn.00580c23
ret 0xc
Function at 0x411814
Capabilities:
Reference sql statements

Disassembly:
push 0x24
mov eax, 0x5aecb7
call fcn.00580b7e
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.00484440
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x1c]
call fcn.00484320
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004840d0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], 0
jne 0x41188d
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00483bf0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
inc esi
call fcn.00483bf0
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00483b60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00483ea0
call fcn.00580c23
ret 0xc

Function at 0x4118eb
Capabilities:
Reference sql statements

Disassembly:
push 0x24
mov eax, 0x5aec8c
call fcn.00580b7e
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.00484440
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x1c]
call fcn.00484320
push dword [ebp + 0xc]
push 2
lea eax, [ebp - 0x1c]
call fcn.00484320
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004840d0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], 0
jne 0x411971
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00483bf0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
inc esi
call fcn.00483bf0
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00483b60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00483ea0
call fcn.00580c23
ret 0x10
Function at 0x411bd6
Capabilities:
Reference sql statements

Disassembly:
push 0x2c
mov eax, 0x5b1d16
call fcn.00580b7e
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.00484660
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], bl
jne 0x411cc1
push 0x688370
xor esi, esi
lea edi, [ebp - 0x38]
call fcn.00483c70
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040852d
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.004138ba
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.0040856e
push 0x688374
inc esi
call fcn.00483c70
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040852d
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
call fcn.004138ba
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040856e
push 2
pop esi
call fcn.00483bb0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x14]
call fcn.004263c6
push 3
pop esi
call fcn.00483bb0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x18]
call fcn.004263c6
push 4
pop esi
call fcn.00483bb0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x1c]
call fcn.004263c6
mov eax, edi
push eax
call fcn.00483cf0
jmp 0x411c00
mov byte [ebp - 4], bl
lea esi, [ebp - 0x38]
call fcn.00483b60
or dword [ebp - 4], 0xffffffff
call fcn.00580c23
ret 0x18

Function at 0x411e01
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x5aebb2
call fcn.00580b7e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call fcn.004084d7
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.00484440
mov byte [ebp - 4], 2
push dword [ebp + 0x10]
push ebx
lea eax, [ebp - 0x20]
call fcn.00484320
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004840d0
mov byte [ebp - 4], 3
cmp byte [ebp - 0x2c], 0
jne 0x411e7a
push 0x6885a8
lea edi, [ebp - 0x34]
call fcn.00483c70
push eax
push dword [ebp + 0xc]
call fcn.004085d2
mov byte [ebp - 4], 2
lea esi, [ebp - 0x34]
call fcn.00483b60
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00483ea0
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
call fcn.00580c23
ret 0xc
Function at 0x411ed8
Capabilities:
Reference sql statements

Disassembly:
push 0x24
mov eax, 0x5aeb6e
call fcn.00580b7e
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.00484440
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x1c]
call fcn.00484320
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004840d0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], bl
jne 0x411ff6
push 0x688638
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00483c70
push eax
push dword [ebp + 0x10]
call fcn.004085d2
push 0x68863c
inc esi
call fcn.00483c70
push eax
push dword [ebp + 0x14]
call fcn.004085d2
push 0x688640
push 2
pop esi
call fcn.00483c70
push eax
push dword [ebp + 0x18]
call fcn.004085d2
push 0x688644
push 3
pop esi
call fcn.00483c70
push eax
push dword [ebp + 0x1c]
call fcn.004085d2
push 0x688648
push 4
pop esi
call fcn.00483c70
push eax
push dword [ebp + 0x20]
call fcn.004085d2
push 0x68864c
push 5
pop esi
call fcn.00483c70
push eax
push dword [ebp + 0x24]
call fcn.004085d2
push 6
pop esi
call fcn.00483bb0
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
push 7
pop esi
call fcn.00483bb0
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
push 0x688650
push 8
pop esi
call fcn.00483c70
push eax
push dword [ebp + 0x30]
call fcn.004085d2
mov byte [ebp - 4], 1
mov esi, edi
call fcn.00483b60
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00483ea0
mov al, 1
jmp 0x412013
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00483b60
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00483ea0
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00580c23
ret 0x2c
Function at 0x412e43
Capabilities:
Reference sql statements

Disassembly:
push 0x44
mov eax, 0x5b4e9f
call fcn.00580b7e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call fcn.00413d57
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.00470a30
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.00484660
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x14]
call fcn.0040842d
cmp byte [ebp - 0x20], 0
jne 0x412f51
lea eax, [ebp - 0x50]
push eax
call fcn.0040fed5
mov byte [ebp - 4], 5
xor esi, esi
lea edi, [ebp - 0x28]
call fcn.00483bf0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push 0x689160
mov esi, ebx
call fcn.00483c70
push eax
lea eax, [ebp - 0x48]
call fcn.0041347e
push 0x689164
push 2
pop esi
call fcn.00483c70
push eax
lea eax, [ebp - 0x44]
call fcn.0041347e
push 3
pop esi
call fcn.00483bf0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 4
pop esi
call fcn.00483bb0
mov dword [ebp - 0x38], eax
push 5
pop esi
call fcn.00483bb0
mov dword [ebp - 0x34], eax
push 6
pop esi
call fcn.00483bb0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00413db9
mov eax, edi
push eax
call fcn.00483cf0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x50]
push eax
call fcn.00412f75
jmp 0x412eaa
mov byte [ebp - 4], bl
lea esi, [ebp - 0x28]
call fcn.00483b60
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
call fcn.00580c23
ret 0x10
Function at 0x4130d3
Capabilities:
Reference sql statements

Disassembly:
push 0x44
mov eax, 0x5b4e03
call fcn.00580b7e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call fcn.00413d57
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.00484660
mov byte [ebp - 4], 2
cmp byte [ebp - 0x20], 0
jne 0x4131bb
lea eax, [ebp - 0x50]
push eax
call fcn.0040fed5
mov byte [ebp - 4], 3
xor esi, esi
lea edi, [ebp - 0x28]
call fcn.00483bf0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push 0x689258
mov esi, ebx
call fcn.00483c70
push eax
lea eax, [ebp - 0x48]
call fcn.0041347e
push 0x68925c
push 2
pop esi
call fcn.00483c70
push eax
lea eax, [ebp - 0x44]
call fcn.0041347e
push 3
pop esi
call fcn.00483bf0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 4
pop esi
call fcn.00483bb0
mov dword [ebp - 0x38], eax
push 5
pop esi
call fcn.00483bb0
mov dword [ebp - 0x34], eax
push 6
pop esi
call fcn.00483bb0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00413db9
mov eax, edi
push eax
call fcn.00483cf0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
push eax
call fcn.00412f75
jmp 0x413114
mov byte [ebp - 4], bl
lea esi, [ebp - 0x28]
call fcn.00483b60
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
call fcn.00580c23
ret 8

Function at 0x4182dc
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 0x4182fc
mov eax, 0xa0
jmp 0x4183ba
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x418305
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 0x418331
cmp eax, 2
je 0x418379
jmp 0x4183b9
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 0x418358
cmp eax, 0x7a
jne 0x418377
push dword [ebp - 0xc]
call fcn.00573b6f
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 0x4183a8
mov eax, dword [esi]
cmp eax, edi
je 0x41838b
push eax
call fcn.00573a92
pop ecx
mov ebx, dword [ebp + 0xc]
mov dword [esi], edi
cmp ebx, edi
je 0x4183a8
mov ecx, esi
call fcn.004187fc
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x4183a8
mov dword [ebx], 1
cmp dword [ebp - 4], edi
je 0x4183b6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop ebx
pop edi
leave
ret
Function at 0x4183bd
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x6bd6f8]
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.005780d0
and dword [ebp - 0x74], 0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x78], 0xff
call fcn.00418944
test eax, eax
je 0x418413
xor eax, eax
jmp 0x41847c
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 0x418479
push dword [ebp - 0x74]
and dword [ebp - 0x70], 0
call fcn.00573b6f
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 0x418479
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.0057340c
add ebp, 0x198
leave
ret

Function at 0x418790
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 0x683d58
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 0x4187e8
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 0x4187f6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x418ab3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x6bd6f8]
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.005780d0
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x418b30
cmp dword [ebp - 0xa4], 5
jne 0x418b2b
xor eax, eax
inc eax
cmp dword [ebp - 0xa0], eax
jb 0x418b27
jne 0x418b18
cmp word [ebp + 0x6c], 2
jmp 0x418b25
cmp dword [ebp - 0xa0], 2
jne 0x418b30
cmp word [ebp + 0x6c], ax
jae 0x418b30
mov esi, eax
jmp 0x418b30
jae 0x418b30
xor esi, esi
inc esi
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0057340c
add ebp, 0x78
leave
ret
Function at 0x41bfca
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 0x41c3ad
Capabilities:
Get common file path

Disassembly:
push 0x80c
mov eax, 0x5b189e
call fcn.00580bb4
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.004087a8
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41c3ee
sub eax, edx
lea edi, [ebp - 0x810]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x41c402
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.0040852d
mov dword [ebp - 0x818], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040856e
mov eax, dword [ebp - 0x814]
call fcn.00580c37
ret
Function at 0x41c6c9
Capabilities:
Get disk information

Disassembly:
push 0x80c
mov eax, 0x5b4b18
call fcn.00580bb4
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 0x41c757
lea eax, [ebp - 0x818]
push eax
call fcn.004084d7
and dword [ebp - 4], 0
push esi
push 0x680e34
lea eax, [ebp - 0x818]
call fcn.004175e6
pop ecx
pop ecx
lea eax, [ebp - 0x818]
push eax
mov eax, ebx
call fcn.004138ba
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41c730
sub eax, ecx
sar eax, 1
lea esi, [esi + eax*2 + 2]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x818]
call fcn.0040856e
cmp word [esi], 0
jne 0x41c6fa
call fcn.00580c37
ret

Function at 0x41c75d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b4adf
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
mov eax, dword [0x6bd6f8]
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.00426542
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 0x41c836
lea eax, [esp + 0xc]
push eax
call fcn.004084d7
and dword [esp + 0x828], 0
push edi
push 0x680e3c
lea eax, [esp + 0x14]
call fcn.004175e6
pop ecx
pop ecx
lea esi, [esp + 0xc]
call fcn.004087a8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x41c808
mov eax, esi
push eax
mov eax, dword [esp + 0x14]
call fcn.004138ba
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41c80d
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
or dword [esp + 0x828], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040856e
cmp word [edi], 0
jne 0x41c7c4
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.0057340c
mov esp, ebp
pop ebp
ret