joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405357
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.004141a0
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test esi, esi
jle 0x4053d0
cmp ebx, dword [ebp + 4]
jg 0x40552d
cmp edx, esi
jge 0x4053c4
lea ebp, [esp + 0x18]
lea ebp, [ebp + edx*4]
cmp edi, 4
jge 0x4053c0
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 0x4053a0
mov ebp, dword [esp + 0x10]
cmp edi, 4
jne 0x4053cc
inc ebx
xor edi, edi
cmp edx, esi
jl 0x40538b
cmp ebx, dword [ebp + 4]
jg 0x40552d
mov edx, 0x438120
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x437f20]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x437f20]
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 0x40545d
cmp esi, 1
jle 0x4054db
lea eax, [esi - 1]
lea edx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov al, byte [edx + ecx - 4]
xor byte [edx + ecx], al
inc ecx
cmp ecx, 4
jl 0x405444
add edx, 4
sub dword [esp + 0x3c], 1
jne 0x405442
jmp 0x4054db
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 3
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x40546c
sub dword [esp + 0x3c], 1
jne 0x405469
movzx eax, byte [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 3
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x2b], al
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x4054c9
sub dword [esp + 0x3c], 1
jne 0x4054c6
xor edx, edx
test esi, esi
jle 0x405520
cmp ebx, dword [ebp + 4]
jg 0x405523
cmp edx, esi
jge 0x405514
lea eax, [esp + 0x18]
lea eax, [eax + edx*4]
mov dword [esp + 0x3c], eax
cmp edi, 4
jge 0x405517
mov eax, dword [eax]
lea ecx, [edi + ebx*4]
mov dword [ebp + ecx*4 + 0x18], eax
inc edx
mov eax, dword [esp + 0x3c]
add eax, 4
inc edi
mov dword [esp + 0x3c], eax
cmp edx, esi
jl 0x4054f5
cmp edi, 4
jne 0x40551c
inc ebx
xor edi, edi
cmp edx, esi
jl 0x4054e1
cmp ebx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
jle 0x4053de
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x40563b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x43b148]
test eax, eax
jne 0x405656
mov ecx, 0x43b140
call fcn.004055bc
mov eax, dword [0x43b148]
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ecx, esi
and ecx, 0xfffffff0
cmp byte [ebp + 0x14], dl
setne dl
cmp byte [ebp + 0x10], 0
je 0x4056a0
test eax, eax
je 0x4056bb
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x4056e0
push str.CryptProtectMemory_failed
mov esi, 0x450cd4
push esi
call fcn.004017d5
pop ecx
pop ecx
mov ecx, esi
call fcn.0040195b
push 2
mov ecx, esi
call fcn.004017d0
jmp 0x4056e0
mov eax, dword [0x43b14c]
test eax, eax
je 0x4056bb
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x4056e0
push str.CryptUnprotectMemory_failed
jmp 0x405681
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x4056df
push edi
mov edi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x4056d1
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x406077
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 0x409d8a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x44b7e0], 0
je 0x409d97
or eax, 0xffffffff
ret
mov eax, dword [0x43b6bc]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x409dd5
mov ecx, dword [0x43b6b8]
jl 0x409db0
cmp ecx, ebp
ja 0x409dd5
or ebx, 0xffffffff
mov dword [0x44b700], ebp
add ecx, ebx
mov dword [0x44b704], ebp
mov dword [0x43b6b8], ecx
adc eax, ebx
mov dword [0x43b6bc], eax
mov eax, ebx
jmp 0x409edf
push esi
push edi
mov edi, dword [0x44b704]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x409e3a
jl 0x409df0
mov esi, dword [0x44b700]
cmp esi, ebp
ja 0x409e40
mov esi, 0x2000
push esi
push dword [0x44b6f4]
call fcn.0040a09a
cdq
mov ecx, eax
mov dword [0x44b700], eax
or ecx, edx
mov dword [0x44b704], edx
je 0x409e7c
and eax, edx
cmp eax, ebx
je 0x409e6d
add dword [0x44b738], esi
mov eax, dword [0x44b6f4]
adc dword [0x44b73c], ebp
mov dword [0x44b6f8], eax
call fcn.00409822
mov edi, dword [0x44b704]
mov esi, dword [0x44b700]
mov eax, dword [0x43b6e8]
test byte [eax + 0x40], 1
je 0x409ebf
cmp byte [0x44c995], 0
mov eax, esi
je 0x409e8c
or eax, edi
je 0x409ebf
push 0x44c9a0
push esi
push dword [0x44b6f8]
call fcn.0040cf09
jmp 0x409eb3
push 0x45a062
mov ecx, 0x450cd4
call fcn.004018e4
mov dword [0x44b700], ebp
mov eax, ebx
mov dword [0x44b704], ebp
jmp 0x409edd
or eax, edi
mov ebp, dword [0x44b6f8]
je 0x409ebf
add esi, ebx
adc edi, ebx
call fcn.0040cb78
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040cc8a
mov eax, esi
inc ebp
or eax, edi
jne 0x409e96
mov esi, dword [0x44b700]
mov edi, dword [0x44b704]
mov eax, dword [0x44b6f8]
add esi, ebx
mov dword [0x44b700], esi
adc edi, ebx
mov dword [0x44b704], edi
movzx eax, byte [eax]
inc dword [0x44b6f8]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40cbd9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040cb96
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004141a0
add esp, 0xc
xor esi, esi
call fcn.0040cb78
movzx ecx, byte [ebp + esi - 0xc]
xor eax, ecx
mov byte [ebp + esi - 0xc], al
movzx eax, al
push eax
call fcn.0040cc8a
inc esi
cmp esi, 0xc
jl 0x40cbfb
mov eax, dword [0x43b6e8]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44b757]
test byte [eax + 0x40], 2
jne 0x40cc37
movzx ecx, byte [0x44b75f]
cmp edx, ecx
je 0x40cc40
or eax, 0xffffffff
jmp 0x40cc83
mov ecx, dword [0x44b700]
mov eax, ecx
cdq
cmp edx, dword [0x43b6bc]
jl 0x40cc5d
mov esi, dword [0x43b6b8]
jg 0x40cc5f
cmp eax, esi
ja 0x40cc5f
mov esi, ecx
push edi
mov edi, dword [0x44b6f8]
test esi, esi
je 0x40cc80
call fcn.0040cb78
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040cc8a
inc edi
sub esi, 1
jne 0x40cc6a
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40cc8a
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x44c820]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x44c828]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x43b290]
movzx eax, cl
add eax, dword [0x44c824]
mov dword [0x44c820], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x44c824], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x43b290]
mov dword [0x44c828], edx
ret 4

