joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f5bc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44f767
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f748
mov dl, 1
mov eax, dword [0x4117f8]
call fcn.004030fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e64
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f737
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d5c8
test al, al
je 0x44f72a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44f778
lea eax, [ebp - 0x254]
call fcn.00408944
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f72a
xor eax, eax
push ebp
push 0x44f723
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44f7b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f70c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040d4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44f70c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f72a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f62d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004152d4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f76e
lea eax, [ebp - 0x260]
call fcn.00403e64
ret

Function at 0x45009c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x456bb0]
cmp byte [eax + 0xa5], 0
jne 0x45010d
cmp dword [0x456bc8], 0
jne 0x4500ce
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450058
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x456bc8], eax
cmp dword [0x456bc4], 0
jne 0x4500e9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x456bc4], eax
cmp dword [0x456bcc], 0
jne 0x45010d
push esp
push 0
push 0
push 0x44fffc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x456bcc], eax
pop edx
ret
Function at 0x450204
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45021b
add esp, 0xfffffff0
call fcn.00403438
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190e4
mov eax, dword [0x454fc4]
cmp word [eax + 2], 0
jne 0x450243
mov eax, dword [0x454fc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045196c
mov eax, dword [0x45506c]
cmp word [eax + 2], 0
jne 0x45025d
mov eax, dword [0x45506c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451b64
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4113dc]
call fcn.004030fc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4113dc]
call fcn.004030fc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b2c0]
call fcn.00420f88
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4503e4
mov eax, dword [0x454eec]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421358
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452104
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x454eec]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bf80
test eax, eax
je 0x450352
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408338
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bfa8
test eax, eax
je 0x450366
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040d4
mov eax, dword [0x454df0]
cmp byte [eax], 0
jne 0x45039a
mov eax, ebx
call fcn.0045050c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004522e0
mov eax, ebx
call fcn.00452ca4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4503da
call fcn.00403490
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45078c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x456bb0]
cmp dword [eax + 0x30], 0
je 0x450836
cmp dword [ebx + 0x94], 0
jne 0x450830
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45071c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450830
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4507f6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450830
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413744
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450805
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451398
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4513cd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f54
jmp 0x4513da
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403eb8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4524bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4524fd
mov eax, esi
call fcn.00438bf4
test al, al
je 0x4524fd
mov eax, dword [ebx + 0x84]
call fcn.004388f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4524fd
push 0
mov eax, dword [ebx + 0x84]
call fcn.004388f0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x488c90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6d000]
push edi
jmp 0x488caa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x488cb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x488ca0
mov eax, 1
add ebx, ebx
jne 0x488cc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x488cb8
jne 0x488cd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x488cb8
xor ecx, ecx
sub eax, 3
jb 0x488ce8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x488d5a
mov ebp, eax
add ebx, ebx
jne 0x488cf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x488d00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x488d24
inc ecx
add ebx, ebx
jne 0x488d10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x488d05
jne 0x488d21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x488d05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x488d44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x488d35
jmp 0x488ca6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x488d44
add edi, ecx
jmp 0x488ca6
pop esi
mov edi, esi
mov ecx, 0xd0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x488d62
cmp byte [edi], 0xc
jne 0x488d62
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 0x488d67
lea edi, [esi + 0x85000]
mov eax, dword [edi]
or eax, eax
je 0x488dd6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x881b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x882d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x488d94
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x882dc]
or eax, eax
je 0x488dd0
mov dword [ebx], eax
add ebx, 4
jmp 0x488db1
call dword [esi + 0x882d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x488e07
cmp al, 0xef
ja 0x488dfa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x488ddc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x488de9
mov ebp, dword [esi + 0x882e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x488e3b
sub esp, 0xffffff80
jmp 0x4265e8
Function at 0x4681ec
Capabilities:
Get common file path
Set current directory

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

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

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

Disassembly:
pushal
call 0x930466
pop ebp
sub ebp, 6
sub ebp, 0x530460
jmp 0x9304c4
jmp 0x9304cd
mov eax, 0x530460
add eax, ebp
add eax, 0x93
mov ecx, 0x632
mov edx, 0xfc6ced2a
xor byte [eax], dl
inc eax
dec ecx
jne 0x9304e4
jmp 0x9304f7
inc eax
push 0x42
sub bh, byte [edx]
sub ch, byte [edx]
inc edx
sub ah, dh
push es
sub ch, byte [ebx - 0x32914a26]
cmc
stosd dword es:[edi], eax
fidiv dword [ebp + 0x19f5cd6e]
ljmp 0x636b

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

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x5ae30862
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x15042d71
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402fc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5274d0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x52b740], 0
jne 0x403129
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.Locala3d0d9cf_ef71_409f_acb2_91dca7237f13__lx_s_vm_init
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR120.dll_sprintf
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4030e9
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403059
cmp dword [0x52b740], 0
jne 0x403057
mov eax, dword [ebp + 8]
push eax
call fcn.00403140
add esp, 4
mov dword [0x52b740], 0xffffffff
jmp 0x403099
cmp dword [ebp + 8], 0
je 0x40308f
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x40308f
push 0x10d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x11
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
add esp, 0x10
mov dword [ebp - 0x114], eax
jmp 0x403099
mov dword [ebp - 0x114], 0x11
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x4030e7
cmp dword [ebp + 8], 0
je 0x4030dd
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x4030dd
push 0x10d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x12
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
add esp, 0x10
mov dword [ebp - 0x118], eax
jmp 0x4030e7
mov dword [ebp - 0x118], 0x12
jmp 0x403129
cmp dword [ebp + 8], 0
je 0x40311f
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x40311f
push 0x10d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call ecx
add esp, 0x10
mov dword [ebp - 0x11c], eax
jmp 0x403129
mov dword [ebp - 0x11c], 0x10
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00431a84
mov esp, ebp
pop ebp
ret
Function at 0x404730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4047d9
cmp dword [ebp + 0x14], 0
je 0x404793
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 4], 0
je 0x404793
push 0xaf
push 2
push 0x19
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 4]
call edx
add esp, 0x10
mov dword [ebp - 0x10], eax
jmp 0x40479a
mov dword [ebp - 0x10], 0x19
cmp dword [ebp + 0x14], 0
je 0x4047cb
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 0
je 0x4047cb
push 0xb0
push str.Not_able_to_write_to_the_named_pipe
push 0xc
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x4047d2
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 8], 2
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4047e0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5274d0]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x130], 0
push 0x103
push 0
lea eax, [ebp - 0x12f]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
call fcn.00404f40
add esp, 4
test eax, eax
jne 0x404843
mov eax, dword [ebp - 0x138]
jmp 0x4048bc
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4048b6
push 4
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4048ac
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4048a2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 4
jne 0x4048a2
mov dword [ebp - 0x138], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00431a84
mov esp, ebp
pop ebp
ret
Function at 0x405350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5274d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 3
mov byte [ebp - 0x218], 0
push 0x1ff
push 0
lea eax, [ebp - 0x217]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x220], 0
mov dword [ebp - 8], str.___VMAttrs
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCR120.dll_strlen
add esp, 4
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x220]
push edx
push 0x200
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405459
cmp dword [ebp + 0x18], 0
je 0x40540c
mov edx, dword [ebp + 0x18]
cmp dword [edx + 4], 0
je 0x40540c
push 0x227
push 2
push 0x19
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 4]
call eax
add esp, 0x10
mov dword [ebp - 0x228], eax
jmp 0x405416
mov dword [ebp - 0x228], 0x19
cmp dword [ebp + 0x18], 0
je 0x40544a
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 8], 0
je 0x40544a
push 0x228
push str.Not_able_to_read_message_from_license_service
push 0xc
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x22c], eax
jmp 0x405454
mov dword [ebp - 0x22c], 0xc
jmp 0x40559a
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00405300
add esp, 4
push eax
call fcn.00405740
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40548d
mov dword [ebp - 0x10], 5
jmp 0x40559a
mov eax, dword [ebp - 0x220]
mov byte [ebp + eax - 0x218], 0
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x218]
push eax
call sub.MSVCR120.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4054c5
mov dword [ebp - 0x10], 4
jmp 0x40559a
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp + ecx - 0x218]
mov dword [ebp - 0x224], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.004055b0
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x405506
mov dword [ebp - 0x10], 4
jmp 0x40559a
cmp dword [ebp - 0xc], 1
je 0x405518
mov dword [ebp - 0x10], 6
jmp 0x40559a
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x224]
push eax
call fcn.004055b0
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x405543
mov dword [ebp - 0x10], 4
jmp 0x40559a
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00405300
add esp, 4
cmp dword [ebp - 4], eax
je 0x40555d
mov dword [ebp - 0x10], 2
jmp 0x40559a
mov edx, dword [ebp - 0x224]
push edx
call sub.MSVCR120.dll_strlen
add esp, 4
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
push 0x200
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCR120.dll_strncpy_s
add esp, 0x10
mov dword [ebp - 0x10], 0
xor eax, eax
jne 0x4053b8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431a84
mov esp, ebp
pop ebp
ret
Function at 0x405630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 3
shr eax, 2
mov dword [ebp - 0x18], eax
push 4
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCR120.dll_calloc
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x405665
jmp 0x405733
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], 0
jmp 0x405691
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x18]
jae 0x4056bc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
xor ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
jmp 0x405688
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 9], 0
jmp 0x4056ec
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
shr edx, 2
mov dword [ebp - 0x1c], edx
movzx eax, byte [ebp - 9]
add eax, 8
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jae 0x405718
movzx ecx, byte [ebp - 9]
and ecx, 0x1f
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + edx*4]
shr edx, cl
movzx eax, dl
and eax, 0xff
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov byte [ecx], al
jmp 0x4056d0
mov edx, dword [ebp - 0x14]
push edx
call sub.MSVCR120.dll_free
add esp, 4
mov dword [ebp - 4], 1
xor eax, eax
jne 0x40563d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 3
shr eax, 2
mov dword [ebp - 0x18], eax
push 4
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCR120.dll_calloc
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x405775
jmp 0x40584a
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
jmp 0x4057a1
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x18]
jae 0x4057d2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
xor ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
jmp 0x405798
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 9], 0
jmp 0x405802
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 2
mov dword [ebp - 0x1c], eax
movzx ecx, byte [ebp - 9]
add ecx, 8
mov byte [ebp - 9], cl
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jae 0x40582f
movzx ecx, byte [ebp - 9]
and ecx, 0x1f
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4]
shr eax, cl
movzx ecx, al
and ecx, 0xff
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov byte [edx], cl
jmp 0x4057e6
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCR120.dll_free
add esp, 4
mov dword [ebp - 4], 1
xor ecx, ecx
jne 0x40574d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret