joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51f224
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc50
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc50], ebx
mov dword [ebp - 0xc48], esi
test ebx, ebx
je 0x51f46f
and dword [ebp - 0xc4c], 0
test esi, esi
jne 0x51f291
push 0x400
lea eax, [ebp - 0xc44]
push esi
push eax
call fcn.00506060
lea eax, [ebp - 0xc44]
push eax
call fcn.005224c4
lea eax, [ebp - 0xc44]
add esp, 0x10
mov dword [ebp - 0xc48], eax
mov esi, eax
push esi
call fcn.00508390
cmp byte [esi + eax - 1], 0x5c
pop ecx
jne 0x51f2a9
mov dword [ebp - 0xc4c], 1
push ebx
call fcn.0051eed8
pop ecx
test eax, eax
je 0x51f46f
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
test edi, edi
jne 0x51f2cb
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x51f2d1
push 0xb
push edi
push ebx
call esi
test eax, eax
jne 0x51f46f
mov ebx, 0x3ff
push ebx
push eax
mov byte [ebp - 0x844], al
lea eax, [ebp - 0x843]
push eax
call fcn.00506060
push ebx
xor ebx, ebx
lea eax, [ebp - 0x443]
push ebx
push eax
mov byte [ebp - 0x444], 0
call fcn.00506060
add esp, 0x18
cmp edi, ebx
je 0x51f375
push edi
call fcn.0051eed8
pop ecx
test eax, eax
je 0x51f36a
push edi
lea eax, [ebp - 0x444]
push str._s.bak
push eax
call fcn.005075df
add esp, 0xc
push 0x5c
push edi
call fcn.00517210
pop ecx
pop ecx
cmp dword [ebp - 0xc4c], ebx
je 0x51f343
inc eax
push eax
push dword [ebp - 0xc48]
lea eax, [ebp - 0x844]
push str._s_s.bak
push eax
call fcn.005075df
add esp, 0x10
push 0xb
lea eax, [ebp - 0x444]
push eax
push edi
call esi
push 0xb
push edi
push dword [ebp - 0xc50]
jmp 0x51f3c8
mov edi, dword [ebp - 0xc50]
push edi
lea eax, [ebp - 0x444]
push str._s.bak
push eax
call fcn.005075df
add esp, 0xc
push 0x5c
push edi
call fcn.00517210
pop ecx
pop ecx
cmp dword [ebp - 0xc4c], ebx
je 0x51f3a3
inc eax
push eax
push dword [ebp - 0xc48]
lea eax, [ebp - 0x844]
push str._s_s.bak
push eax
call fcn.005075df
add esp, 0x10
push 0xb
lea eax, [ebp - 0x444]
push eax
push edi
call esi
cmp byte [ebp - 0x844], bl
je 0x51f46f
cmp byte [ebp - 0x444], bl
je 0x51f46f
lea eax, [ebp - 0x444]
push eax
call fcn.0051eed8
pop ecx
test eax, eax
je 0x51f46f
push 0
call fcn.00506393
push 0x3f
mov edi, eax
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], bl
call fcn.00506060
push edi
lea eax, [ebp - 0x44]
push 0x542aec
push eax
call fcn.005075df
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x844]
push eax
call fcn.005304e0
add esp, 0x24
push 0xb
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x444]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x844]
jne 0x51f465
push str..bak
push eax
call fcn.005304e0
mov eax, ebx
pop ecx
inc ebx
pop ecx
cmp eax, 0xa
jl 0x51f42e
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0051ef04
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506042
leave
ret
Function at 0x51f64d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 0x134], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x51f687
xor eax, eax
jmp 0x51f722
push 0x124
lea eax, [ebp - 0x128]
push esi
push eax
mov dword [ebp - 0x130], esi
call fcn.00506060
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov esi, 0x128
push edi
mov dword [ebp - 0x12c], esi
call sub.KERNEL32.dll_Process32First
jmp 0x51f6f9
push dword [ebp - 0x134]
lea eax, [ebp - 0x108]
push eax
call fcn.00517129
pop ecx
pop ecx
test eax, eax
je 0x51f6ff
push esi
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00506060
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x51f6bc
jmp 0x51f711
mov eax, dword [ebp - 0x124]
mov dword [ebx], eax
mov dword [ebp - 0x130], 1
test edi, edi
je 0x51f71c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506042
leave
ret

Function at 0x51f731
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push 0x10
push 0x64e118
call fcn.005081a0
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
push str.SeDebugPrivilege
call fcn.00523168
pop ecx
mov dword [ebp - 4], edi
push dword [ebp + 8]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x51f77b
xor esi, esi
inc esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x51f77b
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.0051f792
mov eax, dword [ebp - 0x20]
call fcn.005081e5
ret
Function at 0x51f89c
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x53cbed
call fcn.00508093
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00506060
mov dword [ebp - 0x3c], ebx
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00522200
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00523242
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov byte [ebp - 4], 1
mov edi, 0x80
cmp dword [ebp + 0x18], ebx
je 0x51f920
lea ecx, [ebp - 0x2c]
call fcn.0041140e
push ebx
push edi
push 3
push eax
push 3
push SysReAllocString
push dword [ebp + 0x18]
call esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp + 0x1c], ebx
je 0x51f949
lea ecx, [ebp - 0x2c]
call fcn.0041140e
push ebx
push edi
push 4
push eax
push 3
push 0x40000000
push dword [ebp + 0x1c]
call esi
mov edi, eax
mov dword [ebp - 0x14], 1
jmp 0x51f94c
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x80], 0x44
cmp dword [ebp - 0x14], ebx
je 0x51f968
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], 0x100
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp + 0x14]
push ebx
push ebx
or eax, 0x8000000
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x51f9ad
xor esi, esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0047c433
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0052327e
mov eax, esi
call fcn.0050816b
ret
cmp dword [ebp + 0x10], ebx
je 0x51f9c9
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x10], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x51f9df
cmp dword [ebp - 0x10], ebx
je 0x51f9df
push dword [ebp - 0x10]
call esi
cmp edi, 0xffffffff
je 0x51f9eb
cmp edi, ebx
je 0x51f9eb
push edi
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call esi
xor esi, esi
inc esi
jmp 0x51f98e
Function at 0x51fd3d
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x53cbed
call fcn.00508093
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00506060
mov dword [ebp - 0x3c], ebx
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00522200
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00523242
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov byte [ebp - 4], 1
mov edi, 0x80
cmp dword [ebp + 0x14], ebx
je 0x51fdc1
lea ecx, [ebp - 0x2c]
call fcn.0041140e
push ebx
push edi
push 3
push eax
push 3
push SysReAllocString
push dword [ebp + 0x14]
call esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp + 0x18], ebx
je 0x51fdea
lea ecx, [ebp - 0x2c]
call fcn.0041140e
push ebx
push edi
push 4
push eax
push 3
push 0x40000000
push dword [ebp + 0x18]
call esi
mov edi, eax
mov dword [ebp - 0x14], 1
jmp 0x51fded
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x80], 0x44
cmp dword [ebp - 0x14], ebx
je 0x51fe09
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], 0x100
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp + 0x10]
push ebx
push ebx
or eax, 0x8000000
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x51fe4f
or esi, 0xffffffff
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0047c433
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0052327e
mov eax, esi
call fcn.0050816b
ret
cmp dword [ebp - 0x10], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x51fe65
cmp dword [ebp - 0x10], ebx
je 0x51fe65
push dword [ebp - 0x10]
call esi
cmp edi, 0xffffffff
je 0x51fe71
cmp edi, ebx
je 0x51fe71
push edi
call esi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x51fe7f
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x51fe84
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call esi
mov esi, dword [ebp - 0x34]
jmp 0x51fe30

Function at 0x51fe8e
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x53cc69
call fcn.00508093
lea ecx, [ebp - 0x14]
call fcn.00522200
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0052321f
lea ecx, [ebp - 0x1c]
call fcn.00522200
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00523283
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.00523242
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0041140e
push dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 0xb7]
neg esi
lea ecx, [ebp - 0x28]
sbb esi, esi
mov byte [ebp - 4], 1
call fcn.0047c433
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0052329c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0052327e
lea eax, [esi + 1]
call fcn.0050816b
ret
Function at 0x51ff29
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x51ff55
mov dword [ecx], eax
jmp 0x51ff65
cmp eax, 0xffffffff
je 0x51ff65
test eax, eax
je 0x51ff65
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
ret
Function at 0x521859
Capabilities:
Resolve dns

Disassembly:
push 0x548
mov eax, 0x53ce59
call fcn.005080fc
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov al, byte [esi]
mov dword [ebp - 0x4bc], edx
mov ecx, esi
jmp 0x521889
cmp al, 0x30
jl 0x521882
cmp al, 0x39
jle 0x521886
cmp al, 0x2e
jne 0x52189e
inc ecx
mov al, byte [ecx]
test al, al
jne 0x52187a
push esi
push edx
call fcn.005304d0
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x521ac6
push 0x3ff
xor edi, edi
lea eax, [ebp - 0x40f]
push edi
push eax
mov byte [ebp - 0x410], 0
call fcn.00506060
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0052fff0
lea eax, [ebp - 0x410]
push eax
call fcn.00530895
push edi
call fcn.00506393
mov ebx, 0x65eac0
add esp, 0x20
mov ecx, ebx
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4cc], ebx
call fcn.005232b7
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], edi
call fcn.00520645
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x4b4]
push eax
mov ecx, 0x65eab0
mov byte [ebp - 4], 1
call fcn.00520eed
push edi
push 1
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 0
call fcn.00401a20
mov esi, dword [ebp - 0x4b4]
cmp esi, dword [0x65eab4]
je 0x52197d
mov eax, dword [ebp - 0x4c0]
sub eax, dword [esi + 0xa8]
cmp eax, 0x12c
jg 0x52197d
add esi, 0x28
push esi
push dword [ebp - 0x4bc]
call fcn.005304d0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, ebx
call fcn.005232bf
jmp 0x521896
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x4c4], eax
cmp eax, edi
je 0x521ab9
mov dword [ebp - 0x4b8], edi
mov eax, dword [ebp - 0x4c4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x4b8]
cmp dword [eax + ecx], edi
je 0x521ab9
mov eax, dword [eax + ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 2
push 0x53ff08
push eax
mov dword [ebp - 0x4b4], eax
call fcn.00506c21
add esp, 0xc
test eax, eax
je 0x5219f1
push 0x53ff0c
push dword [ebp - 0x4b4]
call fcn.005060e0
pop ecx
pop ecx
test eax, eax
je 0x5219fa
add dword [ebp - 0x4b8], 4
jmp 0x52199e
mov eax, dword [ebp - 0x4c0]
push dword [ebp - 0x4b4]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x4b0]
push eax
call fcn.005304d0
pop ecx
pop ecx
lea eax, [ebp - 0x410]
cmp esi, dword [0x65eab4]
je 0x521a67
push eax
lea ecx, [ebp - 0x42c]
call fcn.00520645
lea eax, [ebp - 0x42c]
push eax
mov ecx, 0x65eab0
mov byte [ebp - 4], 2
call fcn.00521724
push 0x21
pop ecx
mov edi, eax
lea esi, [ebp - 0x4b0]
push 0
rep movsd dword es:[edi], dword [esi]
push 1
lea ecx, [ebp - 0x42c]
call fcn.00401a20
jmp 0x521aa2
push 0x21
pop ecx
mov dword [ebp - 0x554], eax
lea esi, [ebp - 0x4b0]
lea edi, [ebp - 0x550]
rep movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x554]
mov esi, 0x65eab0
push eax
mov ecx, esi
call fcn.005217d7
push eax
lea eax, [ebp - 0x4c8]
push eax
mov ecx, esi
call fcn.005213de
lea eax, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4bc]
call fcn.005304d0
pop ecx
xor edi, edi
pop ecx
inc edi
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.005232bf
mov eax, edi
call fcn.0050817f
ret
Function at 0x521acc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x100]
mov byte [ebp + 0xb], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 1], cl
je 0x521b2b
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
dec dword [ebp + 0x10]
inc byte [ebp + 0xb]
movzx esi, byte [ebp + 0xb]
mov dl, byte [esi + eax]
add byte [ebp - 1], dl
movzx ecx, byte [ebp - 1]
mov bl, byte [ecx + eax]
mov byte [ecx + eax], dl
movzx ecx, bl
movzx edx, dl
add ecx, edx
and ecx, 0xff
mov byte [esi + eax], bl
mov cl, byte [ecx + eax]
xor byte [edi], cl
inc edi
cmp dword [ebp + 0x10], 0
jne 0x521af1
pop edi
pop esi
pop ebx
mov cl, byte [ebp + 0xb]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 1]
mov byte [eax + 0x101], cl
leave
ret

Function at 0x521f11
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x521f50
test eax, eax
je 0x521f50
push 0x1c
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.00506060
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
jmp 0x521f53
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00506042
leave
ret

