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

Disassembly:
cmp dword [0x44e6a0], 0
je 0x40b291
or eax, 0xffffffff
ret
mov eax, dword [0x43e57c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40b2cf
mov ecx, dword [0x43e578]
jl 0x40b2aa
cmp ecx, ebp
ja 0x40b2cf
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 0x40b3d9
push esi
push edi
mov edi, dword [0x44e5c4]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40b334
jl 0x40b2ea
mov esi, dword [0x44e5c0]
cmp esi, ebp
ja 0x40b33a
mov esi, 0x2000
push esi
push dword [0x44e5b4]
call fcn.0040b5b3
cdq
mov ecx, eax
mov dword [0x44e5c0], eax
or ecx, edx
mov dword [0x44e5c4], edx
je 0x40b376
and eax, edx
cmp eax, ebx
je 0x40b367
add dword [0x44e5f8], esi
mov eax, dword [0x44e5b4]
adc dword [0x44e5fc], ebp
mov dword [0x44e5b8], eax
call fcn.0040ad04
mov edi, dword [0x44e5c4]
mov esi, dword [0x44e5c0]
mov eax, dword [0x43e5a8]
test byte [eax + 0x70], 1
je 0x40b3b9
cmp byte [0x44f75d], 0
mov eax, esi
je 0x40b386
or eax, edi
je 0x40b3b9
push esi
push dword [0x44e5b8]
push 0x44f768
call fcn.0040eaee
jmp 0x40b3ad
push 0x46500a
mov ecx, 0x45ad9c
call fcn.0040196a
mov dword [0x44e5c0], ebp
mov eax, ebx
mov dword [0x44e5c4], ebp
jmp 0x40b3d7
or eax, edi
mov ebp, dword [0x44e5b8]
je 0x40b3b9
add esi, ebx
adc edi, ebx
call fcn.0040e8cf
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040e9e0
mov eax, esi
inc ebp
or eax, edi
jne 0x40b390
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 0x40e930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040e8ed
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00416c50
add esp, 0xc
xor esi, esi
call fcn.0040e8cf
xor byte [ebp + esi - 0xc], al
movzx eax, byte [ebp + esi - 0xc]
push eax
call fcn.0040e9e0
inc esi
cmp esi, 0xc
jl 0x40e952
mov eax, dword [0x43e5a8]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44e617]
test byte [eax + 0x70], 2
jne 0x40e989
movzx ecx, byte [0x44e61f]
cmp edx, ecx
je 0x40e992
or eax, 0xffffffff
jmp 0x40e9db
cmp byte [ebp + 0x10], 0
je 0x40e9d9
mov ecx, dword [0x44e5c0]
mov eax, ecx
cdq
cmp edx, dword [0x43e57c]
jl 0x40e9b5
mov esi, dword [0x43e578]
jg 0x40e9b7
cmp eax, esi
ja 0x40e9b7
mov esi, ecx
push edi
mov edi, dword [0x44e5b8]
test esi, esi
je 0x40e9d8
call fcn.0040e8cf
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040e9e0
inc edi
sub esi, 1
jne 0x40e9c2
pop edi
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x40e9e0
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 0x40ec02
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.0040ef23
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40ec33
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x40ec33
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x40ec5b
lea esi, [ebx + 0x60]
push 0x40
mov eax, esi
pop ecx
xor byte [eax], 0x6a
inc eax
sub ecx, 1
jne 0x40ec3b
push ebx
call fcn.00406428
push 0x40
push esi
push ebx
call fcn.00406459
test ebp, ebp
je 0x40ec6c
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
jne 0x40ec6c
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.00406459
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0040ef23
cmp dword [esp + 0x30], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40eca4
push dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push dword [esp + 0x24]
call fcn.00416c50
add esp, 0xc
add esp, 0x14
ret 0x14

Function at 0x40ecaa
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 0x40ecda
push esi
call fcn.00406428
push edi
push dword [esp + 0x18]
push esi
call fcn.00406459
push ebx
push esi
call fcn.0040ef23
push 0x14
pop edi
jmp 0x40ece8
push edi
push dword [esp + 0x18]
push ebx
call fcn.00416c50
add esp, 0xc
mov dword [esi + 0xa0], edi
test edi, edi
je 0x40ed0a
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 0x40ecf9
push 0x40
pop eax
sub eax, edi
push eax
lea eax, [esi + 0x60]
add eax, edi
push 0x36
push eax
call fcn.00416620
add esp, 0xc
push esi
call fcn.00406428
push 0x40
push ebx
push esi
call fcn.00406459
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40ed35
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 0x40ed4d
mov eax, ebx
push eax
push dword [esp + 0x248]
lea eax, [esp + 0x4c]
push eax
call fcn.00416c50
push 0xa8
lea eax, [esp + 0x140]
push 0
push eax
call fcn.00416620
add esp, 0x18
lea eax, [esp + 0x130]
push dword [esp + 0x240]
push dword [esp + 0x240]
push eax
call fcn.0040ecaa
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 0x40eef6
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 0x40ee14
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00406459
push 0
push 0
push 0x14
pop esi
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.0040ec02
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00416c50
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x13], 0
test eax, eax
je 0x40eeb4
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.00406459
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.0040ec02
xor ecx, ecx
mov al, byte [esp + ecx + 0x24]
xor byte [esp + ecx + 0x38], al
inc ecx
cmp ecx, esi
jb 0x40ee9b
sub ebx, 1
jne 0x40ee50
mov ebx, dword [esp + 0x250]
mov eax, dword [esp + 0x258]
sub eax, ebp
cmp eax, esi
jbe 0x40eec3
mov eax, esi
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x25c]
add eax, ebp
push eax
call fcn.00416c50
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 0x40edc4
pop edi
pop ebp
push 0x44
lea eax, [esp + 0x48]
push eax
call fcn.00405ac3
push esi
lea eax, [esp + 0x34]
push eax
call fcn.00405ac3
push esi
lea eax, [esp + 0x20]
push eax
call fcn.00405ac3
pop esi
pop ebx
add esp, 0x230
ret 0x1c
Function at 0x4109b5
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.004106e4
cmp dword [ebx + 0x20], 0
je 0x4109ee
push dword [ebx + 0x20]
call fcn.0041a439
pop ecx
cmp dword [esp + 0x28], 0
jne 0x4109f9
xor eax, eax
jmp 0x410a03
push dword [esp + 0x28]
call fcn.0041dc26
pop ecx
cmp dword [esp + 0x2c], 0
mov dword [ebx + 0x20], eax
jne 0x410a11
xor eax, eax
jmp 0x410a1b
push dword [esp + 0x2c]
call fcn.0041dc26
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 0x410a50
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 0x410ad8
cmp dword [ebx + 0x10], esi
jne 0x410ad8
test ebp, ebp
je 0x410aee
cmp dword [ebx + 0x24], esi
jne 0x410aee
cmp dword [ebx + 0x20], esi
je 0x410aee
push dword [ebx + 0x20]
mov ecx, ebx
call fcn.004107de
mov esi, eax
test esi, esi
je 0x410aee
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.0041a439
pop ecx
jmp 0x410aee
test eax, eax
je 0x410aee
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 0x411192
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 0x4112ab
push esi
push dword [0x456d74]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4112ab
push esi
push dword [0x456d74]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4112ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4112ab
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 0x4112a3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41129c
push edi
push esi
push eax
call fcn.00416c50
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 0x411295
push ebp
push dword [esp + 0x14]
call fcn.004110f6
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 0x411295
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x411283
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x411283
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 0x4112ad
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x4119f5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00415650
cmp word [0x457d82], 0
je 0x411a91
push esi
push 6
push dword [0x434604]
mov esi, 0x457d82
push esi
call fcn.00403919
push eax
call fcn.00407d8f
test eax, eax
jne 0x411a90
push 0x456d80
call fcn.004116d9
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.0040694c
lea eax, [ebp - 0x1024]
push eax
call fcn.0041a1c3
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00416620
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 0x411ad5
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 0x411b20
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.00406807
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 0x411ce3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00415650
cmp byte [0x458d88], 0
je 0x411d91
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.00413164
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 0x411d91
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 0x411d88
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x411d6c
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.0040694c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x411e44
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00415650
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x411e5f
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x411e6c
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x411f48
movzx eax, word [esi]
test ax, ax
je 0x411f48
push ebp
mov ebp, dword [esp + 0x201c]
push edi
mov dword [esp + 0x10], ebx
mov edi, eax
add esi, 2
cmp di, 0x3d
jne 0x411eb7
test ebp, ebp
je 0x411ec3
test ebx, ebx
jne 0x411ec3
test ecx, ecx
je 0x411eae
mov byte [ecx], 1
mov ebx, dword [esp + 0x201c]
jmp 0x411ee7
cmp di, 0xd
je 0x411efc
cmp di, 0xa
je 0x411eff
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 0x411ef7
movzx eax, word [esi]
inc dword [esp + 0x10]
mov edi, eax
test ax, ax
jne 0x411e96
jmp 0x411eff
mov byte [edx], 1
jmp 0x411f06
add esi, 2
mov edi, dword [esp + 0x202c]
mov eax, dword [esp + 0x201c]
xor ecx, ecx
mov word [eax], cx
test ebp, ebp
je 0x411f42
xor eax, eax
mov word [ebp], ax
test ebx, ebx
je 0x411f42
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.0040694c
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x411f4a
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18
Function at 0x414473
Capabilities:
Hide graphical window

Disassembly:
and dword [0x456d7c], 0
push 1
push dword [esp + 8]
mov byte [0x44f955], 1
mov byte [0x44f956], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401183
cmp dword [0x467228], 0
jne 0x4144b3
cmp byte [0x44f963], 0
je 0x4144bc
cmp dword [0x44f95c], 0
jne 0x4144cf
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x4145a3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00415650
cmp byte [0x458d88], 0
je 0x414632
cmp word [0x458d8a], 0
je 0x414632
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x458d8a
call fcn.00413164
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 0x414631
push dword [ebp + 8]
call fcn.0041a1c3
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
leave
ret 4

Function at 0x414636
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00415650
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.00406679
mov esi, eax
test esi, esi
je 0x41468e
movzx ecx, word [esi]
push ecx
jmp 0x414679
add esi, 2
movzx eax, word [esi]
push eax
call fcn.00406795
test al, al
jne 0x414672
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
Function at 0x416113
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416152
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416152
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416152
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416152
cmp dword [ecx + 0x74], 0xe
jbe 0x416152
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42854d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42854d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ecx
cmp byte [0x411007], 0
mov dword [esp], 0
je 0x40102d
push str.password:
call fcn.00401617
lea eax, [esp + 4]
push eax
push 0x40e1b0
call fcn.004015fa
add esp, 0xc
push esi
push 0x40e1ac
push str.RunTmpXXX.exe
call fcn.00401566
mov esi, eax
add esp, 8
test esi, esi
je 0x4010c2
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x401070
mov eax, 0xc
jmp 0x401060
xor dword [eax + section..data], ecx
add eax, 4
cmp eax, 0xebcd4d
jl 0x401060
push esi
push 0xebcd41
push 1
push 0x41100c
call fcn.00401430
push esi
call fcn.00401265
push str.RunTmpXXX2.exe
call fcn.004011c8
push str.RunTmpXXX.exe
call fcn.004010d9
push str.RunTmpXXX2.exe
call fcn.004010d9
push str.RunTmpXXX.exe
call fcn.004011c8
push str.RunTmpXXX2.exe
call fcn.004011c8
add esp, 0x28
xor eax, eax
pop esi
pop ecx
ret
push str.Cant_create_run_file_nPress_Enter_n
call fcn.00401617
add esp, 4
call fcn.004011c3
xor eax, eax
pop esi
pop ecx
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x401fb5
call fcn.00401f58
mov dword [eax], esi
call fcn.00401f45
push 0x16
pop esi
mov dword [eax], esi
call fcn.004019f2
mov eax, esi
jmp 0x40200a
test dword [ebp + 0xc], 0xfffffff9
jne 0x401f9b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401fe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401f6b
pop ecx
call fcn.00401f45
mov eax, dword [eax]
jmp 0x40200a
test al, 0x10
jne 0x402008
test al, 1
je 0x402008
test byte [ebp + 0xc], 2
je 0x402008
call fcn.00401f58
mov dword [eax], 5
call fcn.00401f45
mov dword [eax], 0xd
jmp 0x401fd9
xor eax, eax
pop esi
pop ebp
ret

Function at 0x406be2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x12ce160]
jne 0x406bec
repz ret
jmp fcn.0040aa89
Function at 0x40a6b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x12ce160]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004066ad
and dword [ebp - 0x14], 0
cmp dword [0x12cf574], 0
mov dword [ebp - 0x18], eax
jne 0x40a766
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a80e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a80e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x12cf574], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x12cf578], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x12cf57c], eax
call edi
push eax
call esi
mov dword [0x12cf584], eax
test eax, eax
je 0x40a766
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x12cf580], eax
mov eax, dword [0x12cf580]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a7bf
cmp dword [0x12cf584], ecx
je 0x40a7bf
push eax
call esi
push dword [0x12cf584]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a7bf
test ebx, ebx
je 0x40a7bf
call edi
test eax, eax
je 0x40a7b6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a7b6
test byte [ebp - 8], 1
jne 0x40a7bf
or dword [ebp + 0x10], 0x200000
jmp 0x40a7f2
mov eax, dword [0x12cf578]
cmp eax, dword [ebp - 0x18]
je 0x40a7f2
push eax
call esi
test eax, eax
je 0x40a7f2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a7f2
mov eax, dword [0x12cf57c]
cmp eax, dword [ebp - 0x18]
je 0x40a7f2
push eax
call esi
test eax, eax
je 0x40a7f2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x12cf574]
call esi
test eax, eax
je 0x40a80e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a810
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406be2
leave
ret