joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412fe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x441034]
mov esi, ecx
test eax, eax
je 0x413006
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x41301f
cmp byte [eax + 4], 0
je 0x41301f
add eax, 5
pop esi
pop edi
ret
push 0x441034
call fcn.00427660
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x412ffa
mov eax, dword [0x441034]
test eax, eax
je 0x413095
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4130ae
test eax, eax
jne 0x413071
movzx eax, byte [0x441161]
push 4
push 8
call fcn.00406950
add esp, 8
test eax, eax
je 0x4130c8
mov dword [eax], 0x441034
mov byte [eax + 4], 0
mov ecx, dword [0x441034]
test ecx, ecx
je 0x4130b3
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
xor ecx, ecx
test esi, esi
je 0x413086
cmp byte [esi], 0
mov byte [esi], 0
movzx edx, byte [esi + 1]
cmove edx, ecx
mov ecx, edx
lea edx, [eax + 5]
mov byte [eax + 4], 1
mov byte [eax + 5], cl
mov eax, edx
pop esi
pop edi
ret
push 0x441034
call fcn.00427660
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x413035
xor eax, eax
pop esi
pop edi
ret
push 0x441034
mov edi, eax
call fcn.00427660
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x413065
push 8
push 4
call fcn.00427d50
int3

Function at 0x414230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x414274
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x41427a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4142b6
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x4142db
test eax, eax
js 0x4142c5
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x4142d1
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x439f6c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.00419660
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00413ea0
mov ecx, 7
int 0x29
ud2
Function at 0x416d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x448
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4176c0
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp esi, 0x201
jae 0x416db0
jmp 0x416d9e
jbe 0x416e36
cmp esi, 0x201
jae 0x416db0
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x454]
mov edi, esi
jmp 0x416de1
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x416dd5
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.00427530
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x416e05
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x416ea3
cmp esi, edi
jne 0x416d90
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x416ec2
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x416d9e
jmp 0x416db0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x416edf
lea eax, [ebp - 0x44]
push esi
push ebx
push eax
call fcn.00414ae0
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov esi, dword [ebp + 8]
movsd qword [ebp - 0x4c], xmm1
movsd qword [ebp - 0x54], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x416e8d
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00406960
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x448
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x416e7d
jmp 0x416e8d
mov dword [ebp - 0x10], 0
push 0x43a8d4
push 0x28
push 0x43a8ac
call fcn.00427f50
add esp, 0xc
jmp 0x416eee
push 0x43a89c
push eax
push esi
call fcn.00428260
add esp, 0xc
ud2
Function at 0x416f20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4176d0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov esi, 0x200
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
cmp esi, 0x201
jae 0x416fb0
jmp 0x416f9e
jbe 0x417039
cmp esi, 0x201
jae 0x416fb0
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x458]
mov edi, esi
jmp 0x416fe1
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x416fd5
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.00427530
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push edi
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x417008
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4170a6
cmp esi, edi
jne 0x416f90
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4170c5
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x416f9e
jmp 0x416fb0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x4170e2
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.00414ae0
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
movsd xmm1, qword [ebp - 0x40]
mov esi, dword [ebp + 8]
movsd qword [ebp - 0x50], xmm1
movsd qword [ebp - 0x58], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x417090
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00406960
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x44c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x417080
jmp 0x417090
mov dword [ebp - 0x10], 0
push 0x43a8d4
push 0x28
push 0x43a8ac
call fcn.00427f50
add esp, 0xc
jmp 0x4170f1
push 0x43a89c
push eax
push esi
call fcn.00428260
add esp, 0xc
ud2
Function at 0x4247a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4247f8
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x4247f0
cmp ebx, ebp
ja 0x424865
cmp ebp, dword [esp + 0x1c]
ja 0x424871
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x4247f2
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x4247e0
jmp 0x42484e
ja 0x4247f8
cmp edx, edi
mov ebx, ebp
jne 0x4247b5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x424852
mov esi, dword [esp + 0x20]
cmp eax, 1
movzx ecx, cx
mov ebx, esi
lea edi, [esi + eax]
mov al, 1
sbb ebx, 0xffffffff
nop word cs:[eax + eax]
nop
movzx edx, byte [esi]
test dl, dl
jns 0x424837
cmp ebx, edi
je 0x42485b
movzx esi, byte [ebx]
and edx, 0x7f
inc ebx
shl edx, 8
or edx, esi
mov esi, ebx
sub ecx, edx
js 0x424854
xor al, 1
xor ebx, ebx
cmp esi, edi
setne bl
add ebx, esi
cmp esi, edi
jne 0x424820
jmp 0x424854
xor eax, eax
jmp 0x424854
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43cf78
call fcn.004282c0
push 0x43cf88
push ebp
push ebx
call fcn.00428280
push 0x43cf88
push dword [esp + 0x20]
push ebp
call fcn.00428260
Function at 0x426454
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x426493
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426493
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426493
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426493
cmp dword [ecx + 0x74], 0xe
jbe 0x426493
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x427660
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [esp + 0x30]
cmp dword [esi + 4], 0
je 0x4276e3
lea edi, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push edi
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x42771e
cmp dword [esp + 4], 0
je 0x427705
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x42773f
mov ebx, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x441168]
nop word [eax + eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x441168], esi
jne 0x4276c0
mov byte [0x441164], 1
push 0
push 0
push edi
call dword [sym.imp.kernel32.dll_InitOnceComplete]
mov eax, ebx
jmp 0x427717
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x427781
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x427709
mov eax, dword [esp]
jmp 0x427717
mov eax, dword [esi]
jmp 0x427716
push dword [esp]
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsFree]
mov eax, esi
dec eax
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
push 0x439104
push eax
push 0x439100
push ecx
push 0
call fcn.00427630
push 0
push 4
push edi
call dword [sym.imp.kernel32.dll_InitOnceComplete]
mov dword [esp + 8], 0x43905c
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x438d74
mov dword [esp + 0x14], 0
lea eax, [esp + 8]
push 0x4390f0
push eax
call fcn.00427e70
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x43905c
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x438d74
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00427600
int3
Function at 0x428070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x68
movzx eax, byte [esp + 0x78]
mov esi, dword [esp + 0x84]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
test eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
je 0x4280c1
cmp eax, 1
jne 0x42813e
mov dword [esp], 0x43c920
jmp 0x4280c8
mov dword [esp], 0x43c91e
mov edx, 2
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
jne 0x42815a
mov ecx, esp
lea edx, [esp + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x38], 0x43c95c
mov dword [esp + 0x3c], 3
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x422d10
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x24], 0x422cf0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x422cf0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 3
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00427e70
mov edx, 7
mov dword [esp], 0x43c922
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
je 0x4280dd
movsd xmm0, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov edx, esp
lea esi, [esp + 0x50]
mov dword [esp + 0x38], 0x43c990
mov dword [esp + 0x3c], 4
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], edx
lea edx, [esp + 8]
mov dword [esp + 0x1c], 0x422d10
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x421ba0
lea esi, [esp + 0x10]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], 0x422cf0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x422cf0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 4
movsd qword [esp + 0x60], xmm0
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm2
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00427e70
int3
Function at 0x406319
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40636f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40636f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x406361
cmp esi, ecx
jae 0x40636f
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40634f
cmp esi, ecx
jae 0x40636f
cmp word [esi], 0
je 0x40636f
mov eax, esi
jmp 0x406371
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406661
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.00406bb1
lea eax, [ebp - 4]
mov ebx, 0x104
or edi, 0xffffffff
mov dword [ebp - 0x1c], eax
push ebx
mov ecx, eax
mov dword [ebp - 0x14], edi
call fcn.00406bd8
push ebx
push eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406af0
test esi, esi
je 0x4067ae
cmp esi, 0x104
ja 0x4067ae
mov esi, dword [ebp - 4]
call fcn.0040642f
mov ecx, eax
test ecx, ecx
je 0x4067bd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
test esi, esi
je 0x4066f7
test esi, 0xffff0000
jne 0x4066ee
movzx eax, si
lea ecx, [ebp - 0xc]
push eax
call fcn.00406d57
jmp 0x406703
push esi
call fcn.0040a46c
pop ecx
jmp 0x4066f9
mov eax, ebx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.00406c85
lea ecx, [ebp - 0xc]
call fcn.00406aa0
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406dd4
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406b50
lea ecx, [ebp - 0x10]
call fcn.00406d3c
lea ecx, [ebp - 8]
call fcn.00406bb1
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
push 0x104
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00406bd8
push eax
push ebx
push ebx
push 0x26
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406af0
test esi, esi
js 0x40679e
lea ecx, [ebp - 8]
call fcn.00406b16
lea ecx, [ebp - 4]
call fcn.00406b16
mov edx, dword [ebp - 8]
test edx, edx
je 0x406799
mov ecx, dword [ebp - 4]
cmp dword [ecx - 0xc], ebx
jl 0x406799
call fcn.0040701e
test eax, eax
je 0x406799
mov edi, eax
sub edi, dword [ebp - 4]
sar edi, 1
test edi, edi
sete bl
lea ecx, [ebp - 8]
call fcn.00406d3c
lea ecx, [ebp - 0xc]
call fcn.00406d3c
lea ecx, [ebp - 4]
call fcn.00406d3c
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0x80004005
call fcn.00406295
int3
Function at 0x4067c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
movzx eax, cl
mov esi, edx
push 0x405cb0
sub eax, 0x7fffffff
mov dword [ebp - 4], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406805
jle 0x406862
movzx eax, ax
or eax, 0x80070000
jmp 0x406862
or dword [ebp - 0x10], 0xffffffff
mov ecx, esi
push 0x32
pop eax
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esi
call fcn.00406bd8
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x405c9c
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00406af0
test esi, esi
je 0x406855
jle 0x406851
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x406862
mov eax, dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and eax, 0x8000ffff
pop edi
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x50e9c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb8000]
push edi
jmp 0x50e9da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50e9e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50e9d0
mov eax, 1
add ebx, ebx
jne 0x50e9f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ea04
jne 0x50ea23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ea23
dec eax
add ebx, ebx
jne 0x50ea10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50e9e8
add ebx, ebx
jne 0x50ea1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50ea75
xor ecx, ecx
sub eax, 3
jb 0x50ea3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50eaaa
sar eax, 1
mov ebp, eax
jmp 0x50ea46
add ebx, ebx
jne 0x50ea46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ea14
inc ecx
add ebx, ebx
jne 0x50ea54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ea14
add ebx, ebx
jne 0x50ea61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50ea56
jne 0x50ea72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ea56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50ea94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50ea86
jmp 0x50e9d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50ea94
add edi, ecx
jmp 0x50e9d6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50eab2
cmp byte [edi], 0x11
jne 0x50eab2
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 0x50eab7
lea edi, [esi + 0x107000]
mov eax, dword [edi]
or eax, eax
je 0x50eb2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x144370]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1444ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50eae4
mov ecx, edi
jns 0x50eb13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1444f0]
or eax, eax
je 0x50eb29
mov dword [ebx], eax
add ebx, 4
jmp 0x50eb01
call dword [esi + 0x144500]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x50eb60
cmp al, 0xef
ja 0x50eb53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x50eb35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x50eb42
mov ebp, dword [esi + 0x1444f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50eb94
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x4048a0
Capabilities:
Create process on windows
Create thread
Decode data using base64 via winapi
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00404550
test eax, eax
je 0x4048c2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
push 0
push 0x402d30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40490c
push 0x1388
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404902
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404640
call fcn.004040a0
lea ecx, [ebp - 0x44]
call fcn.00405ef0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x44]
call fcn.00405ea0
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x14]
jmp loc.00416a88

Function at 0x404b10
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push 0
push eax
mov esi, ecx
movdqu xmmword [ebp - 0x10], xmm0
call fcn.00408b30
mov eax, dword [0x412b0c]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x412b08]
or dword [ebp - 0x2c], 0x101
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov esp, ebp
pop ebp
ret