Function at 0x521f83
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx]
cmp edx, 0xffffffff
je 0x521fbd
test edx, edx
je 0x521fbd
and dword [ebp - 0x20], 0
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
pop edi
jmp 0x521fbf
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506042
leave
ret
Function at 0x521fee
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x418], eax
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x410], ecx
cmp eax, 0xffffffff
je 0x5220e0
xor ebx, ebx
cmp eax, ebx
je 0x5220e0
push 0x3ff
lea eax, [ebp - 0x403]
push ebx
push eax
mov dword [ebp - 0x408], ecx
mov byte [ebp - 0x404], bl
call fcn.00506060
push 0x400
push dword [ebp - 0x40c]
lea eax, [ebp - 0x404]
push eax
call fcn.0052fff0
add esp, 0x18
cmp edi, ebx
jne 0x5220a3
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.0051effa
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x5220e0
push 0x2e
push edi
call fcn.00517210
pop ecx
pop ecx
cmp eax, ebx
je 0x5220a3
mov byte [eax], bl
cmp dword [ebp - 0x410], ebx
jne 0x5220b1
mov dword [ebp - 0x408], edi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x40c]
push 1
push dword [ebp - 0x418]
push dword [ebp - 0x414]
push 0xf01ff
push dword [ebp - 0x408]
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
jmp 0x5220e2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506042
leave
ret 0x14

Function at 0x5222d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x5222fb
xor eax, eax
jmp 0x522378
push 0xc00
lea eax, [ebp - 0xc04]
push 0
push eax
mov dword [ebp - 0xc10], 1
call fcn.00506060
and dword [ebp - 0xc08], 0
add esp, 0xc
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xc10]
push eax
push 0
push ebx
push dword [edi]
mov dword [ebp - 0xc0c], 0xbff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52236f
push dword [ebp + 0x10]
lea eax, [ebp - 0xc04]
push eax
push esi
mov dword [ebp - 0xc08], 1
call fcn.0052fff0
add esp, 0xc
jmp 0x522372
mov byte [esi], 0
mov eax, dword [ebp - 0xc08]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506042
leave
ret 0xc

Function at 0x5224c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
mov esi, 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
ja 0x522500
test eax, eax
je 0x522500
lea eax, [ebp - 0x404]
push eax
jmp 0x522505
push str.c:_temp
push edi
call fcn.005304d0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00506042
leave
ret
Function at 0x52257c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00506060
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
inc ecx
test eax, eax
je 0x522640
cmp dword [ebp - 0x9c], 5
jne 0x5225e8
cmp dword [ebp - 0x98], ecx
jne 0x5225d9
push 3
pop eax
jmp 0x522642
push 2
pop eax
cmp dword [ebp - 0x98], eax
jne 0x522637
push 4
jmp 0x5225d6
cmp dword [ebp - 0x9c], 6
jne 0x522640
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x52260b
cmp byte [ebp - 6], 1
setne al
dec eax
and eax, 0xfffffffd
add eax, 8
jmp 0x522642
cmp eax, ecx
jne 0x52261d
xor eax, eax
cmp byte [ebp - 6], cl
setne al
lea eax, [eax + eax + 6]
jmp 0x522642
cmp eax, 2
jne 0x522630
xor eax, eax
cmp byte [ebp - 6], cl
setne al
lea eax, [eax + eax + 7]
jmp 0x522642
cmp eax, 3
jne 0x522640
jmp 0x522622
cmp dword [ebp - 0x98], 0
je 0x522642
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506042
leave
ret

Function at 0x52f9a5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.00506060
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x52f9e8
xor eax, eax
jmp 0x52f9fa
push 0
call fcn.00506393
push eax
call fcn.005308f2
pop ecx
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506042
leave
ret
Function at 0x41592a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x415962
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x415950
mov al, 1
jmp 0x4159c1
cmp dword [ebx + 0x54], ecx
jne 0x415959
mov al, 2
jmp 0x4159c1
cmp dword [ebx + 0x7c], ecx
jne 0x4159c1
mov al, 3
jmp 0x4159c1
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x415977
mov al, 4
jmp 0x4159c1
cmp ecx, 5
jne 0x415997
cmp ebx, 0
jne 0x415985
mov al, 5
jmp 0x4159c1
cmp ebx, 1
jne 0x41598e
mov al, 6
jmp 0x4159c1
cmp ebx, 2
jne 0x415997
mov al, 7
jmp 0x4159c1
cmp ecx, 6
jne 0x4159bf
cmp ebx, 0
jne 0x4159a5
mov al, 8
jmp 0x4159c1
cmp ebx, 1
jne 0x4159ac
mov al, 9
cmp ebx, 2
jne 0x4159b3
mov al, 0xa
cmp ebx, 3
jne 0x4159ba
mov al, 0xb
cmp ebx, 4
jne 0x4159c1
mov al, 0xc
pop ebx
leave
ret
Function at 0x46b891
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0046ba41
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x46b98f
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x46b932
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x46b975
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x46b949
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x46b964
test al, 0x40
je 0x46b95b
mov ecx, dword [edi + 0x20]
jmp 0x46b962
test al, 0x80
je 0x46b975
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x46b975
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x46b901
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret