joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4138ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov bh, dl
mov dword [ebp - 0x14], 0x4362f4
xor edi, edi
lea edx, [ebp - 0x14]
mov bl, cl
mov dword [ebp - 0x10], edi
call fcn.004135f7
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov edx, dword [eax + 4]
cmp edx, 0x407f90
jne 0x413903
push 0xffffffffffffffff
call dword [eax + 0xc]
jmp 0x413905
call edx
mov dword [ebp - 0x20], 0x43546c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x200
call fcn.00411ff3
mov eax, str.HKLMSoftwareBraveSoftwareUpdate_
test bl, bl
jne 0x413929
mov eax, str.HKCUSoftwareBraveSoftwareUpdate_
push 0xf003f
push eax
lea ecx, [ebp - 0x20]
call fcn.0040825e
push edi
push edi
push edi
push edi
push str.old_uid
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x20]
test eax, eax
jne 0x41395f
push 0x4388b8
call fcn.004080d0
jmp 0x413a0a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 8]
push eax
push 0x4388b8
call fcn.00408427
test eax, eax
jns 0x413989
cmp dword [ebp - 4], edi
je 0x4139bc
push dword [ebp - 4]
jmp 0x4139b6
push dword [ebp - 8]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x20]
push dword [ebp - 0xc]
push esi
push str.old_uid
call fcn.0040872a
test eax, eax
js 0x4139b1
push 0x4388b8
lea ecx, [ebp - 0x20]
call fcn.004080d0
test esi, esi
je 0x4139bc
push esi
call fcn.00416692
pop ecx
test bh, bh
je 0x413a0a
lea ecx, [ebp - 4]
call fcn.0040171e
lea eax, [ebp - 4]
push eax
push str.old_uid
lea ecx, [ebp - 0x20]
call fcn.004085a0
mov esi, str.__legacy
push esi
call fcn.00422281
pop ecx
push eax
push esi
lea ecx, [ebp - 4]
call fcn.00404141
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x20]
push 1
push esi
push str.old_uid
call fcn.004086ee
lea ecx, [esi - 0x10]
call fcn.004016ae
mov cl, bl
call fcn.00413ac2
mov esi, eax
mov dword [ebp - 0x20], 0x43546c
cmp dword [ebp - 0x1c], edi
je 0x413a32
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x200
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
cmp eax, 0x407fbd
jne 0x413a4a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x413a4f
lea ecx, [ebp - 0x14]
call eax
mov dword [ebp - 0x14], 0x4362f4
cmp dword [ebp - 0x10], edi
je 0x413a64
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413e72
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x413e82
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x413e88
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x413eb0
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x433fb0]
test ax, ax
jne 0x413e97
mov esi, ecx
jmp 0x413eb3
movzx esi, si
pop edi
cmp cx, si
je 0x413ed0
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x433fb0]
test cx, cx
jne 0x413eb4
mov eax, 0x432a10
jmp 0x413ed8
imul eax, edx, 0x1a
add eax, 0x433fb2
push eax
mov ecx, ebx
call fcn.00404066
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x414dc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 8
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414dfd
cmp dword [ebp - 8], 3
jne 0x414dfd
cmp dword [ebp - 4], esi
jne 0x414dfd
mov al, 1
jmp 0x414e0d
push esi
push 0
push dword [ebp + 8]
call fcn.00416d80
add esp, 0xc
xor al, al
pop esi
leave
ret

Function at 0x414e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414e45
cmp dword [ebp - 8], 3
jne 0x414e45
cmp dword [ebp - 4], esi
jne 0x414e45
mov al, 1
jmp 0x414e55
push esi
push 0
push dword [ebp + 8]
call fcn.00416d80
add esp, 0xc
xor al, al
pop esi
leave
ret
Function at 0x415d83
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 0xc
lea edx, [ebx + 0x1c]
lea ecx, [ebx + 0x40]
mov esi, eax
lea eax, [ebx + 0x38]
push edx
push ecx
lea ecx, [ebx + 0x3c]
push ecx
push eax
push edi
push esi
push ecx
lea ecx, [ebp - 0x88]
call fcn.00415c0e
lea ecx, [ebp - 0x30]
call fcn.0040e9ca
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push 0x2c
mov eax, ecx
mov dword [ebp - 4], esi
push eax
push 0x2c
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x415e46
cmp dword [ebp - 0x30], 2
jne 0x415e46
cmp dword [ebp - 0x2c], esi
je 0x415e46
cmp dword [ebp - 0x10], esi
je 0x415e46
cmp dword [ebp - 0xc], esi
je 0x415e46
cmp dword [ebp - 8], esi
je 0x415e46
lea ecx, [ebp - 0x5c]
call fcn.0040e9ca
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x5c], 3
push eax
push 0x2c
mov eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415e46
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x34], eax
mov al, 1
jmp 0x415e48
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x416b22
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416b61
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416b61
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416b61
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416b61
cmp dword [ecx + 0x74], 0xe
jbe 0x416b61
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41fdae
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41fdf9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041ffcb
test al, al
jne 0x41fdf3
sub edx, 2
cmp edx, edi
jne 0x41fdd9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41fe1b
lea eax, [edi + 2]
cmp edx, eax
je 0x41fe1b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041fcfa
add esp, 0x10
jmp 0x41ff15
push esi
lea ecx, [ebp - 0x255]
call fcn.0041ffcb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41fe5e
push dword [ebp - 0x25c]
jmp 0x41fe0b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41fe9b
cmp word [ebp - 0x226], 0
je 0x41febc
cmp word [ebp - 0x226], ax
jne 0x41fe9b
cmp word [ebp - 0x224], 0
je 0x41febc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041fcfa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41ff08
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41fe75
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41fef0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41ff15
push 0x41fb2a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00423eb0
add esp, 0x10
jmp 0x41fee5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416002
leave
ret

Function at 0x420d62
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ef04
push 0x42eefc
push str.FlsAlloc
push 0x1f
call fcn.00420c9d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420d96
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d40c]
call esi
jmp 0x420d9c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x420de0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ef14
push 0x42ef0c
push str.FlsGetValue
push 0x21
call fcn.00420c9d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420e17
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d40c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x420e1f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ef1c
push 0x42ef14
push str.FlsSetValue
push 0x22
call fcn.00420c9d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420e59
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d40c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42a4c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a4ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a4ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41bd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x424c80], ecx
inc edx
cmp edx, 0x100
jb 0x41bd02
cmp edx, 0x800
jae 0x41bdd9
lea esp, [esp]
mov eax, dword [edx*4 + 0x424880]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424c80]
inc edx
mov dword [edx*4 + 0x424c7c], eax
cmp edx, 0x800
jb 0x41bdb0
mov eax, 0x41c5e0
mov dword [0x424c7c], eax
mov dword [0x426c80], eax
mov dword [0x424c78], 0x41c500
call fcn.0041c010
test eax, eax
jne 0x41be05
mov dword [0x426c80], 0x41c500
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4031d0
Capabilities:
Query service status

Disassembly:
mov ecx, dword [ecx + 4]
sub esp, 0x1c
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4031f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x403244
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x40320a
push 0x411160
jmp 0x40323f
cmp eax, 1
jne 0x403216
push 0x411648
jmp 0x40323f
cmp eax, 7
jne 0x403222
push 0x411158
jmp 0x40323f
cmp eax, 3
jne 0x40322e
push 0x41114c
jmp 0x40323f
cmp eax, 2
jne 0x40323a
push 0x411140
jmp 0x40323f
push str.
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x403252
mov edx, dword [esp + 8]
mov dword [eax], edx
xor eax, eax
add esp, 0x1c
ret 8

Function at 0x403260
Capabilities:
Query service configuration

Disassembly:
push ecx
push edi
mov edi, ecx
lea eax, [esp + 4]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
push 0x1000
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x40328b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ecx
ret 0x14
mov ecx, dword [esp + 0xc]
push esi
test ecx, ecx
je 0x4032ec
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4032ec
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
cmp eax, 2
jne 0x4032b9
push 0x411180
call sub.MFC42.DLL_CString::operator_1
mov dword [esi], 0
jmp 0x4032ec
cmp eax, 3
jne 0x4032d0
push 0x411178
call sub.MFC42.DLL_CString::operator_1
mov dword [esi], 1
jmp 0x4032ec
cmp eax, 4
jne 0x4032dc
push 0x411170
jmp 0x4032e1
push 0x411168
call sub.MFC42.DLL_CString::operator_1
mov dword [esi], 2
mov ecx, dword [esp + 0x14]
pop esi
test ecx, ecx
je 0x403301
mov edx, dword [edi + 8]
mov eax, dword [edx + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x403315
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x18]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x403329
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x20]
push eax
call sub.MFC42.DLL_CString::operator_1
xor eax, eax
pop edi
pop ecx
ret 0x14

Function at 0x403330
Capabilities:
Query service configuration

Disassembly:
push ecx
push esi
mov esi, ecx
lea eax, [esp + 4]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
push 0x1000
push ecx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
test eax, eax
jne 0x40335d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ecx
ret 4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x403380
Capabilities:
Modify service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40b648
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov edi, eax
test edi, edi
jne 0x4033d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.0040adee
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x411180
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x4033f8
mov eax, 2
jmp 0x403410
mov edx, dword [esp + 0x1c]
push 0x411178
push edx
call ebx
add esp, 8
neg eax
sbb eax, eax
neg eax
add eax, 3
push 0
push 0
push 0
push 0
push 0
push 0
or ebx, 0xffffffff
push 0
push ebx
push eax
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x40345d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x14], ebx
call fcn.0040adee
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
push edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.0040adee
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4

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

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x403506
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x1c
ret 4
cmp dword [esp + 8], 1
je 0x40353a
mov eax, dword [esi + 4]
lea edx, [esp + 4]
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40352f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x1c
ret 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x403555
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x1c
ret 4
xor eax, eax
pop esi
add esp, 0x1c
ret 4
Function at 0x4029b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 9], 0
mov dword [ebp - 4], 0x2a
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00403630
add esp, 4
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
cmp dword [ebp - 8], 0xffffffff
je 0x402b47
mov dword [ebp - 0x1c], 0
jmp 0x402a51
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 0xc]
jae 0x402b2d
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp - 0x15], cl
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
movsx edx, byte [ebp + 0x14]
movsx eax, byte [ebp - 0x15]
sub eax, edx
mov byte [ebp - 0x15], al
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
movsx ecx, byte [ebp - 0x15]
sub ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x15], cl
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
cmp dword [ebp - 0x1c], 0x2f0
jbe 0x402aed
cmp dword [ebp - 0x1c], 0x2ff
jae 0x402aed
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
call fcn.0040363a
mov byte [ebp - 0x15], al
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
push 0
lea edx, [ebp - 0x10]
push edx
push 1
lea eax, [ebp - 0x15]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
jmp 0x402a48
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x402b47
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
mov byte [ebp - 9], 1
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x403310
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
mov byte [ebp - 0x48], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x47]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xc8], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xc7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0x7f
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
lea edx, [ebp - 0xc8]
push edx
movzx eax, byte [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.004030c0
add esp, 0xc
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
lea edx, [ebp - 0x48]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
cmp dword [ebp - 4], 0
je 0x4033f7
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
jmp 0x40348a
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
lea eax, [ebp - 0x48]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x403447
cmp dword [ebp - 0x118], 0xb7
je 0x403457
jmp 0x403467
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
jmp 0x403477
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
jmp 0x40348a
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
jmp 0x40348a
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
mov eax, dword [ebp - 4]
jmp 0x4034b2
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 0xd4
mov al, 0x98
mov al, 0x37
mov al, 0x16
mov al, 0x38
mov al, 0xb1
mov al, 0x85
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret