joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52fe96
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push ecx
push edx
push edi
push esi
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
call 0x52feb2
pop eax
sub eax, 0x4019b6
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov edx, ebx
add edx, 0x18
mov ax, word [ebx + 0x14]
movzx eax, ax
add edx, eax
mov dword [ebp - 4], edx
mov cx, word [ebx + 6]
movzx ecx, cx
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x52ffb0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x40197a]
mov esi, dword [edx + 0x24]
test esi, 0x2000000
je 0x52ff13
push 0x4000
push dword [edx + 0x10]
push dword [edx + 8]
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a4]
call dword [eax]
mov ecx, dword [ebp - 8]
dec ecx
jmp 0x52fed8
test esi, 0x20000000
jne 0x52ff2d
test esi, 0x40000000
jne 0x52ff42
test esi, 0x80000000
jne 0x52ff4f
jmp 0x52ff52
add edi, 0x10
test esi, 0x40000000
jne 0x52ff42
test esi, 0x80000000
jne 0x52ff4f
jmp 0x52ff52
add edi, 8
test esi, 0x80000000
jne 0x52ff4f
jmp 0x52ff52
add edi, 4
mov edi, dword [edi]
test esi, 0x4000000
je 0x52ff62
or edi, 0x200
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x52ff82
mov eax, dword [edx + 0x24]
test eax, 0x40
je 0x52ff78
mov eax, dword [ebx + 0x20]
jmp 0x52ff82
test eax, 0x80
je 0x52ff9e
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x52ff9e
lea esi, [ebp - 0x1c]
push esi
push edi
push eax
push dword [edx + 8]
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a8]
call dword [eax]
test eax, eax
je 0x52ffb7
dec dword [ebp - 8]
mov ecx, dword [ebp - 8]
add dword [ebp - 4], 0x28
mov edx, dword [ebp - 4]
jmp 0x52fed8
mov eax, 1
jmp 0x52ffb9
xor eax, eax
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 4

Function at 0x53ef0e
Capabilities:
Encode data using xor

