joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4054cd
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x1c]
push edi
push 0x20
push dword [esp + 0x48]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x24], esi
call fcn.00416af0
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x40554d
cmp ebx, dword [ebp + 4]
jg 0x4056b1
cmp edi, esi
jge 0x40553a
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x405536
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x405516
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x405540
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x405501
cmp ebx, dword [ebp + 4]
jg 0x4056b1
mov edi, 0x434108
movzx eax, byte [esp + esi*4 + 0x1d]
mov cl, byte [esp + 0x20]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x20], cl
movzx eax, byte [esp + esi*4 + 0x1e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x21], al
movzx eax, byte [esp + esi*4 + 0x1f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x22], al
movzx eax, byte [esp + esi*4 + 0x1c]
mov al, byte [eax + str.cw]
xor byte [esp + 0x23], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x20], al
mov dword [esp + 0x1c], edi
cmp esi, 8
je 0x4055de
cmp esi, 1
jle 0x4055d2
lea eax, [esi - 1]
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], eax
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4055c0
sub dword [esp + 0x14], 1
jne 0x4055bd
xor edi, edi
test esi, esi
jle 0x4056a4
jmp 0x40565c
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 3
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4055ed
sub dword [esp + 0x14], 1
jne 0x4055ea
movzx eax, byte [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 3
mov al, byte [eax + str.cw]
xor byte [esp + 0x30], al
movzx eax, byte [esp + 0x2d]
mov al, byte [eax + str.cw]
xor byte [esp + 0x31], al
movzx eax, byte [esp + 0x2e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x32], al
movzx eax, byte [esp + 0x2f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x33], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x40564a
sub dword [esp + 0x14], 1
jne 0x405647
cmp ebx, dword [ebp + 4]
jg 0x4056a7
cmp edi, esi
jge 0x405691
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x40568d
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x40566d
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x405697
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x40565c
cmp ebx, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
jle 0x40555b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
Function at 0x4059cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x43e030]
test esi, esi
jne 0x4059ed
mov ecx, 0x43e028
call fcn.0040595a
mov esi, dword [0x43e030]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x405a38
test esi, esi
je 0x405a5c
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x42922c]
call esi
test eax, eax
jne 0x405a80
push str.CryptProtectMemory_failed
mov esi, 0x45ad9c
push esi
call fcn.00401853
pop ecx
pop ecx
mov ecx, esi
call fcn.004019e9
push 2
mov ecx, esi
call fcn.0040184e
jmp 0x405a80
mov esi, dword [0x43e034]
test esi, esi
je 0x405a5c
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x42922c]
call esi
test eax, eax
jne 0x405a80
push str.CryptUnprotectMemory_failed
jmp 0x405a19
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
cmp dword [ebp + 0xc], edx
jbe 0x405a7f
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x4b]
add al, dl
lea ecx, [edx + esi]
xor byte [ecx], al
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x405a6f
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4064a8
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 0x40b2e5
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x44e6a0], 0
je 0x40b2f2
or eax, 0xffffffff
ret
mov eax, dword [0x43e57c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40b330
mov ecx, dword [0x43e578]
jl 0x40b30b
cmp ecx, ebp
ja 0x40b330
or ebx, 0xffffffff
mov dword [0x44e5c0], ebp
add ecx, ebx
mov dword [0x44e5c4], ebp
mov dword [0x43e578], ecx
adc eax, ebx
mov dword [0x43e57c], eax
mov eax, ebx
jmp 0x40b43a
push esi
push edi
mov edi, dword [0x44e5c4]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40b395
jl 0x40b34b
mov esi, dword [0x44e5c0]
cmp esi, ebp
ja 0x40b39b
mov esi, 0x2000
push esi
push dword [0x44e5b4]
call fcn.0040b614
cdq
mov ecx, eax
mov dword [0x44e5c0], eax
or ecx, edx
mov dword [0x44e5c4], edx
je 0x40b3d7
and eax, edx
cmp eax, ebx
je 0x40b3c8
add dword [0x44e5f8], esi
mov eax, dword [0x44e5b4]
adc dword [0x44e5fc], ebp
mov dword [0x44e5b8], eax
call fcn.0040ad6c
mov edi, dword [0x44e5c4]
mov esi, dword [0x44e5c0]
mov eax, dword [0x43e5a8]
test byte [eax + 0x70], 1
je 0x40b41a
cmp byte [0x44f75d], 0
mov eax, esi
je 0x40b3e7
or eax, edi
je 0x40b41a
push esi
push dword [0x44e5b8]
push 0x44f768
call fcn.0040eb1e
jmp 0x40b40e
push 0x46500a
mov ecx, 0x45ad9c
call fcn.0040196a
mov dword [0x44e5c0], ebp
mov eax, ebx
mov dword [0x44e5c4], ebp
jmp 0x40b438
or eax, edi
mov ebp, dword [0x44e5b8]
je 0x40b41a
add esi, ebx
adc edi, ebx
call fcn.0040e8ff
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040ea10
mov eax, esi
inc ebp
or eax, edi
jne 0x40b3f1
mov esi, dword [0x44e5c0]
mov edi, dword [0x44e5c4]
mov eax, dword [0x44e5b8]
add esi, ebx
mov dword [0x44e5c0], esi
adc edi, ebx
mov dword [0x44e5c4], edi
movzx eax, byte [eax]
inc dword [0x44e5b8]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40e960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040e91d
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00416af0
add esp, 0xc
xor esi, esi
call fcn.0040e8ff
xor byte [ebp + esi - 0xc], al
movzx eax, byte [ebp + esi - 0xc]
push eax
call fcn.0040ea10
inc esi
cmp esi, 0xc
jl 0x40e982
mov eax, dword [0x43e5a8]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44e617]
test byte [eax + 0x70], 2
jne 0x40e9b9
movzx ecx, byte [0x44e61f]
cmp edx, ecx
je 0x40e9c2
or eax, 0xffffffff
jmp 0x40ea0b
cmp byte [ebp + 0x10], 0
je 0x40ea09
mov ecx, dword [0x44e5c0]
mov eax, ecx
cdq
cmp edx, dword [0x43e57c]
jl 0x40e9e5
mov esi, dword [0x43e578]
jg 0x40e9e7
cmp eax, esi
ja 0x40e9e7
mov esi, ecx
push edi
mov edi, dword [0x44e5b8]
test esi, esi
je 0x40ea08
call fcn.0040e8ff
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040ea10
inc edi
sub esi, 1
jne 0x40e9f2
pop edi
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x40ea10
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x44f6e0]
mov eax, dword [esp + 4]
mov edx, dword [0x44f6e8]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x43e150]
movzx eax, cl
add eax, dword [0x44f6e4]
mov dword [0x44f6e0], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x44f6e4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x43e150]
mov dword [0x44f6e8], edx
ret 4

Function at 0x40ec32
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
push eax
push ebx
call fcn.0040ef53
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40ec63
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x40ec63
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x40ec8b
lea esi, [ebx + 0x60]
push 0x40
mov eax, esi
pop ecx
xor byte [eax], 0x6a
inc eax
sub ecx, 1
jne 0x40ec6b
push ebx
call fcn.004064a8
push 0x40
push esi
push ebx
call fcn.004064d9
test ebp, ebp
je 0x40ec9c
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
jne 0x40ec9c
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.004064d9
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0040ef53
cmp dword [esp + 0x30], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40ecd4
push dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push dword [esp + 0x24]
call fcn.00416af0
add esp, 0xc
add esp, 0x14
ret 0x14

Function at 0x40ecda
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
lea ebx, [esi + 0x60]
cmp edi, 0x40
jbe 0x40ed0a
push esi
call fcn.004064a8
push edi
push dword [esp + 0x18]
push esi
call fcn.004064d9
push ebx
push esi
call fcn.0040ef53
push 0x14
pop edi
jmp 0x40ed18
push edi
push dword [esp + 0x18]
push ebx
call fcn.00416af0
add esp, 0xc
mov dword [esi + 0xa0], edi
test edi, edi
je 0x40ed3a
push 0xffffffffffffffa0
pop edx
mov ecx, ebx
sub edx, esi
xor byte [ecx], 0x36
inc ecx
mov edi, dword [esi + 0xa0]
lea eax, [edx + ecx]
cmp eax, edi
jb 0x40ed29
push 0x40
pop eax
sub eax, edi
push eax
lea eax, [esi + 0x60]
add eax, edi
push 0x36
push eax
call fcn.004164c0
add esp, 0xc
push esi
call fcn.004064a8
push 0x40
push ebx
push esi
call fcn.004064d9
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40ed65
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x230
push ebx
mov ebx, dword [esp + 0x244]
push esi
push 0x40
pop eax
cmp ebx, eax
jae 0x40ed7d
mov eax, ebx
push eax
push dword [esp + 0x248]
lea eax, [esp + 0x4c]
push eax
call fcn.00416af0
push 0xa8
lea eax, [esp + 0x140]
push 0
push eax
call fcn.004164c0
add esp, 0x18
lea eax, [esp + 0x130]
push dword [esp + 0x240]
push dword [esp + 0x240]
push eax
call fcn.0040ecda
mov eax, dword [esp + 0x250]
xor edx, edx
push 0x14
dec eax
pop esi
div esi
add eax, 1
mov dword [esp + 0x18], eax
je 0x40ef26
mov eax, dword [esp + 0x254]
xor edx, edx
push ebp
dec eax
xor ebp, ebp
inc edx
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x14], edx
mov eax, edx
mov dword [esp + 0x1c], edx
shr eax, 0x18
lea esi, [esp + 0x138]
mov byte [esp + ebx + 0x4c], al
lea edi, [esp + 0x90]
mov eax, edx
mov byte [esp + ebx + 0x4f], dl
shr eax, 0x10
mov byte [esp + ebx + 0x4d], al
mov eax, edx
shr eax, 8
push 0x2a
mov byte [esp + ebx + 0x52], al
lea eax, [ebx + 4]
pop ecx
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x40ee44
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.004064d9
push 0
push 0
push 0x14
pop esi
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.0040ec32
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00416af0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x13], 0
test eax, eax
je 0x40eee4
mov ebx, eax
push 0x2a
pop ecx
push 0x14
lea esi, [esp + 0x13c]
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.004064d9
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x1e4]
push eax
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.0040ec32
xor ecx, ecx
mov al, byte [esp + ecx + 0x24]
xor byte [esp + ecx + 0x38], al
inc ecx
cmp ecx, esi
jb 0x40eecb
sub ebx, 1
jne 0x40ee80
mov ebx, dword [esp + 0x250]
mov eax, dword [esp + 0x258]
sub eax, ebp
cmp eax, esi
jbe 0x40eef3
mov eax, esi
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x25c]
add eax, ebp
push eax
call fcn.00416af0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x1c]
inc edx
add ebp, esi
mov dword [esp + 0x14], edx
cmp eax, dword [esp + 0x20]
jb 0x40edf4
pop edi
pop ebp
push 0x44
lea eax, [esp + 0x48]
push eax
call fcn.00405b39
push esi
lea eax, [esp + 0x34]
push eax
call fcn.00405b39
push esi
lea eax, [esp + 0x20]
push eax
call fcn.00405b39
pop esi
pop ebx
add esp, 0x230
ret 0x1c
Function at 0x40f757
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x42922c]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x108]
push 0x40
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x42922c]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x40f858
cmp byte [ebp - 0x108], 0x4d
jne 0x40f858
cmp byte [ebp - 0x107], 0x5a
jne 0x40f858
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 0xcc]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x42922c]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x108]
mov ebx, 0x108
push ebx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x42922c]
mov ecx, edi
call esi
cmp eax, ebx
jne 0x40f858
cmp byte [ebp - 0x108], 0x50
jne 0x40f858
cmp byte [ebp - 0x107], 0x45
jne 0x40f858
cmp byte [ebp - 0x106], 0
jne 0x40f858
cmp byte [ebp - 0x105], 0
jne 0x40f858
cmp byte [ebp - 0xf0], 0xb
jne 0x40f858
cmp byte [ebp - 0xef], 1
jne 0x40f838
cmp dword [ebp - 0x94], 4
jbe 0x40f838
mov eax, dword [ebp - 0x70]
jmp 0x40f85a
cmp byte [ebp - 0xf0], 0xb
jne 0x40f858
cmp byte [ebp - 0xef], 2
jne 0x40f858
cmp dword [ebp - 0x84], 4
jbe 0x40f858
mov eax, dword [ebp - 0x60]
jmp 0x40f85a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4109e5
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 + 0x2a], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.00410714
cmp dword [ebx + 0x20], 0
je 0x410a1e
push dword [ebx + 0x20]
call fcn.0041a2d9
pop ecx
cmp dword [esp + 0x28], 0
jne 0x410a29
xor eax, eax
jmp 0x410a33
push dword [esp + 0x28]
call fcn.0041dac6
pop ecx
cmp dword [esp + 0x2c], 0
mov dword [ebx + 0x20], eax
jne 0x410a41
xor eax, eax
jmp 0x410a4b
push dword [esp + 0x2c]
call fcn.0041dac6
pop ecx
mov dword [ebx + 0x24], 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 0x410a80
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 0x42a2a0
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebx + 0x1c], 0
mov dword [ebx + 4], eax
pop edi
jne 0x410b08
cmp dword [ebx + 0x10], esi
jne 0x410b08
test ebp, ebp
je 0x410b1e
cmp dword [ebx + 0x24], esi
jne 0x410b1e
cmp dword [ebx + 0x20], esi
je 0x410b1e
push dword [ebx + 0x20]
mov ecx, ebx
call fcn.0041080e
mov esi, eax
test esi, esi
je 0x410b1e
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.0041a2d9
pop ecx
jmp 0x410b1e
test eax, eax
je 0x410b1e
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 0x410f8a
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 0x42b15c
push 1
push ebx
push 0x42b24c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4110bf
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push 0x42b23c
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x42922c]
call dword [esi]
test eax, eax
js 0x4110ab
cmp byte [ebp + 8], bl
je 0x410ff0
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 [0x42922c]
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 [0x42922c]
call esi
cmp dword [ebp + 0x18], ebx
je 0x411021
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 [0x42922c]
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 0x411038
push 0x429584
jmp 0x41103b
push dword [ebp + 0x1c]
push eax
call dword [0x42922c]
call esi
cmp dword [ebp + 0x20], ebx
je 0x41105f
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 [0x42922c]
call esi
cmp dword [ebp + 0x14], ebx
je 0x41107a
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 [0x42922c]
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 [0x42922c]
call esi
test eax, eax
js 0x411098
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42922c]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42922c]
call esi
pop esi
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x41114d
Capabilities:
Get common file path

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

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x42a4ac
push dword [esp + 0x18]
push dword [0x456d74]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4112db
push esi
push dword [0x456d74]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4112db
push esi
push dword [0x456d74]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4112db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4112db
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 0x4112d3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4112cc
push edi
push esi
push eax
call fcn.00416af0
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 0x4112c5
push ebp
push dword [esp + 0x14]
call fcn.00411126
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42922c]
call esi
test edi, edi
je 0x4112c5
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x4112b3
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x4112b3
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x42922c]
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
jmp 0x4112dd
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x411971
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.004154f0
cmp word [0x457d82], 0
je 0x411a0d
push esi
push 6
push dword [0x434604]
mov esi, 0x457d82
push esi
call fcn.004038fa
push eax
call fcn.00407e0f
test eax, eax
jne 0x411a0c
push 0x456d80
call fcn.00411709
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.004069cc
lea eax, [ebp - 0x1024]
push eax
call fcn.0041a063
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.004164c0
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
leave
ret
Function at 0x411a51
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43461c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x411a9c
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 [0x46723c], ax
xor eax, eax
mov word [0x46723e], ax
mov dword [0x43461c], 0x46723c
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406887
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43460c
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
leave
ret 0x10

Function at 0x411bd5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.004154f0
cmp byte [0x458d88], 0
je 0x411c83
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.00413034
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 0x411c83
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 0x411c7a
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x411c5e
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.004069cc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x411d34
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.004154f0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x411d4f
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x411d5c
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x411e38
movzx eax, word [esi]
test ax, ax
je 0x411e38
push ebp
mov ebp, dword [esp + 0x201c]
push edi
mov dword [esp + 0x10], ebx
mov edi, eax
add esi, 2
cmp di, 0x3d
jne 0x411da7
test ebp, ebp
je 0x411db3
test ebx, ebx
jne 0x411db3
test ecx, ecx
je 0x411d9e
mov byte [ecx], 1
mov ebx, dword [esp + 0x201c]
jmp 0x411dd7
cmp di, 0xd
je 0x411dec
cmp di, 0xa
je 0x411def
mov eax, dword [esp + 0x201c]
mov word [eax], di
add eax, 2
mov edi, dword [esp + 0x202c]
mov dword [esp + 0x201c], eax
lea eax, [edi - 2]
cmp dword [esp + 0x10], eax
jge 0x411de7
movzx eax, word [esi]
inc dword [esp + 0x10]
mov edi, eax
test ax, ax
jne 0x411d86
jmp 0x411def
mov byte [edx], 1
jmp 0x411df6
add esi, 2
mov edi, dword [esp + 0x202c]
mov eax, dword [esp + 0x201c]
xor ecx, ecx
mov word [eax], cx
test ebp, ebp
je 0x411e32
xor eax, eax
mov word [ebp], ax
test ebx, ebx
je 0x411e32
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004069cc
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x411e3a
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18