joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057d0
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
mov ebx, ecx
push edi
mov dword [ebp - 0x10], 0
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
jne 0x405843
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x405841
push 3
call fcn.00405990
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, eax
mov ecx, ebx
call fcn.004053f0
mov eax, dword [ebx + 0x18]
movzx eax, word [eax + 6]
mov eax, dword [ebx + eax*4 + 0x18]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
lea eax, [ecx + edx]
push eax
push 0x40
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x40588a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call fcn.00405990
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 8]
mov edi, eax
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x10]
test eax, eax
js 0x4058b0
mov ecx, dword [ebx + 0x14]
add ecx, dword [ebx]
push eax
mov eax, dword [ebx + 0xc]
push eax
push ecx
call fcn.0046c4b0
add esp, 0xc
mov edx, dword [ebx + 8]
mov edi, dword [edx + 0x3c]
add edi, dword [ebx]
mov esi, dword [ebx + 0x18]
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
movzx edi, word [edx + 6]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edi
test edi, edi
je 0x405935
xor edx, edx
lea eax, [ebx + 0x1c]
mov dword [ebp - 4], edi
jmp 0x4058f3
mov ecx, dword [ebp - 8]
mov edi, dword [ebx]
mov esi, dword [eax]
add edi, edx
add edi, ecx
mov ecx, 0xa
add eax, 4
add edx, 0x28
dec dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
jne 0x4058f0
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x405935
lea esi, [ebx + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov edx, dword [esi + 0x50]
add eax, dword [ebx]
push ecx
push edx
push eax
call fcn.0046c4b0
add esp, 0xc
add esi, 4
dec edi
jne 0x405917
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 0x10]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx + 4]
push 0
push 0
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x406859
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x406863
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x406ed0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x59339c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
call fcn.00406720
mov edi, eax
cmp edi, ebx
je 0x406f4a
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0x406f35
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bfc7
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x110]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x104]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
jne 0x406fc8
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x110]
call fcn.00406ed0
mov edi, eax
test edi, edi
jne 0x407001
lea edx, [ebp - 0x120]
push edx
mov edx, dword [ebp - 0x110]
push eax
push eax
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
push edx
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
je 0x406f80
mov eax, dword [ebp - 0x110]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x406fe3
push eax
call ebx
mov dword [ebp - 0x110], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x10c], edi
push eax
cmp ecx, edi
je 0x40702b
mov edx, dword [esi]
push edx
call fcn.004064f0
jmp 0x407034
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x406f35
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bfc7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [ebp - 0x110]
cmp eax, edi
je 0x407043
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bfc7
mov esp, ebp
pop ebp
ret 4
Function at 0x40b8c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x40b8d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xcc], 0
cmp dword [esi + 0x60], 4
jne 0x40b8ef
or dword [esi + 0x40], 0x800000
push edi
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x10]
call fcn.0040b6e0
mov edi, dword [esi + 0x40]
mov ecx, dword [esi + 0x68]
mov eax, dword [eax]
mov edx, dword [esi + 0xc4]
push 0
push edi
push 0
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0xc8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x40b942
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push esi
push 0x40af60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xd0], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ddc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x592724]
cmp byte [eax + 0x50], 0
push edi
mov edi, ecx
je 0x41ddd5
mov eax, 0x1020304
pop edi
ret
push esi
xor esi, esi
push 0
call fcn.0046fefc
add esp, 4
xor esi, eax
call fcn.0046fd31
shl eax, 0xc
xor esi, eax
mov eax, dword [edi + 8]
movzx ecx, word [eax + 0x24]
xor ecx, dword [eax + 0x38]
xor esi, ecx
call fcn.0046fd10
xor esi, eax
je 0x41ddd8
mov eax, esi
pop esi
pop edi
ret
Function at 0x4222f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x59339c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [esi + 0x104], 0
xor edi, edi
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov edx, dword [esi + 0x104]
mov eax, dword [eax + 0x24]
push 0
push edx
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push 0x40
lea eax, [ebp - 0x44]
push eax
call edx
cmp dword [esi + 0x104], 0
jne 0x42234a
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0044dd00
add esp, 8
mov cx, word [ebp - 0x44]
mov edx, 0x5a4d
cmp cx, dx
jne 0x422408
mov ax, word [ebp - 0x2c]
cmp ax, 0x40
jb 0x422371
mov ecx, dword [ebp - 8]
add dword [esi + 0x104], ecx
jmp 0x422396
movzx eax, word [ebp - 0x40]
mov cx, word [ebp - 0x42]
movzx edx, word [ebp - 0x42]
shl eax, 9
sub eax, edx
movzx ecx, cx
add eax, ecx
neg eax
sbb eax, eax
and eax, 0x200
add dword [esi + 0x104], eax
inc edi
cmp edi, 0x14
jl 0x422310
cmp edi, 0x14
je 0x422412
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [esi + 0x104]
mov edx, dword [edx + 0x24]
push 0
push eax
call edx
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push pe_nt_image_headers32
lea edx, [esi + 0x160]
push edx
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 0
push 0x200
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push 6
lea eax, [ebp - 0x44]
push eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bfc7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x44]
cmp eax, 0x4550
je 0x4223a0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0046bfc7
mov esp, ebp
pop ebp
ret
Function at 0x424fe0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x59339c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [esi + 0x104], 0
xor edi, edi
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov edx, dword [esi + 0x104]
mov eax, dword [eax + 0x24]
push 0
push edx
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push 0x40
lea eax, [ebp - 0x44]
push eax
call edx
mov ax, word [ebp - 0x44]
mov ecx, 0x5a4d
cmp ax, cx
jne 0x4250d7
mov dx, word [ebp - 0x2c]
cmp dx, 0x40
jb 0x425044
mov eax, dword [ebp - 8]
jmp 0x425063
mov cx, word [ebp - 0x40]
movzx eax, cx
movzx ecx, word [ebp - 0x42]
movzx edx, word [ebp - 0x42]
shl eax, 9
sub eax, edx
add eax, ecx
neg eax
sbb eax, eax
and eax, 0x200
add dword [esi + 0x104], eax
inc edi
cmp edi, 0x14
jl 0x425000
cmp edi, 0x14
je 0x4250e1
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [esi + 0x104]
mov edx, dword [edx + 0x24]
push 0
push eax
call edx
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push 0x108
lea edx, [esi + 0x160]
push edx
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 0
push 0x200
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push 6
lea eax, [ebp - 0x44]
push eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bfc7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x44]
cmp eax, 0x4550
je 0x42506f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0046bfc7
mov esp, ebp
pop ebp
ret
Function at 0x433eb0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov cl, byte [edx]
mov eax, 0x1505
test cl, cl
je 0x433ed7
push esi
mov esi, eax
shl esi, 5
add esi, eax
movzx eax, cl
mov cl, byte [edx + 1]
inc edx
add eax, esi
test cl, cl
jne 0x433ec2
pop esi
pop ebp
ret

Function at 0x433ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov dl, byte [esi]
xor eax, eax
test dl, dl
je 0x433f13
nop
mov ecx, eax
movsx eax, dl
shl ecx, 4
add ecx, eax
mov eax, ecx
and eax, 0xf0000000
mov edx, eax
not edx
and edx, ecx
shr eax, 0x18
inc esi
xor eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x433ef0
pop esi
pop ebp
ret

Function at 0x437db0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489558
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x59339c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x4ae
lea ecx, [ebp - 0x14]
call fcn.0041c9a0
mov edi, dword [ebp - 0x14]
mov ecx, 0x12b
mov esi, 0x5180e8
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0
push 0
mov ecx, ebx
mov dword [ebp - 4], 0
movsw word es:[edi], word [esi]
call fcn.0041e100
mov eax, dword [ebx + 0x204]
mov ecx, dword [ebp - 0x14]
push eax
push 0x5052c0
push 0x4ae
push ecx
mov ecx, ebx
call fcn.0041e1c0
mov edx, dword [ebx + 0x200]
mov eax, dword [ebp - 0x14]
push edx
push 0x49970c
push 0x4ae
push eax
mov ecx, ebx
call fcn.0041e1c0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov esi, eax
mov ecx, 0xe
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.0040f010
mov esi, dword [ebp + 8]
movzx eax, byte [esi + 0x14]
mov edx, dword [ebx]
mov edx, dword [edx + 0xb4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push 0x4ae
mov dword [ebp - 0x44], ecx
push eax
lea ecx, [ebp - 0x54]
push ecx
or edi, 0xffffffff
mov ecx, ebx
mov dword [ebp - 0x18], edi
call edx
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
add edx, 0x2c
push edx
call eax
mov ecx, dword [ebp - 0x14]
add eax, 2
shl eax, 5
mov edx, dword [ecx + eax]
test edx, edx
jne 0x437ec1
cmp eax, 0x80
jae 0x437ec1
mov eax, 0x80
mov edx, dword [ebp - 0x14]
mov ecx, 0x4ae
sub ecx, eax
push ecx
add edx, eax
push edx
lea ecx, [ebp - 0x54]
call fcn.0040f050
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov edx, dword [eax + 0x100]
push esi
push 0x4ae
push ecx
push 0x74e9
push 0x510bf8
mov ecx, ebx
call edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.0041cc00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44dd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x40
jae 0x44dd0d
xor al, al
pop ebp
ret
mov ecx, dword [ebp + 8]
xor eax, eax
xor byte [eax + ecx], 0x68
inc eax
cmp eax, 0x40
jb 0x44dd12
mov al, 1
pop ebp
ret
Function at 0x459ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
call fcn.0046e8b9
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
test ebx, ebx
jle 0x459f4b
lea esp, [esp]
call fcn.0046e8b9
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
push ecx
push edi
push edx
mov dword [eax], 0
call fcn.0047c8c2
add esp, 0xc
test eax, eax
je 0x459f4b
jns 0x459f43
call fcn.0046e8b9
cmp dword [eax], 0xb
je 0x459f47
call fcn.0046e8b9
cmp dword [eax], 4
je 0x459f47
call fcn.0046e8b9
cmp dword [eax], 0
jne 0x459f55
call fcn.0046e8b9
pop edi
mov dword [eax], 1
mov eax, esi
pop esi
pop ebx
pop ebp
ret
add edi, eax
add esi, eax
cmp esi, ebx
jl 0x459ef0
call fcn.0046e8b9
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x45e400
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
mov eax, dword [ecx]
sub eax, edi
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
test edi, edi
je 0x45e474
push ebx
push esi
mov esi, dword [ecx + 0x60]
movzx ebx, byte [esi + edx]
movzx eax, byte [esi + edx + 1]
movzx esi, byte [esi + edx + 2]
shl ebx, 5
xor eax, ebx
mov ebx, dword [ecx + 0x68]
shl eax, 5
xor eax, esi
mov esi, dword [ecx + 0x64]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
mov esi, dword [esi + eax*4]
mov dword [ebx + edx*4], esi
mov esi, dword [ecx + 0x64]
mov dword [esi + eax*4], edx
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 0x6c]
inc esi
mov dword [ebx + edx*4], esi
mov esi, dword [ecx + 0x70]
inc dword [esi + eax*4]
lea eax, [esi + eax*4]
mov eax, dword [ecx + 0x60]
movzx eax, word [eax + edx]
mov esi, dword [ecx + 0x74]
mov dword [esi + eax*4], edx
inc edx
dec edi
jne 0x45e413
pop esi
pop ebx
pop edi
ret
Function at 0x45fcc0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x45fcdc
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x45fddb
jmp 0x45fcf0
mov eax, ebx
cmp ebx, 0x15b0
jb 0x45fcff
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x45fd9e
lea ebx, [ebx]
movzx edx, byte [esi]
add ecx, edx
movzx edx, byte [esi + 1]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 2]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 3]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 4]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 5]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 6]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 7]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 8]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 9]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xa]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xb]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xc]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xd]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xe]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xf]
add edi, ecx
add ecx, edx
sub eax, 0x10
add edi, ecx
add esi, 0x10
cmp eax, 0x10
jge 0x45fd10
test eax, eax
je 0x45fdaf
movzx edx, byte [esi]
add ecx, edx
dec eax
inc esi
add edi, ecx
test eax, eax
jg 0x45fda2
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
jne 0x45fcf0
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
pop ebp
ret

Function at 0x464d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov dword [esi], 0
lea esp, [esp]
mov eax, dword [esi]
mov ecx, edi
sub ecx, eax
add eax, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebx + 0x14]
push eax
call fcn.0047c8c2
add esp, 0xc
test eax, eax
jle 0x464d33
add dword [esi], eax
cmp dword [esi], edi
jb 0x464d10
test eax, eax
jns 0x464d53
call fcn.0046e8b9
mov ecx, dword [eax]
push ecx
call fcn.0046fe15
push eax
push 0xffffffffffffffff
push ebx
call fcn.00465340
add esp, 0x10
or eax, 0xffffffff
pop ebp
ret
test eax, eax
jne 0x464d5e
mov dword [ebx + 0x40], 1
xor eax, eax
pop ebp
ret
Function at 0x46ba7f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x59546c], 0
push esi
push edi
jne 0x46b9f5
call fcn.0046b961
test eax, eax
je 0x46ba3a
mov eax, dword [0x59546c]
cmp eax, 1
jne 0x46ba16
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x46ba3a
jmp 0x46ba7c
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x46ba7c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46ba3e
xor eax, eax
jmp 0x46ba7c
mov eax, dword [esi]
push dword [0x59546c]
call edi
mov edi, eax
test edi, edi
je 0x46ba60
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x46ba7c
lea edi, [esi + 0xff0]
push esi
push dword [0x59546c]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x46ba66
mov eax, esi
pop edi
pop esi
ret
jmp 0x46b9e1

Function at 0x46bfc7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59339c]
jne 0x46bfd1
repz ret
jmp fcn.0047225c
Function at 0x477950
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59339c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00472f75
and dword [ebp - 0x14], 0
cmp dword [0x596060], 0
mov dword [ebp - 0x18], eax
jne 0x477a03
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x477aab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x477aab
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x589a34
push ebx
mov dword [0x596060], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x596064], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x596068], eax
call edi
push eax
call esi
mov dword [0x596070], eax
test eax, eax
je 0x477a03
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x59606c], eax
mov eax, dword [0x59606c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x477a5c
cmp dword [0x596070], ecx
je 0x477a5c
push eax
call esi
push dword [0x596070]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x477a5c
test ebx, ebx
je 0x477a5c
call edi
test eax, eax
je 0x477a53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x477a53
test byte [ebp - 8], 1
jne 0x477a5c
or dword [ebp + 0x10], 0x200000
jmp 0x477a8f
mov eax, dword [0x596064]
cmp eax, dword [ebp - 0x18]
je 0x477a8f
push eax
call esi
test eax, eax
je 0x477a8f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x477a8f
mov eax, dword [0x596068]
cmp eax, dword [ebp - 0x18]
je 0x477a8f
push eax
call esi
test eax, eax
je 0x477a8f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x596060]
call esi
test eax, eax
je 0x477aab
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x477aad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bfc7
leave
ret

Function at 0x487f58
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x487f80
call fcn.0046e8cc
and dword [eax], 0
call fcn.0046e8b9
mov dword [eax], 0x16
call fcn.00473573
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x487f9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046e8df
pop ecx
jmp 0x487f7b
test byte [ebp + 0xc], 0x80
je 0x487fa8
and eax, 0xfffffffe
jmp 0x487fab
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x487f8e
xor eax, eax
pop ebp
ret
Function at 0x401c3b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov dword [ebp - 4], ecx
push edi
lea ecx, [ebp - 0x10]
mov ebx, edx
call fcn.00410ea0
lea ecx, [ebp - 0x1c]
call fcn.00410ea0
push 0x3c
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 0x740
mov dword [ebp - 0x3c], 0xa
test bl, 1
je 0x401c93
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], 0x8740
test bl, 2
je 0x401c9f
mov dword [ebp - 0x4c], str.runas
and ebx, 0x10000
jne 0x401cae
or dword [ebp - 0x54], 0x100
mov eax, dword [0x41e72c]
push 5
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
call fcn.00403066
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410f25
cmp dword [ebp - 0xc], edi
jne 0x401cf6
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x401d3d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401d2b
cmp ebx, edi
jne 0x401d1f
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret 4