Disassembly:
inc ebp
push esp
xor al, 0x6f
push edx
mov eax, dword [esi]
mov bh, 0x3a
pop ds
xor al, 0x2c
jns 0x53ef22
loop 0x53ef3f
mov esi, 0x6018369a
and ebp, dword [edi + 7]
xor al, 0x74
xor al, 0x2d
mov ebp, 0x1a9726ab
sbb ecx, dword [eax + 0x53]
imul esp, esp, 0x41bd6d74
sub dword gs:[edi], ebp
push edi
adc al, 0x18
insb byte es:[edi], dx
or al, 0x81
cld
out dx, eax
push edx
shr dword [esi + 0x7536f79b], 0x79
jns 0x53ef60
mov dword [eax - 0xf], edx
ret 0xc5ce
xchg ebp, eax
wait
push eax
loope 0x53eec0
insb byte es:[edi], dx
dec esp
xchg edx, eax
retf
jmp 0x53eeea
and eax, dword [edi]
stosd dword es:[edi], eax
mov ah, ah
push ebx
pop ds
outsb dx, byte [esi]
sub al, 0x41
rol byte [ecx], 0xe1
cwde
mov dword [ebp - 0x434d017f], ebp
push eax
nop
fisttp qword [eax - 0x7b474b1c]
sub dword [eax - 0x6b9c1153], eax
jns 0x53ef63
sub byte [ebp + 0x799463ee], 0xff
arpl word [ecx + edi*2 + 0x21ad33ff], dx
lea eax, [eax - 0x47]
push dword [ebx]
lodsd eax, dword [esi]
and dword [ebp - 0x1f7946c0], ecx
xor ebp, dword [ebp - 0x46bf72df]
xchg al, ah
jo 0x53ef5d
lodsb al, byte [esi]
inc eax
fdiv st(0), st(0)
cmc
xchg edx, eax
sbb eax, 0xb410c8d1
cmp edx, dword [edi - 0x58f15a56]
add dword [ecx], 0xa7e32ac
invalid
Function at 0x54546e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp], edi
sbb ah, 0x19
push ebx
rcl ah, 2
cwde
lea eax, [ebx*4 + 0x3d83349e]
push edx
sar ah, 3
pushal
mov eax, dword [ebp + 8]
clc
test eax, eax
pushal
lea esp, [esp + 0x40]
je fcn.0053fe7c
bsf dx, sp
mov esi, dword [eax + 0x3c]
bsf dx, dx
movzx dx, bl
adc edx, esp
bt bp, 1
add esi, eax
shld dx, cx, 0xc
pushfd
and dh, ch
mov edx, dword [esi + 0x78]
test bh, bl
stc
test edx, edx
pushal
lea esp, [esp + 0x24]
jbe 0x53fae2
pushfd
lea esp, [esp + 4]
je fcn.0053fe7c
shrd cx, dx, cl
btc ecx, 2
dec ch
add edx, eax
stc
bt ax, 0xe
mov ecx, dword [esi + 0x7c]
test dx, 0xe9bf
clc
cmc
add ecx, edx
pushal
call fcn.00545ab3
cmp al, 0x31
adc byte [esi + eax*4 - 0x1f], dl
cwde
nop
rcr dword [edi + 0x3ff3dc91], cl
invalid
Function at 0x554f82
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push ecx
push edx
push edi
push esi
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call 0x554fa4
pop edx
sub edx, 0x4010e0
mov dword [ebp - 0x20], edx
push dword [ebp - 0x18]
call fcn.00555241
test eax, eax
je 0x555141
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov ax, word [ebx]
cmp ax, 0x5a4d
jne 0x555141
add ebx, dword [ebx + 0x3c]
mov eax, dword [ebx]
cmp eax, 0x4550
jne 0x555141
mov dword [ebp - 0xc], ebx
push 4
push 0x2000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
jne 0x555021
mov ebx, dword [ebp - 0xc]
push 4
push 0x2000
push dword [ebx + 0x50]
push 0
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
je 0x555141
mov dword [ebp - 4], eax
push 0x14
push 8
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020b0]
call dword [eax]
push eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020b4]
call dword [eax]
test eax, eax
je 0x555141
mov edx, eax
mov dword [ebp - 8], edx
lea eax, [edx + 4]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ebx, dword [ebp - 0xc]
push 4
push 0x1000
push dword [ebx + 0x50]
push ecx
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
je 0x555141
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx + 0x54]
push ecx
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
je 0x555141
mov edi, eax
mov ebx, dword [ebp - 0xc]
push dword [ebx + 0x54]
push dword [ebp - 0x1c]
push edi
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x40210b]
call dword [eax]
add esp, 0xc
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
add eax, edi
lea esi, [edx]
mov dword [esi], eax
mov esi, dword [edx]
lea esi, [esi + 0x34]
mov dword [esi], ecx
push edx
push ebx
push dword [ebp - 0x1c]
call fcn.0055570b
test eax, eax
je 0x555141
mov eax, dword [ebx + 0x34]
mov esi, dword [ebp - 4]
sub esi, eax
test esi, esi
je 0x5550f6
push esi
push dword [ebp - 8]
call fcn.0055598a
test eax, eax
je 0x555141
push dword [ebp - 8]
call fcn.00555a00
test eax, eax
je 0x555141
push dword [ebp - 8]
call fcn.0055585e
test eax, eax
je 0x555141
mov eax, dword [edx]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x555134
add eax, ecx
test eax, eax
je 0x555141
push 0
push 1
push ecx
call eax
test eax, eax
je 0x555141
mov edx, dword [ebp - 8]
lea eax, [edx + 0x10]
mov dword [eax], 1
push dword [ebp - 0x18]
call fcn.00555298
mov eax, dword [ebp - 8]
jmp 0x555158
mov edx, dword [ebp - 8]
test edx, edx
je 0x55514e
push edx
call fcn.00555c54
push dword [ebp - 0x18]
call fcn.00555298
xor eax, eax
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x55561c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push ecx
push edx
push edi
push esi
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
cmp ax, 0x5a4d
jne 0x555700
mov eax, dword [ebx + 0x3c]
add ebx, eax
mov eax, dword [ebx]
cmp eax, 0x4550
jne 0x555700
lea eax, [ebx + 0x78]
lea ecx, [eax]
mov eax, dword [ecx + 4]
test eax, eax
je 0x555700
mov edx, dword [ecx]
add edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
test eax, eax
je 0x555700
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
jne 0x55568d
mov ecx, dword [edx + 0x10]
sub eax, ecx
jmp 0x5556eb
mov eax, dword [edx + 0x18]
test eax, eax
je 0x555700
mov ecx, dword [edx + 0x18]
mov dword [ebp - 8], ecx
mov esi, dword [edx + 0x20]
add esi, dword [ebp + 8]
mov ebx, dword [edx + 0x24]
add ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, 0xffffffff
xor al, al
cld
repne scasb al, byte es:[edi]
mov ecx, edi
sub ecx, dword [ebp + 0xc]
push ecx
jmp 0x5556cb
add ebx, 2
add esi, 4
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x5556e2
pop ecx
push ecx
push esi
mov esi, dword [esi]
add esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
repe cmpsb byte [esi], byte es:[edi]
pop esi
jne 0x5556bb
movzx eax, word [ebx]
mov dword [ebp - 4], eax
pop ecx
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x555700
mov ecx, dword [edx + 0x14]
cmp eax, ecx
ja 0x555700
mov ecx, dword [edx + 0x1c]
add ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp + 8]
jmp 0x555702
xor eax, eax
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x55570b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push ecx
push edx
push edi
push esi
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
call 0x555727
pop eax
sub eax, 0x401863
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 0x10]
mov ebx, dword [esi]
mov edi, ebx
add edi, 0x18
mov ax, word [ebx + 0x14]
movzx eax, ax
add edi, eax
mov cx, word [ebx + 6]
movzx ecx, cx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x55582c
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x5557d6
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
mov eax, ebx
add eax, dword [edi + 8]
dec eax
xor edx, edx
div ebx
test eax, eax
jne 0x55577e
dec dword [ebp - 4]
mov ecx, dword [ebp - 4]
add edi, 0x28
jmp 0x55574d
mul ebx
mov ebx, eax
push 4
push 0x1000
push ebx
mov eax, dword [edi + 0xc]
add eax, dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
je 0x555833
push ebx
push 0
push eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x402107]
call dword [eax]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
lea eax, [edi + 8]
mov dword [eax], ebx
dec dword [ebp - 4]
mov ecx, dword [ebp - 4]
add dword [ebp - 0xc], 0x28
mov edi, dword [ebp - 0xc]
jmp 0x55574d
push 4
push 0x1000
push eax
mov eax, dword [edi + 0xc]
add eax, dword [esi + 4]
push eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
je 0x555833
mov ebx, eax
mov edi, dword [ebp - 0xc]
push dword [edi + 0x10]
mov eax, dword [edi + 0x14]
add eax, dword [ebp + 8]
push eax
push ebx
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x40210b]
call dword [eax]
add esp, 0xc
mov edi, dword [ebp - 0xc]
lea eax, [edi + 8]
mov dword [eax], ebx
dec dword [ebp - 4]
mov ecx, dword [ebp - 4]
add dword [ebp - 0xc], 0x28
mov edi, dword [ebp - 0xc]
jmp 0x55574d
mov eax, 1
jmp 0x555835
xor eax, eax
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 0xc
Function at 0x55585e
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push ecx
push edx
push edi
push esi
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
call 0x55587a
pop eax
sub eax, 0x4019b6
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov edx, ebx
add edx, 0x18
mov ax, word [ebx + 0x14]
movzx eax, ax
add edx, eax
mov dword [ebp - 4], edx
mov cx, word [ebx + 6]
movzx ecx, cx
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x555978
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x40197a]
mov esi, dword [edx + 0x24]
test esi, 0x2000000
je 0x5558db
push 0x4000
push dword [edx + 0x10]
push dword [edx + 8]
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a4]
call dword [eax]
mov ecx, dword [ebp - 8]
dec ecx
jmp 0x5558a0
test esi, 0x20000000
jne 0x5558f5
test esi, 0x40000000
jne 0x55590a
test esi, 0x80000000
jne 0x555917
jmp 0x55591a
add edi, 0x10
test esi, 0x40000000
jne 0x55590a
test esi, 0x80000000
jne 0x555917
jmp 0x55591a
add edi, 8
test esi, 0x80000000
jne 0x555917
jmp 0x55591a
add edi, 4
mov edi, dword [edi]
test esi, 0x4000000
je 0x55592a
or edi, 0x200
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x55594a
mov eax, dword [edx + 0x24]
test eax, 0x40
je 0x555940
mov eax, dword [ebx + 0x20]
jmp 0x55594a
test eax, 0x80
je 0x555966
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x555966
lea esi, [ebp - 0x1c]
push esi
push edi
push eax
push dword [edx + 8]
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a8]
call dword [eax]
test eax, eax
je 0x55597f
dec dword [ebp - 8]
mov ecx, dword [ebp - 8]
add dword [ebp - 4], 0x28
mov edx, dword [ebp - 4]
jmp 0x5558a0
mov eax, 1
jmp 0x555981
xor eax, eax
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x4019a0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4019c0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x4019d4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x401a00
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x401a16
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401a23
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4020a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4223f8]
xor eax, esp
mov dword [esp + 0x220], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0x14]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
cmp esi, edi
jne 0x402116
xor eax, eax
cmp ecx, edi
je 0x402104
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov esi, eax
mov dword [esp + 0xc], ecx
cmp eax, edi
je 0x402124
cmp ecx, edi
je 0x4021c2
push ecx
jmp 0x4021bc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x40218c
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.004020a0
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x4021db
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
push edx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x402150
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x40219f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4021c2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004090aa
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x4021c4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004090aa
mov esp, ebp
pop ebp
ret 4
Function at 0x404280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x41a170
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4223f8]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x404302
call fcn.00401810
mov edi, eax
jmp 0x4043e4
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40431b
call fcn.00401810
jmp 0x4043db
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x404336
call fcn.00401810
jmp 0x4043db
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x40436c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40435a
lea ecx, [ebp]
call fcn.00402040
lea ecx, [ebp - 0x20]
call fcn.00401fe0
mov eax, 0x8007000e
jmp 0x4043f6
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00402b30
mov dword [ebp - 4], 1
jmp 0x404398
mov eax, dword [ebp]
test eax, eax
jne 0x4043a6
mov edi, 0x8007000e
jmp 0x4043dd
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4043bf
call fcn.00401810
jmp 0x4043db
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403d10
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x4043f4
lea ecx, [ebp]
call fcn.00402040
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004090aa
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41a272
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4223f8]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
mov eax, dword [0x4223f8]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x23c]
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x26]
xor eax, eax
push ebx
mov dword [esp + 0x1c], ebx
push ecx
mov dword [esp + 0x240], ebx
mov dword [esp + 0x28], esi
mov word [esp + 0x2c], ax
call fcn.004093e0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push 0x80000002
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x404cb9
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push 0x41b794
push eax
mov dword [esp + 0x30], 0x208
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00404a70
mov eax, dword [esi]
mov dword [esp + 0x234], ebx
mov dword [esp + 0x14], 1
mov ecx, 0x41b668
jmp 0x404ce0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404d06
cmp dx, bx
je 0x404d02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404d06
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x404ce0
xor eax, eax
jmp 0x404d0b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404d27
push 0x41b790
push 0x41b790
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, esi
call fcn.004015a0
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004090aa
add esp, 0x22c
ret
Function at 0x404e90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x41a2e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4223f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x18], ebx
cmp ax, word [0x423a68]
jne 0x405011
mov esi, dword [esp + 0x30]
push 0x104
push 0x423a68
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x423a68
call fcn.0040849b
add esp, 8
test eax, eax
je 0x404ef9
xor ecx, ecx
mov word [eax + 2], cx
push str.360sd.exe
lea ecx, [esp + 0x18]
call fcn.00404a70
mov dword [esp + 0x24], 0
test esi, esi
jne 0x404f3b
lea edx, [esp + 0x14]
push edx
push 0x423a68
lea eax, [esp + 0x20]
push eax
call fcn.00404b60
mov eax, dword [eax]
push eax
lea ebx, [esi + 1]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [esp + 0x13], bl
test eax, eax
je 0x404f40
mov byte [esp + 0x13], 0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test bl, 1
je 0x404f74
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x422024]
je 0x404f74
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x404f74
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00408bab
add esp, 4
cmp byte [esp + 0x13], 0
je 0x404fe7
lea edx, [esp + 0x18]
push edx
call fcn.00404bf0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00403f00
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x422024]
je 0x404fc0
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x404fc0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00408bab
add esp, 4
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 8]
test eax, eax
jle 0x404feb
cmp eax, 0x104
jge 0x404feb
push 0x103
push esi
push 0x423a68
call fcn.0040945a
add esp, 0xc
jmp 0x404feb
mov esi, dword [esp + 0x14]
lea edx, [esi - 0xc]
mov dword [esp + 0x24], 0xffffffff
cmp edx, dword [0x422024]
je 0x405011
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x405011
push esi
call fcn.00408bab
add esp, 4
mov esi, dword [esp + 0x2c]
push 0x423a68
mov ecx, esi
call fcn.00404a70
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x405780
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405807
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x405806
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
mov dword [esp + 8], 0
neg ecx
or ecx, eax
push ecx
call fcn.004082d5
add esp, 4
mov dword [0x423a20], eax
test eax, eax
je 0x4057ff
push 0
lea ecx, [esp + 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x423a20]
xor edx, edx
mov word [eax + esi*2], dx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ecx
ret

Function at 0x405940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
mov eax, 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push str.StartTime
push 0x41bfd0
push 0x80000002
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0
call fcn.00409846
add esp, 4
mov esi, eax
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub esi, edx
mov eax, esi
sub eax, dword [esp + 4]
pop esi
cdq
xor eax, edx
sub eax, edx
xor edx, edx
cmp eax, 5
setge dl
mov eax, edx
add esp, 0x14
ret