joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058dc
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00404ee0
test eax, eax
je 0x405902
test ebx, ebx
je 0x405902
cmp word [ebx], 0
je 0x405902
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x40590a
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x40591d
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00405a88
xor eax, eax
jmp 0x405938
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x40592c
cmp eax, 3
jne 0x405933
mov eax, 2
jmp 0x405938
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00404ee0
test eax, eax
je 0x405a5f
test ebx, ebx
je 0x405a5f
cmp word [ebx], 0
je 0x405a5f
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x405a88
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00404ee0
test eax, eax
je 0x405ab5
test ebx, ebx
je 0x405ab5
cmp word [ebx], 0
je 0x405ab5
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x405ac4
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x405b88
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0x40d14c
push edi
push ebp
mov ebp, edx
cmp dword [esi + 4], 0
mov edi, ecx
mov ebx, eax
jne 0x405ba2
call fcn.00405b50
mov eax, ebp
cmp edi, 8
jb 0x405c2d
xor ebx, dword [eax]
xor edx, edx
mov dl, bl
sub edi, 8
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
xor ebx, dword [eax + 4]
add eax, 8
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x405bad
xor edx, edx
jmp 0x405c47
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [esi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp edi, edx
ja 0x405c31
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405ce8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x14], 0
mov edi, ecx
je 0x405d0b
mov al, 1
cmp byte [ebp + 8], 0
mov esi, 0x80000000
je 0x405d1c
or esi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x405d2b
or dword [ebp - 8], 2
call fcn.00404ee0
test eax, eax
je 0x405d57
test edi, edi
je 0x405d57
cmp word [edi], 0
je 0x405d57
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push edi
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
jmp 0x405d70
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x405d89
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x405d89
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp esi, 0xffffffff
mov byte [ebx + 0x12], 0
setne dl
mov dword [ebx + 0xc], eax
and edx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 9], dl
cmp byte [ebp - 9], 0
je 0x405dd2
mov dword [ebx + 4], esi
test edi, edi
je 0x405dbe
lea eax, [ebx + 0x416]
mov edx, edi
call fcn.004062c8
jmp 0x405dc7
mov word [ebx + 0x416], 0
lea eax, [ebx + 0x15]
mov edx, dword [ebp - 4]
call fcn.004066e0
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405e60
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jne 0x405e6f
cmp byte [ebx + 0x13], 0
jne 0x405e73
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], 0xffffffff
je 0x405e80
mov eax, ebx
call fcn.00405de0
call fcn.00404ee0
test eax, eax
je 0x405ea9
cmp word [ebx + 0x416], 0
je 0x405ea9
add ebx, 0x416
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne al
and eax, 1
jmp 0x405eba
add ebx, 0x15
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
setne al
and eax, 1
pop ebx
ret

Function at 0x405f8c
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x405fb3
cmp esi, 0x4e20
jle 0x405fa9
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x406004
mov eax, ebx
call fcn.004060dc
test al, al
je 0x405feb
cmp esi, 0x4e20
jle 0x405feb
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00405f8c
jmp 0x406007
cmp dword [ebx + 0xc], 1
jne 0x405fff
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x405fff
xor eax, eax
jmp 0x406007
or eax, 0xffffffff
jmp 0x406007
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x406910
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
mov eax, esp
call fcn.00406874
mov ebx, eax
mov eax, dword [0x419e2c]
call fcn.00406548
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0x419e44
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
mov eax, dword [0x40dd2c]
mov eax, dword [eax + 0x10]
test al, 0x5f
je 0x406968
and eax, 0x7f
push eax
push 0x419e44
call sub.KERNEL32.DLL_SetFileAttributesA
cmp esi, 0xffffffff
jne 0x406987
push 0x419e44
mov eax, 0x6d
call fcn.004027f4
push eax
call fcn.00402db4
add esp, 8
jmp 0x4069bf
test ebx, ebx
je 0x4069b9
test bl, 1
je 0x406994
mov eax, esp
jmp 0x406996
xor eax, eax
test bl, 2
je 0x4069a1
lea edx, [esp + 8]
jmp 0x4069a3
xor edx, edx
test bl, 4
je 0x4069ae
lea ecx, [esp + 0x10]
jmp 0x4069b0
xor ecx, ecx
push eax
push edx
push ecx
push esi
call sub.KERNEL32.DLL_SetFileTime
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x408fcc
Capabilities:
Set file attributes

Disassembly:
mov edx, 0x40b76e
mov eax, 0x419e44
call fcn.004064e8
mov dword [0x419e2c], eax
test eax, eax
jne 0x409035
push 0
push 0x419e44
call sub.KERNEL32.DLL_SetFileAttributesA
mov edx, 0x40b76e
mov eax, 0x419e44
call fcn.004064e8
mov dword [0x419e2c], eax
test eax, eax
jne 0x409035
mov eax, 0x40bc80
mov edx, 9
call fcn.00406214
push 0x419e44
mov eax, 0x6e
call fcn.004027f4
push eax
call fcn.00402db4
add esp, 8
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4091c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
cmp dword [0x40d708], 0
jg 0x4091de
dec dword [0x40d708]
xor eax, eax
mov dword [0x419d40], eax
or eax, 0xffffffff
pop esi
pop ebx
ret
cmp dword [0x419d40], 0
jg 0x409233
push dword [0x419d5c]
mov ecx, 0x2000
mov edx, 1
mov eax, dword [0x419d38]
call fcn.00406594
mov dword [0x419d40], eax
test eax, eax
jne 0x409218
xor edx, edx
or eax, 0xffffffff
mov dword [0x419d40], edx
pop esi
pop ebx
ret
add dword [0x419d64], 0x2000
mov edx, dword [0x419d38]
mov dword [0x419d3c], edx
call fcn.00409088
mov ecx, dword [0x40dd2c]
test byte [ecx + 0x14], 1
je 0x40926a
mov esi, dword [0x419d40]
mov ebx, dword [0x419d3c]
jmp 0x409261
call fcn.0040a420
xor byte [ebx], al
mov al, byte [ebx]
and eax, 0xff
call fcn.0040a444
inc ebx
mov edx, esi
add esi, 0xffffffff
test edx, edx
jne 0x40924d
dec dword [0x419d40]
mov ecx, dword [0x419d3c]
inc dword [0x419d3c]
xor eax, eax
mov al, byte [ecx]
pop esi
pop ebx
ret

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

Disassembly:
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x409343
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40a366
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, eax
mov eax, edx
call fcn.0040a4b0
mov eax, esp
mov ecx, 0xc
mov edx, ebx
call fcn.00406618
xor ebx, ebx
call fcn.0040a420
xor byte [esp + ebx], al
mov al, byte [esp + ebx]
and eax, 0xff
call fcn.0040a444
inc ebx
cmp ebx, 0xc
jl 0x40a384
mov edx, dword [0x40dd2c]
xor eax, eax
mov al, byte [esp + 0xb]
test byte [edx + 0x14], 2
je 0x40a3bd
movzx ecx, word [0x419d8a]
sar ecx, 8
jmp 0x40a3c9
mov ecx, dword [0x419d90]
shr ecx, 0x18
movzx ecx, cx
movzx eax, ax
cmp ecx, eax
je 0x40a3d5
or eax, 0xffffffff
jmp 0x40a418
mov edx, dword [0x419d40]
cmp edx, dword [0x40d708]
jle 0x40a3eb
mov ebx, dword [0x40d708]
jmp 0x40a3f1
mov ebx, dword [0x419d40]
mov esi, dword [0x419d3c]
jmp 0x40a40d
call fcn.0040a420
xor byte [esi], al
mov al, byte [esi]
and eax, 0xff
call fcn.0040a444
inc esi
mov edx, ebx
add ebx, 0xffffffff
test edx, edx
jne 0x40a3f9
xor eax, eax
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x40a444
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [0x419f50]
push ebx
mov ecx, edx
mov ebx, dword [0x419d30]
xor ecx, eax
and ecx, 0xff
shr edx, 8
mov ecx, dword [ebx + ecx*4]
xor ecx, edx
mov dword [0x419f50], ecx
and ecx, 0xff
add dword [0x419f54], ecx
imul edx, dword [0x419f54], 0x8088405
inc edx
mov dword [0x419f54], edx
shr edx, 0x18
mov ecx, dword [0x419f58]
xor edx, ecx
mov ebx, dword [0x419d30]
and edx, 0xff
shr ecx, 8
mov edx, dword [ebx + edx*4]
xor edx, ecx
mov dword [0x419f58], edx
pop ebx
ret

Function at 0x40a68c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x40a6a0
xor eax, eax
jmp 0x40a798
call fcn.0040a684
xor ebx, 0xffffffff
cmp edi, 8
jb 0x40a775
xor edx, edx
sub edi, 8
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x40a6b1
test edi, edi
je 0x40a793
xor edx, edx
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
dec edi
mov ebx, ecx
jne 0x40a779
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0xc0d370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xc0d38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xc36074
push ecx
mov edi, eax
call fcn.00c21198
mov esi, eax
add esp, 8
test esi, esi
jne 0xc0d3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00c2102e
push esi
call fcn.00c20fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xc10850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xc108ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xc3b720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc108ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00c211e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xc108ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xc3b720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc1092a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00c22082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xc10957
mov word [eax], si
add eax, 2
push eax
call fcn.00c22030
add esp, 4
jmp 0xc10959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xc108ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xc108b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xc10ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xc11080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xc110c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xc36458
push ecx
call fcn.00c211e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00c211e1
add esp, 0x10
jmp 0xc110d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00c2120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00c20dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00c11050
mov eax, dword [0xc3b728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xc1113b
push esi
call fcn.00c10fb0
add esp, 4
mov dword [0xc3b728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xc1114c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00c10ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xc14440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xc144b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xc1448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc14471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc1447e
add edx, ecx
cmp ebx, edx
jb 0xc1448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc14467
xor ecx, ecx
jmp 0xc144a2
test eax, eax
jne 0xc14492
xor ecx, ecx
jmp 0xc144a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00c143c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xc148f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xc14921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xc14946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xc1496e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xc14993
push ecx
push esi
call fcn.00c144c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xc15c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xc15c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xc15c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xc15c38
add edx, eax
cmp ebx, edx
jb 0xc15c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xc15c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xc15c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xc15c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xc15cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc15c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc15ca8
add edx, ecx
cmp ebx, edx
jb 0xc15cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc15c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xc15f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00c22145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc15ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xc15fdd
lea eax, [esp + 0x18]
push eax
jmp 0xc15fe2
push 0xc3b720
call fcn.00c21fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc15fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc15f40
push 4
push ecx
push eax
call fcn.00c2243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc16310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00c22145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc163ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xc1638d
lea eax, [esp + 0x18]
push eax
jmp 0xc16392
push 0xc3b720
call fcn.00c21fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc16360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc15f40
push 4
push ecx
push eax
call fcn.00c2243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc17f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xc17fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xc17fcf
push ebx
push edi
push 0xc3b770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xc17fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xc3b770
push esi
call ebx
test eax, eax
je 0xc17fae
mov ebp, 3
cmp dword [0xc3b774], ebp
jne 0xc17faa
push 0x3e8
call edi
push 0xc3b770
push esi
call ebx
test eax, eax
jne 0xc17f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xc17fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xc17fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret