joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ef0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.00404150
xor ebx, ebx
cmp eax, 0x3c
jl 0x403f74
lea eax, [ebp - 0x14]
push eax
push 8
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403f54
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push 4
lea edx, [ebp - 0xc]
push edx
push 0x14
push eax
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x403f54
cmp dword [ebp - 0xc], ebx
je 0x403f54
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x403f62
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412e08
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x403fd7
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x403fb7
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], ebx
je 0x403fd7
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412e08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.00412e08
mov esp, ebp
pop ebp
ret
Function at 0x404600
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
mov esi, edx
push edi
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x8003
push ecx
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
lea ebx, [esi + 1]
push ebx
call fcn.00413e95
mov edi, eax
add esp, 4
test edi, edi
je 0x404651
mov edx, dword [ebp - 0x28]
push esi
push edx
push edi
call fcn.00414ac0
mov eax, dword [ebp - 0x18]
add esp, 0xc
push 0
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
push 2
push eax
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edi, dword [ebp - 0x20]
xor esi, esi
test edi, edi
je 0x4046cb
mov ecx, dword [ebp - 0x24]
movzx eax, byte [ebp + esi - 0x14]
mov edx, eax
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [ecx], dl
and eax, 0xf
mov al, byte [eax + str.0123456789abcdef]
mov byte [ecx + 1], al
inc esi
add ecx, 2
cmp esi, edi
jb 0x4046a5
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push edx
mov byte [ecx + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e08
mov esp, ebp
pop ebp
ret

Function at 0x404a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x42c168], 0
jne 0x404ae4
push esi
push fcn.00404a40
call fcn.00403510
add esp, 4
cmp byte [ebx + 0x42c168], 0
jne 0x404ad9
cmp dword [0x42c160], 0
jne 0x404a8a
push 0x4f4
call fcn.00413e95
add esp, 4
test eax, eax
je 0x404a74
mov dword [0x42c160], eax
lea esi, [ebx + ebx*2]
add esi, esi
push edi
mov edi, dword [esi + esi + 0x426dcc]
add esi, esi
lea eax, [edi + 1]
push eax
call fcn.00413e95
add esp, 4
xor ecx, ecx
test edi, edi
pop edi
je 0x404acc
lea esp, [esp]
mov edx, dword [esi + 0x426dd0]
mov dl, byte [edx + ecx]
xor dl, byte [esi + 0x426dc8]
inc ecx
mov byte [ecx + eax - 1], dl
cmp ecx, dword [esi + 0x426dcc]
jb 0x404ab0
mov byte [ecx + eax], 0
mov ecx, dword [0x42c160]
mov dword [ecx + ebx*4], eax
mov esi, fcn.00404a40
call fcn.00403610
pop esi
pop ebx
pop ebp
ret
Function at 0x407970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42c3f0]
push ebx
push esi
push edi
test eax, eax
je 0x40798b
cmp eax, 0xffffffff
je 0x40798b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004096d0
cmp eax, 2
je 0x4079f4
call fcn.00404150
cmp eax, 0x3c
jl 0x4079ef
call fcn.00409280
call fcn.00403ef0
test al, al
je 0x4079f4
push 0x2e
call fcn.00404a40
mov eax, dword [0x42c160]
mov esi, dword [eax + 0xb8]
push 0x69
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edi, dword [ecx + 0x1a4]
add esp, 8
push 7
push esi
push 0
push 1
call fcn.0040a430
mov ecx, edi
mov edx, eax
call fcn.00403680
add esp, 0x10
jmp 0x4079f4
call fcn.00408550
call fcn.0040d240
call fcn.0040cd60
cmp byte [ebp + 8], 0
je 0x407af9
push 4
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x10]
push eax
call fcn.00414c6b
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x407a2f
mov dword [ebp + 8], 0x425582
push 0x13
call fcn.00404a40
mov eax, dword [0x42c160]
mov eax, dword [eax + 0x4c]
push 2
push eax
xor eax, eax
call fcn.00403cb0
mov ebx, eax
mov eax, dword [ebp + 8]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a53
mov ecx, ebx
sub eax, edx
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407a61
sub ecx, esi
lea edi, [ecx + eax + 8]
mov edi, edi
push edi
call fcn.00413e95
mov esi, eax
add esp, 4
test esi, esi
je 0x407a70
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0x427ca8
push esi
call fcn.00413fd6
add esp, 0x10
test ebx, ebx
je 0x407a9f
push ebx
call fcn.00413e5b
add esp, 4
push 0x42555c
push esi
call fcn.00412efb
mov edi, eax
add esp, 8
test edi, edi
je 0x407af0
push 0x2f
call fcn.00404a40
mov edx, dword [0x42c160]
mov ebx, dword [edx + 0xbc]
call fcn.00409960
push eax
push ebx
push edi
call fcn.00413c5b
push edi
call fcn.004136b6
add esp, 0x14
push 0
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
call fcn.00413e5b
add esp, 4
push 0
call fcn.0041443c
int3
Function at 0x408550
Capabilities:
Delete registry value
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x42c164]
test eax, eax
je 0x408570
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x42c164], 0
push ebx
push esi
push edi
push 0x65
call fcn.00404a40
mov eax, dword [0x42c160]
mov ebx, dword [eax + 0x194]
add esp, 4
cmp dword [0x42c3b4], 0
jne 0x4085b6
call fcn.004096d0
test eax, eax
je 0x4085ac
dec eax
cmp eax, 1
ja 0x4085b6
mov dword [0x42c3b4], 0x80000002
jmp 0x4085b6
mov dword [0x42c3b4], 0x80000001
mov esi, dword [0x42c3b4]
call fcn.0040a470
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push 0
push ebx
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4085ef
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409280
Capabilities:
Delete registry key
Terminate thread

