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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x72c
push ebx
push esi
push edi
push dword [ebp + 0x10]
call fcn.004038aa
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.004038bf
lea eax, [ebp - 0x72c]
push eax
push dword [ebp + 8]
call fcn.004038bf
add esp, 0x14
push 0x70
pop ebx
lea esi, [ebp - 0x71c]
mov edi, ebx
lea eax, [esi - 0x10]
push esi
push eax
call fcn.004038bf
push esi
call fcn.00403872
add esp, 0xc
add esi, 0x10
dec edi
jne 0x403937
movsx edx, word [0x44d400]
xor esi, esi
shl edx, 2
mov edi, dword [ebp + 0x10]
movsx eax, si
mov ecx, eax
add eax, edx
mov eax, dword [ebp + eax*4 - 0x72c]
shl ecx, 2
and eax, dword [ebp + ecx - 0x1c]
inc esi
mov dword [ecx + edi], eax
cmp si, 4
jb 0x40395c
mov dword [ebp - 8], 0x44d5c8
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00403872
and dword [ebp - 4], 0
pop ecx
mov ecx, dword [ebp - 8]
movzx eax, word [ecx - 0x1c6]
movzx ecx, word [ecx]
movsx esi, cx
movsx edi, ax
shl esi, 2
shl edi, 2
movsx eax, word [ebp - 4]
mov edx, dword [ebp + 0x10]
lea ebx, [esi + eax]
mov ebx, dword [ebp + ebx*4 - 0x72c]
mov ecx, eax
add eax, edi
xor ebx, dword [ebp + eax*4 - 0x72c]
shl ecx, 2
and ebx, dword [ebp + ecx - 0x1c]
add edx, ecx
xor dword [edx], ebx
inc dword [ebp - 4]
cmp word [ebp - 4], 4
jb 0x4039af
add dword [ebp - 8], 2
dec dword [ebp - 0xc]
jne 0x403988
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ea7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push ebx
xor ecx, ecx
push esi
inc ecx
push edi
mov eax, ecx
xor edi, edi
mov esi, 0xe3
cwde
mov word [ebp + eax*2 - 0x1d8], di
add eax, eax
cdq
mov ebx, esi
idiv ebx
inc edi
cmp di, 0x71
movzx eax, dx
jl 0x403ebf
cmp ax, cx
jne 0x403f01
mov eax, 0xe2
xor edi, edi
cwde
mov word [ebp + eax*2 - 0x1d8], di
add eax, eax
cdq
mov ebx, esi
idiv ebx
inc edi
cmp di, 0x71
movzx eax, dx
jl 0x403ee5
jmp 0x403f22
push 0x71
pop edi
cwde
mov word [ebp + eax*2 - 0x1d8], di
add eax, eax
cdq
mov ebx, esi
idiv ebx
inc edi
movzx eax, dx
mov edx, 0xe2
cmp di, dx
jl 0x403f04
mov eax, ecx
mov word [0x44d400], ax
or eax, 0xffffffff
mov word [0x44d5c6], ax
mov edi, ecx
mov dword [ebp - 8], 0x70
lea eax, [ecx + ecx]
cdq
mov ecx, esi
idiv ecx
movzx eax, dx
movsx ecx, ax
lea eax, [ecx + ecx]
mov edx, eax
neg edx
mov bx, word [ebp + edx - 0x10]
mov dx, word [ebp + edx - 0x14]
mov word [ebp - 0xe], dx
mov dx, word [ebp + eax - 0x1da]
mov ax, word [ebp + eax - 0x1d6]
mov word [ebp - 0xc], dx
xor edx, edx
mov word [ebp - 0x10], bx
mov word [ebp - 0xa], ax
mov dword [ebp - 4], edx
movsx eax, word [ebp - 4]
movzx eax, word [ebp + eax*2 - 0x10]
cmp ax, 0x71
jge 0x403fa3
movsx ebx, dx
imul ebx, ebx, 0xe3
add ebx, edi
mov word [ebx*2 + 0x44d400], ax
inc edx
inc dword [ebp - 4]
cmp dx, 2
jl 0x403f80
inc edi
dec dword [ebp - 8]
jne 0x403f3c
push 0x70
pop ebx
xor eax, eax
push 0x10
mov word [0x44d3e0], ax
pop eax
mov edx, eax
mov edi, 0xffff0000
mov esi, edi
and esi, ebx
je 0x403fd6
add word [0x44d3e0], dx
mov ebx, esi
cdq
sub eax, edx
sar eax, 1
movzx edx, ax
movsx eax, dx
mov esi, edi
mov ecx, eax
shr esi, cl
xor edi, esi
test dx, dx
jne 0x403fc7
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403ff3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.004038bf
lea eax, [ebp - 0x10]
push eax
call fcn.0040383c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.004038fa
mov esi, dword [ebp + 0xc]
add esp, 0x18
push dword [ebp + 0x10]
xor edi, edi
cmp word [esi], di
je 0x404042
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004038fa
add esp, 0xc
jmp 0x404048
call fcn.004038aa
pop ecx
mov edx, dword [ebp + 0x10]
movsx eax, di
mov ecx, eax
mov eax, dword [esi + eax*4 + 0x14]
shl ecx, 2
xor eax, dword [ebp + ecx - 0x20]
add edx, ecx
xor dword [edx], eax
inc edi
cmp di, 4
jb 0x404048
pop edi
pop esi
leave
ret
Function at 0x10061d2
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x101b0f4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x100627b
push esi
mov esi, dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetTokenInformation]
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0
push 1
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call fcn.01012c3a
mov edi, eax
pop ecx
test edi, edi
je 0x1006244
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 1
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1006251
push edi
call fcn.01012c4a
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1006279
lea eax, [ebp - 0x6c]
push eax
call fcn.01005bb6
add eax, 4
push eax
push dword [edi]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.01005af2
push edi
call fcn.01012c4a
pop ecx
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0101367b
leave
ret
Function at 0x100cd36
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
mov esi, ecx
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x68], eax
call ebx
mov dword [esi + 0x6c], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x100ca6d
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
pop edi
mov dword [esi + 0x64], eax
pop esi
pop ebx
leave
ret

Function at 0x100ef5c
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
xor esi, esi
push esi
push esi
push 1
push esi
mov edi, ecx
call ebx
push esi
push esi
push esi
push esi
mov dword [edi + 0x4c], eax
call ebx
push esi
push esi
push esi
push esi
mov dword [edi + 0x44], eax
call ebx
mov dword [edi + 0x48], eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x100ef17
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
mov dword [edi + 0x40], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10105e2
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101b0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x218], ecx
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x220]
xor esi, esi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x10106e0
lea eax, [ebp - 0x224]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push edi
mov dword [ebp - 0x214], esi
call sub.KERNEL32.dll_K32EnumProcessModules
cmp dword [ebp - 0x214], esi
je 0x10106d9
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
push edi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
jbe 0x10106d9
lea eax, [ebp - 0x210]
push eax
mov ecx, ebx
call fcn.0100b122
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
call fcn.0100b122
mov ecx, dword [ebp - 0x21c]
push 0x10032b4
call fcn.0100b122
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
push edi
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
jbe 0x10106d9
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
call fcn.0100b122
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
test eax, eax
jbe 0x1010701
mov eax, dword [ebp - 0x218]
push dword [eax]
call esi
test eax, eax
jbe 0x1010701
xor eax, eax
inc eax
jmp 0x1010703
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101367b
leave
ret 0x10
Function at 0x1010719
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x101b0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x84]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push edi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ebx, eax
test edi, edi
jbe 0x10107e7
test ebx, ebx
je 0x10107e7
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x1003310
xor esi, esi
push ebx
mov dword [ebp - 0x78], esi
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x78], 4
jb 0x10107e7
mov eax, dword [ebp - 0x80]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x10032c0
lea eax, [ebp - 0x68]
push 0x32
push eax
call fcn.01010509
add esp, 0x14
test eax, eax
jl 0x10107e7
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
mov dword [ebp - 0x6c], esi
call sub.VERSION.dll_VerQueryValueW
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x74], esi
push dword [ebp - 0x6c]
call fcn.0100807e
test eax, eax
jl 0x10107e7
push dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
push dword [ebp - 0x6c]
call fcn.0100adc3
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x70]
pop ecx
push dword [eax]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0101367b
leave
ret 8
Function at 0x1011bc3
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x1016ec9
call fcn.01013690
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 3
xor ebx, ebx
call fcn.010105e2
test al, al
je 0x1011cf5
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x1011cf5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1011cf5
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1011c51
lea eax, [ebp - 0x28]
push eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x101b2c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x101b2e0
call fcn.0100fd42
mov ebx, eax
cmp ebx, edi
je 0x1011c79
inc dword [ebx + 0x5c]
jmp 0x1011cea
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.01010719
test al, al
je 0x1011cd7
push 0x68
call fcn.01012c0c
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
cmp eax, edi
je 0x1011cb8
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
mov ecx, eax
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.010110ce
mov esi, eax
jmp 0x1011cba
xor esi, esi
inc dword [esi + 0x5c]
mov ecx, esi
mov byte [ebp - 4], 3
mov ebx, esi
call fcn.01011b72
test eax, eax
jge 0x1011cd7
mov ecx, esi
call fcn.010114ce
xor ebx, ebx
cmp ebx, edi
je 0x1011cea
push ebx
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x101b2e0
call fcn.010119cb
push 0x101b2c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
mov eax, ebx
call fcn.0101373e
ret 4
Function at 0x10130ae
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101b0f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01013043
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1013121
cmp dword [ebp - 0x94], 5
jb 0x1013142
jmp 0x101313e
cmp dword [ebp - 0x88], 1
jne 0x1013142
cmp dword [ebp - 0x94], 4
ja 0x101313e
jne 0x1013142
cmp dword [ebp - 0x90], 0
jbe 0x1013142
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1003660
call fcn.01003cda
test eax, eax
jge 0x1013163
mov byte [0x101b144], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101367b
leave
ret
Function at 0x101349f
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1018b40
call fcn.010135c4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x101b8a8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101325a
cmp eax, esi
jne 0x101324d
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x101325d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1013234
xor esi, esi
inc esi
mov eax, dword [0x101b8a4]
cmp eax, esi
jne 0x1013270
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101329f
mov eax, dword [0x101b8a4]
test eax, eax
jne 0x1013299
mov dword [0x101b8a4], esi
push 0x1001418
push 0x100140c
call fcn.01013196
pop ecx
pop ecx
test eax, eax
je 0x101329f
jmp 0x10133c3
mov dword [0x101b440], esi
mov eax, dword [0x101b8a4]
cmp eax, esi
jne 0x10132c3
push 0x1001408
push 0x10013c4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101b8a4], 2
cmp dword [ebp - 0x20], ebx
jne 0x10132d0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101b8b4], ebx
je 0x10132f1
push 0x101b8b4
call fcn.01013a89
pop ecx
test eax, eax
je 0x10132f1
push ebx
push 2
push ebx
call dword [0x101b8b4]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10133c3
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x101335b
cmp cx, bx
je 0x1013316
cmp dword [ebp - 0x1c], ebx
jne 0x101335b
movzx ecx, word [eax]
cmp cx, bx
je 0x101332b
cmp cx, 0x20
ja 0x101332b
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1013316
test byte [ebp - 0x40], 1
je 0x1013337
movzx ecx, word [ebp - 0x3c]
jmp 0x101333a
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x101b43c], eax
cmp dword [0x101b430], ebx
jne 0x10133a0
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x101336c
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1013300
cmp dword [0x101b440], ebx
jne 0x10133ae
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101b43c]
jmp 0x10133cf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01013609
ret
call fcn.01013bce
jmp 0x10131f7
Function at 0x1014068
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x101b0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1003818]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x100381c]
push esi
push edi
mov dword [ebp - 0xc], eax
xor esi, esi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov dword [ebp - 0x220], esi
cmp ebx, esi
jne 0x10140ad
or eax, 0xffffffff
jmp 0x1014164
lea eax, [ebp - 0x220]
push eax
push 0x20019
push esi
push 0x10037b8
push 0x80000001
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x10140a5
cmp dword [ebp - 0x220], esi
je 0x10140a5
push 0xa
lea eax, [ebp - 0xa]
push eax
lea edi, [esi + 1]
push edi
mov dword [ebp - 0x224], 0x20a
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1014127
cmp eax, 0xea
jne 0x1014156
jmp 0x101414f
cmp dword [ebp - 0x228], 1
jne 0x1014156
mov eax, dword [ebp - 0x224]
cmp eax, 2
jbe 0x101414f
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebx + esi*4], eax
mov esi, edi
cmp esi, 0x19
jl 0x10140d6
push dword [ebp - 0x220]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101367b
leave
ret 4

Function at 0x10157c4
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.01013e50
mov eax, dword [0x101b0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1018], eax
cmp eax, ebx
jne 0x10157f8
xor eax, eax
jmp 0x10158bc
mov ecx, dword [ebp + 0x10]
push esi
add ecx, ecx
push ecx
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push ebx
push eax
mov dword [ebp - 0x1008], ebx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x100c], eax
xor eax, eax
add esp, 0x18
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x101c]
push eax
push 0xc
lea eax, [ebp - 0x1014]
push eax
push 0x58
mov dword [ebp - 0x1014], edi
mov word [ebp - 0x100e], si
mov dword [ebp - 0x101c], ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
pop esi
test eax, eax
jl 0x10158b6
mov ecx, dword [ebp - 0x100c]
cmp ecx, ebx
je 0x10158b6
cmp word [ebp - 0x1010], bx
je 0x10158b6
movzx eax, word [ebp - 0x1010]
shr eax, 1
cmp eax, 0x800
jb 0x101588f
mov eax, 0x7ff
xor edx, edx
mov word [ecx + eax*2], dx
push dword [ebp - 0x100c]
push dword [ebp + 0x10]
push dword [ebp - 0x1018]
call fcn.0100800f
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x1008], ecx
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101367b
leave
ret 0xc
Function at 0x1015a48
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1015a5c
sub eax, ecx
sar eax, 1
lea edi, [eax + 0xe]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01012c3a
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1015ae9
push dword [ebp + 0xc]
xor eax, eax
push edi
push esi
mov word [esi], ax
call fcn.010158f2
cmp eax, ebx
jl 0x1015ae9
push 0x1003898
push edi
push esi
call fcn.010158f2
cmp eax, ebx
jl 0x1015ae9
push esi
cmp byte [ebp + 8], bl
je 0x1015ada
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1015ae9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
jmp 0x1015ae9
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 4], eax
push esi
call fcn.01012c4a
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1015c1d
Capabilities:
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push edi
mov edi, 0x10038e0
push edi
xor ebx, ebx
push ebx
push 2
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1015cb8
push 1
push ebx
push ebx
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenSCManagerW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1015cb5
push 0x10
push 0x10038b4
push eax
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1015cac
push ebx
push ebx
push eax
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_StartServiceW]
test eax, eax
jne 0x1015c82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x1015ca3
mov dword [ebp - 4], ebx
push edi
push ebx
push 2
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1015ca3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x1015c85
push dword [ebp - 0xc]
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
push dword [ebp - 0x10]
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x373b5950
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x619f47c9
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4312494e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, str.e5
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x355b43df
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219