joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4169f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
xor bl, bl
push 0
push esi
mov byte [esp + 0x23], bl
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebp
cmp dword [esp + 0x14], 4
jne 0x416ab6
mov eax, dword [esp + 0x1c]
cmp al, 0x52
jne 0x416a51
cmp ah, 0x49
jne 0x416a51
mov cl, byte [esp + 0x1e]
mov al, 0x46
cmp cl, al
jne 0x416a51
cmp byte [esp + 0x1f], al
jne 0x416a51
mov bl, 1
push 0
push 0
push 0x18
push esi
call edi
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x24]
push 4
push eax
push esi
call ebp
cmp dword [esp + 0x14], 4
jne 0x416ab6
mov eax, dword [esp + 0x1c]
cmp al, 0x61
jne 0x416a92
cmp ah, 0x76
jne 0x416a92
cmp byte [esp + 0x1e], 0x69
jne 0x416a92
cmp byte [esp + 0x1f], 0x68
jne 0x416a92
mov byte [esp + 0x13], 1
push 0
push 0
push 0
push esi
call edi
test bl, bl
je 0x416ab6
mov al, byte [esp + 0x13]
test al, al
je 0x416ab6
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 8
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x419f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ea26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
or edi, 0xffffffff
xor ebx, ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
push 0x2c
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x419f66
push 0x7d000
mov ecx, eax
call fcn.004071a0
jmp 0x419f68
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x18], edi
mov dword [esi + 4], eax
jne 0x419f89
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x419f9e
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esi], eax
jmp 0x419fa4
mov dword [esi], 0x7a1200
push 0x2c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov dword [esp + 0x18], 1
je 0x419fca
mov ecx, dword [esi]
push ecx
mov ecx, eax
call fcn.004071a0
jmp 0x419fcc
xor eax, eax
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x419fec
mov dword [esi + 8], ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x41b8e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x80
mov al, 0x6c
push esi
mov byte [esp + 0xe], al
mov byte [esp + 0xf], al
lea eax, [esp + 4]
push edi
mov esi, ecx
push eax
mov byte [esp + 0xc], 0x77
mov byte [esp + 0xd], 0x6e
mov byte [esp + 0xe], 0x61
mov byte [esp + 0xf], 0x73
mov byte [esp + 0x10], 0x70
mov byte [esp + 0x11], 0x69
mov byte [esp + 0x12], 0x33
mov byte [esp + 0x13], 0x32
mov byte [esp + 0x14], 0x2e
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x18], eax
jne 0x41b954
mov ecx, esi
mov edi, 0x80900003
call fcn.0041ba70
mov eax, edi
pop edi
pop esi
add esp, 0x80
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov cl, 0x74
mov byte [esp + 0xa], cl
mov byte [esp + 0x17], cl
lea ecx, [esp + 8]
push ebx
mov bl, 0x53
push ecx
push eax
mov byte [esp + 0x14], 0x47
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x17], 0x41
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], 0x50
mov byte [esp + 0x1a], 0x49
mov byte [esp + 0x1b], 0x33
mov byte [esp + 0x1c], 0x32
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 0x75
mov byte [esp + 0x1f], 0x70
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x72
mov byte [esp + 0x24], 0x49
mov byte [esp + 0x25], 0x6e
mov byte [esp + 0x26], 0x66
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0
call edi
mov dword [esi + 0x1c], eax
mov al, 0x6d
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov eax, dword [esi + 0x18]
lea edx, [esp + 0xc]
push edx
push eax
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x64
mov byte [esp + 0x18], 0x41
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x50
mov byte [esp + 0x1b], 0x49
mov byte [esp + 0x1c], 0x33
mov byte [esp + 0x1d], 0x32
mov byte [esp + 0x1e], 0x43
mov byte [esp + 0x1f], 0x6f
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x6e
mov byte [esp + 0x24], 0x64
mov byte [esp + 0x25], 0
call edi
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
test ecx, ecx
pop ebx
je 0x41ba4c
test eax, eax
je 0x41ba4c
pop edi
xor eax, eax
pop esi
add esp, 0x80
ret
mov ecx, esi
mov edi, 0x80900014
call fcn.0041ba70
mov eax, edi
pop edi
pop esi
add esp, 0x80
ret
Function at 0x41c590
Capabilities:
Get disk information