Disassembly:
mov eax, dword [0x42c370]
test eax, eax
je 0x40929c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x42c370], 0
push esi
push 0x69
call fcn.00404a40
mov eax, dword [0x42c160]
mov esi, dword [eax + 0x1a4]
add esp, 4
cmp dword [0x42c3b4], 0
jne 0x4092ee
call fcn.004096d0
test eax, eax
je 0x4092e4
dec eax
cmp eax, 1
ja 0x4092ee
mov dword [0x42c3b4], 0x80000002
mov ecx, dword [0x42c3b4]
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop esi
ret
mov dword [0x42c3b4], 0x80000001
mov ecx, dword [0x42c3b4]
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop esi
ret

Function at 0x4095c0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xb
mov dword [ebp - 0xa0], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov eax, dword [ecx + 0x2c]
push eax
call fcn.00414c6b
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409603
mov ebx, 0x425582
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409608
sub eax, edx
lea esi, [eax + 0x20]
push esi
call fcn.00413e95
mov edi, eax
add esp, 4
test edi, edi
je 0x409614
push 0x72
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x1c8]
push ebx
push eax
push edi
call fcn.00413fd6
mov ebx, dword [sym.imp.KERNEL32.dll_OpenFile]
add esp, 0x10
push 0
lea ecx, [ebp - 0x94]
push ecx
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4096a7
push 0
push 0
lea edx, [ebp - 0x9c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xa0]
push 2
lea eax, [ebp - 0x94]
push eax
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4096a7
lea edx, [ebp - 0x9c]
push edx
mov eax, edx
push eax
mov ecx, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00413e5b
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e08
mov esp, ebp
pop ebp
ret
Function at 0x40a470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42c3b8]
sub esp, 0x24
test eax, eax
jne 0x40a63f
push esi
push fcn.0040a470
call fcn.00403510
add esp, 4
cmp dword [0x42c3b8], 0
jne 0x40a62f
push ebx
push edi
push 0x9e
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x278]
push 0x9f
mov dword [ebp - 0x24], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x27c]
push 0xa0
mov dword [ebp - 0x20], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0x280]
push 0xa1
mov dword [ebp - 0x1c], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x284]
push 0xa2
mov dword [ebp - 0x18], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x288]
push 0xa3
mov dword [ebp - 0x14], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0x28c]
push 0xa4
mov dword [ebp - 0x10], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x290]
push 0xa5
mov dword [ebp - 0xc], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x294]
add esp, 0x20
mov dword [ebp - 8], eax
xor edi, edi
lea ebx, [ebx]
push 0x65
call fcn.00404a40
mov ecx, dword [0x42c160]
mov esi, dword [ecx + 0x194]
add esp, 4
cmp dword [0x42c3b4], 0
jne 0x40a5b4
call fcn.004096d0
test eax, eax
je 0x40a5aa
dec eax
cmp eax, 1
ja 0x40a5b4
mov dword [0x42c3b4], 0x80000002
jmp 0x40a5b4
mov dword [0x42c3b4], 0x80000001
mov eax, dword [0x42c3b4]
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push esi
push eax
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40a5fd
mov ecx, dword [ebp + edi*4 - 0x24]
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a5ef
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x40a609
inc edi
cmp edi, 8
jb 0x40a570
jmp 0x40a612
mov eax, dword [ebp + edi*4 - 0x24]
mov dword [0x42c3b8], eax
cmp dword [0x42c3b8], 0
pop edi
pop ebx
jne 0x40a62f
call fcn.00414198
and eax, 7
mov ecx, dword [ebp + eax*4 - 0x24]
mov dword [0x42c3b8], ecx
mov esi, fcn.0040a470
call fcn.00403610
mov eax, dword [0x42c3b8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a740
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42c3c4]
sub esp, 0xc
test eax, eax
jne 0x40a8dc
push esi
push fcn.0040a740
call fcn.00403510
add esp, 4
cmp dword [0x42c3c4], 0
jne 0x40a8cc
push ebx
push edi
call fcn.004043a0
mov esi, eax
xor edi, edi
mov dword [ebp - 0xc], esi
test esi, esi
je 0x40a78e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a783
sub eax, edx
mov edi, eax
mov dword [ebp - 4], 0
call fcn.004096d0
sub eax, 0
je 0x40a7d1
dec eax
je 0x40a7bc
dec eax
jne 0x40a7ed
push 0x19
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x64]
add esp, 4
mov dword [ebp - 4], ecx
jmp 0x40a7ed
push 0x18
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x60]
add esp, 4
jmp 0x40a7ea
push 0xc
call fcn.00404a40
mov ecx, dword [0x42c160]
mov eax, dword [ecx + 0x30]
push eax
call fcn.00414c6b
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a7f3
sub eax, edx
lea edi, [eax + edi + 0x17]
push edi
call fcn.00413e95
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a800
lea edx, [ebp - 8]
push edx
push ebx
mov dword [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test esi, esi
je 0x40a872
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a828
mov ax, word [0x427d3c]
mov word [edi], ax
mov eax, esi
jmp 0x40a840
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a840
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a850
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00413e5b
add esp, 4
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a875
mov dx, word [0x427d3c]
mov eax, dword [ebp - 4]
mov word [edi], dx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a890
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a8a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00403730
push ebx
mov dword [0x42c3c4], eax
call fcn.00413e5b
add esp, 8
pop edi
pop ebx
mov esi, fcn.0040a740
call fcn.00403610
mov eax, dword [0x42c3c4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40aee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
push 0
call fcn.004153a8
add esp, 4
push eax
call fcn.00414186
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40af4d
push 0
lea eax, [esp + 0x10]
push eax
push 1
push 0x425678
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
test eax, eax
je 0x40af4d
mov ecx, dword [esp + 0xc]
push ecx
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.004096d0
cmp eax, 2
jne 0x40afa2
push 0xaf
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x2bc]
add esp, 4
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x40b100
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call fcn.004065b0
call fcn.00406720
call fcn.004070d0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x40a8e0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40ae80
push 0
push 0
call esi
lea esp, [esp]
cmp byte [0x42c01d], 0
je 0x40aff2
cmp byte [0x42c2a5], 0
jne 0x40affe
push 0x32
call fcn.004144a4
add esp, 4
jmp 0x40afe0
call fcn.00407580
call fcn.0040ce40
mov edx, dword [ebp + 8]
push edx
call fcn.0040d9d0
add esp, 4
call fcn.00407b10
test al, al
je 0x40b02f
lea ecx, [ecx]
push 0x493e0
call fcn.004144a4
add esp, 4
jmp 0x40b020
call fcn.00404af0
push 0
push 0
push 0
push 0x4053c0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x405280
push 0
push 0
call esi
push 0
push 0
push 0
push 0x405b60
push 0
push 0
call esi
push 0
push 0
push 0
push 0x405780
push 0
push 0
call esi
jmp 0x40b080
push 0x493e0
call fcn.004144a4
add esp, 4
jmp 0x40b080
Function at 0x40ca20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0xd5
mov dword [ebp - 8], 1
call fcn.00404a40
mov eax, dword [0x42c160]
mov edi, dword [eax + 0x354]
push 0xd4
call fcn.00404a40
mov ecx, dword [0x42c160]
mov esi, dword [ecx + 0x350]
add esp, 8
cmp dword [0x42c3b4], 0
jne 0x40ca8b
call fcn.004096d0
test eax, eax
je 0x40ca81
dec eax
cmp eax, 1
ja 0x40ca8b
mov dword [0x42c3b4], 0x80000002
jmp 0x40ca8b
mov dword [0x42c3b4], 0x80000001
mov eax, dword [0x42c3b4]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40cace
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40cd60
Capabilities:
Delete service
Set registry value

Disassembly:
call fcn.004096d0
cmp eax, 1
je 0x40cd78
call fcn.004096d0
cmp eax, 2
jne 0x40ce19
push ebx
push esi
push edi
push 0xcd
call fcn.00404a40
mov eax, dword [0x42c160]
mov edi, dword [eax + 0x334]
add esp, 4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40cdcb
push 0x10020
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40cdc8
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push esi
call ebx
push 0xce
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edi, dword [ecx + 0x338]
add esp, 4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40ce16
push 0x10020
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40ce13
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push esi
call ebx
pop edi
pop esi
pop ebx
call fcn.004096d0
test eax, eax
je 0x40ce2c
call fcn.004096d0
cmp eax, 1
jne 0x40ce31
jmp fcn.0040cae0
ret
Function at 0x40d9d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x40b270
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40b880
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40ba60
push 0
push 0
call esi
mov eax, dword [ebp + 8]
push 0
push 0
push eax
push 0x40c780
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40cba0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40dad0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40dd30
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40ded0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40e030
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40e3f0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40e7a0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40ed90
push 0
push 0
call esi
push 0
push 0
push 0
push 0x410ac0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x412540
push 0
push 0
call esi
pop esi
pop ebp
ret

Function at 0x40e590
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [ebp - 0x18]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
sub edi, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x14]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push edi
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x40e65e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40e65e
test eax, eax
je 0x40e65e
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0xcc0020
push edx
push eax
push esi
push ebx
mov ebx, dword [ebp - 0x20]
push edi
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push 0x1e
call fcn.00401aa0
mov ecx, dword [ebp - 0x28]
add esp, 4
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412e08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00412e08
mov esp, ebp
pop ebp
ret
Function at 0x410c30
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push ecx
push 0
push 0
push 2
mov dword [ebp - 0xc], 0
call dword [sym.imp.MPR.dll_WNetOpenEnumA]
test eax, eax
jne 0x410df7
push edi
push 0x4000
push 0x40
mov dword [ebp - 0x10], 0x4000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x410df6
push ebx
mov dword [ebp - 8], 0xffffffff
push esi
mov edx, dword [ebp - 0x10]
push edx
push 0
push edi
call fcn.00417250
mov edx, dword [ebp - 0xc]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push edi
lea ecx, [ebp - 8]
push ecx
push edx
call dword [sym.imp.MPR.dll_WNetEnumResourceA]
test eax, eax
jne 0x410de3
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], eax
jbe 0x410c84
lea esi, [edi + 0x14]
mov dword [ebp - 4], esi
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x410db6
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410cd0
sub eax, edx
je 0x410db6
cmp dword [0x42c890], 0
je 0x410db6
cmp dword [0x42c894], 0
je 0x410db6
push 0x42c890
call fcn.00403510
push 0x42c894
call fcn.00403510
mov edi, dword [esi]
mov eax, edi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410d17
sub eax, edx
lea esi, [eax + 1]
push esi
call fcn.00413e95
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410d23
mov ecx, edi
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x410d36
mov eax, dword [0x42c898]
mov edi, dword [0x42c890]
inc eax
mov dword [0x42c898], eax
lea esi, [eax*4]
push esi
push edi
call fcn.00413f29
add esp, 8
test eax, eax
je 0x410d58
mov edi, dword [0x42c894]
mov dword [0x42c890], eax
push esi
push edi
call fcn.00413f29
add esp, 8
test eax, eax
je 0x410d71
mov ecx, dword [ebp - 4]
mov dword [0x42c894], eax
mov eax, dword [0x42c890]
mov dword [esi + eax - 4], ebx
mov edx, dword [ecx - 0xc]
mov eax, dword [0x42c894]
mov dword [esi + eax - 4], edx
mov esi, 0x42c890
call fcn.00403610
mov esi, 0x42c894
call fcn.00403610
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x18]
test byte [esi - 8], 2
je 0x410dc8
lea ecx, [esi - 0x14]
push ecx
call fcn.00410c30
add esp, 4
mov eax, dword [ebp - 0x14]
inc eax
add esi, 0x20
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp eax, dword [ebp - 8]
jb 0x410cc0
jmp 0x410c84
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret