joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a7a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x46d290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
push ebx
mov ebx, 0x104
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x2f
pop edx
push 0x5c
pop esi
mov dword [ebp - 0x41c], esi
test eax, eax
je 0x407b27
push ebx
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004225f4
lea eax, [ebp - 0x20c]
push eax
call fcn.00421690
add esp, 0x14
test eax, eax
je 0x407b04
movzx ecx, word [ebp + eax*2 - 0x20e]
push 0x2f
pop edx
cmp cx, dx
je 0x407ae8
cmp cx, si
jne 0x407b04
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x407c21
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.00407c27
pop ecx
test al, al
jne 0x407b24
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x2f
pop edx
movzx eax, word [edi]
test ax, ax
je 0x407c10
mov esi, edi
mov ecx, edi
cmp ax, dx
je 0x407b45
cmp ax, word [ebp - 0x41c]
jne 0x407b47
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x407b37
cmp esi, edi
je 0x407b99
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.004205b0
add esp, 0xc
cmp esi, 0x208
jae 0x407c21
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
mov esi, dword [ebp - 0x418]
push eax
push esi
call fcn.00407a7a
pop ecx
pop ecx
jmp 0x407b9f
mov esi, dword [ebp - 0x418]
xor eax, eax
mov word [ebp - 0x414], ax
test esi, esi
je 0x407bbe
push ebx
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004225f4
add esp, 0x10
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call fcn.00421690
sub ebx, eax
push ebx
push edi
lea eax, [ebp + eax*2 - 0x414]
push ebx
push eax
call fcn.004225f4
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call fcn.00407c27
add esp, 0x18
test al, al
jne 0x407c10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421ac3
mov esp, ebp
pop ebp
ret
call fcn.0041ebd7
int3

Function at 0x407c27
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x4082d9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x408387
cmp dword [edi + 4], 0xffffffff
jne 0x408387
push esi
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call fcn.00421690
pop ecx
pop esi
lea eax, [edi + eax*2]
movzx ecx, word [eax + 0x242]
cmp ecx, 0x5c
je 0x408335
push 0x2f
pop edx
cmp cx, dx
je 0x408335
xor ecx, ecx
mov word [eax + 0x244], dx
mov word [eax + 0x246], cx
cmp dword [ebp + 0x10], 1
jne 0x408350
push dword [ebp + 8]
call fcn.00408283
pop ecx
cmp eax, 0xffffffff
jne 0x408350
mov eax, 0x2000000
jmp 0x40838c
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ad62
add esp, 0x10
test eax, eax
jne 0x40836e
mov eax, dword [ebp - 4]
jmp 0x40838c
push eax
call fcn.0040b31b
pop ecx
xor ecx, ecx
mov dword [edi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x40838c
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408939
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
push esi
mov ecx, dword [edx]
mov esi, 0xff
xor eax, ecx
shr ecx, 8
and eax, esi
mov eax, dword [eax*4 + 0x454e90]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, esi
pop esi
xor eax, dword [ecx*4 + 0x454e90]
mov dword [edx + 8], eax
pop ebp
ret

Function at 0x40ae54
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x46d290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x40ae96
push 0
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ae91
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x40aebb
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x40aea6
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push ebx
call fcn.004205b0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421ac3
mov esp, ebp
pop ebp
ret

Function at 0x40af94
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40afa2
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40b05d
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x454e90]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x454e90]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x454e90]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x454e90]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x454e90]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x454e90]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x454e90]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x454e90]
dec edi
jne 0x40afc0
pop edi
test esi, esi
je 0x40b076
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x454e90]
inc edx
dec esi
jne 0x40b061
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x40f3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x18], bl
jne 0x40f3e7
mov eax, dword [esi]
call dword [eax + 4]
mov byte [esi + 0x18], 1
mov edx, ebx
cmp dword [ebp + 0xc], edx
jbe 0x40f40b
mov esi, dword [esi + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, byte [edx + edi]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [esi + ecx*4]
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40f3f5
pop edi
xor ebx, 0x55
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x40f851
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46d290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0xf0000000
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push dword [esi + 8]
push eax
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40f8d8
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [esi + 4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40f8d8
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40f8d8
push 0
lea eax, [esi + 0xc]
push eax
push ebx
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40f8d8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x40f8ed
cmp dword [ebp - 8], 0
je 0x40f8e7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xc], 0
je 0x40f8f8
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421ac3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fb23
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x20
mov eax, 0x450ef7
call fcn.00421b67
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call fcn.004037a4
push eax
lea ecx, [ebp - 0x14]
call fcn.0040216e
mov esi, str.GQ
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
push esi
push eax
call fcn.0040fe8d
pop ecx
pop ecx
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00404f20
push eax
lea ecx, [ebp - 0x18]
call fcn.0040221f
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00404a45
mov dword [ebp - 0x10], ebx
call fcn.004037a4
push eax
lea ecx, [ebp - 0x10]
call fcn.0040216e
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push esi
push eax
call fcn.0040fe8d
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
push ecx
push ebx
mov ecx, eax
call fcn.00404f20
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00418bdd
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0040dd87
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00403c62
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00404a45
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x40fc73
cmp dword [esi - 0xc], 0
lea ecx, [ebp - 0x10]
jne 0x40fc05
lea eax, [ebp - 0x14]
push eax
call fcn.0040dd87
mov esi, dword [ebp - 0x10]
jmp 0x40fc2a
push edi
call fcn.0040ed11
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fc1e
test al, 0x10
jne 0x40fc2a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40fc63
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
call fcn.00418bdd
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0040dd87
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00403c62
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], ebx
jne 0x40fbee
jmp 0x40fc73
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
cmovne ebx, eax
lea ecx, [esi - 0x10]
call fcn.00403c62
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00403c62
lea ecx, [edi - 0x10]
call fcn.00403c62
mov eax, ebx
call fcn.00421b35
ret
Function at 0x40fd75
Capabilities:
Encode data using xor

Disassembly:
push 0xac
mov eax, 0x450f69
call fcn.00421b9a
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov ebx, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
call fcn.004021db
mov edi, ebx
xor eax, eax
xor ecx, ecx
xor edx, edx
inc ecx
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
xor eax, eax
mov dword [ebp - 0x2c], ecx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
push 3
push dword [ebp - 0x24]
lea eax, [ebp - 0xb4]
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xb8], eax
call fcn.00403870
push ecx
mov ecx, esp
mov byte [ebp - 4], 3
push dword [ebp - 0xb8]
call fcn.00402197
call fcn.004104f4
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 2
pop ecx
pop ecx
cmp dword [ebp - 0xb8], eax
je 0x40fe2c
push dword [ebp - 0xb8]
call fcn.0041ecf3
pop ecx
mov ebx, dword [ebp - 0x18]
xor edi, edi
mov eax, dword [ebp - 0x1c]
sub ebx, eax
je 0x40fe61
mov al, byte [eax + edi]
xor al, byte [esi + str.EBZTIKYPOVBFWKVVCEOZJLBVHXKCYN]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.0041ce2a
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, ebx
jb 0x40fe38
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x1d]
push eax
mov byte [ebp - 0x1d], 0
call fcn.0041ce2a
lea ecx, [ebp - 0x1c]
call fcn.00404a45
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00403c62
mov eax, dword [ebp - 0x28]
call fcn.00421b49
ret
Function at 0x40fe8d
Capabilities:
Encode data using xor

Disassembly:
push 0xa8
mov eax, 0x450648
call fcn.00421b9a
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov ebx, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
call fcn.0040221f
mov edi, ebx
xor eax, eax
xor ecx, ecx
xor edx, edx
inc ecx
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
xor eax, eax
mov dword [ebp - 0x2c], ecx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
push 3
push dword [ebp - 0x24]
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xb4], eax
call fcn.00403870
push ecx
mov ecx, esp
mov byte [ebp - 4], 3
push dword [ebp - 0xb4]
call fcn.00402197
call fcn.004104f4
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 2
pop ecx
pop ecx
cmp dword [ebp - 0xb4], eax
je 0x40ff44
push dword [ebp - 0xb4]
call fcn.0041ecf3
pop ecx
mov edi, dword [ebp - 0x18]
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
sub edi, eax
je 0x40ff82
movzx ecx, byte [eax + ebx]
movsx ax, byte [esi + str.EBZTIKYPOVBFWKVVCEOZJLBVHXKCYN]
xor cx, ax
movzx eax, cx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040677c
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
mov eax, dword [ebp - 0x1c]
inc ebx
cmp ebx, edi
jb 0x40ff50
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
and dword [ebp - 0x20], 0
push eax
call fcn.0040677c
lea ecx, [ebp - 0x1c]
call fcn.00404a45
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00403c62
mov eax, dword [ebp - 0x28]
call fcn.00421b49
ret
Function at 0x410145
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x46d290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x44
xor edi, edi
push edi
push eax
call fcn.00420c80
push 0x10
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00420c80
add esp, 0x18
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push 8
push edi
push edi
push edi
push ebx
push edi
test esi, esi
je 0x4101a0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x4101a6
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
test al, al
je 0x4101e0
cmp dword [ebp + 0xc], edi
jbe 0x4101cc
push dword [ebp + 0xc]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4101cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov eax, edi
jmp 0x4101e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421ac3
mov esp, ebp
pop ebp
ret

Function at 0x410443
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x451048
call fcn.00421b9a
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor edx, edx
push edx
push edx
push ecx
push edx
push 1
push dword [eax - 0xc]
mov dword [ebp - 4], edx
push eax
call esi
test eax, eax
je 0x4104ad
push dword [ebp - 0x14]
call fcn.0041d90c
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.00420c80
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
add esp, 0x10
push 0
push 0
push eax
push ebx
push 1
push dword [ecx - 0xc]
push ecx
call esi
test eax, eax
jne 0x4104be
push ebx
call fcn.0041ee26
pop ecx
mov ecx, edi
call fcn.00403642
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4104df
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.00410582
mov esi, eax
test esi, esi
je 0x4104d8
mov ecx, edi
call fcn.00403642
push ebx
call fcn.0041ee26
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403c62
mov eax, esi
call fcn.00421b49
ret 8
Function at 0x4104f4
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x451048
call fcn.00421b9a
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x41056f
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 1
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x410531
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x410567
push dword [ebp - 0x14]
mov ecx, esi
call fcn.004070fc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
mov esi, dword [edi - 0xc]
push eax
push ebx
call fcn.00404efd
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x41056f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403c62
mov eax, ebx
call fcn.00421b49
ret

Function at 0x410582
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x451078
call fcn.00421b9a
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.0041d90c
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.00420c80
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.00420bf4
add esp, 0x20
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4105fc
push esi
call fcn.0041ee26
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.00403642
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410655
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.0041346c
push dword [ebp - 0x120]
mov ecx, dword [ebp - 0x18]
and dword [ebp - 4], 0
call fcn.00403d72
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x41064c
push dword [ebp - 0x120]
call fcn.0041ecf3
pop ecx
push esi
call fcn.0041ee26
pop ecx
xor eax, eax
call fcn.00421b49
ret 0xc
Function at 0x41065d
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x451078
call fcn.00421b9a
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.0041d90c
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.00420c80
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.00420bf4
add esp, 0x20
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4106d7
push esi
call fcn.0041ee26
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.00403642
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410730
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.0041346c
push dword [ebp - 0x120]
mov ecx, dword [ebp - 0x18]
and dword [ebp - 4], 0
call fcn.00403d72
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x410727
push dword [ebp - 0x120]
call fcn.0041ecf3
pop ecx
push esi
call fcn.0041ee26
pop ecx
xor eax, eax
call fcn.00421b49
ret 0xc

Function at 0x411ad0
Capabilities:
Enumerate processes

Disassembly:
push 0x23c
mov eax, 0x4513e9
call fcn.00421b9a
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push 0
push 0xf
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x248], eax
push ecx
push eax
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
and dword [ebp - 0x244], 0
lea ecx, [ebp - 0x244]
push edi
mov esi, eax
call fcn.0040221f
and dword [ebp - 4], 0
test esi, esi
mov esi, dword [ebp - 0x248]
je 0x411b7e
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x244]
call fcn.0040f82d
test eax, eax
jne 0x411b6d
push dword [ebp - 0x238]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411b6d
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0041ce7b
lea eax, [ebp - 0x240]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x411b37
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 4]
xor ecx, ecx
sub eax, dword [ebx]
sar eax, 2
cmp ecx, eax
mov ecx, dword [ebp - 0x244]
sbb esi, esi
add ecx, 0xfffffff0
neg esi
call fcn.00403c62
mov eax, esi
call fcn.00421b49
ret
Function at 0x41276d
Capabilities:
Check if file exists
Query service status

Disassembly:
push 0x30
mov eax, 0x4516bd
call fcn.00421b9a
mov edi, ecx
mov eax, dword [edi + 0x18]
lea ebx, [edi + 0x10]
push ebx
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.0040f748
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.0041287f
pop ecx
xor esi, esi
pop ecx
test eax, eax
je 0x4127b1
lea eax, [edi + 0x14]
mov ecx, ebx
push eax
call fcn.0040dd87
mov dword [edi + 8], esi
jmp 0x4127b8
mov dword [edi + 8], 1
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4127e7
lea eax, [edi + 0x1c]
push eax
mov eax, dword [ebx]
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.0040f748
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.0041322d
pop ecx
pop ecx
xor esi, esi
jmp 0x412816
lea eax, [ebp - 0x3c]
push str.dQ
push eax
call fcn.0040fd75
pop ecx
pop ecx
push esi
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00404efd
push eax
lea ecx, [edi + 0x1c]
call fcn.00402c4e
lea ecx, [ebp - 0x3c]
call fcn.00404a45
mov dword [edi + 8], esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x412879
push 0xf01ff
push dword [edi + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x412848
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x412879
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x412865
push dword [ebp - 0x30]
call ebx
push esi
call ebx
push dword [ebp - 0x30]
xor eax, eax
cmp dword [ebp - 0x28], 1
sete al
mov dword [edi + 0xc], eax
call ebx
push esi
call ebx
call fcn.00421b49
ret