Disassembly:
sub esp, 0x70
push ebx
mov ebx, ecx
push ebp
push esi
lea eax, [ebx + 0x18]
push edi
push eax
mov dword [esp + 0x18], ebx
mov dword [ebx], 0x420254
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, ebx
call fcn.0041b330
mov esi, dword [esp + 0x84]
mov byte [esp + 0x10], 0
mov dword [ebx + 0x30], esi
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x24]
mov ebp, edi
and ebp, 0xff
lea ecx, [ebp + 0x41]
push ecx
push 0x42433c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x41c724
push edi
call fcn.0041cc20
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x41c724
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push 8
push edx
push 0
push 0
push 0x41018
push edi
mov dword [esp + 0x3c], 8
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x10]
test ebx, ebx
mov byte [esi], al
je 0x41c657
mov cl, byte [esp + 0x20]
mov dl, byte [esp + 0x22]
mov byte [esi + 1], cl
mov byte [esi + 2], dl
jmp 0x41c65f
mov byte [esi + 1], 0
mov byte [esi + 2], 0
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push 0x3c
push ecx
mov ecx, dword [esp + 0x1c]
push edi
mov byte [esi + 4], 5
mov ebx, 1
call fcn.0041be30
test eax, eax
jge 0x41c69e
lea edx, [esp + 0x44]
push 0x24
push edx
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.0041be30
test eax, eax
jl 0x41c752
xor ebx, ebx
mov edx, dword [esp + 0x84]
lea edi, [ebp + ebp*2]
shl edi, 4
add edi, edx
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x41c6c4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0xffffffff
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [esp + 0x4c]
push 8
lea ecx, [esi + 0xc]
push eax
push ecx
call edi
lea edx, [esp + 0x60]
push 0x10
lea eax, [esi + 0x15]
push edx
push eax
mov byte [esi + 0x14], 0
call edi
lea ecx, [esp + 0x7c]
push 4
lea edx, [esi + 0x26]
push ecx
push edx
mov byte [esi + 0x25], 0
call edi
add esp, 0x24
cmp ebx, 1
mov byte [esi + 0x2a], 0
jne 0x41c71a
mov eax, dword [esp + 0x7c]
xor ecx, ecx
xor dx, dx
mov ch, al
mov dl, ah
or ecx, edx
mov word [esi + 0x2c], cx
jmp 0x41c720
mov word [esi + 0x2c], pe_nt_image_headers32
mov ebx, dword [esp + 0x14]
mov al, byte [esp + 0x10]
add esi, 0x30
inc al
cmp al, 0x1a
mov byte [esp + 0x10], al
jb 0x41c5c3
mov ecx, dword [esp + 0x88]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword [ecx], 0
pop ebx
add esp, 0x70
ret 8
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x41c768
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
mov eax, dword [esp + 0x88]
mov dword [eax], 0x80004005
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
Function at 0x41cc20
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1d8
and eax, 0xff
lea ecx, [esp + 0x20]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea ebx, [eax + 0x41]
push esi
push ebx
push 0x424388
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0xe0]
lea eax, [esp + 0x2c]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x41cca5
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
push edi
lea ecx, [esp + 0xe4]
push 0x424384
push ecx
call esi
add esp, 8
push 0x424384
push 0
mov edi, eax
call esi
add esp, 8
test eax, eax
jne 0x41cc80
push edi
lea edx, [esp + 0x14]
push 0x42437c
push edx
call ebp
add esp, 0xc
pop edi
jmp 0x41ccb5
push ebx
lea eax, [esp + 0x10]
push 0x424334
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41ccd6
mov dword [esp + 0x50], 5
jmp 0x41cce4
mov eax, dword [esp + 0x50]
cmp eax, 4
mov eax, SysReAllocString
jbe 0x41cce9
mov eax, 0xc0000000
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x20]
push eax
push edx
call esi
cmp eax, 0xffffffff
jne 0x41cd50
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x20]
push SysReAllocString
push eax
call esi
cmp eax, 0xffffffff
jne 0x41cd50
push ebx
lea ecx, [esp + 0x10]
push 0x424334
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0xc]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push edx
call esi
pop esi
pop ebp
pop ebx
add esp, 0x1d8
ret
Function at 0x41cd60
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry key

Disassembly:
sub esp, 0x70
push esi
mov al, 0x6e
mov esi, ecx
mov byte [esp + 0x2a], al
mov byte [esp + 0x31], al
mov byte [esp + 0x38], al
mov cl, 0x61
lea eax, [esp + 8]
mov byte [esp + 0x30], cl
mov byte [esp + 0x32], cl
push eax
push 0x20019
lea ecx, [esp + 0x30]
push 0
mov dl, 0x67
push ecx
push reloc.OLEAUT32.dll_SysStringLen
mov byte [esp + 0x3c], 0x43
mov byte [esp + 0x3d], 0x6f
mov byte [esp + 0x3f], 0x66
mov byte [esp + 0x40], 0x69
mov byte [esp + 0x41], dl
mov byte [esp + 0x42], 0x20
mov byte [esp + 0x43], 0x4d
mov byte [esp + 0x47], dl
mov byte [esp + 0x48], 0x65
mov byte [esp + 0x49], 0x72
mov byte [esp + 0x4a], 0x5c
mov byte [esp + 0x4b], 0x45
mov byte [esp + 0x4d], 0x75
mov byte [esp + 0x4e], 0x6d
mov byte [esp + 0x4f], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ceba
push ebp
push edi
lea edx, [esp + 0x14]
xor edi, edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
mov edx, dword [esp + 0x14]
push edi
push edi
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x2c]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x13
call ebp
test eax, eax
jne 0x41cea4
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x54]
push 0x42438c
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x4c]
mov ecx, esi
push 0x425804
push pe_nt_image_headers32
push 0x425704
push eax
call fcn.0041ced0
test eax, eax
jl 0x41ce79
mov ecx, dword [esp + 0x84]
push 0x425804
push ecx
push 0x425704
mov ecx, esi
call fcn.0041cf70
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
inc edi
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x13
call ebp
test eax, eax
je 0x41ce28
pop ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebp
pop esi
add esp, 0x70
ret 4
mov eax, esi
pop esi
add esp, 0x70
ret 4
Function at 0x41d300
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
push esi
lea eax, [esp + 4]
push edi
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x11c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41d356
jl 0x41d3c6
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
add esp, 0x108
ret 0x14
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x11c]
cmp eax, ecx
jne 0x41d3c1
cmp eax, 1
je 0x41d374
cmp eax, 2
jbe 0x41d3c1
cmp eax, 4
ja 0x41d3c1
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x120]
mov ecx, eax
push ebx
mov ebx, ecx
lea esi, [esp + 0x14]
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x124], eax
jb 0x41d3c1
mov ecx, eax
mov edi, edx
mov edx, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x108
ret 0x14
mov eax, 0x8007000d
pop edi
pop esi
add esp, 0x108
ret 0x14

Function at 0x41dbb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41dbdb
mov eax, 0x80900006
add esp, 0x9c
ret 8
cmp dword [esp + 0x18], 2
jne 0x41dbf0
cmp dword [esp + 0xc], 5
ja 0x41dbf0
cmp dword [esp + 0x10], 1
jb 0x41dc5a
mov eax, dword [esp + 0xa4]
mov dword [esp], 0
mov cl, byte [esp]
push 0
mov dl, byte [eax + 0x32]
xor dl, cl
and dl, 0xf
xor dl, cl
mov cl, byte [eax + 0x36]
and dl, 0x7f
mov byte [esp + 5], cl
mov ecx, dword [eax + 0xc]
mov byte [esp + 4], dl
lea edx, [esp + 8]
push edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0xac]
push edx
lea eax, [esp + 0x10]
push 4
push eax
push 0x24054
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x41dc54
xor eax, eax
add esp, 0x9c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80900018
add esp, 0x9c
ret 8
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4

Function at 0x401637
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4016a0
cmp dword [ebp + 0x10], 1
je 0x401678
cmp dword [ebp + 0x10], 2
je 0x401678
push 0xd
pop eax
jmp 0x4016a0
mov eax, dword [ebp - 4]
test edi, edi
je 0x40169a
test eax, eax
je 0x401695
test al, 1
jne 0x401673
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40169a
jmp 0x401673
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x401717
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
call fcn.004016a6
test eax, eax
je 0x40172e
xor eax, eax
inc eax
leave
ret
push ebx
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
jne 0x401746
xor eax, eax
jmp 0x4017a4
push edi
mov edi, 0x208
push edi
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x4017a1
cmp eax, edi
je 0x4017a1
push 0x4283d8
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x410]
push eax
push esi
push 2
push 0x10
push 2
mov eax, 0x433e20
push eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, esi
jne 0x4017a8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
xor eax, eax
inc eax
jmp 0x4017a3
Function at 0x4017b9
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
jne 0x4017d7
xor eax, eax
jmp 0x4017f9
push esi
push 0x10020
push 0x433e20
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
jne 0x4017fd
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x401838
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x401838
cmp eax, 0x425
jne 0x401828
cmp dword [ebp - 0x18], 3
je 0x401838
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
jmp 0x4017f8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
jmp 0x401828

Function at 0x401843
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x401866
xor al, al
jmp 0x4018c6
push edi
push esi
call fcn.00411c7f
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x401878
xor al, al
jmp 0x4018c5
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4018bc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4283ec
push edi
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4018bc
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp + 0xc]
xor esi, esi
or edx, esi
mov dword [eax], ecx
mov dword [eax + 4], edx
mov bl, 1
push edi
call fcn.00412857
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40192d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
push edi
xor edi, edi
cmp dword [0x434028], edi
je 0x401a48
push esi
mov esi, 0x433be8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x401950
sub eax, edx
sar eax, 1
je 0x401a47
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.00412d47
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x414]
push eax
movzx eax, word [ebp - 2]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
push 0x4283f0
lea eax, [ebp - 0xc14]
push 0x400
push eax
call fcn.00412ba0
add esp, 0x2c
push edi
push edi
cmp dword [0x434048], edi
jne 0x4019f5
push 2
push edi
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [0x434048], 1
jmp 0x401a13
push 3
push edi
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push edi
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x401a1c
sub eax, edx
push edi
sar eax, 1
lea ecx, [ebp - 0x14]
push ecx
add eax, eax
push eax
lea eax, [ebp - 0xc14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
leave
ret

Function at 0x401a86
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x433be4]
test eax, eax
je 0x401ab9
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401aad
push 1
push dword [0x433be4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x433be4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x402b7a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor esi, esi
test eax, eax
je 0x402bcb
push esi
push esi
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalOSSProxyUpdateAllProcesses
lea eax, [ebp - 0x20]
push esi
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x433be0], eax
cmp dword [0x433be0], esi
je 0x402bea
push esi
push esi
push esi
push 0x401a4b
push esi
push esi
call fcn.0041374c
add esp, 0x18
mov dword [0x433be4], eax
pop esi
leave
ret
Function at 0x40555f
Capabilities:
Get session information

Disassembly:
mov eax, 0x4262fa
call fcn.0041362c
sub esp, 0xc
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
push dword [ebp + 8]
xor edi, edi
push edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x4055c9
push esi
push 0x434098
lea ecx, [ebp - 0x14]
call fcn.00402c26
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.IsSessionActive__call_to_WtsQuerySessionInformation_failed__GetLastError___d
push eax
call fcn.00404d1d
mov esi, dword [ebp - 0x14]
push esi
call fcn.0040192d
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.004018ca
pop esi
jmp 0x4055d5
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ecx], edi
sete al
mov edi, eax
push dword [ebp - 0x10]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x406429
Capabilities:
Get session information
Get session user name

Disassembly:
mov eax, 0x4263ec
call fcn.0041362c
sub esp, 0x10
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push str.Unknown
mov ecx, ebx
call fcn.00405dca
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 5
push dword [ebp + 0xc]
xor esi, esi
inc esi
push 0
mov dword [ebp - 0x18], esi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x4064c4
push 0x434098
lea ecx, [ebp - 0x10]
call fcn.00402c26
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x40649b
push str.NULL
mov ecx, ebx
call fcn.00404c57
jmp 0x4064b7
call esi
push eax
lea eax, [ebp - 0x10]
push str.GetUserName:_WTSQuerySessionInformation_failed_with_::GetLastError___d
push eax
call fcn.00404d1d
push dword [ebp - 0x10]
call fcn.0040192d
add esp, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004018ca
jmp 0x4064ce
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.00404c57
push dword [ebp - 0x14]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret