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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x436ca8]
test eax, eax
jne 0x404c42
mov ecx, 0x436ca0
call fcn.00404ba8
mov eax, dword [0x436ca8]
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 0x404c8c
test eax, eax
je 0x404ca7
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404ccc
push str.CryptProtectMemory_failed
mov esi, 0x44a83c
push esi
call fcn.00401796
pop ecx
pop ecx
mov ecx, esi
call fcn.0041667c
push 2
mov ecx, esi
call fcn.00401791
jmp 0x404ccc
mov eax, dword [0x436cac]
test eax, eax
je 0x404ca7
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404ccc
push str.CryptUnprotectMemory_failed
jmp 0x404c6d
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x404ccb
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 0x404cbd
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x405663
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 0x408daa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
jne 0x402145
mov al, 1
jmp 0x402233
cmp dword [edi + 0xc], 1
jne 0x402156
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
push esi
and dword [esp + 0x18], 0
xor bl, bl
cmp dword [edi + 0xc], 0
je 0x4021ab
xor esi, esi
test ebp, ebp
je 0x4021cd
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x40217b
mov eax, 0x4000
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add bl, 1
je 0x4021cd
add esi, 0x4000
cmp esi, ebp
jb 0x40216b
jmp 0x4021c9
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x20]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x40222b
cmp byte [edi + 0x14], 0
je 0x40222b
cmp dword [edi + 0xc], 0
jne 0x40222b
push 0
lea esi, [edi + 0x1e]
mov ecx, 0x44a83c
push esi
call fcn.0040172b
test al, al
je 0x40221e
cmp dword [esp + 0x18], ebp
jae 0x402158
cmp dword [esp + 0x18], 0
jbe 0x402158
mov esi, dword [edi]
mov ecx, edi
push 0
call dword [esi + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb edx, 0
push edx
push eax
call dword [esi + 0x10]
jmp 0x402158
push esi
push 0
mov ecx, 0x44a83c
call fcn.00401924
pop esi
mov al, bl
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
ret 8
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x447248]
call fcn.004015ae
cmp byte [0x450a19], 0
mov dword [0x447248], eax
jne 0x408dde
cmp dword [ebp + 0xc], 0
jbe 0x408dde
mov ecx, dword [0x447348]
pop ebp
jmp 0x402132
pop ebp
ret 8
Function at 0x4090b7
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x447338], 0
je 0x4090c4
or eax, 0xffffffff
ret
mov eax, dword [0x43721c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x409102
mov ecx, dword [0x437218]
jl 0x4090dd
cmp ecx, ebp
ja 0x409102
or ebx, 0xffffffff
mov dword [0x447258], ebp
add ecx, ebx
mov dword [0x44725c], ebp
mov dword [0x437218], ecx
adc eax, ebx
mov dword [0x43721c], eax
mov eax, ebx
jmp 0x40920c
push esi
push edi
mov edi, dword [0x44725c]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x409167
jl 0x40911d
mov esi, dword [0x447258]
cmp esi, ebp
ja 0x40916d
mov esi, 0x2000
push esi
push dword [0x44724c]
call fcn.004093a0
cdq
mov ecx, eax
mov dword [0x447258], eax
or ecx, edx
mov dword [0x44725c], edx
je 0x4091a9
and eax, edx
cmp eax, ebx
je 0x40919a
add dword [0x447290], esi
mov eax, dword [0x44724c]
adc dword [0x447294], ebp
mov dword [0x447250], eax
call fcn.00408b7a
mov edi, dword [0x44725c]
mov esi, dword [0x447258]
mov eax, dword [0x437240]
test byte [eax + 0x40], 1
je 0x4091ec
cmp byte [0x4484ed], 0
mov eax, esi
je 0x4091b9
or eax, edi
je 0x4091ec
push 0x4484f8
push esi
push dword [0x447250]
call fcn.0040c275
jmp 0x4091e0
push 0x453b2a
mov ecx, 0x44a83c
call fcn.0040185d
mov dword [0x447258], ebp
mov eax, ebx
mov dword [0x44725c], ebp
jmp 0x40920a
or eax, edi
mov ebp, dword [0x447250]
je 0x4091ec
add esi, ebx
adc edi, ebx
call fcn.0040bee4
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040bff6
mov eax, esi
inc ebp
or eax, edi
jne 0x4091c3
mov esi, dword [0x447258]
mov edi, dword [0x44725c]
mov eax, dword [0x447250]
add esi, ebx
mov dword [0x447258], esi
adc edi, ebx
mov dword [0x44725c], edi
movzx eax, byte [eax]
inc dword [0x447250]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40bf45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040bf02
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004132a0
add esp, 0xc
xor esi, esi
call fcn.0040bee4
movzx ecx, byte [ebp + esi - 0xc]
xor eax, ecx
mov byte [ebp + esi - 0xc], al
movzx eax, al
push eax
call fcn.0040bff6
inc esi
cmp esi, 0xc
jl 0x40bf67
mov eax, dword [0x437240]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x4472af]
test byte [eax + 0x40], 2
jne 0x40bfa3
movzx ecx, byte [0x4472b7]
cmp edx, ecx
je 0x40bfac
or eax, 0xffffffff
jmp 0x40bfef
mov ecx, dword [0x447258]
mov eax, ecx
cdq
cmp edx, dword [0x43721c]
jl 0x40bfc9
mov esi, dword [0x437218]
jg 0x40bfcb
cmp eax, esi
ja 0x40bfcb
mov esi, ecx
push edi
mov edi, dword [0x447250]
test esi, esi
je 0x40bfec
call fcn.0040bee4
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040bff6
inc edi
sub esi, 1
jne 0x40bfd6
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40bff6
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x448378]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x448380]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x436df0]
movzx eax, cl
add eax, dword [0x44837c]
mov dword [0x448378], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x44837c], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x436df0]
mov dword [0x448380], edx
ret 4

Function at 0x40c050
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.00412a80
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x304]
push dword [esp + 0x304]
call fcn.0040c51f
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.004132a0
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.0040c39b
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 0x40c211
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.00412a80
push esi
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.004132a0
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 0x40c1c6
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.0040c39b
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.0040c465
xor esi, esi
mov al, byte [esp + esi + 0x20]
xor byte [esp + esi + 0x34], al
inc esi
cmp esi, 0x14
jb 0x40c195
push 0xa8
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.004132a0
add esp, 0xc
sub ebp, 1
jne 0x40c152
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 0x40c1e9
mov al, byte [ecx + ebp]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x40c1d8
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 0x40c0f9
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2f0
ret 0x1c
Function at 0x40c39b
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0xa0]
cmp eax, 0xffffffff
je 0x40c449
push ebp
push esi
push edi
push 0x40
pop edi
cmp eax, edi
jbe 0x40c3cd
push ebx
lea eax, [ebx + 0x40]
push eax
call fcn.0040c589
mov dword [ebx + 0xa0], 0x14
cmp dword [esp + 0x20], 0
je 0x40c3ed
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x40c3ed
mov esi, dword [esp + 0x20]
lea ebp, [ebx + 0x40]
push 0x18
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
jmp 0x40c425
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.00412a80
add esp, 0xc
xor byte [esi + ebx], 0x36
inc esi
cmp esi, edi
jb 0x40c407
lea ebp, [ebx + 0x40]
push ebp
call fcn.00405663
push edi
push ebx
push ebp
call fcn.00405694
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
je 0x40c43f
cmp byte [eax], 0
jne 0x40c43f
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 0x40c461
push dword [esp + 0xc]
lea eax, [ebx + 0x40]
push dword [esp + 0xc]
push eax
call fcn.00405694
pop ebx
ret 0x14

Function at 0x40c465
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 0x40c485
push esi
push esi
push edi
push esi
push esi
call fcn.0040c39b
lea eax, [esp + 0x10]
push eax
lea ebx, [edi + 0x40]
push ebx
call fcn.0040c589
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40c4af
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x40c4af
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x40c4cc
xor byte [esi + edi], 0x6a
inc esi
cmp esi, 0x40
jb 0x40c4af
push ebx
call fcn.00405663
push 0x40
push edi
push ebx
call fcn.00405694
mov eax, dword [esp + 0x38]
test ebp, ebp
je 0x40c4e1
cmp byte [eax], 0
jne 0x40c4e1
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.00405694
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0040c589
cmp dword [esp + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40c519
push dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push dword [esp + 0x20]
call fcn.004132a0
add esp, 0xc
add esp, 0x14
ret 0x14
Function at 0x40cb65
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call ebx
mov edi, dword [esp + 0x38]
mov ebp, eax
mov ecx, dword [edi]
lea eax, [esp + 0x10]
push eax
push edi
call dword [ecx + 0x48]
test eax, eax
js 0x40cb9c
cmp dword [esp + 0x10], 0
jne 0x40cbe4
call ebx
sub eax, ebp
cmp eax, 0x7d0
ja 0x40cbe4
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40cb86
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40cb86
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [eax + 0x48]
mov ebx, eax
test ebx, ebx
js 0x40cc52
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40cc4a
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x42657c
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x40cc3c
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
js 0x40cc32
mov eax, dword [esp + 0x14]
push dword [esp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
test ebx, ebx
js 0x40cc52
test ecx, ecx
jne 0x40cca3
xor ebp, ebp
cmp dword [esi + 8], ebp
je 0x40cca3
cmp dword [esi + 0x18], ebp
jne 0x40cca3
cmp dword [esi + 0x14], ebp
je 0x40cca3
push dword [esi + 0x14]
mov ecx, esi
call fcn.0040d196
mov edi, eax
test edi, edi
je 0x40cca3
push 0x204
push ebp
push ebp
push ebp
push ebp
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.00416cd0
pop ecx
pop edi
not ebx
pop esi
shr ebx, 0x1f
pop ebp
mov al, bl
pop ebx
add esp, 0x24
ret 8
Function at 0x40d373
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 + 0x1e], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.0040d0e0
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x18], 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 0x40d3dd
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 0x425e7c
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x40d45f
test ebp, ebp
je 0x40d475
cmp dword [ebx + 0x18], esi
jne 0x40d475
cmp dword [ebx + 0x14], esi
je 0x40d475
push dword [ebx + 0x14]
mov ecx, ebx
call fcn.0040d196
mov esi, eax
test esi, esi
je 0x40d475
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.00416cd0
pop ecx
jmp 0x40d475
test eax, eax
je 0x40d475
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 0x40d9ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push 0x426084
push dword [esp + 0x10]
push dword [0x4486ec]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40daa2
push ebx
push esi
push dword [0x4486ec]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40d9ff
push esi
push dword [0x4486ec]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d9ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40da06
xor eax, eax
jmp 0x40daa1
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 0x40da9b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40da94
push ebx
push esi
push eax
call fcn.004132a0
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 0x40da8d
push ebp
push dword [esp + 0x1c]
call fcn.0040d941
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x40da8d
mov ecx, dword [esi + 8]
mov dword [esi + 8], ebp
test ecx, ecx
jne 0x40da85
push 0xffffff
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x40da85
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 0x40df51
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00411a60
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d96a
cmp byte [0x454e12], 0
jne 0x40dfe6
push 6
push dword [0x42f03c]
lea eax, [ebp - 0x1020]
push eax
call fcn.00403524
push eax
call fcn.00406ec3
test eax, eax
jne 0x40dfe6
push 0x4252b8
call fcn.0040ddff
lea eax, [ebp - 0x1020]
push eax
call fcn.00416cb5
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x101e], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00412a80
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esp, ebp
pop ebp
ret
Function at 0x40e042
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x42f054], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x40e08d
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 [0x45df44], ax
xor eax, eax
mov word [0x45df46], ax
mov dword [0x42f054], 0x45df44
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405aaa
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x42f044
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 0x40e2e7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00411a60
cmp byte [0x448738], 0
je 0x40e390
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0040f763
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 0x40e390
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 0x40e387
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x40e36b
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.00405b8a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x40e43c
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00411a60
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x40e457
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x40e464
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x40e527
movzx eax, word [esi]
test ax, ax
je 0x40e527
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 0x40e4b1
test edi, edi
je 0x40e4bb
test ebx, ebx
jne 0x40e4bb
test ecx, ecx
je 0x40e4ad
mov byte [ecx], 1
mov ebx, ebp
jmp 0x40e4d2
cmp eax, 0xd
je 0x40e4e5
cmp eax, 0xa
je 0x40e4e8
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x40e4e0
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x40e493
jmp 0x40e4e8
mov byte [edx], 1
jmp 0x40e4e8
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x40e521
mov word [edi], ax
test ebx, ebx
je 0x40e521
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.00405b8a
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x40e529
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x40e534
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 0x40e583
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 0x40e58b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4109a0
Capabilities:
Hide graphical window

Disassembly:
and dword [0x4486e8], 0
push 1
push dword [esp + 8]
mov byte [0x448710], 1
mov byte [0x448711], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.0040113d
cmp dword [0x4486f8], 0
jne 0x4109e0
cmp byte [0x448716], 0
je 0x4109e9
cmp dword [0x44870c], 0
jne 0x4109fc
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x410acf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00411a60
cmp byte [0x448738], 0
je 0x410b59
cmp word [0x45cf40], 0
je 0x410b59
push esi
lea eax, [ebp - 0x1008]
push eax
push 0x45cf40
call fcn.0040f763
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 0x410b58
push dword [ebp + 8]
call fcn.00416cb5
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 0x410b5f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00411a60
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.00405937
mov esi, eax
test esi, esi
je 0x410bb7
movzx ecx, word [esi]
push ecx
jmp 0x410ba2
add esi, 2
movzx eax, word [esi]
push eax
call fcn.00405a2e
test al, al
jne 0x410b9b
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4