joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4800d0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55aed7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [ebp - 4], 0
push ecx
push edi
lea ecx, [edi + 0x18]
call fcn.00452b30
mov byte [ebp - 4], 1
mov dword [edi + 0xcc], 0xf
mov dword [edi + 0xc8], 0
mov byte [edi + 0xb8], 0
mov byte [ebp - 4], 2
mov dword [edi + 0xe4], 0xf
mov dword [edi + 0xe0], 0
mov byte [edi + 0xd0], 0
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x30], 0x11
mov dword [eax + edi + 0x34], 0
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov byte [eax + edi + 0x58], 0x30
mov dword [ebp - 4], 4
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x10], 0
push eax
call fcn.00480d30
mov ecx, edi
call fcn.004520e0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x482930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.00554650
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov byte [ebp - 0x1211], 0
push esi
push edi
lea eax, [ebx + 0x34]
push eax
mov dword [ebp - 0x1220], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ecx
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00482c30
test al, al
je 0x482a87
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [0x5c008c]
mov dword [ebp - 0x1218], eax
cmp eax, 0xffffffff
je 0x482a87
xor edi, edi
lea esi, [ebp - 0x1210]
cmp dword [ebx + 0x20], edi
jle 0x482a60
lea esp, [esp]
lea ecx, [ebp - 0x228]
cmp esi, ecx
jb 0x4829f2
push 0
lea ecx, [ebp - 0x121c]
push ecx
lea ecx, [ebp - 0x1210]
sub esi, ecx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x482a7a
lea esi, [ebp - 0x1210]
mov eax, dword [ebx + 0x28]
push 0xa
push 0x18
push esi
push dword [eax + edi*8 + 4]
push dword [eax + edi*8]
call dword [sym.imp.MSVCR120.dll__i64toa_s]
add esp, 0x14
push 0
push esi
call dword [sym.imp.MSVCR120.dll_strchr]
mov esi, eax
inc edi
mov eax, dword [ebp - 0x1218]
add esp, 8
mov byte [esi], 0x2c
inc esi
cmp edi, dword [ebx + 0x20]
jl 0x4829c0
lea eax, [ebp - 0x120f]
cmp esi, eax
jbe 0x482a6b
push 0
lea eax, [ebp - 0x121c]
push eax
lea eax, [ebp - 0x1210]
sub esi, eax
dec esi
push esi
mov esi, dword [ebp - 0x1218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x482a80
mov byte [ebp - 0x1211], 1
jmp 0x482a80
mov esi, eax
mov byte [ebp - 0x1211], 1
jmp 0x482a80
mov esi, dword [ebp - 0x1218]
mov byte [ebp - 0x1211], 1
jmp 0x482a80
mov esi, dword [ebp - 0x1218]
push esi
call dword [0x5c001c]
push dword [ebp - 0x1220]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1211]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x482ab0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov byte [ebp - 0x211], 0
push esi
push edi
xor esi, esi
lea eax, [ebx + 0x34]
push eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ecx
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00482c30
test al, al
je 0x482c02
push esi
push 0x80
push 3
push esi
push 3
push closesocket
lea eax, [ebp - 0x210]
push eax
call dword [0x5c008c]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
je 0x482c02
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x482be8
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x228], esi
test esi, esi
je 0x482be8
push 0
lea eax, [ebp - 0x220]
push eax
push edi
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x482be8
mov eax, dword [ebp - 0x220]
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x218], ecx
mov byte [eax + esi], 0
cmp dword [ebx + 0x20], edi
jle 0x482be1
test ecx, ecx
je 0x482bc5
push 0x2c
push ecx
call dword [sym.imp.MSVCR120.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x482ba2
mov byte [esi], 0
inc esi
push dword [ebp - 0x218]
call dword [sym.imp.MSVCR120.dll__atoi64]
mov ecx, dword [ebx + 0x28]
add esp, 4
mov dword [ecx + edi*8], eax
mov dword [ecx + edi*8 + 4], edx
mov ecx, esi
mov dword [ebp - 0x218], ecx
jmp 0x482bd5
mov eax, dword [ebx + 0x28]
mov dword [eax], 0
mov dword [eax + 4], 0
inc edi
cmp edi, dword [ebx + 0x20]
jl 0x482b88
mov esi, dword [ebp - 0x228]
mov byte [ebp - 0x211], 1
push dword [ebp - 0x21c]
call dword [0x5c001c]
test esi, esi
je 0x482c02
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x211]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x48d830
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e022
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x220], 0
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x228], esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x224], 0x105
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x21c], ax
jne 0x48d8cc
xor ecx, ecx
jmp 0x48d8e4
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48d8d5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.0041e3a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x48e1c0
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0xf60], 0
je 0x48e21b
push dword [edi + 0xf58]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x2af8
push dword [edi + 0xf60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48e1fb
push 0
push dword [edi + 0xf60]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
push dword [edi + 0xf60]
mov esi, dword [0x5c001c]
call esi
push dword [edi + 0xf58]
call esi
push dword [edi + 0xf5c]
call esi
pop esi
mov dword [edi + 0xf58], 0
mov al, 1
mov dword [edi + 0xf60], 0
mov dword [edi + 0xf5c], 0
pop edi
ret

Function at 0x48e520
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e136
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x5c6138], 0
jne 0x48e562
mov eax, 0x100
jmp 0x48e65b
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x105
push eax
lea eax, [ebp - 0x21c]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x48e558
lea ecx, [ebp - 0x230]
call fcn.0048f570
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
mov dword [eax], 2
mov eax, dword [ebp - 0x220]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
mov dword [eax + 0x10], 2
lea eax, [ebp - 0x21c]
push eax
call fcn.00430c90
mov ecx, dword [ebp - 0x220]
neg ecx
push 0
sbb ecx, ecx
and ecx, dword [ebp - 0x228]
push 0
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [0x5c6138]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
push eax
call fcn.00473a00
mov edi, eax
cmp edi, 6
jne 0x48e623
push 0
lea eax, [esi + 0x2b0]
mov ecx, esi
push eax
call fcn.00429140
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CParamStructHelper_struct__CCE_WEB_LOGIN_ASSOCIATION_REQUEST_2_.virtual_0], vtable.CParamStructHelper_struct__CCE_WEB_LOGIN_ASSOCIATION_REQUEST_2_.0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
mov dword [ebp - method.CBuffer.virtual_0], vtable.CBuffer.0
test eax, eax
je 0x48e659
push eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x48e680
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e136
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x5c6138], 0
mov edi, dword [ebp + 8]
jne 0x48e6c5
mov eax, 0x100
jmp 0x48e7bd
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x105
push eax
lea eax, [ebp - 0x21c]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x48e6bb
lea ecx, [ebp - 0x230]
call fcn.0048f570
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
mov dword [eax], 2
mov eax, dword [ebp - 0x220]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
mov dword [eax + 0x10], 2
lea eax, [ebp - 0x21c]
push eax
call fcn.00430c90
mov ecx, dword [ebp - 0x220]
neg ecx
push edi
sbb ecx, ecx
and ecx, dword [ebp - 0x228]
push 0
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [0x5c6138]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
push eax
call fcn.00473a00
mov edi, eax
cmp edi, 6
jne 0x48e785
push 0
lea eax, [esi + 0x2b0]
mov ecx, esi
push eax
call fcn.00429140
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CParamStructHelper_struct__CCE_WEB_LOGIN_ASSOCIATION_REQUEST_2_.virtual_0], vtable.CParamStructHelper_struct__CCE_WEB_LOGIN_ASSOCIATION_REQUEST_2_.0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
mov dword [ebp - method.CBuffer.virtual_0], vtable.CBuffer.0
test eax, eax
je 0x48e7bb
push eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4
Function at 0x48e7e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e176
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x5c6138], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x48e829
mov eax, 0x100
jmp 0x48e944
test edi, edi
je 0x48e81f
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x105
push eax
lea eax, [ebp - 0x21c]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x48e81f
lea ecx, [ebp - 0x230]
call fcn.0048f620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
mov dword [eax], 4
mov eax, dword [ebp - 0x220]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
mov dword [eax + 0x10], 3
lea eax, [ebp - 0x21c]
push eax
call fcn.00430c90
mov ecx, dword [ebp - 0x220]
neg ecx
push edi
sbb ecx, ecx
and ecx, dword [ebp - 0x228]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x230]
call fcn.00430c90
mov ecx, dword [ebp - 0x220]
neg ecx
push ebx
sbb ecx, ecx
and ecx, dword [ebp - 0x228]
push 0
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [0x5c6138]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
push eax
call fcn.00473a00
mov edi, eax
cmp edi, 6
jne 0x48e90c
push 0
lea eax, [esi + 0x2b0]
mov ecx, esi
push eax
call fcn.00429140
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CParamStructHelper_struct__CCE_WEB_LOGIN_ASSOCIATION_REQUEST_4_.virtual_0], vtable.CParamStructHelper_struct__CCE_WEB_LOGIN_ASSOCIATION_REQUEST_4_.0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
mov dword [ebp - method.CBuffer.virtual_0], vtable.CBuffer.0
test eax, eax
je 0x48e942
push eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 8
Function at 0x48e970
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e1b6
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x5c6138], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
jne 0x48e9cb
mov eax, 0x100
jmp 0x48eb29
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x105
push eax
lea eax, [ebp - 0x21c]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x48e9c1
lea ecx, [ebp - 0x230]
call fcn.0048f6e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
mov dword [eax], 3
mov eax, dword [ebp - 0x220]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
mov dword [eax + 0x10], 1
lea eax, [ebp - 0x21c]
push eax
call fcn.00430c90
mov ecx, dword [ebp - 0x220]
push dword [ebp - 0x238]
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x228]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x230]
call fcn.00430c90
mov ecx, dword [ebp - 0x220]
push dword [ebp - 0x234]
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x228]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x230]
call fcn.00430c90
mov ecx, dword [ebp - 0x220]
neg ecx
push edi
sbb ecx, ecx
and ecx, dword [ebp - 0x228]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x230]
call fcn.00430c90
mov ecx, dword [ebp - 0x220]
neg ecx
push ebx
sbb ecx, ecx
and ecx, dword [ebp - 0x228]
push 0
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [0x5c6138]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x228]
push eax
call fcn.00473a00
mov edi, eax
cmp edi, 6
jne 0x48eaf1
push ebx
lea eax, [esi + 0x2b0]
mov ecx, esi
push eax
call fcn.00429140
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CParamStructHelper_struct__CCE_WEB_LOGIN_ASSOCIATION_REQUEST_3_.virtual_0], vtable.CParamStructHelper_struct__CCE_WEB_LOGIN_ASSOCIATION_REQUEST_3_.0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
mov dword [ebp - method.CBuffer.virtual_0], vtable.CBuffer.0
test eax, eax
je 0x48eb27
push eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4984b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55ee67
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, esp
push eax
lea eax, [esp + 0x4c0]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov edx, 0x104
mov esi, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0xa8]
call fcn.0050a4d0
add esp, 4
test al, al
jne 0x498518
xor al, al
jmp 0x4986bd
test esi, esi
jne 0x498521
mov esi, str._hide
push esi
lea eax, [esp + 0xa8]
push eax
push str.__segui.exe___s
lea eax, [esp + 0x2b8]
push 0xffffffffffffffff
push eax
call fcn.00498f30
add esp, 0x14
test eax, eax
js 0x498511
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea ecx, [esp + 0x34]
call fcn.00498f50
add esp, 4
mov dword [esp + 0x4c8], 0
lea eax, [esp + 0x10]
push 0
push edi
push eax
call fcn.0054f754
neg eax
mov dword [esp + 0x5c], 0x44
push 0x40
sbb esi, esi
lea eax, [esp + 0x64]
and esi, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x1c], esi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x60]
push eax
push 0
push esi
push 0x424
push 0
push 0
push 0
lea eax, [esp + 0x2cc]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4986a5
push dword [esp + 0x18]
mov edx, dword [0x5c001c]
lea ecx, [esp + 0x48]
call fcn.004722c0
add esp, 4
mov byte [esp + 0x4c8], 1
lea ecx, [esp + 0x38]
push dword [esp + 0x1c]
mov edx, dword [0x5c001c]
call fcn.004722c0
add esp, 4
mov byte [esp + 0x4c8], 2
lea ecx, [esp + 0x50]
push dword [esp + 0x1c]
mov edx, dword [0x5c0194]
call fcn.004722c0
add esp, 4
mov byte [esp + 0x4c8], 3
lea esi, [ebx + 0x9e5c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov ecx, dword [esi]
mov dword [esp + 0x28], esi
mov byte [esp + 0x2c], 1
call fcn.004361d0
mov byte [esp + 0x4c8], 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 4]
call fcn.00484960
mov dword [eax], 1
mov byte [esp + 0x4c8], 3
mov ecx, dword [esi]
call fcn.00436240
mov byte [esp + 0x4c8], 2
lea ecx, [esp + 0x50]
call fcn.004725d0
mov byte [esp + 0x4c8], 1
lea ecx, [esp + 0x38]
call fcn.004725d0
mov byte [esp + 0x4c8], 0
lea ecx, [esp + 0x44]
call fcn.004725d0
mov bl, 1
jmp 0x4986a7
xor bl, bl
mov dword [esp + 0x4c8], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00499010
mov al, bl
mov ecx, dword [esp + 0x4c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret 8
Function at 0x49a010
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
mov edx, str.SoftwareESETESET_SecurityCurrentVersionInfo
mov ecx, reloc.WS2_32.dll_bind
push 0x2001b
push eax
call fcn.00518680
add esp, 8
test al, al
je 0x49a078
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0
push 0
mov edx, 0x5897dc
call fcn.00518910
add esp, 0xc
cmp dword [ebp - 8], 0
jbe 0x49a068
push 0x5897dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call dword [0x5c00ac]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esp, ebp
pop ebp
ret
Function at 0x49df50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f873
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x10]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x14], esi
mov word [esi], ax
call fcn.0041dd20
mov dword [ebp - 4], 2
lea ecx, [esi + 0x18]
push dword [ebp + 0xc]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov dword [ebp + 0x10], ecx
mov word [ecx], ax
call fcn.0041dd20
mov dword [ebp - 4], 5
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a95b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov edx, dword [ebx + 0x14]
not edx
test edi, edi
je 0x4a95ea
mov ecx, dword [ebp + 0x10]
lea esp, [esp]
movzx eax, byte [esi + ecx]
inc esi
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x58e240]
cmp esi, edi
jb 0x4a95d0
mov eax, edi
not edx
pop edi
pop esi
mov dword [ebx + 0x14], edx
pop ebx
pop ebp
ret 0x10
Function at 0x4b8c50
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x200
lea eax, [ebp - 0x404]
mov edi, ecx
push eax
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4b8c95
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4b8cfd
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push 1
push 2
push 0x110
push 0xf01ff
lea eax, [edi + 0x228]
push eax
lea eax, [edi + 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x4b8cf6
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
call dword [0x5c00e8]
mov bl, 1
push esi
call dword [0x5c00e8]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret 4

Function at 0x4b8d40
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4b8de3
push 0xf01ff
lea eax, [esi + 0x28]
push eax
push edi
call dword [0x5c00e4]
mov esi, eax
test esi, esi
je 0x4b8ddc
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4b8dcc
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4b8dcc
nop
cmp dword [ebp - 0x1c], 3
jne 0x4b8dcc
push 0x3e8
call edi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4b8db0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4b8dd9
mov bl, 1
push esi
jmp 0x4b8ddd
push edi
call dword [0x5c00e8]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret