joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f5783
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x500ba8]
push ebx
mov ebx, 0x41c940
push esi
mov esi, 0x80004005
push edi
mov edi, section..data
cmp eax, 1
je 0x4f57a4
cmp eax, 3
jne 0x4f57f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x502088], eax
call fcn.004f524d
mov esi, eax
test esi, esi
jns 0x4f5827
mov eax, dword [section..data]
cmp eax, edi
je 0x4f5820
test byte [eax + 0x1c], 8
je 0x4f57f5
cmp byte [eax + 0x19], 2
jb 0x4f57f5
call fcn.0042386b
push esi
push 0x41c89c
push eax
mov eax, dword [section..data]
mov edx, ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.0042371b
mov eax, dword [section..data]
cmp eax, edi
je 0x4f5820
test byte [eax + 0x1c], 1
je 0x4f5820
cmp byte [eax + 0x19], 2
jb 0x4f5820
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
pop ecx
call fcn.004238e7
call fcn.004f5849
jmp 0x4f583d
mov edi, 0x50208c
mov dword [0x500ba8], 2
xor eax, eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4f5d53
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4f5e3a
push 0xc
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4f5d8e
mov esi, 0x8007000e
jmp 0x4f5e75
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
lea eax, [ebp - 4]
push eax
push 0x502084
push 4
mov dword [edi], 0x4ed880
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x4f5df0
mov eax, dword [section..data]
cmp eax, section..data
je 0x4f5e20
test byte [eax + 0x1c], 1
je 0x4f5e20
cmp byte [eax + 0x19], 2
jb 0x4f5e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0042386b
push esi
push eax
mov eax, dword [section..data]
mov edx, 0x41c940
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x19
pop ecx
call fcn.00421fda
jmp 0x4f5e20
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x4f6000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
test ecx, ecx
jne 0x4f5e2e
cmp dword [ebp - 4], esi
je 0x4f5e20
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], esi
mov esi, 0x80004005
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4f5e75
mov eax, dword [ebp - 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x4f5e75
mov eax, dword [section..data]
cmp eax, section..data
je 0x4f5e70
test byte [eax + 0x1c], 1
je 0x4f5e70
cmp byte [eax + 0x19], 2
jb 0x4f5e70
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x41c940
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x18
pop ecx
call fcn.004238e7
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4f5e84
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [0x500ba8], 2
je 0x4f5e93
mov eax, 0x834500c9
ret
test ecx, ecx
jne 0x4f5e9d
mov ecx, dword [0x502088]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
not eax
and eax, 0x80004005
ret

Function at 0x4f6221
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
mov word [edi], 0x100
test ecx, ecx
je 0x4f62ad
cmp word [ecx], bx
je 0x4f62ad
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x4f6274
cmp dword [ebp - 4], 2
jl 0x4f6274
push 1
push 0xffffffffffffffff
push 0x41c968
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x4f6274
mov byte [edi], 1
jmp 0x4f627a
mov byte [edi], bl
test esi, esi
je 0x4f629e
cmp dword [ebp - 4], 3
jl 0x4f629e
push 1
push 0xffffffffffffffff
push 0x41c9c4
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x4f629e
mov byte [edi + 1], bl
jmp 0x4f62a6
mov byte [edi + 1], 1
test esi, esi
je 0x4f62ad
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4f9db9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push edx
push ecx
mov dword [ebp - 4], esi
mov dword [edi], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x4f9e1c
test eax, eax
jg 0x4f9df6
mov esi, eax
jmp 0x4f9dff
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x4f9e1c
cmp dword [ebp - 0xc], 4
je 0x4f9e10
mov esi, 0x8007000d
jmp 0x4f9e1c
cmp dword [ebp - 4], 0
jne 0x4f9e1c
mov dword [edi], 1
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x4f9e2a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
mov dword [esi], 1
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4f9e66
xor eax, eax
jmp 0x4f9e8c
test eax, eax
jle 0x4f9e74
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4f9e8c
cmp dword [ebp - 0xc], 4
je 0x4f9e83
mov eax, 0x8007000d
jmp 0x4f9e8c
cmp dword [ebp - 4], 0
jne 0x4f9e8c
and dword [esi], 0
pop esi
leave
ret 4
Function at 0x4fa5d7
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x500144]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1a4], eax
xor esi, esi
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1a0], esi
push eax
push 0x202
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
xor eax, eax
test edi, edi
sete al
mov dword [ebp - 0x1a8], eax
test edi, edi
je 0x4fa66f
mov eax, dword [section..data]
cmp eax, section..data
je 0x4fa771
test byte [eax + 0x1c], 1
je 0x4fa771
cmp byte [eax + 0x19], 2
jb 0x4fa771
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
mov edx, 0x41d6a8
pop ecx
call fcn.00421fda
jmp 0x4fa771
mov ecx, ebx
call fcn.004fa7ae
test eax, eax
jne 0x4fa771
cmp dword [ebx + 8], esi
jne 0x4fa68c
cmp dword [ebx + 0xc], esi
je 0x4fa771
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x1c8], esi
push eax
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1b8], esi
push eax
push esi
push dword [ebp - 0x1a4]
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x1c4], esi
mov dword [ebp - 0x1bc], 6
mov dword [ebp - 0x1c0], 1
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov edi, eax
test edi, edi
je 0x4fa752
mov eax, dword [section..data]
mov ebx, section..data
cmp eax, ebx
je 0x4fa771
test byte [eax + 0x1c], 1
je 0x4fa729
cmp byte [eax + 0x19], 3
jb 0x4fa729
call fcn.0042386b
push edi
push dword [ebp - 0x1a4]
mov edx, 0x41d6a8
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.004333f8
mov eax, dword [section..data]
cmp eax, ebx
je 0x4fa771
test byte [eax + 0x1c], 1
je 0x4fa771
cmp byte [eax + 0x19], 2
jb 0x4fa771
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
jmp 0x4fa65f
mov edi, dword [ebp - 0x1a0]
test edi, edi
je 0x4fa786
test esi, esi
jne 0x4fa771
push edi
mov ecx, ebx
call fcn.004fa950
mov edi, dword [edi + 0x1c]
mov esi, eax
test edi, edi
jne 0x4fa75c
cmp dword [ebp - 0x1a0], 0
je 0x4fa786
push dword [ebp - 0x1a0]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
cmp dword [ebp - 0x1a8], 0
je 0x4fa795
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb5e0
leave
ret 4
Function at 0x4fa7ae
Capabilities:
Get local ipv4 addresses

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x4fa7c9
xor eax, eax
jmp 0x4fa912
cmp dword [edi + 4], esi
jne 0x4fa7d6
mov eax, dword [edi + 0x28]
jmp 0x4fa912
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], esi
jne 0x4fa8fd
mov ecx, edi
call fcn.004fa91d
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push esi
push 0x2e
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x4fa82e
push dword [ebp - 4]
call fcn.004fb25b
mov dword [edi + 8], eax
pop ecx
test eax, eax
jne 0x4fa81e
push 0xe
pop esi
jmp 0x4fa8fd
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x2e
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea ebx, [eax - 0xe8]
neg ebx
sbb ebx, ebx
and ebx, eax
je 0x4fa876
mov eax, dword [section..data]
cmp eax, section..data
je 0x4fa8fb
test byte [eax + 0x1c], 1
je 0x4fa8fb
cmp byte [eax + 0x19], 2
jb 0x4fa8fb
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
jmp 0x4fa8f0
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [edi + 0xc]
push esi
push 0x2e
push 0x17
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x4fa8b4
push dword [ebp - 4]
call fcn.004fb25b
mov dword [edi + 0xc], eax
pop ecx
test eax, eax
je 0x4fa816
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x2e
push 0x17
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea esi, [eax - 0xe8]
neg esi
sbb esi, esi
and esi, eax
mov ebx, esi
je 0x4fa8fd
mov eax, dword [section..data]
cmp eax, section..data
je 0x4fa8fd
test byte [eax + 0x1c], 1
je 0x4fa8fd
cmp byte [eax + 0x19], 2
jb 0x4fa8fd
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
mov edx, 0x41d6a8
pop ecx
call fcn.00421fda
mov esi, ebx
xor ecx, ecx
lea eax, [edi + 0x10]
test esi, esi
push eax
sete cl
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fb340
Capabilities:
Terminate process

Disassembly:
call fcn.004fbc99
jmp 0x4fb350
push 0x58
push 0x4fd520
call fcn.004fbd5c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x5025ac
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4fb3a2
cmp eax, esi
jne 0x4fb395
xor esi, esi
inc esi
mov edi, esi
jmp 0x4fb3a5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4fb379
xor esi, esi
inc esi
cmp dword [0x5025b0], esi
jne 0x4fb3b7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4fb3f1
cmp dword [0x5025b0], ebx
jne 0x4fb3eb
mov dword [0x5025b0], esi
push 0x4050a4
push 0x405098
call fcn.004fb535
pop ecx
pop ecx
test eax, eax
je 0x4fb3f1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4fb51f
mov dword [0x500c58], esi
cmp dword [0x5025b0], esi
jne 0x4fb414
push 0x405094
push 0x405050
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x5025b0], 2
test edi, edi
jne 0x4fb421
xor eax, eax
mov ecx, 0x5025ac
xchg dword [ecx], eax
cmp dword [0x5025bc], 0
je 0x4fb44d
push 0x5025bc
call fcn.004fbb90
pop ecx
test eax, eax
je 0x4fb44d
push ebx
push 2
push ebx
mov esi, dword [0x5025bc]
mov ecx, esi
call dword [0x5035f0]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x4fb4ab
test cl, cl
je 0x4fb47a
test edi, edi
jne 0x4fb4ab
test cl, cl
je 0x4fb47a
cmp cl, 0x20
ja 0x4fb47a
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x4fb469
test byte [ebp - 0x3c], 1
je 0x4fb486
movzx eax, word [ebp - 0x38]
jmp 0x4fb489
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x500c54], eax
cmp dword [0x500c6c], 0
jne 0x4fb504
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x4fb4bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x4fb4cf
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4fb45a
cmp dword [0x500c58], 0
jne 0x4fb518
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x500c54]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4fba70
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4fd560
call fcn.004fbd5c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fbad0
cmp eax, 0xffffffff
je 0x4fbad0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4fbac9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4fbac9
cmp edx, 0x10000000
jae 0x4fbac9
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4fbac6
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4fbb40
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4fbb7e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4fbb76
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4fbb80
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4fbb66
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4fbc60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4fbc8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4fbc8f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401a6c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push 0x41f234
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x401aee
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
add esp, 0x1c
test edi, edi
jle 0x401ae1
lea esi, [edi + 2]
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x401ae1
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
push 1
push edi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [ebp + 0xc]
add esp, 0x1c
mov dword [ecx], eax
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40282f
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.00414800
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x402950
cmp dword [ebp + 0xc], esi
je 0x402950
push ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x600]
push 0x42067c
push 0x200
push eax
call fcn.0040201b
add esp, 0x10
lea eax, [ebp - 0x600]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40293c
push 0xc
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x2d10]
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x2d10]
push edi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402930
push 0x3e8
lea eax, [ebp - 0x400]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x400]
push eax
push 1
push dword [ebp - 0x2cf8]
lea eax, [ebp - 0x2d10]
push eax
call fcn.00401bcf
add esp, 0x1c
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402649
test eax, eax
jne 0x402930
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x402949
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x40285e
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x402952
xor eax, eax
pop esi
leave
ret
Function at 0x402ab7
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x402c0f
cmp dword [ebp + 0xc], ebx
je 0x402c0f
push esi
push 0x64
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x402bef
mov dword [ebp - 8], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x14], 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x402be6
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2e8]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402bde
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ServiceName
mov dword [ebp - 0x10], 0x208
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402bd5
push 0x64
lea eax, [ebp - 0xe0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xe0]
push 0x64
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.00402c14
add esp, 0x18
test eax, eax
je 0x402bd5
cmp byte [ebp - 0x7c], bl
je 0x402bc3
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x402bd5
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push 0x64
push eax
call fcn.00402649
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
jmp 0x402b09
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x7c], bl
pop esi
je 0x402c0f
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402649
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x402c11
xor eax, eax
pop ebx
leave
ret
Function at 0x403281
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
cmp dword [ebp + 8], 0
push esi
je 0x40338a
cmp dword [ebp + 0xc], 0x20
jb 0x40338a
mov esi, 0x400
lea eax, [ebp - 0x508]
push esi
push 0
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 8]
push eax
push 0x4207cc
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40338a
lea eax, [ebp - 0x508]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x40
pop ecx
jne 0x40338a
push edi
lea eax, [ebp - 0x508]
push 0x20
push eax
mov edi, 0x80
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.0040338f
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00402649
push esi
lea eax, [ebp - 0x508]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x508]
push esi
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004030eb
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
pop edi
jne 0x40338a
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402649
neg eax
sbb eax, eax
inc eax
jmp 0x40338c
xor eax, eax
pop esi
leave
ret

Function at 0x403485
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
and word [ebp - 0x208], 0
push ebx
push esi
mov ebx, 0x81
push edi
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
and word [ebp - 0x410], 0
mov ecx, ebx
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
mov esi, 0x103
push eax
push str._sUnInst360SE.exe
lea eax, [ebp - 0x410]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push esi
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x616]
mov word [ebp - 0x618], dx
mov word [ebp - 0x820], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x81e]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x618]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x820]
push esi
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
pop edi
pop esi
pop ebx
leave
ret