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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42540b
push ebx
push esi
call fcn.00425337
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042409a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4253b8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42540a
push edi
push eax
call fcn.0041c3f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4253d8
call fcn.0041c3a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425409
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042409a
add esp, 0x20
test eax, eax
jne 0x4253f7
push edi
call fcn.0041c3a0
jmp 0x4253ff
push ebx
call fcn.0041c3a0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x427ba8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041c1c8
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x427c17
cmp esi, dword [ebp - 4]
je 0x427c12
cmp dword [ebp + 0xc], 0
je 0x427c12
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x427bef
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004276fd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x427c19
xor eax, eax
inc eax
jmp 0x427c19
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x427c84
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041c1c8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041c1c8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x427cfb
cmp word [ecx], dx
je 0x427cfb
mov eax, dword [0x433edc]
push edi
dec eax
push eax
push 0x433dc8
call fcn.00427c1d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x427d6e
cmp word [eax], dx
je 0x427d6e
mov eax, dword [edi]
test eax, eax
je 0x427d1f
cmp word [eax], dx
je 0x427d1f
lea eax, [ebp - 0x10]
push eax
call fcn.00427603
jmp 0x427d28
lea eax, [ebp - 0x10]
push eax
call fcn.0042769e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x427d98
mov eax, dword [0x433dc4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x433ab8
call fcn.00427c1d
add esp, 0xc
test al, al
je 0x427d98
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x427d63
cmp word [eax], di
je 0x427d63
lea eax, [ebp - 0x10]
push eax
call fcn.00427603
pop ecx
jmp 0x427d9a
lea eax, [ebp - 0x10]
push eax
call fcn.0042769e
jmp 0x427d60
mov eax, dword [edi]
test eax, eax
je 0x427d85
cmp word [eax], dx
je 0x427d85
lea eax, [ebp - 0x10]
push eax
call fcn.004275b8
pop ecx
jmp 0x427d98
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x427e63
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00427aa2
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x427e63
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x427e63
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x427e63
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x427df0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004203e9
test ebx, ebx
je 0x427e5e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004203e9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x427e63
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x427e63
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042b7e9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x427e65
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dd98
leave
ret
Function at 0x42d030
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d05d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d05d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010ba
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call esi
mov dword [ebp - 0x12c], eax
cmp eax, edi
je 0x40117d
push ebx
mov ebx, 0x11c
push ebx
lea eax, [ebp - 0x120]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40117c
cmp dword [ebp - 0x11c], 5
jne 0x40117c
cmp dword [ebp - 0x118], 1
push 2
pop eax
je 0x401137
cmp dword [ebp - 0x118], eax
jne 0x40117c
mov dword [ebp - 0x128], eax
call dword [sym.imp.MSVCR100.dll__get_heap_handle]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x124], eax
cmp ebx, edi
je 0x401162
push 4
lea eax, [ebp - 0x128]
push eax
push edi
push ebx
call esi
cmp dword [ebp - 0x124], edi
je 0x40117c
push 4
lea eax, [ebp - 0x128]
push eax
push edi
push dword [ebp - 0x124]
call esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x12c]
pop edi
xor ecx, ebp
pop esi
call fcn.004017c4
leave
ret

