joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cdf0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f87e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0xd0], 0
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x501100
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004078c0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004295b8
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cfca
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push 0
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cef0
push 0x501100
mov ecx, esi
call fcn.0040ade0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40cec9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004079c0
mov ecx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x40d026
inc ecx
push ecx
jmp 0x40d01b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.0041c0ba
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40cf36
push 0x501100
mov ecx, esi
call fcn.0040ade0
lea ecx, [ebp - 0x28]
call fcn.00405fa0
lea ecx, [ebp + 0xc]
call fcn.00405fa0
jmp 0x40d026
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.00429fe9
push ebx
call fcn.0041c0c3
add esp, 4
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0xc4]
push eax
call fcn.00429853
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00427755
add esp, 8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00403f20
cmp dword [ebp - 0x30], 0
jbe 0x40cfc2
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004077a0
lea ecx, [ebp - 0x40]
call fcn.00405fa0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.0040e390
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40cffd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004079c0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40d026
inc eax
push eax
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004079c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40eaa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eb17
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40eb17
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret
Function at 0x418a73
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x418a97
cmp dword [esi + 8], edi
jge 0x418a8f
push esi
call fcn.00415a97
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x418ac0
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x418aa3
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x418ada
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x418acb
xor dl, dl
jmp 0x418ad0
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x418ac2
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x418b0e
mov dword [0x54cd48], str.zlib_corrupt
xor eax, eax
jmp 0x418b50
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x418b23
mov dword [0x54cd48], str.read_past_buffer
jmp 0x418b0a
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x418b3a
push edi
push esi
call fcn.0041af96
pop ecx
pop ecx
test eax, eax
je 0x418b0a
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0048f460
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x41cde0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8e03
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54636c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x54d21c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x54d21c
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x501630
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00420950
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420e4f
Capabilities:
Read .ini file

Disassembly:
push 0x838
mov eax, 0x4f926a
call fcn.0041c61c
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x6c]
cmp dword [eax + 0x14], 8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x420e77
mov eax, dword [eax]
push eax
push dword [ebp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, dword [ebp + 0x10]
jne 0x420f55
xor esi, esi
mov dword [ebp - 0x814], 7
push esi
xor eax, eax
mov dword [ebp - 0x818], esi
push 0x501100
lea ecx, [ebp - 0x828]
mov word [ebp - 0x828], ax
call fcn.004078c0
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], esi
push esi
push eax
call fcn.0048faf0
push dword [ebp + 0x10]
lea eax, [ebp - 0x810]
push 0x5034a0
push eax
call fcn.00407bc0
add esp, 0x18
lea eax, [ebp - 0x810]
cmp byte [edi + 1], 0
mov ecx, edi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
je 0x420f0a
call fcn.00420d6b
jmp 0x420f0f
call fcn.00420e25
push eax
lea ecx, [ebp - 0x828]
call fcn.0040b570
push esi
push 1
lea ecx, [ebp - 0x840]
call fcn.0040e4d0
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00493c4e
pop ecx
push 0
push 1
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.0040e4d0
mov eax, esi
call fcn.0041c5d7
ret 0xc

Function at 0x420f5f
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x4f92b4
call fcn.0041c61c
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.0048faf0
lea eax, [edi + 0x6c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x420fb9
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.0040ade0
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x420fff
mov eax, dword [esi]
jmp 0x421001
mov eax, esi
push ebx
push eax
call fcn.004972b1
pop ecx
pop ecx
test eax, eax
jne 0x42104d
cmp byte [edi + 1], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x421031
call fcn.00420d6b
jmp 0x421036
call fcn.00420e25
push eax
mov ecx, esi
call fcn.0040b570
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.0040e4d0
mov eax, esi
call fcn.0041c5d7
ret 0x10
Function at 0x421be1
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x4f9351
call fcn.0041c61c
mov ebx, ecx
call fcn.00420d20
lea edi, [ebx + 0x84]
push eax
mov ecx, edi
call fcn.004220f9
mov esi, str.WnGameBox.ini
push esi
call fcn.00497313
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040e650
push str.wngbgf
push 0x503498
push str.WNGBAppInfo
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00420dfb
and dword [ebp - 4], 0
lea esi, [ebx + 0x9c]
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x421c57
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004077a0
push str.wngbgf
mov ecx, esi
call fcn.00422150
test eax, eax
jne 0x421cd3
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048faf0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x421c84
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, str.wngbgf
push eax
push edi
push 0x503498
push str.WNGBAppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x421cb5
xor eax, eax
jmp 0x421cc2
lea eax, [ebp - 0x218]
push eax
call fcn.00497313
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004078c0
jmp 0x421cd8
mov edi, str.wngbgf
push edi
mov ecx, esi
call fcn.00422150
test eax, eax
jne 0x421d9b
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048faf0
add esp, 0xc
lea eax, [ebx + 0x3c]
lea ecx, [ebp - 0x230]
push eax
call fcn.00420b19
push str.WnGameBox.ini
mov byte [ebp - 4], 1
call fcn.00497313
pop ecx
push eax
push str.WnGameBox.ini
lea ecx, [ebp - 0x230]
call fcn.0040e650
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push 0x503498
push str.WNGBAppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x421d6c
xor eax, eax
jmp 0x421d79
lea eax, [ebp - 0x218]
push eax
call fcn.00497313
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004078c0
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.0040e4d0
push edi
mov ecx, esi
call fcn.00422150
test eax, eax
jne 0x421dd7
push edi
push 0x503498
push str.WNGBAppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00420f5f
push eax
mov ecx, esi
call fcn.0040b570
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.0040e4d0
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.0040e4d0
call fcn.0041c5d7
ret
Function at 0x427133
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427277
push ebx
push edi
xor edi, edi
xor ebx, ebx
push edi
push 0x80
push 4
push edi
inc ebx
mov dword [ebp - 0x10c], edi
push ebx
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x427194
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10c], eax
jmp 0x42719a
mov eax, dword [ebp - 0x10c]
lea esi, [eax + 1]
push esi
call fcn.0041c0ba
and dword [ebp - 0x11c], 0
pop ecx
push 0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x118], eax
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0048faf0
lea eax, [ebp - 0x108]
push str.c5ff663a51a75933dae5a8c4546f7580
push eax
call fcn.004a4100
lea eax, [ebp - 0x108]
push eax
call fcn.00497330
mov edi, dword [ebp - 0x10c]
add esp, 0x18
mov dword [ebp - 0x114], eax
xor eax, eax
mov dword [ebp - 0x110], eax
test edi, edi
jle 0x427265
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x108]
cmp byte [edx], cl
jne 0x427259
xor ecx, ecx
xor esi, esi
cmp dword [ebp - 0x114], ecx
jle 0x427253
mov al, byte [edx + ecx]
cmp al, byte [ebp + ecx - 0x108]
jne 0x42724d
mov eax, dword [ebp - 0x114]
inc esi
cmp esi, eax
je 0x427267
inc ecx
cmp ecx, eax
jl 0x427231
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x108]
inc eax
inc edx
mov dword [ebp - 0x110], eax
cmp eax, edi
jl 0x427221
xor ebx, ebx
push dword [ebp - 0x118]
call fcn.0041c0c3
pop ecx
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041bf36
mov esp, ebp
pop ebp
ret

Function at 0x428b51
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4
Function at 0x428de6
Capabilities:
Create directory

Disassembly:
push 0x49c
mov eax, 0x4f9bc1
call fcn.0041c61c
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x428e05
xor eax, eax
jmp 0x428f8d
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0048faf0
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.004a4100
push edi
xor esi, esi
call fcn.00497330
mov edi, eax
mov dword [ebp - 0x214], 7
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x218], ecx
mov word [ebp - 0x228], ax
push 0x100
push ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 4], ecx
push eax
call fcn.0048faf0
add esp, 0x24
cmp byte [ebp + edi - 0x111], 0x5c
je 0x428e74
mov byte [ebp + edi - 0x110], 0x5c
cmp byte [ebp - 0x110], 0
je 0x428f7b
mov al, byte [ebp + esi - 0x110]
cmp al, 0x3a
jne 0x428e94
push 2
pop eax
jmp 0x428f6b
cmp al, 0x5c
jne 0x428f68
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0048f460
add esp, 0xc
cmp esi, 0x100
jae 0x428fa9
lea eax, [ebp - 0x210]
mov byte [ebp + esi - 0x210], 0
push eax
lea ecx, [ebp - 0x240]
call fcn.00420aea
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x258]
mov ecx, ebx
push eax
call fcn.004294fc
push eax
lea ecx, [ebp - 0x228]
call fcn.0040b570
push 0
push 1
lea ecx, [ebp - 0x258]
call fcn.0040e4d0
push 0
push 1
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0
call fcn.004220a4
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x4a8]
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x428f68
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
push 0
cmovae eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x428f95
xor eax, eax
inc eax
add esi, eax
cmp byte [ebp + esi - 0x110], 0
jne 0x428e81
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.0040e4d0
xor eax, eax
inc eax
call fcn.0041c5d7
ret 4
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.0040e4d0
jmp 0x428dfe
call fcn.0041c22c
int3

Function at 0x4294ce
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0x300]
or eax, 0xffffffff
cmp edx, eax
je 0x4294e0
cmp edx, 1
jne 0x4294fb
xor eax, eax
push eax
push eax
push ecx
push 0x42926c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x42982c
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x42a411
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a423
pop ebp
ret
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42a458
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x42a45e
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x620], ebx
call fcn.0048faf0
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0048faf0
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004972f1
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004972f1
lea eax, [ebp - 0x61c]
push eax
call fcn.0049714d
lea eax, [ebp - 0x414]
push eax
call fcn.0049714d
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004972b1
add esp, 0x38
test eax, eax
je 0x42a5b2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a5b2
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x42a53b
push edi
push 0x504de0
push eax
call fcn.00407bc0
add esp, 0xc
jmp 0x42a54b
push esi
push edi
push str._s.bak_d
push eax
call fcn.00407bc0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a569
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004a4b6b
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x42a5b0
call ebx
cmp esi, 0xa
jge 0x42a5b2
inc esi
jmp 0x42a50a
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf36
mov esp, ebp
pop ebp
ret

Function at 0x42a9e8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call fcn.0048faf0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], eax
call fcn.0043465c
test eax, eax
mov ecx, str.runas
cmovne ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x42aa46
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x42abfb
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x4f9dec
call fcn.0041c61c
mov eax, dword [ebp + 8]
test eax, eax
je 0x42acf7
push eax
lea ecx, [ebp - 0x40]
call fcn.0040ade0
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0042780b
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.0048faf0
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x42ace8
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x42acdd
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x42ac87
mov eax, ebx
jmp 0x42ac94
lea eax, [ebp - 0x248]
push eax
call fcn.00497313
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.004078c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0042780b
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00422120
test eax, eax
je 0x42acfd
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040e4d0
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42ac6a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.0040e4d0
mov eax, esi
call fcn.0041c5d7
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040e4d0
jmp 0x42acea
Function at 0x42cea6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x4fa0b6
call fcn.0041c5e8
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.0042fcfb
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.0042fd2f
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x42cee6
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42cf46
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42cf21
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42cf46
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0042fd0e
call fcn.0041c5c2
ret 0xc