joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425154
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x425173
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x425183
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x4252a5
test ebx, ebx
jl 0x4252a5
test esi, esi
jle 0x4252a5
mov eax, dword [ebp - 8]
call fcn.0040a494
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a494
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x425242
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x4252a5
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x425227
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x4251f6
inc dword [ebp - 0x14]
jmp 0x425206
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x425206
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x425211
or eax, 0xffffffff
jmp 0x425227
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x425224
inc eax
jmp 0x425227
or eax, 0xffffffff
test eax, eax
jl 0x42522f
cmp esi, eax
jg 0x4251e4
cmp esi, eax
jg 0x42523a
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x4252a8
inc edx
dec dword [ebp - 0x1c]
jne 0x4251e0
jmp 0x4252a5
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x4252a5
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42528c
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42526b
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x425276
or eax, 0xffffffff
jmp 0x42528c
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x425289
inc eax
jmp 0x42528c
or eax, 0xffffffff
test eax, eax
jl 0x425294
cmp esi, eax
jg 0x425254
cmp esi, eax
jg 0x42529f
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x4252a8
inc edx
dec dword [ebp - 0x1c]
jne 0x425250
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x431b20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x431b28
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4345fc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x434613
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x434603
mov eax, ecx
pop ebx
ret
Function at 0x4439a4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x4439b8
add esp, 0xfffffff0
call fcn.004082bc
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x43da40]
call fcn.0045e168
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x4429e0]
call fcn.0045f7c4
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x4429e0]
call fcn.0045f7c4
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x443a0d
call fcn.00408314
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x491244
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x491287
cmp byte [ebx + 0x11], 0
jne 0x491287
cmp byte [ebx + 0x24], 0
jne 0x491287
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x49129e
mov ecx, dword [0x4ac70c]
mov dl, 1
mov eax, dword [0x46c2b0]
call fcn.00422d60
call fcn.00409134
pop ebx
ret
mov ecx, dword [0x4ac70c]
mov dl, 1
mov eax, dword [0x46c2b0]
call fcn.00422d60
call fcn.00409134
pop ebx
ret

Function at 0x4917c4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x491812
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004911bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49182b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x491834
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004911bc
dec esi
jne 0x491856
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x49bcbc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49bd04
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0049bc50
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bd0b
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax
Function at 0x49bf24
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49bfbb
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x49bf6f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00409bd4
jmp 0x49bfa3
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x49bf86
lea eax, [ebp - 4]
call fcn.00409a3c
jmp 0x49bf99
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0049bddc
mov ebx, eax
test esi, esi
je 0x49bf99
dec esi
jmp 0x49bf76
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00409e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bfc2
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x49bfcc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041d3d8
add esp, 0x208
pop ebx
ret

Function at 0x49c02c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041d3d8
add esp, 0x208
pop ebx
ret
Function at 0x49c180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49c2b8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x49c2a0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x49c1dd
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x49c2a0
cmp dword [ebp - 0x14], 0
jne 0x49c1f2
mov eax, dword [ebp - 0xc]
call fcn.00409a3c
mov bl, 1
jmp 0x49c2a0
cmp dword [ebp - 0x14], 0x70000000
jb 0x49c200
call fcn.00422c94
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00409bd4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00409fd0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x49c1a6
test eax, eax
jne 0x49c2a0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x49c24e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x49c2a0
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x49c256
dec esi
test esi, esi
je 0x49c265
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x49c255
cmp dword [ebp - 0x10], 7
jne 0x49c270
test esi, esi
je 0x49c270
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040a608
cmp dword [ebp - 0x10], 7
jne 0x49c293
test esi, esi
je 0x49c293
lea eax, [ebp - 4]
call fcn.00409fd0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00409e2c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c2bf
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax
Function at 0x49c3ec
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov byte [ebp - 1], 0
mov edx, 0x4ac3b4
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x20
push 2
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x49c5be
xor eax, eax
push ebp
push 0x49c5b7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49c5c8
push 0x49c5f4
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00410d6c
mov ebx, eax
test ebx, ebx
je 0x49c472
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x49c59e
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x49c59e
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x49c4c3
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x49c4a4
call fcn.00409228
jmp 0x49c5be
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x49c4c3
call fcn.00409228
jmp 0x49c5be
xor eax, eax
push ebp
push 0x49c597
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x49c506
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x49c506
call fcn.00409228
call fcn.00409228
jmp 0x49c5be
mov eax, dword [ebp - 0x14]
call fcn.00406f68
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x49c53b
call fcn.00409228
call fcn.00409228
jmp 0x49c5be
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x49c576
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x49c572
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x49c572
mov byte [ebp - 1], 1
jmp 0x49c576
inc ebx
dec esi
jne 0x49c548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c59e
mov eax, dword [ebp - 0x18]
call fcn.00406f84
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c5be
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
pop eax
jmp eax
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49db10
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4b3884
mov eax, esi
mov edx, 8
test al, 1
je 0x49db2c
shr eax, 1
xor eax, 0xedb88320
jmp 0x49db2e
shr eax, 1
dec edx
jne 0x49db1f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x49db18
pop esi
ret

Function at 0x49db44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4b3880], 0
jne 0x49db6e
call fcn.0049db10
mov dword [esp], 0x4b3880
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x49db98
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4b3884]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x49db74
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4a0654
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004a0608
test al, al
jne 0x4a0675
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4a06c3
xor eax, eax
push ebp
push 0x4a06b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040a494
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a06ba
lea eax, [ebp - 0xc]
call fcn.004a0644
pop eax
jmp eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a0ee4
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4a0efd
xor eax, eax
jmp 0x4a0f51
lea eax, [esp + 8]
push eax
push 0x4a0f58
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4a0f42
xor eax, eax
jmp 0x4a0f51
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret

Function at 0x4a0f80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4a0fda
inc esi
xor edi, edi
cmp edi, 1
jne 0x4a0fa6
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4a0fb4
cmp edi, 1
jle 0x4a0fb4
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004a0654
test eax, eax
jne 0x4a0fda
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4a0fda
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4a0fda
inc edi
dec esi
jne 0x4a0f96
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x4a0fe4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4a1008
mov eax, dword [ebp - 4]
jmp 0x4a100b
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a1010
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4a105d
xor ebx, ebx
jmp 0x4a1052
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.0041c628
test eax, eax
jne 0x4a1051
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4a1108
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a1033
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4a1069
je 0x4a1072
jmp 0x4a107b
call fcn.0049c61c
mov esi, eax
jmp 0x4a107d
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4a107d
xor esi, esi
test si, si
je 0x4a1108
xor ebx, ebx
jmp 0x4a10a3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4a10a2
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a1108
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a108a
xor ebx, ebx
jmp 0x4a10fd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4a10fc
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4a10f1
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004a0fe4
push eax
mov eax, esi
call fcn.004a0fe4
pop edx
cmp edx, eax
jne 0x4a10fc
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a1108
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a10b2
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4a14f4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a15cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a15e8
push ebx
push 0x4a15f8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040a768
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004077c0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a1576
mov ax, 0x83
call fcn.004a1118
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a14c8
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a157f
call fcn.004a14c8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a15d4
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x4a16e8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
jmp 0x4a17a5
cmp dword [esi + 0x10], 0x1000
jne 0x4a1793
test byte [esi + 0x15], 1
jne 0x4a1793
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a1744
cmp ebp, 2
je 0x4a1744
cmp ebp, 0x10
je 0x4a1744
cmp ebp, 0x20
jne 0x4a1760
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a1760
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a1771
mov eax, dword [esi]
add eax, ebx
call fcn.004a16e0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a1764
cmp byte [esp + 4], 0
je 0x4a1793
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a1719
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10001160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1003a058]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
jne 0x10001180
xor eax, eax
jmp 0x10001240
push 0x208
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x100011cf
push str.Could_not_resolve_SYSTEM_Directory...
push 0x104
lea ecx, [ebp - 0x420]
push ecx
call fcn.100190d5
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call fcn.100012f0
add esp, 0x10
xor eax, eax
jmp 0x10001240
lea ecx, [ebp - 0x628]
push ecx
push 0x10034384
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.10018bc4
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.1001905b
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10003a40
add esp, 0x10
test eax, eax
jne 0x10001230
xor eax, eax
jmp 0x10001240
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x62c]
mov dword [eax], ecx
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001901e
mov esp, ebp
pop ebp
ret

Function at 0x100013c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1003a058]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.10019150
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.SYSTEMCurrentControlSetServices_s
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.10018bc4
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10001434
xor eax, eax
jmp 0x1000146e
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push 0
push str.Start
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000145f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1000146e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001901e
mov esp, ebp
pop ebp
ret