joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005eb0
Capabilities:
Packed with generic packer

Disassembly:
sub esp, 0x400
push ebx
push esi
mov esi, dword [esp + 0x40c]
push edi
push esi
mov dword [0x10008584], 0x3e8
call fcn.100057d0
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x211]
mov byte [esp + 0x210], bl
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, dword [0x1000815c]
lea edx, [esp + 0x20c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10008160]
push eax
push ecx
push edx
push 0x27d6
mov ecx, 0x10008038
call fcn.10003bb0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
jmp loc.1000c7e2

Function at 0x10006940
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x4218
call fcn.10006da0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], bl
lea edx, [esp + 0x128]
rep stosd dword es:[edi], eax
mov ecx, dword [0x1000815c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10008160]
push eax
push ecx
push edx
push 0x27e9
mov ecx, 0x10008038
call fcn.10003bb0
mov eax, dword [esp + 0x422c]
push eax
call dword [0x100080b8]
xor ecx, ecx
lea edx, [esp + 0x14]
jmp loc.1000c8a0

Function at 0x1000c2f9
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push 0x60
push 0x411538
push eax
mov edi, 0x94
push edi
push 0
mov ebx, dword [0x100011f6]
push eax
add esp, 0x18
leave
popal
popfd
mov eax, dword [esp + 0x10]
xor ebp, ebp
jmp loc.100050eb
Function at 0x402e04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402e1b
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402e50
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402e4c
cmp edi, eax
jae 0x402e50
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402e3e
cmp edi, eax
jb 0x402e54
xor eax, eax
jmp 0x402e5d
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x404867
Capabilities:
Query environment variable

Disassembly:
push 0x4c
mov eax, 0x5b5a11
call fcn.005870c4
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.00408172
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.0040813b
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.005786a9
pop ecx
push edi
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
call ebx
test eax, eax
je 0x404902
push edi
push dword [ebp - 0x34]
lea esi, [ebp - 0x58]
call fcn.0040814e
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
push 0xffffffffffffffff
push 0
call fcn.00409918
mov byte [ebp - 4], 1
push 0
push 1
call fcn.00409bf1
push dword [ebp - 0x34]
call fcn.0057a53b
pop ecx
mov byte [ebp - 4], 0
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00409bf1
mov eax, dword [ebp - 0x30]
call fcn.00587147
ret
Function at 0x40635b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x6c56f8]
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.0057e5e0
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 0x4063f1
cmp dword [ebp - 0x11c], 6
jb 0x4063e3
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 0x4063d0
cmp eax, 0x80010119
jne 0x4063f1
push 0x6918b8
push dword [ebp - 0x124]
call fcn.004056bb
pop ecx
jmp 0x4063ee
push dword [ebp - 0x124]
call fcn.004051ee
mov bl, al
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005796dc
leave
ret
Function at 0x410b8c
Capabilities:
Reference sql statements

Disassembly:
push 0x40
mov eax, 0x5b8c44
call fcn.0058708e
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.00488370
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x1c]
call fcn.00488250
push dword [ebp + 0x14]
push 2
lea eax, [ebp - 0x1c]
call fcn.00488250
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00488000
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], bl
jne 0x410c8d
lea eax, [ebp - 0x4c]
push eax
call fcn.0041003a
mov byte [ebp - 4], 3
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00487ae0
mov dword [ebp - 0x4c], eax
push 0x68efec
inc esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004085bd
push 2
pop esi
call fcn.00487ae0
mov dword [ebp - 0x44], eax
push 0x68eff0
push 3
pop esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004085bd
push 0x68eff4
push 4
pop esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004085bd
push 5
pop esi
call fcn.00487ae0
mov dword [ebp - 0x38], eax
push 6
pop esi
call fcn.00487ae0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00413b5c
mov eax, edi
push eax
call fcn.00487c20
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
push eax
call fcn.00410b4e
jmp 0x410be0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00487a90
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00487dd0
or dword [ebp - 4], 0xffffffff
call fcn.00587133
ret 0x10

Function at 0x411224
Capabilities:
Reference sql statements

Disassembly:
push 0x34
mov eax, 0x5b8b73
call fcn.0058708e
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.00488370
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x24]
call fcn.00488250
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00488000
mov byte [ebp - 4], 2
cmp byte [ebp - 0x38], 0
jne 0x4112cb
push 0x68f228
xor esi, esi
inc esi
lea edi, [ebp - 0x40]
call fcn.00487ba0
mov ebx, eax
test ebx, ebx
je 0x4112c0
xor esi, esi
call fcn.00487ae0
mov esi, eax
mov dword [ebp - 0x2c], ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00408518
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.00413cae
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
call fcn.0045d236
lea eax, [ebp - 0x40]
push eax
call fcn.00487c20
jmp 0x41126a
mov byte [ebp - 4], 1
lea esi, [ebp - 0x40]
call fcn.00487a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00487dd0
or dword [ebp - 4], 0xffffffff
call fcn.00587133
ret 0xc
Function at 0x4118e2
Capabilities:
Reference sql statements

Disassembly:
push 0x24
mov eax, 0x5b5647
call fcn.0058708e
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.00488370
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x1c]
call fcn.00488250
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00488000
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], 0
jne 0x41195b
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00487b20
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
inc esi
call fcn.00487b20
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00487a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00487dd0
call fcn.00587133
ret 0xc

Function at 0x4119b9
Capabilities:
Reference sql statements

Disassembly:
push 0x24
mov eax, 0x5b561c
call fcn.0058708e
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.00488370
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x1c]
call fcn.00488250
push dword [ebp + 0xc]
push 2
lea eax, [ebp - 0x1c]
call fcn.00488250
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00488000
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], 0
jne 0x411a3f
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00487b20
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
inc esi
call fcn.00487b20
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00487a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00487dd0
call fcn.00587133
ret 0x10
Function at 0x411ca4
Capabilities:
Reference sql statements

Disassembly:
push 0x2c
mov eax, 0x5b8ad0
call fcn.0058708e
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.00488590
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], bl
jne 0x411d8f
push 0x68fa38
xor esi, esi
lea edi, [ebp - 0x38]
call fcn.00487ba0
push eax
lea eax, [ebp + 8]
push eax
call fcn.00408518
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00413ad9
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00408559
push 0x68fa3c
inc esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408518
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
call fcn.00413ad9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00408559
push 2
pop esi
call fcn.00487ae0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x14]
call fcn.00413952
push 3
pop esi
call fcn.00487ae0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x18]
call fcn.00413952
push 4
pop esi
call fcn.00487ae0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00413952
mov eax, edi
push eax
call fcn.00487c20
jmp 0x411cce
mov byte [ebp - 4], bl
lea esi, [ebp - 0x38]
call fcn.00487a90
or dword [ebp - 4], 0xffffffff
call fcn.00587133
ret 0x18

Function at 0x411ecf
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x5b5542
call fcn.0058708e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call fcn.004084c2
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.00488370
mov byte [ebp - 4], 2
push dword [ebp + 0x10]
push ebx
lea eax, [ebp - 0x20]
call fcn.00488250
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00488000
mov byte [ebp - 4], 3
cmp byte [ebp - 0x2c], 0
jne 0x411f48
push 0x68fc70
lea edi, [ebp - 0x34]
call fcn.00487ba0
push eax
push dword [ebp + 0xc]
call fcn.004085bd
mov byte [ebp - 4], 2
lea esi, [ebp - 0x34]
call fcn.00487a90
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00487dd0
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
call fcn.00587133
ret 0xc
Function at 0x411fa6
Capabilities:
Reference sql statements

Disassembly:
push 0x24
mov eax, 0x5b54fe
call fcn.0058708e
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.00488370
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x1c]
call fcn.00488250
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00488000
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], bl
jne 0x4120c4
push 0x68fd00
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.00487ba0
push eax
push dword [ebp + 0x10]
call fcn.004085bd
push 0x68fd04
inc esi
call fcn.00487ba0
push eax
push dword [ebp + 0x14]
call fcn.004085bd
push 0x68fd08
push 2
pop esi
call fcn.00487ba0
push eax
push dword [ebp + 0x18]
call fcn.004085bd
push 0x68fd0c
push 3
pop esi
call fcn.00487ba0
push eax
push dword [ebp + 0x1c]
call fcn.004085bd
push 0x68fd10
push 4
pop esi
call fcn.00487ba0
push eax
push dword [ebp + 0x20]
call fcn.004085bd
push 0x68fd14
push 5
pop esi
call fcn.00487ba0
push eax
push dword [ebp + 0x24]
call fcn.004085bd
push 6
pop esi
call fcn.00487ae0
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
push 7
pop esi
call fcn.00487ae0
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
push 0x68fd18
push 8
pop esi
call fcn.00487ba0
push eax
push dword [ebp + 0x30]
call fcn.004085bd
mov byte [ebp - 4], 1
mov esi, edi
call fcn.00487a90
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00487dd0
mov al, 1
jmp 0x4120e1
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.00487a90
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00487dd0
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00587133
ret 0x2c
Function at 0x412fe5
Capabilities:
Reference sql statements

Disassembly:
push 0x44
mov eax, 0x5bbcd5
call fcn.0058708e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call fcn.00413f7b
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.00475680
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.00488590
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x14]
call fcn.00408418
cmp byte [ebp - 0x20], 0
jne 0x4130f3
lea eax, [ebp - 0x50]
push eax
call fcn.0040ffa3
mov byte [ebp - 4], 5
xor esi, esi
lea edi, [ebp - 0x28]
call fcn.00487b20
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push 0x690828
mov esi, ebx
call fcn.00487ba0
push eax
lea eax, [ebp - 0x48]
call fcn.00413620
push 0x69082c
push 2
pop esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x44]
call fcn.00413620
push 3
pop esi
call fcn.00487b20
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 4
pop esi
call fcn.00487ae0
mov dword [ebp - 0x38], eax
push 5
pop esi
call fcn.00487ae0
mov dword [ebp - 0x34], eax
push 6
pop esi
call fcn.00487ae0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00413fdd
mov eax, edi
push eax
call fcn.00487c20
mov byte [ebp - 4], 4
lea eax, [ebp - 0x50]
push eax
call fcn.00413117
jmp 0x41304c
mov byte [ebp - 4], bl
lea esi, [ebp - 0x28]
call fcn.00487a90
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
call fcn.00587133
ret 0x10
Function at 0x413275
Capabilities:
Reference sql statements

Disassembly:
push 0x44
mov eax, 0x5bbc39
call fcn.0058708e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call fcn.00413f7b
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.00488590
mov byte [ebp - 4], 2
cmp byte [ebp - 0x20], 0
jne 0x41335d
lea eax, [ebp - 0x50]
push eax
call fcn.0040ffa3
mov byte [ebp - 4], 3
xor esi, esi
lea edi, [ebp - 0x28]
call fcn.00487b20
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push 0x690920
mov esi, ebx
call fcn.00487ba0
push eax
lea eax, [ebp - 0x48]
call fcn.00413620
push 0x690924
push 2
pop esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x44]
call fcn.00413620
push 3
pop esi
call fcn.00487b20
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 4
pop esi
call fcn.00487ae0
mov dword [ebp - 0x38], eax
push 5
pop esi
call fcn.00487ae0
mov dword [ebp - 0x34], eax
push 6
pop esi
call fcn.00487ae0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00413fdd
mov eax, edi
push eax
call fcn.00487c20
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
push eax
call fcn.00413117
jmp 0x4132b6
mov byte [ebp - 4], bl
lea esi, [ebp - 0x28]
call fcn.00487a90
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
call fcn.00587133
ret 8

Function at 0x41871a
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 0x41873a
mov eax, 0xa0
jmp 0x4187f8
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x418743
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 connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x41876f
cmp eax, 2
je 0x4187b7
jmp 0x4187f7
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 0x418796
cmp eax, 0x7a
jne 0x4187b5
push dword [ebp - 0xc]
call fcn.00579e3f
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 0x4187e6
mov eax, dword [esi]
cmp eax, edi
je 0x4187c9
push eax
call fcn.00579d62
pop ecx
mov ebx, dword [ebp + 0xc]
mov dword [esi], edi
cmp ebx, edi
je 0x4187e6
mov ecx, esi
call fcn.00418c3a
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x4187e6
mov dword [ebx], 1
cmp dword [ebp - 4], edi
je 0x4187f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop ebx
pop edi
leave
ret
Function at 0x4187fb
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x6c56f8]
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.0057e5e0
and dword [ebp - 0x74], 0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x78], 0xff
call fcn.00418d82
test eax, eax
je 0x418851
xor eax, eax
jmp 0x4188ba
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 0x4188b7
push dword [ebp - 0x74]
and dword [ebp - 0x70], 0
call fcn.00579e3f
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 0x4188b7
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.005796dc
add ebp, 0x198
leave
ret

Function at 0x418bce
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 0x68b430
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push connect
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x418c26
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 0x418c34
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x418ef1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push pe_nt_image_headers32
xor esi, esi
lea eax, [ebp - 0xa4]
push esi
push eax
mov dword [ebp - 0xa8], 0x11c
call fcn.0057e5e0
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x418f6e
cmp dword [ebp - 0xa4], 5
jne 0x418f69
xor eax, eax
inc eax
cmp dword [ebp - 0xa0], eax
jb 0x418f65
jne 0x418f56
cmp word [ebp + 0x6c], 2
jmp 0x418f63
cmp dword [ebp - 0xa0], 2
jne 0x418f6e
cmp word [ebp + 0x6c], ax
jae 0x418f6e
mov esi, eax
jmp 0x418f6e
jae 0x418f6e
xor esi, esi
inc esi
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005796dc
add ebp, 0x78
leave
ret
Function at 0x41c0e9
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 0x41c49b
Capabilities:
Get common file path

Disassembly:
push 0x80c
mov eax, 0x5b8658
call fcn.005870c4
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.00408793
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41c4dc
sub eax, edx
lea edi, [ebp - 0x810]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x41c4f0
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.00408518
mov dword [ebp - 0x818], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00408559
mov eax, dword [ebp - 0x814]
call fcn.00587147
ret