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

Disassembly:
cmp dword [0x44c630], 0
je 0x40a2fd
or eax, 0xffffffff
ret
mov eax, dword [0x43c50c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40a33b
mov ecx, dword [0x43c508]
jl 0x40a316
cmp ecx, ebp
ja 0x40a33b
or ebx, 0xffffffff
mov dword [0x44c550], ebp
add ecx, ebx
mov dword [0x44c554], ebp
mov dword [0x43c508], ecx
adc eax, ebx
mov dword [0x43c50c], eax
mov eax, ebx
jmp 0x40a445
push esi
push edi
mov edi, dword [0x44c554]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40a3a0
jl 0x40a356
mov esi, dword [0x44c550]
cmp esi, ebp
ja 0x40a3a6
mov esi, 0x2000
push esi
push dword [0x44c544]
call fcn.0040a61f
cdq
mov ecx, eax
mov dword [0x44c550], eax
or ecx, edx
mov dword [0x44c554], edx
je 0x40a3e2
and eax, edx
cmp eax, ebx
je 0x40a3d3
add dword [0x44c588], esi
mov eax, dword [0x44c544]
adc dword [0x44c58c], ebp
mov dword [0x44c548], eax
call fcn.00409d76
mov edi, dword [0x44c554]
mov esi, dword [0x44c550]
mov eax, dword [0x43c538]
test byte [eax + 0x40], 1
je 0x40a425
cmp byte [0x44d7e5], 0
mov eax, esi
je 0x40a3f2
or eax, edi
je 0x40a425
push 0x44d7f0
push esi
push dword [0x44c548]
call fcn.0040d8b0
jmp 0x40a419
push 0x45beb2
mov ecx, 0x451b1c
call fcn.004018af
mov dword [0x44c550], ebp
mov eax, ebx
mov dword [0x44c554], ebp
jmp 0x40a443
or eax, edi
mov ebp, dword [0x44c548]
je 0x40a425
add esi, ebx
adc edi, ebx
call fcn.0040d522
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040d62d
mov eax, esi
inc ebp
or eax, edi
jne 0x40a3fc
mov esi, dword [0x44c550]
mov edi, dword [0x44c554]
mov eax, dword [0x44c548]
add esi, ebx
mov dword [0x44c550], esi
adc edi, ebx
mov dword [0x44c554], edi
movzx eax, byte [eax]
inc dword [0x44c548]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40d583
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040d540
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004151e0
add esp, 0xc
xor esi, esi
call fcn.0040d522
xor byte [ebp + esi - 0xc], al
movzx eax, byte [ebp + esi - 0xc]
push eax
call fcn.0040d62d
inc esi
cmp esi, 0xc
jl 0x40d5a5
mov eax, dword [0x43c538]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44c5a7]
test byte [eax + 0x40], 2
jne 0x40d5dc
movzx ecx, byte [0x44c5af]
cmp edx, ecx
je 0x40d5e5
or eax, 0xffffffff
jmp 0x40d628
mov ecx, dword [0x44c550]
mov eax, ecx
cdq
cmp edx, dword [0x43c50c]
jl 0x40d602
mov esi, dword [0x43c508]
jg 0x40d604
cmp eax, esi
ja 0x40d604
mov esi, ecx
push edi
mov edi, dword [0x44c548]
test esi, esi
je 0x40d625
call fcn.0040d522
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040d62d
inc edi
sub esi, 1
jne 0x40d60f
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40d62d
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x44d670]
mov eax, dword [esp + 4]
mov edx, dword [0x44d678]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x43c0e0]
movzx eax, cl
add eax, dword [0x44d674]
mov dword [0x44d670], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x44d674], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x43c0e0]
mov dword [0x44d678], edx
ret 4