Function at 0x40cce4
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.00413980
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x304]
push dword [esp + 0x304]
call fcn.0040d1b3
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.004141a0
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.0040d02f
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 0x40cea5
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.00413980
push esi
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.004141a0
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 0x40ce5a
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.0040d02f
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.0040d0f9
xor esi, esi
mov al, byte [esp + esi + 0x20]
xor byte [esp + esi + 0x34], al
inc esi
cmp esi, 0x14
jb 0x40ce29
push 0xa8
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.004141a0
add esp, 0xc
sub ebp, 1
jne 0x40cde6
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 0x40ce7d
mov al, byte [ecx + ebp]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x40ce6c
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 0x40cd8d
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2f0
ret 0x1c
Function at 0x40d02f
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0xa0]
cmp eax, 0xffffffff
je 0x40d0dd
push ebp
push esi
push edi
push 0x40
pop edi
cmp eax, edi
jbe 0x40d061
push ebx
lea eax, [ebx + 0x40]
push eax
call fcn.0040d21d
mov dword [ebx + 0xa0], 0x14
cmp dword [esp + 0x20], 0
je 0x40d081
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x40d081
mov esi, dword [esp + 0x20]
lea ebp, [ebx + 0x40]
push 0x18
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
jmp 0x40d0b9
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.00413980
add esp, 0xc
xor byte [esi + ebx], 0x36
inc esi
cmp esi, edi
jb 0x40d09b
lea ebp, [ebx + 0x40]
push ebp
call fcn.00406077
push edi
push ebx
push ebp
call fcn.004060a8
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
je 0x40d0d3
cmp byte [eax], 0
jne 0x40d0d3
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 0x40d0f5
push dword [esp + 0xc]
lea eax, [ebx + 0x40]
push dword [esp + 0xc]
push eax
call fcn.004060a8
pop ebx
ret 0x14

Function at 0x40d0f9
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 0x40d119
push esi
push esi
push edi
push esi
push esi
call fcn.0040d02f
lea eax, [esp + 0x10]
push eax
lea ebx, [edi + 0x40]
push ebx
call fcn.0040d21d
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40d143
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x40d143
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x40d160
xor byte [esi + edi], 0x6a
inc esi
cmp esi, 0x40
jb 0x40d143
push ebx
call fcn.00406077
push 0x40
push edi
push ebx
call fcn.004060a8
mov eax, dword [esp + 0x38]
test ebp, ebp
je 0x40d175
cmp byte [eax], 0
jne 0x40d175
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.004060a8
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0040d21d
cmp dword [esp + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40d1ad
push dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push dword [esp + 0x20]
call fcn.004141a0
add esp, 0xc
add esp, 0x14
ret 0x14
Function at 0x40e210
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.0040df69
cmp dword [ebx + 0x1c], 0
je 0x40e249
push dword [ebx + 0x1c]
call fcn.00417bae
pop ecx
cmp dword [esp + 0x28], 0
jne 0x40e254
xor eax, eax
jmp 0x40e25e
push dword [esp + 0x28]
call fcn.0041b6e4
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 0x40e29a
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 0x427f50
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x40e31c
test ebp, ebp
je 0x40e332
cmp dword [ebx + 0x20], esi
jne 0x40e332
cmp dword [ebx + 0x1c], esi
je 0x40e332
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.0040e03b
mov esi, eax
test esi, esi
je 0x40e332
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.00417bae
pop ecx
jmp 0x40e332
test eax, eax
je 0x40e332
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 0x40e67a
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 0x428ddc
push 1
push ebx
push 0x428ecc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40e74b
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x428ebc
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40e742
cmp byte [ebp + 8], bl
je 0x40e6cd
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40e6ea
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
cmp dword [ebp + 0x1c], ebx
jne 0x40e6fc
push 0x4272a4
jmp 0x40e6ff
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40e714
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40e725
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x40e739
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x40e822
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 0x40e864
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push 0x42815c
push dword [esp + 0x10]
push dword [0x44cb94]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40e95a
push ebx
push esi
push dword [0x44cb94]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40e8b7
push esi
push dword [0x44cb94]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e8b7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40e8be
xor eax, eax
jmp 0x40e959
push ebp
push edi
push ebx
xor ebp, ebp
push 2
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40e953
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40e94c
push ebx
push esi
push eax
call fcn.004141a0
add esp, 0xc
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
push eax
push ebp
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40e945
push ebp
push dword [esp + 0x1c]
call fcn.0040e7f9
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x40e945
mov ecx, dword [esi + 8]
mov dword [esi + 8], ebp
test ecx, ecx
jne 0x40e93d
push 0xffffff
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x40e93d
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x40ee09
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00412910
cmp word [0x44dbca], 0
je 0x40eea5
push esi
push 6
push dword [0x4314dc]
mov esi, 0x44dbca
push esi
call fcn.004035f5
push eax
call fcn.004079cf
test eax, eax
jne 0x40eea4
push 0x44cbc8
call fcn.0040ecb7
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.004065c8
lea eax, [ebp - 0x1024]
push eax
call fcn.00417b93
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00413980
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 0x40ef01
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4314f4], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x40ef4c
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 [0x463478], ax
xor eax, eax
mov word [0x46347a], ax
mov dword [0x4314f4], 0x463478
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406497
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x4314e4
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 0x40f1b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00412910
cmp byte [0x44ebd0], 0
je 0x40f262
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.00410625
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 0x40f262
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 0x40f259
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x40f23d
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.004065c8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x40f30e
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00412910
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x40f329
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x40f336
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x40f3f9
movzx eax, word [esi]
test ax, ax
je 0x40f3f9
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x40f383
test edi, edi
je 0x40f38d
test ebx, ebx
jne 0x40f38d
test ecx, ecx
je 0x40f37f
mov byte [ecx], 1
mov ebx, ebp
jmp 0x40f3a4
cmp eax, 0xd
je 0x40f3b7
cmp eax, 0xa
je 0x40f3ba
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x40f3b2
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x40f365
jmp 0x40f3ba
mov byte [edx], 1
jmp 0x40f3ba
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x40f3f3
mov word [edi], ax
test ebx, ebx
je 0x40f3f3
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004065c8
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x40f3fb
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x40f406
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x40f455
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x40f45d
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8