Function at 0x401191
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareAdobeAdobe_Acrobat11.0Security
xor edi, edi
push 0x80000002
inc edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011fb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x403168
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011f2
cmp dword [ebp - 8], esi
jne 0x4011f2
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40121b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x404034], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x40125f
call ebx
test eax, eax
jns 0x401255
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x404030], eax
mov dword [0x404034], 1
mov eax, dword [0x404030]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40127b
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x4012ab
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x4012a1
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x401296
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x40129b
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x4012aa
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x4017c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404004]
jne 0x4017ce
repz ret
jmp fcn.00401b99
Function at 0x2356ad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1da8000]
push edi
or ebp, 0xffffffff
jmp 0x2356af2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x2356af9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2356ae8
mov eax, 1
add ebx, ebx
jne 0x2356b0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x2356b1c
jne 0x2356b3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2356b3b
dec eax
add ebx, ebx
jne 0x2356b28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x2356b00
add ebx, ebx
jne 0x2356b37
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x2356b8d
xor ecx, ecx
sub eax, 3
jb 0x2356b53
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x2356bc2
sar eax, 1
mov ebp, eax
jmp 0x2356b5e
add ebx, ebx
jne 0x2356b5e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2356b2c
inc ecx
add ebx, ebx
jne 0x2356b6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2356b2c
add ebx, ebx
jne 0x2356b79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x2356b6e
jne 0x2356b8a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x2356b6e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x2356bac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x2356b9e
jmp 0x2356aee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x2356bac
add edi, ecx
jmp 0x2356aee
pop esi
mov edi, esi
mov ecx, 0x1ae22
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x2356bca
cmp byte [edi], 0xd6
jne 0x2356bca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x2356bcf
lea edi, [esi + 0x1f19000]
mov eax, dword [edi]
or eax, eax
je 0x2356c3e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x37ffe30]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x37fff74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x2356bfc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x37fff7c]
or eax, eax
je 0x2356c38
mov dword [ebx], eax
add ebx, 4
jmp 0x2356c19
call dword [esi + 0x37fff78]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x2356c6f
cmp al, 0xef
ja 0x2356c62
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x2356c44
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x2356c51
mov ebp, dword [esi + 0x37fff80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x2356ca3
sub esp, 0xffffff80
jmp 0x93215c
Function at 0x402db0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x497091
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
xor eax, eax
push ebx
mov word [esp + 0x1c], ax
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.00402a90
mov dword [esp + 0x34], 1
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402e10
sub eax, edx
sar eax, 1
push eax
push edi
lea eax, [esp + 0x18]
call fcn.004037d0
push 0xffffffffffffffff
push ebx
xor edx, edx
push eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov eax, esi
mov word [esi + 4], dx
call fcn.00402a90
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x402e65
mov eax, dword [esp + 0x14]
push eax
call fcn.00471eaf
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x403e20
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x49701d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.scheduler.0
call fcn.00407e10
mov dword [esp + 0x14], 0
push 0
push 0
push esi
push 0x403a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403e7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x404000
Capabilities:
Terminate process

Disassembly:
push esi
call fcn.00401140
mov esi, eax
cmp dword [esi], 0
jne 0x404032
call fcn.0046b760
test eax, eax
jbe 0x40402d
cmp eax, 0x10001012
jb 0x40402d
call fcn.00409f80
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x404032
cmp dword [esi], 0
je 0x404064
call fcn.00401140
mov esi, eax
cmp dword [esi], 0
je 0x40404a
call fcn.0046bae0
mov eax, esi
call fcn.0046b880
call fcn.00401140
mov esi, eax
cmp dword [esi], 0
je 0x404064
call fcn.0046b800
push 0x11
mov eax, esi
call fcn.0046ba40
cmp dword [0x514e1c], 0
jne 0x404080
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x514e1c], eax
call fcn.00420120
test eax, eax
jne 0x4040aa
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov eax, dword [0x514e1c]
push 0xea60
push eax
call esi
test eax, eax
je 0x4040aa
call fcn.00420120
test eax, eax
je 0x404090
call fcn.004038e0
push 1
add eax, 0x3c
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call fcn.0040f110
pop esi
test eax, eax
je 0x4040fb
call fcn.00424b20
call fcn.00409f80
test eax, eax
jne 0x4040e1
call fcn.0041ff00
test eax, eax
jne 0x4040e1
call fcn.00439430
call fcn.004010d0
push eax
call fcn.00451fe0
push 0
call fcn.004063e0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call fcn.00403b50
push eax
call fcn.00403bb0
mov ecx, dword [esp + 4]
push ecx
call fcn.00404120
xor eax, eax
ret 4

Function at 0x405700
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x495f7b
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea ecx, [esi + 0x14]
xor ebx, ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
mov dword [esp + 0x18], ebx
imul edx, edx, 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 4], eax
mov eax, edi
mov dword [esi], edx
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x405757
sub eax, ebp
push eax
push edi
call fcn.00403290
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x28]
push 0x10
push edx
mov dword [esi + 8], ecx
mov ecx, dword [esi]
push ecx
push esi
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x40]
push 0x4056e0
push eax
lea edx, [esi + 0x38]
push edx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14
Function at 0x4084b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4084cd
pop edi
pop ebp
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408504
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x408500
lea ebx, [ebx]
cmp esi, eax
jae 0x408504
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4084f0
cmp esi, eax
jb 0x40850b
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x4089c0
Capabilities:
Create process on windows
Delete file
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x498a30
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
call fcn.00428560
mov esi, eax
call fcn.00449f70
call fcn.0040eb60
xor ebx, ebx
test eax, eax
je 0x408a34
call fcn.00401000
call fcn.004319f0
cmp dword [eax + 8], ebx
je 0x408a22
call fcn.00435420
call fcn.00433c10
call fcn.00405a60
cmp dword [eax + 4], ebx
je 0x408a34
add eax, 0x14
call fcn.00407e80
call fcn.004010d0
mov esi, eax
cmp dword [esi + 4], ebx
je 0x408a6a
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x408a5d
push eax
call edi
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x408a6a
push eax
call edi
mov dword [esi + 0x10], ebx
mov ebp, 7
xor ecx, ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
mov dword [esp + 0x58], ebx
lea ecx, [esp + 0x30]
call fcn.0040ccf0
test eax, eax
jne 0x408ad9
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x408aab
mov edx, dword [esp + 0x34]
push edx
call fcn.00471eaf
add esp, 4
xor eax, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], ax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00471eba
add esp, 0x48
ret
lea ecx, [esp + 0x14]
push ecx
mov edi, 0x4a5a68
lea ecx, [esp + 0x34]
call fcn.00402db0
add esp, 4
mov byte [esp + 0x58], 1
push 0xc
push 0x4a61c0
lea eax, [esp + 0x1c]
call fcn.004037d0
mov edi, dword [esp + 0x18]
mov esi, 8
cmp dword [esp + 0x2c], esi
jae 0x408b17
lea edi, [esp + 0x18]
push 0x517930
call fcn.00405520
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x408b8f
cmp dword [esp + 0x2c], esi
jae 0x408b33
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x58], bl
cmp dword [esp + 0x2c], esi
jb 0x408b51
mov edx, dword [esp + 0x18]
push edx
call fcn.00471eaf
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], esi
jb 0x408b7b
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], dx
jmp 0x408aba
cmp dword [esp + 0x2c], esi
jae 0x408b99
lea eax, [esp + 0x18]
push ebx
push ebx
push str.restart_service
push eax
push 0x4a63b8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409360
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a240
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x40949d
push str.protectSvc
push eax
call fcn.0047221c
add esp, 8
test eax, eax
jne 0x40949d
mov dword [ebp - 4], esi
call fcn.00439cf0
cmp eax, esi
je 0x4093c4
mov ebx, 1
mov dword [ebp - 0x14], ebx
mov dword [ebp + 8], esi
mov dword [ebp - 0x18], esi
call fcn.0040eb10
test eax, eax
je 0x40943b
call fcn.00409d40
test eax, eax
je 0x40943b
mov edi, 1
mov dword [ebp - 0x18], edi
lea eax, [ebp + 8]
push eax
call fcn.00424c30
test eax, eax
je 0x40941c
cmp dword [ebp + 8], esi
je 0x40941c
mov dword [ebp - 0x1c], edi
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 4
push str.bprot
push str.SYSTEMCurrentControlSetServices360bpsvc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
or ebx, 2
mov dword [ebp - 0x14], ebx
call fcn.00438f80
test eax, eax
je 0x40942c
call fcn.00439af0
jmp 0x409431
call fcn.0043a850
cmp eax, esi
je 0x40943b
or ebx, 4
mov dword [ebp - 0x14], ebx
call fcn.0043a640
test eax, eax
je 0x40944a
or ebx, 8
mov dword [ebp - 0x14], ebx
call fcn.00408bc0
cmp ebx, esi
je 0x40948c
push ebx
sub esp, 0x1c
mov dword [ebp + 8], esp
mov edx, str.updateret
mov eax, esp
call fcn.004028a0
mov byte [ebp - 4], 1
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov edx, str.updateret
mov eax, esp
call fcn.004028a0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
call fcn.00404570
add esp, 0x3c
test bl, 3
je 0x409496
call fcn.004089c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49ade2
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], eax
mov dword [esi + 8], str.protectSvc
mov dword [esi + 0x14], ecx
mov eax, 7
xor ebp, ebp
xor edx, edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ebp
mov word [esi + 0x1c], dx
mov dword [esp + 0x18], ebp
xor ecx, ecx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], ebp
mov word [esi + 0x38], cx
mov byte [esp + 0x18], 1
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], ebp
mov word [esi + 0x54], dx
mov byte [esp + 0x18], 2
mov dword [esi + 0x84], eax
xor eax, eax
mov dword [esi + 0x80], ebp
mov word [esi + 0x70], ax
mov byte [esp + 0x18], 3
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 8
mov dword [esi + 0x10], eax
call fcn.0047235a
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
mov byte [esp + 0x18], 4
cmp edi, ebp
je 0x4098ca
mov ecx, edi
mov dword [edi], ebp
mov dword [edi + 4], ebp
call fcn.00409500
jmp 0x4098cc
xor edi, edi
mov byte [esp + 0x18], 3
push 8
mov dword [esi], edi
call fcn.0047235a
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x18], 5
cmp eax, ebp
je 0x4098f5
mov dword [eax], vtable.UpdateControl.0
mov dword [eax + 4], ebp
jmp 0x4098f7
xor eax, eax
mov byte [esp + 0x18], 3
mov ecx, dword [esi]
mov dword [esi + 4], eax
mov dword [eax + 4], ecx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8