Function at 0x40d687
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2f4
push ebx
push esi
mov esi, 0xa8
lea eax, [esp + 0x44]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00414b90
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x308]
push dword [esp + 0x308]
call fcn.0040db50
push esi
lea eax, [esp + 0x48]
mov byte [esp + 0xe], bl
push eax
lea eax, [esp + 0x1fc]
mov byte [esp + 0x13], bl
push eax
call fcn.004151e0
add esp, 0xc
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x1fc]
push eax
push dword [esp + 0x318]
push dword [esp + 0x318]
call fcn.0040d9d4
mov eax, dword [esp + 0x318]
xor edx, edx
push 0x14
dec eax
pop ecx
div ecx
add eax, 1
mov dword [esp + 0x18], eax
je 0x40d84d
push ebp
push edi
mov edi, ebx
lea ebp, [esp + 0x38]
inc ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
push ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], ebx
push 0
push eax
call fcn.00414b90
push esi
lea eax, [esp + 0x20c]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.004151e0
mov eax, ebx
mov byte [esp + 0x3f], bl
shr eax, 0x18
add esp, 0x18
mov byte [esp + 0x24], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, ebx
shr eax, 8
cmp dword [esp + 0x318], 0
push 4
mov byte [esp + 0x2a], al
pop esi
jbe 0x40d801
mov ebp, dword [esp + 0x318]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0xfc]
push eax
push esi
lea eax, [esp + 0x34]
push eax
call fcn.0040d9d4
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x2a8]
push eax
lea eax, [esp + 0xfc]
push eax
push 0x14
lea eax, [esp + 0x34]
push eax
call fcn.0040da96
xor esi, esi
mov al, byte [esp + esi + 0x24]
xor byte [esp + esi + 0x38], al
inc esi
cmp esi, 0x14
jb 0x40d7d0
push 0xa8
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.004151e0
add esp, 0xc
sub ebp, 1
jne 0x40d78d
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x31c]
xor edx, edx
mov ebx, dword [esp + 0x320]
mov ecx, edi
cmp ecx, ebx
jae 0x40d824
mov al, byte [ecx + ebp]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x40d813
mov ebx, dword [esp + 0x14]
mov esi, 0xa8
mov eax, dword [esp + 0x1c]
inc ebx
push 0x14
pop ecx
sub ebp, ecx
mov dword [esp + 0x14], ebx
add edi, ecx
mov dword [esp + 0x18], ebp
cmp eax, dword [esp + 0x20]
jb 0x40d730
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2f4
ret 0x1c
Function at 0x40d9d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp + 0xa0]
lea ebx, [ebp + 0x40]
cmp ecx, 0xffffffff
je 0x40da7a
push esi
push edi
push 0x40
pop edi
cmp ecx, edi
jbe 0x40da05
push ebp
push ebx
call fcn.0040dbb7
push 0x14
pop ecx
mov dword [ebp + 0xa0], ecx
cmp dword [esp + 0x20], 0
je 0x40da24
mov edx, dword [esp + 0x24]
cmp byte [edx], 0
je 0x40da24
mov esi, dword [esp + 0x20]
mov edi, ebx
push 0x18
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
jmp 0x40da5c
mov eax, edi
xor esi, esi
sub eax, ecx
push eax
lea eax, [ecx + ebp]
push esi
push eax
call fcn.00414b90
add esp, 0xc
xor byte [esi + ebp], 0x36
inc esi
cmp esi, edi
jb 0x40da38
push ebx
call fcn.004062d2
push edi
push ebp
push ebx
call fcn.00406303
cmp dword [esp + 0x20], 0
mov eax, ebx
je 0x40da6f
mov edx, dword [esp + 0x24]
cmp byte [edx], 0
jne 0x40da6f
mov edi, dword [esp + 0x20]
mov esi, ebx
push 0x18
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
or dword [ebp + 0xa0], 0xffffffff
pop edi
pop esi
jmp 0x40da7c
mov eax, ebx
cmp dword [esp + 0x10], 0
pop ebp
pop ebx
je 0x40da93
push dword [esp + 8]
push dword [esp + 8]
push eax
call fcn.00406303
ret 0x14

