joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401642
test dl, 7
je 0x401642
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x432d70]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x401622
cmp esi, 8
jb 0x4016d2
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x432d70]
xor ecx, dword [eax*4 + 0x433170]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x433570]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x433d70]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x434170]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x434570]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x433970]
movzx eax, bl
xor ecx, dword [eax*4 + 0x434970]
mov ebx, ecx
sub edi, 1
jne 0x401651
pop edi
test esi, esi
je 0x4016ee
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x432d70]
inc edx
sub esi, 1
jne 0x4016d6
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401cee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 1
jne 0x401d07
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401d7a
mov ecx, esi
call fcn.00401dfd
test al, al
je 0x401d42
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401d42
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401cee
jmp 0x401d7d
cmp dword [esi + 0xc], 1
jne 0x401d57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401d57
xor eax, eax
jmp 0x401d7d
cmp dword [esi + 0xc], 0
jne 0x401d75
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x401d75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401d75
push edi
jmp 0x401d36
or eax, 0xffffffff
jmp 0x401d7d
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40230f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, ecx
test ebp, ebp
jne 0x402324
mov al, 1
jmp 0x402428
cmp dword [ebx + 0xc], 1
jne 0x402335
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebx + 4], eax
push esi
push edi
mov edi, 0x4000
and dword [esp + 0x10], 0
cmp dword [ebx + 0xc], 0
mov byte [esp + 0x14], 0
je 0x402389
xor esi, esi
test ebp, ebp
je 0x4023ad
mov eax, ebp
sub eax, esi
cmp eax, edi
jb 0x40235c
mov eax, edi
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x28]
add eax, esi
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
add al, 1
mov dword [esp + 0x14], eax
je 0x4023ad
add esi, edi
cmp esi, ebp
jb 0x402352
jmp 0x4023a9
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push dword [esp + 0x28]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov dword [esp + 0x14], eax
test al, al
jne 0x40241e
cmp byte [ebx + 0x1a], 0
je 0x40241e
cmp dword [ebx + 0xc], 0
jne 0x40241e
push 0
lea esi, [ebx + 0x24]
mov ecx, 0x451b74
push esi
call fcn.004017d2
test al, al
je 0x402411
cmp dword [esp + 0x10], ebp
jae 0x40233c
cmp dword [esp + 0x10], 0
jbe 0x40233c
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x428220]
mov ecx, ebx
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x428220]
mov ecx, ebx
call dword [edi + 0x10]
jmp 0x402337
push esi
push 0
mov ecx, 0x451b74
call fcn.00401a1b
mov al, byte [esp + 0x14]
pop edi
mov byte [ebx + 8], 1
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 8

Function at 0x402574
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413660
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4025b9
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004033d9
test al, al
je 0x4025b9
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x405395
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [ecx + 0x18]
jbe 0x405410
mov edx, dword [esp + 0x18]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x4053c0
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x4053f2
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 8], edi
lea edi, [ecx + 0x18]
sub dword [esp + 8], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x4053dc
mov edx, dword [esp + 0x18]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x14], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x18], edx
movups xmmword [eax], xmm1
jne 0x4053ae
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
pop ecx
ret 0xc

Function at 0x40541a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x4054c8
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x43bbe0]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x43b3e0]
xor dl, byte [esi + eax*4 + 0x43afe0]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x43b7e0]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x405452
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x405447
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00414f50
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x40543e
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x4054ce
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x14]
push edi
push 0x20
push dword [esp + 0x40]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.00414f50
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test esi, esi
jle 0x405547
cmp ebx, dword [ebp + 4]
jg 0x4056a4
cmp edx, esi
jge 0x40553b
lea ebp, [esp + 0x18]
lea ebp, [ebp + edx*4]
cmp edi, 4
jge 0x405537
mov esi, dword [esp + 0x10]
lea ecx, [edi + ebx*4]
mov eax, dword [ebp]
inc edx
add ebp, 4
inc edi
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edx, esi
jl 0x405517
mov ebp, dword [esp + 0x10]
cmp edi, 4
jne 0x405543
inc ebx
xor edi, edi
cmp edx, esi
jl 0x405502
cmp ebx, dword [ebp + 4]
jg 0x4056a4
mov edx, 0x438fc0
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x438dc0]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x438dc0]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x438dc0]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x438dc0]
xor byte [esp + 0x1b], al
mov al, byte [edx]
xor byte [esp + 0x18], al
inc edx
mov dword [esp + 0x14], edx
cmp esi, 8
je 0x4055d4
cmp esi, 1
jle 0x405652
lea eax, [esi - 1]
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], eax
xor ecx, ecx
mov al, byte [edx + ecx - 4]
xor byte [edx + ecx], al
inc ecx
cmp ecx, 4
jl 0x4055bb
add edx, 4
sub dword [esp + 0x10], 1
jne 0x4055b9
jmp 0x405652
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 3
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x4055e3
sub dword [esp + 0x10], 1
jne 0x4055e0
movzx eax, byte [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], 3
mov al, byte [eax + 0x438dc0]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x438dc0]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x438dc0]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x438dc0]
xor byte [esp + 0x2b], al
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x405640
sub dword [esp + 0x10], 1
jne 0x40563d
xor edx, edx
test esi, esi
jle 0x405697
cmp ebx, dword [ebp + 4]
jg 0x40569a
cmp edx, esi
jge 0x40568b
lea eax, [esp + 0x18]
lea eax, [eax + edx*4]
mov dword [esp + 0x10], eax
cmp edi, 4
jge 0x40568e
mov eax, dword [eax]
lea ecx, [edi + ebx*4]
mov dword [ebp + ecx*4 + 0x18], eax
inc edx
mov eax, dword [esp + 0x10]
add eax, 4
inc edi
mov dword [esp + 0x10], eax
cmp edx, esi
jl 0x40566c
cmp edi, 4
jne 0x405693
inc ebx
xor edi, edi
cmp edx, esi
jl 0x405658
cmp ebx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
jle 0x405555
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4057b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x43bfe8]
test esi, esi
jne 0x4057d0
mov ecx, 0x43bfe0
call fcn.00405733
mov esi, dword [0x43bfe8]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
and eax, 0xfffffff0
cmp byte [ebp + 0x14], cl
setne cl
cmp byte [ebp + 0x10], 0
je 0x40581f
test esi, esi
je 0x405843
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x428220]
call esi
test eax, eax
jne 0x405868
push str.CryptProtectMemory_failed
mov esi, 0x451b74
push esi
call fcn.0040183d
pop ecx
pop ecx
mov ecx, esi
call fcn.00418350
push 2
mov ecx, esi
call fcn.00401838
jmp 0x405868
mov esi, dword [0x43bfec]
test esi, esi
je 0x405843
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x428220]
call esi
test eax, eax
jne 0x405868
push str.CryptUnprotectMemory_failed
jmp 0x405800
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
cmp dword [ebp + 0xc], edx
jbe 0x405867
mov esi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + esi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x405859
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x40a250
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x44c680], 0
je 0x40a25d
or eax, 0xffffffff
ret
mov eax, dword [0x43c55c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40a29b
mov ecx, dword [0x43c558]
jl 0x40a276
cmp ecx, ebp
ja 0x40a29b
or ebx, 0xffffffff
mov dword [0x44c5a0], ebp
add ecx, ebx
mov dword [0x44c5a4], ebp
mov dword [0x43c558], ecx
adc eax, ebx
mov dword [0x43c55c], eax
mov eax, ebx
jmp 0x40a3a5
push esi
push edi
mov edi, dword [0x44c5a4]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40a300
jl 0x40a2b6
mov esi, dword [0x44c5a0]
cmp esi, ebp
ja 0x40a306
mov esi, 0x2000
push esi
push dword [0x44c594]
call fcn.0040a57f
cdq
mov ecx, eax
mov dword [0x44c5a0], eax
or ecx, edx
mov dword [0x44c5a4], edx
je 0x40a342
and eax, edx
cmp eax, ebx
je 0x40a333
add dword [0x44c5d8], esi
mov eax, dword [0x44c594]
adc dword [0x44c5dc], ebp
mov dword [0x44c598], eax
call fcn.00409cc7
mov edi, dword [0x44c5a4]
mov esi, dword [0x44c5a0]
mov eax, dword [0x43c588]
test byte [eax + 0x40], 1
je 0x40a385
cmp byte [0x44d835], 0
mov eax, esi
je 0x40a352
or eax, edi
je 0x40a385
push 0x44d840
push esi
push dword [0x44c598]
call fcn.0040d65e
jmp 0x40a379
push 0x45af0a
mov ecx, 0x451b74
call fcn.00401951
mov dword [0x44c5a0], ebp
mov eax, ebx
mov dword [0x44c5a4], ebp
jmp 0x40a3a3
or eax, edi
mov ebp, dword [0x44c598]
je 0x40a385
add esi, ebx
adc edi, ebx
call fcn.0040d2cd
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040d3df
mov eax, esi
inc ebp
or eax, edi
jne 0x40a35c
mov esi, dword [0x44c5a0]
mov edi, dword [0x44c5a4]
mov eax, dword [0x44c598]
add esi, ebx
mov dword [0x44c5a0], esi
adc edi, ebx
mov dword [0x44c5a4], edi
movzx eax, byte [eax]
inc dword [0x44c598]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40bc7d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [0x44c5b8]
xor ebx, ebx
push ebx
push ebx
push ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x428220]
mov ecx, edi
call esi
mov edi, dword [0x44c5b8]
lea ecx, [ebp - 0x108]
push 0x40
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x428220]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x40bd8a
cmp byte [ebp - 0x108], 0x4d
jne 0x40bd8a
cmp byte [ebp - 0x107], 0x5a
jne 0x40bd8a
mov edi, dword [0x44c5b8]
push ebx
push ebx
push dword [ebp - 0xcc]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x428220]
mov ecx, edi
call esi
mov edi, dword [0x44c5b8]
lea ecx, [ebp - 0x108]
mov ebx, 0x108
push ebx
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x428220]
mov ecx, edi
call esi
cmp eax, ebx
jne 0x40bd8a
cmp byte [ebp - 0x108], 0x50
jne 0x40bd8a
cmp byte [ebp - 0x107], 0x45
jne 0x40bd8a
cmp byte [ebp - 0x106], 0
jne 0x40bd8a
cmp byte [ebp - 0x105], 0
jne 0x40bd8a
cmp byte [ebp - 0xf0], 0xb
jne 0x40bd8a
cmp byte [ebp - 0xef], 1
jne 0x40bd73
cmp dword [ebp - 0x94], 4
jbe 0x40bd8a
mov eax, dword [ebp - 0x70]
jmp 0x40bd8c
cmp byte [ebp - 0xef], 2
jne 0x40bd8a
cmp dword [ebp - 0x84], 4
jbe 0x40bd8a
mov eax, dword [ebp - 0x60]
jmp 0x40bd8c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d32e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040d2eb
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414f50
add esp, 0xc
xor esi, esi
call fcn.0040d2cd
movzx ecx, byte [ebp + esi - 0xc]
xor eax, ecx
mov byte [ebp + esi - 0xc], al
movzx eax, al
push eax
call fcn.0040d3df
inc esi
cmp esi, 0xc
jl 0x40d350
mov eax, dword [0x43c588]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44c5f7]
test byte [eax + 0x40], 2
jne 0x40d38c
movzx ecx, byte [0x44c5ff]
cmp edx, ecx
je 0x40d395
or eax, 0xffffffff
jmp 0x40d3d8
mov ecx, dword [0x44c5a0]
mov eax, ecx
cdq
cmp edx, dword [0x43c55c]
jl 0x40d3b2
mov esi, dword [0x43c558]
jg 0x40d3b4
cmp eax, esi
ja 0x40d3b4
mov esi, ecx
push edi
mov edi, dword [0x44c598]
test esi, esi
je 0x40d3d5
call fcn.0040d2cd
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040d3df
inc edi
sub esi, 1
jne 0x40d3bf
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40d3df
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x44d6c0]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x44d6c8]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x43c130]
movzx eax, cl
add eax, dword [0x44d6c4]
mov dword [0x44d6c0], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x44d6c4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x43c130]
mov dword [0x44d6c8], edx
ret 4
Function at 0x40f36c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push 0x429404
push dword [esp + 0x14]
push dword [0x44da4c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40f47f
push edi
push esi
push dword [0x44da4c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40f3c0
push esi
push dword [0x44da4c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f3c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40f3c7
xor eax, eax
jmp 0x40f47e
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40f478
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40f471
push edi
push esi
push eax
call fcn.00414f50
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40f46a
push ebp
push dword [esp + 0x14]
call fcn.0040f2cb
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x428220]
call esi
test edi, edi
je 0x40f46a
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x40f458
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x40f458
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x428220]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x40f9d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00413660
cmp word [0x44ea6a], 0
je 0x40fa6c
push esi
push 6
push dword [0x4324e8]
mov esi, 0x44ea6a
push esi
call fcn.00403704
push eax
call fcn.00407b7d
test eax, eax
jne 0x40fa6b
push 0x44da68
call fcn.0040f872
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.00406748
lea eax, [ebp - 0x1024]
push eax
call fcn.00418973
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00414730
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fac8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x432500], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x40fb13
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x464320], ax
xor eax, eax
mov word [0x464322], ax
mov dword [0x432500], 0x464320
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406617
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x4324f0
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40fdac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00413660
cmp byte [0x44fa70], 0
je 0x40fe5a
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.00411280
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fe5a
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fe51
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x40fe35
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00406748
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x412563
Capabilities:
Hide graphical window

Disassembly:
and dword [0x44da54], 0
push 1
push dword [esp + 8]
mov byte [0x44da49], 1
mov byte [0x44da4a], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401197
cmp dword [0x44da34], 0
jne 0x4125a3
cmp byte [0x44da63], 0
je 0x4125ac
cmp dword [0x44da5c], 0
jne 0x4125bf
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x412692
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00413660
cmp byte [0x44fa70], 0
je 0x412721
cmp word [0x44fa72], 0
je 0x412721
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44fa72
call fcn.00411280
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412720
push dword [ebp + 8]
call fcn.00418973
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x412727
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00413660
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040648c
mov esi, eax
test esi, esi
je 0x41277f
movzx ecx, word [esi]
push ecx
jmp 0x41276a
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004065a5
test al, al
jne 0x412763
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x405f20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4262eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4041f4
call fcn.00406b81
push 4
mov dword [esp + 0x18], 0
call fcn.0040783b
mov edi, eax
add esp, 4
test edi, edi
je 0x405f94
push ebx
call fcn.00406a59
mov dword [edi], eax
call fcn.00406818
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406b42
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405f88
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406b6a
pop ebx
jmp 0x405f96
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4082b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429648]
jne 0x4082bb
repz ret
jmp fcn.0040cb3c