joyce8/EMBER2024-capa huggingface dataset:
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, 0x438fd0
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x438dd0]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x438dd0]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x438dd0]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x438dd0]
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 + 0x438dd0]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x438dd0]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x438dd0]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x438dd0]
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 [0x43bff8]
test esi, esi
jne 0x4057d0
mov ecx, 0x43bff0
call fcn.00405733
mov esi, dword [0x43bff8]
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, 0x451b84
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 [0x43bffc]
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 0x4061ff
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x40a250
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x44c690], 0
je 0x40a25d
or eax, 0xffffffff
ret
mov eax, dword [0x43c56c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40a29b
mov ecx, dword [0x43c568]
jl 0x40a276
cmp ecx, ebp
ja 0x40a29b
or ebx, 0xffffffff
mov dword [0x44c5b0], ebp
add ecx, ebx
mov dword [0x44c5b4], ebp
mov dword [0x43c568], ecx
adc eax, ebx
mov dword [0x43c56c], eax
mov eax, ebx
jmp 0x40a3a5
push esi
push edi
mov edi, dword [0x44c5b4]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40a300
jl 0x40a2b6
mov esi, dword [0x44c5b0]
cmp esi, ebp
ja 0x40a306
mov esi, 0x2000
push esi
push dword [0x44c5a4]
call fcn.0040a57f
cdq
mov ecx, eax
mov dword [0x44c5b0], eax
or ecx, edx
mov dword [0x44c5b4], edx
je 0x40a342
and eax, edx
cmp eax, ebx
je 0x40a333
add dword [0x44c5e8], esi
mov eax, dword [0x44c5a4]
adc dword [0x44c5ec], ebp
mov dword [0x44c5a8], eax
call fcn.00409cc7
mov edi, dword [0x44c5b4]
mov esi, dword [0x44c5b0]
mov eax, dword [0x43c598]
test byte [eax + 0x40], 1
je 0x40a385
cmp byte [0x44d845], 0
mov eax, esi
je 0x40a352
or eax, edi
je 0x40a385
push 0x44d850
push esi
push dword [0x44c5a8]
call fcn.0040d65e
jmp 0x40a379
push 0x45af1a
mov ecx, 0x451b84
call fcn.00401951
mov dword [0x44c5b0], ebp
mov eax, ebx
mov dword [0x44c5b4], ebp
jmp 0x40a3a3
or eax, edi
mov ebp, dword [0x44c5a8]
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 [0x44c5b0]
mov edi, dword [0x44c5b4]
mov eax, dword [0x44c5a8]
add esi, ebx
mov dword [0x44c5b0], esi
adc edi, ebx
mov dword [0x44c5b4], edi
movzx eax, byte [eax]
inc dword [0x44c5a8]
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 [0x44c5c8]
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 [0x44c5c8]
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 [0x44c5c8]
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 [0x44c5c8]
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 [0x43c598]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44c607]
test byte [eax + 0x40], 2
jne 0x40d38c
movzx ecx, byte [0x44c60f]
cmp edx, ecx
je 0x40d395
or eax, 0xffffffff
jmp 0x40d3d8
mov ecx, dword [0x44c5b0]
mov eax, ecx
cdq
cmp edx, dword [0x43c56c]
jl 0x40d3b2
mov esi, dword [0x43c568]
jg 0x40d3b4
cmp eax, esi
ja 0x40d3b4
mov esi, ecx
push edi
mov edi, dword [0x44c5a8]
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 [0x44d6d0]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x44d6d8]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x43c140]
movzx eax, cl
add eax, dword [0x44d6d4]
mov dword [0x44d6d0], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x44d6d4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x43c140]
mov dword [0x44d6d8], edx
ret 4
Function at 0x40d439
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2f0
push ebx
push esi
mov esi, 0xa8
lea eax, [esp + 0x40]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00414730
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x304]
push dword [esp + 0x304]
call fcn.0040d908
push esi
lea eax, [esp + 0x44]
mov byte [esp + 0xe], bl
push eax
lea eax, [esp + 0x1f8]
mov byte [esp + 0x13], bl
push eax
call fcn.00414f50
add esp, 0xc
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x194]
push eax
lea eax, [esp + 0x1f8]
push eax
push dword [esp + 0x314]
push dword [esp + 0x314]
call fcn.0040d784
mov eax, dword [esp + 0x314]
xor edx, edx
push 0x14
dec eax
pop ecx
div ecx
add eax, 1
mov dword [esp + 0x14], eax
je 0x40d5fa
push ebp
push edi
mov edi, ebx
lea ebp, [esp + 0x34]
inc ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
push ecx
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00414730
push esi
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.00414f50
mov eax, ebx
mov byte [esp + 0x3b], bl
shr eax, 0x18
add esp, 0x18
mov byte [esp + 0x20], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x21], al
mov eax, ebx
shr eax, 8
cmp dword [esp + 0x314], 0
push 4
mov byte [esp + 0x26], al
pop esi
jbe 0x40d5af
mov ebp, dword [esp + 0x314]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x19c]
push eax
lea eax, [esp + 0xf8]
push eax
push esi
lea eax, [esp + 0x30]
push eax
call fcn.0040d784
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x2a4]
push eax
lea eax, [esp + 0xf8]
push eax
push 0x14
lea eax, [esp + 0x30]
push eax
call fcn.0040d84e
xor esi, esi
mov al, byte [esp + esi + 0x20]
xor byte [esp + esi + 0x34], al
inc esi
cmp esi, 0x14
jb 0x40d57e
push 0xa8
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.00414f50
add esp, 0xc
sub ebp, 1
jne 0x40d53b
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x318]
xor edx, edx
mov ebx, dword [esp + 0x31c]
mov ecx, edi
cmp ecx, ebx
jae 0x40d5d2
mov al, byte [ecx + ebp]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x40d5c1
mov ebx, dword [esp + 0x14]
mov esi, 0xa8
inc ebx
push 0x14
pop ecx
sub ebp, ecx
mov dword [esp + 0x14], ebx
lea eax, [ebx - 1]
mov dword [esp + 0x18], ebp
add edi, ecx
cmp eax, dword [esp + 0x1c]
jb 0x40d4e2
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2f0
ret 0x1c
Function at 0x40d784
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0xa0]
cmp eax, 0xffffffff
je 0x40d832
push ebp
push esi
push edi
push 0x40
pop edi
cmp eax, edi
jbe 0x40d7b6
push ebx
lea eax, [ebx + 0x40]
push eax
call fcn.0040d972
mov dword [ebx + 0xa0], 0x14
cmp dword [esp + 0x20], 0
je 0x40d7d6
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x40d7d6
mov esi, dword [esp + 0x20]
lea ebp, [ebx + 0x40]
push 0x18
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
jmp 0x40d80e
mov ecx, dword [ebx + 0xa0]
mov eax, edi
sub eax, ecx
xor esi, esi
push eax
push esi
lea eax, [ecx + ebx]
push eax
call fcn.00414730
add esp, 0xc
xor byte [esi + ebx], 0x36
inc esi
cmp esi, edi
jb 0x40d7f0
lea ebp, [ebx + 0x40]
push ebp
call fcn.004061ff
push edi
push ebx
push ebp
call fcn.00406230
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
je 0x40d828
cmp byte [eax], 0
jne 0x40d828
mov edi, dword [esp + 0x20]
mov esi, ebp
push 0x18
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
or dword [ebx + 0xa0], 0xffffffff
pop edi
pop esi
pop ebp
cmp dword [esp + 0xc], 0
je 0x40d84a
push dword [esp + 0xc]
lea eax, [ebx + 0x40]
push dword [esp + 0xc]
push eax
call fcn.00406230
pop ebx
ret 0x14

Function at 0x40d84e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
xor esi, esi
cmp dword [edi + 0xa0], 0xffffffff
je 0x40d86e
push esi
push esi
push edi
push esi
push esi
call fcn.0040d784
lea eax, [esp + 0x10]
push eax
lea ebx, [edi + 0x40]
push ebx
call fcn.0040d972
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40d898
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x40d898
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x40d8b5
xor byte [esi + edi], 0x6a
inc esi
cmp esi, 0x40
jb 0x40d898
push ebx
call fcn.004061ff
push 0x40
push edi
push ebx
call fcn.00406230
mov eax, dword [esp + 0x38]
test ebp, ebp
je 0x40d8ca
cmp byte [eax], 0
jne 0x40d8ca
push 0x18
pop ecx
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00406230
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0040d972
cmp dword [esp + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40d902
push dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push dword [esp + 0x20]
call fcn.00414f50
add esp, 0xc
add esp, 0x14
ret 0x14
Function at 0x40eb95
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x26], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.0040e894
cmp dword [ebx + 0x1c], 0
je 0x40ebce
push dword [ebx + 0x1c]
call fcn.0041898e
pop ecx
cmp dword [esp + 0x28], 0
jne 0x40ebd9
xor eax, eax
jmp 0x40ebe3
push dword [esp + 0x28]
call fcn.0041c4c6
pop ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x20], eax
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x40ec1f
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
push edi
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x2c]
xor esi, esi
push edi
push 0x40000000
push esi
push 0x4291f0
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x40eca1
test ebp, ebp
je 0x40ecb7
cmp dword [ebx + 0x20], esi
jne 0x40ecb7
cmp dword [ebx + 0x1c], esi
je 0x40ecb7
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.0040e98c
mov esi, eax
test esi, esi
je 0x40ecb7
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0041898e
pop ecx
jmp 0x40ecb7
test eax, eax
je 0x40ecb7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x40f12c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x42a0ac
push 1
push ebx
push 0x42a19c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40f261
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push 0x42a18c
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x428220]
call dword [esi]
test eax, eax
js 0x40f24d
cmp byte [ebp + 8], bl
je 0x40f192
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x428220]
call esi
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x428220]
call esi
cmp dword [ebp + 0x18], ebx
je 0x40f1c3
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x428220]
call esi
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
cmp dword [ebp + 0x1c], ebx
jne 0x40f1da
push 0x428544
jmp 0x40f1dd
push dword [ebp + 0x1c]
push eax
call dword [0x428220]
call esi
cmp dword [ebp + 0x20], ebx
je 0x40f201
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x428220]
call esi
cmp dword [ebp + 0x14], ebx
je 0x40f21c
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x428220]
call esi
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x428220]
call esi
test eax, eax
js 0x40f23a
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x428220]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x428220]
call esi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x40f2f4
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40f36c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push 0x429404
push dword [esp + 0x14]
push dword [0x44da5c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40f47f
push edi
push esi
push dword [0x44da5c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40f3c0
push esi
push dword [0x44da5c]
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 [0x44ea7a], 0
je 0x40fa6c
push esi
push 6
push dword [0x4324ec]
mov esi, 0x44ea7a
push esi
call fcn.00403704
push eax
call fcn.00407b7d
test eax, eax
jne 0x40fa6b
push 0x44da78
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 [0x432504], 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 [0x464330], ax
xor eax, eax
mov word [0x464332], ax
mov dword [0x432504], 0x464330
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 0x4324f4
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 [0x44fa80], 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