Function at 0x40da96
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 0x40dab6
push esi
push esi
push edi
push esi
push esi
call fcn.0040d9d4
lea eax, [esp + 0x10]
push eax
lea ebx, [edi + 0x40]
push ebx
call fcn.0040dbb7
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40dae0
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x40dae0
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x40db01
xor byte [esi + edi], 0x6a
inc esi
cmp esi, 0x40
jb 0x40dae0
push ebx
call fcn.004062d2
push 0x40
push edi
push ebx
call fcn.00406303
test ebp, ebp
je 0x40db12
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
jne 0x40db12
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.00406303
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0040dbb7
cmp dword [esp + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40db4a
push dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push dword [esp + 0x20]
call fcn.004151e0
add esp, 0xc
add esp, 0x14
ret 0x14
Function at 0x40de7e
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 [0x427220]
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 [0x427220]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x40df76
cmp byte [ebp - 0x108], 0x4d
jne 0x40df76
cmp byte [ebp - 0x107], 0x5a
jne 0x40df76
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 0xcc]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x427220]
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 [0x427220]
mov ecx, edi
call esi
cmp eax, ebx
jne 0x40df76
cmp byte [ebp - 0x108], 0x50
jne 0x40df76
cmp byte [ebp - 0x107], 0x45
jne 0x40df76
cmp byte [ebp - 0x106], 0
jne 0x40df76
cmp byte [ebp - 0x105], 0
jne 0x40df76
cmp byte [ebp - 0xf0], 0xb
jne 0x40df76
cmp byte [ebp - 0xef], 1
jne 0x40df5f
cmp dword [ebp - 0x94], 4
jbe 0x40df76
mov eax, dword [ebp - 0x70]
jmp 0x40df78
cmp byte [ebp - 0xef], 2
jne 0x40df76
cmp dword [ebp - 0x84], 4
jbe 0x40df76
mov eax, dword [ebp - 0x60]
jmp 0x40df78
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f105
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.0040ee34
cmp dword [ebx + 0x1c], 0
je 0x40f13e
push dword [ebx + 0x1c]
call fcn.00417ffe
pop ecx
cmp dword [esp + 0x28], 0
jne 0x40f149
xor eax, eax
jmp 0x40f153
push dword [esp + 0x28]
call fcn.0041b7f6
pop ecx
cmp dword [esp + 0x2c], 0
mov dword [ebx + 0x1c], eax
jne 0x40f161
xor eax, eax
jmp 0x40f16b
push dword [esp + 0x2c]
call fcn.0041b7f6
pop ecx
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 0x40f1a0
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 0x4281f8
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x40f222
test ebp, ebp
je 0x40f238
cmp dword [ebx + 0x20], esi
jne 0x40f238
cmp dword [ebx + 0x1c], esi
je 0x40f238
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.0040ef2e
mov esi, eax
test esi, esi
je 0x40f238
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.00417ffe
pop ecx
jmp 0x40f238
test eax, eax
je 0x40f238
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 0x40f6ba
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 0x4290cc
push 1
push ebx
push 0x4291bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40f7ef
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push 0x4291ac
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x427220]
call dword [esi]
test eax, eax
js 0x40f7db
cmp byte [ebp + 8], bl
je 0x40f720
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 [0x427220]
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 [0x427220]
call esi
cmp dword [ebp + 0x18], ebx
je 0x40f751
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 [0x427220]
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 0x40f768
push 0x427544
jmp 0x40f76b
push dword [ebp + 0x1c]
push eax
call dword [0x427220]
call esi
cmp dword [ebp + 0x20], ebx
je 0x40f78f
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 [0x427220]
call esi
cmp dword [ebp + 0x14], ebx
je 0x40f7aa
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 [0x427220]
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 [0x427220]
call esi
test eax, eax
js 0x40f7c8
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x427220]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x427220]
call esi
pop esi
mov al, bl
pop ebx
leave
ret 0x1c

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

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x428404
push dword [esp + 0x18]
push dword [0x44d9f8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40fa0b
push esi
push dword [0x44d9f8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40fa0b
push esi
push dword [0x44d9f8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40fa0b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40fa0b
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 0x40fa03
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40f9fc
push edi
push esi
push eax
call fcn.004151e0
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 0x40f9f5
push ebp
push dword [esp + 0x14]
call fcn.0040f856
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x427220]
call esi
test edi, edi
je 0x40f9f5
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x40f9e3
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x40f9e3
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x427220]
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 0x40fa0d
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x40ff9b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00413ad0
cmp word [0x44ea12], 0
je 0x410037
push esi
push 6
push dword [0x432604]
mov esi, 0x44ea12
push esi
call fcn.0040384f
push eax
call fcn.00407d0d
test eax, eax
jne 0x410036
push 0x44da10
call fcn.0040fe34
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.00406889
lea eax, [ebp - 0x1024]
push eax
call fcn.00417fe3
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00414b90
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 0x41007b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43261c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x4100c6
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 [0x4652d0], ax
xor eax, eax
mov word [0x4652d2], ax
mov dword [0x43261c], 0x4652d0
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040675a
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43260c
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 0x4101f7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00413ad0
cmp byte [0x44fa18], 0
je 0x4102a5
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.00411730
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 0x4102a5
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 0x41029c
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x410280
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.00406889
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x410354
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00413ad0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41036f
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41037c
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x410458
movzx eax, word [esi]
test ax, ax
je 0x410458
push ebp
mov ebp, dword [esp + 0x201c]
push edi
mov dword [esp + 0x10], ebx
mov edi, eax
add esi, 2
cmp di, 0x3d
jne 0x4103c7
test ebp, ebp
je 0x4103d3
test ebx, ebx
jne 0x4103d3
test ecx, ecx
je 0x4103be
mov byte [ecx], 1
mov ebx, dword [esp + 0x201c]
jmp 0x4103f7
cmp di, 0xd
je 0x41040c
cmp di, 0xa
je 0x41040f
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 0x410407
movzx eax, word [esi]
inc dword [esp + 0x10]
mov edi, eax
test ax, ax
jne 0x4103a6
jmp 0x41040f
mov byte [edx], 1
jmp 0x410416
add esi, 2
mov edi, dword [esp + 0x202c]
mov eax, dword [esp + 0x201c]
xor ecx, ecx
mov word [eax], cx
test ebp, ebp
je 0x410452
xor eax, eax
mov word [ebp], ax
test ebx, ebx
je 0x410452
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.00406889
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41045a
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18
Function at 0x412a53
Capabilities:
Hide graphical window

Disassembly:
and dword [0x44d9ec], 0
push 1
push dword [esp + 8]
mov byte [0x44d9f5], 1
mov byte [0x44d9f6], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401193
cmp dword [0x4652c0], 0
jne 0x412a93
cmp byte [0x44da0b], 0
je 0x412a9c
cmp dword [0x44da04], 0
jne 0x412aaf
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x412b83
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00413ad0
cmp byte [0x44fa18], 0
je 0x412c12
cmp word [0x44fa1a], 0
je 0x412c12
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44fa1a
call fcn.00411730
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 0x412c11
push dword [ebp + 8]
call fcn.00417fe3
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 0x412c16
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00413ad0
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.004065d0
mov esi, eax
test esi, esi
je 0x412c6e
movzx ecx, word [esi]
push ecx
jmp 0x412c59
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004066ec
test al, al
jne 0x412c52
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x694e5a59
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x32f15732
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
jmp 0x401219