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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
call fcn.0040f344
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00417d40
add esp, 0xc
xor esi, esi
call fcn.0040f326
xor byte [ebp + esi - 0x10], al
movzx eax, byte [ebp + esi - 0x10]
push eax
call fcn.0040f44d
inc esi
cmp esi, 0xc
jl 0x40f3b5
mov eax, dword [0x43f5b8]
movzx edx, byte [ebp - 5]
movzx ecx, byte [0x44f627]
test byte [eax + 0x70], 2
jne 0x40f3ec
movzx ecx, byte [0x44f62f]
cmp edx, ecx
je 0x40f3f5
or eax, 0xffffffff
jmp 0x40f43e
cmp byte [ebp + 0x10], 0
je 0x40f43c
mov ecx, dword [0x44f5d0]
mov eax, ecx
cdq
cmp edx, dword [0x43f58c]
jl 0x40f418
mov esi, dword [0x43f588]
jg 0x40f41a
cmp eax, esi
ja 0x40f41a
mov esi, ecx
push edi
mov edi, dword [0x44f5c8]
test esi, esi
je 0x40f43b
call fcn.0040f326
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040f44d
inc edi
sub esi, 1
jne 0x40f425
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416559
leave
ret 0xc

Function at 0x40f44d
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x4506f0]
mov eax, dword [esp + 4]
mov edx, dword [0x4506f8]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x43f160]
movzx eax, cl
add eax, dword [0x4506f4]
mov dword [0x4506f0], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x4506f4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x43f160]
mov dword [0x4506f8], edx
ret 4

Function at 0x40f691
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x18], esi
call fcn.0040fa30
test ebp, ebp
je 0x40f6de
cmp byte [esi], 0
je 0x40f6de
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
jmp 0x40f702
lea edi, [ebx + 0x60]
push 0x40
mov eax, edi
pop ecx
xor byte [eax], 0x6a
inc eax
sub ecx, 1
jne 0x40f6e6
push ebx
call fcn.00406b20
push 0x40
push edi
push ebx
call fcn.00406b51
test ebp, ebp
je 0x40f717
cmp byte [esi], 0
jne 0x40f717
mov eax, dword [esp + 0x10]
mov esi, ebx
push 0x18
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00406b51
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040fa30
cmp dword [esp + 0x3c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40f74f
push dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call fcn.00417d40
add esp, 0xc
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00416559
add esp, 0x20
ret 0x14
Function at 0x40f760
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 0x40f790
push esi
call fcn.00406b20
push edi
push dword [esp + 0x18]
push esi
call fcn.00406b51
push ebx
push esi
call fcn.0040fa30
push 0x14
pop edi
jmp 0x40f79e
push edi
push dword [esp + 0x18]
push ebx
call fcn.00417d40
add esp, 0xc
mov dword [esi + 0xa0], edi
test edi, edi
je 0x40f7c0
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 0x40f7af
push 0x40
pop eax
sub eax, edi
push eax
lea eax, [esi + 0x60]
add eax, edi
push 0x36
push eax
call fcn.00417690
add esp, 0xc
push esi
call fcn.00406b20
push 0x40
push ebx
push esi
call fcn.00406b51
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40f7eb
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x23c
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x248]
push ebx
mov ebx, dword [esp + 0x250]
push esi
mov esi, dword [esp + 0x248]
push 0x40
mov dword [esp + 0x1c], eax
pop eax
mov dword [esp + 0x14], ebx
cmp ebx, eax
jae 0x40f82e
mov eax, ebx
push eax
push ecx
lea eax, [esp + 0x204]
push eax
call fcn.00417d40
push 0xa8
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.00417690
add esp, 0x18
lea eax, [esp + 0x12c]
push dword [esp + 0x24c]
push esi
push eax
call fcn.0040f760
mov eax, dword [esp + 0x25c]
xor edx, edx
push 0x14
dec eax
pop esi
div esi
add eax, 1
mov dword [esp + 0x20], eax
je 0x40f9ec
mov eax, dword [esp + 0x260]
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 + 0x24], edx
shr eax, 0x18
lea esi, [esp + 0x134]
mov byte [esp + ebx + 0x204], al
lea edi, [esp + 0x8c]
mov eax, edx
mov byte [esp + ebx + 0x207], dl
shr eax, 0x10
mov byte [esp + ebx + 0x205], al
mov eax, edx
shr eax, 8
push 0x2a
mov byte [esp + ebx + 0x20a], al
lea eax, [ebx + 4]
pop ecx
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x40f8fb
push eax
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00406b51
push 0
push 0
push 0x14
pop esi
push esi
lea eax, [esp + 0x1e8]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040f691
push esi
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0x1f8]
push eax
call fcn.00417d40
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x13], 0
test eax, eax
je 0x40f9aa
mov ebx, eax
push 0x2a
pop ecx
push 0x14
lea esi, [esp + 0x138]
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00406b51
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x1e8]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040f691
xor ecx, ecx
mov al, byte [esp + ecx + 0x1dc]
xor byte [esp + ecx + 0x1f0], al
inc ecx
cmp ecx, esi
jb 0x40f98e
sub ebx, 1
jne 0x40f940
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x264]
sub eax, ebp
cmp eax, esi
jbe 0x40f9b9
mov eax, esi
push eax
lea eax, [esp + 0x1f4]
push eax
mov eax, dword [esp + 0x28]
add eax, ebp
push eax
call fcn.00417d40
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x24]
inc edx
add ebp, esi
mov dword [esp + 0x14], edx
cmp eax, dword [esp + 0x28]
jb 0x40f89c
pop edi
pop ebp
push 0x44
lea eax, [esp + 0x200]
push eax
call fcn.004061ac
push esi
lea eax, [esp + 0x1ec]
push eax
call fcn.004061ac
push esi
lea eax, [esp + 0x1d8]
push eax
call fcn.004061ac
mov ecx, dword [esp + 0x240]
pop esi
pop ebx
xor ecx, esp
call fcn.00416559
add esp, 0x23c
ret 0x1c
Function at 0x410272
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x94]
xor ebx, ebx
push ebx
push ebx
push ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x42a230]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x80]
push 0x40
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x42a230]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x410357
cmp byte [ebp - 0x80], 0x4d
jne 0x410357
cmp byte [ebp - 0x7f], 0x5a
jne 0x410357
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 0x44]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x42a230]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x80]
mov ebx, 0x108
push ebx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x42a230]
mov ecx, edi
call esi
cmp eax, ebx
jne 0x410357
cmp byte [ebp - 0x80], 0x50
jne 0x410357
cmp byte [ebp - 0x7f], 0x45
jne 0x410357
cmp byte [ebp - 0x7e], 0
jne 0x410357
cmp byte [ebp - 0x7d], 0
jne 0x410357
cmp byte [ebp - 0x68], 0xb
jne 0x410357
cmp byte [ebp - 0x67], 1
jne 0x410340
cmp dword [ebp - 0xc], 4
jbe 0x410340
mov eax, dword [ebp + 0x18]
jmp 0x410359
cmp byte [ebp - 0x68], 0xb
jne 0x410357
cmp byte [ebp - 0x67], 2
jne 0x410357
cmp dword [ebp + 4], 4
jbe 0x410357
mov eax, dword [ebp + 0x28]
jmp 0x410359
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416559
add ebp, 0x8c
leave
ret 4
Function at 0x411575
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x3c]
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x2a], al
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov ecx, ebx
call fcn.004112a4
cmp dword [ebx + 0x20], 0
je 0x4115c7
push dword [ebx + 0x20]
call fcn.0041b4a9
pop ecx
test edi, edi
jne 0x4115cf
xor eax, eax
jmp 0x4115d6
push edi
call fcn.0041ec96
pop ecx
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4115e8
push eax
call fcn.0041ec96
pop ecx
mov dword [ebx + 0x24], eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x18]
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 0x41161d
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
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 + 0x30]
sub eax, dword [esp + 0x28]
push eax
push esi
push dword [esp + 0x30]
xor esi, esi
push edi
push 0x40000000
push esi
push 0x42b2a0
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebx + 0x1c], 0
mov dword [ebx + 4], eax
jne 0x4116a3
cmp dword [ebx + 0x10], esi
jne 0x4116a3
test ebp, ebp
je 0x4116b9
cmp dword [ebx + 0x24], esi
jne 0x4116b9
cmp dword [ebx + 0x20], esi
je 0x4116b9
push dword [ebx + 0x20]
mov ecx, ebx
call fcn.0041139e
mov esi, eax
test esi, esi
je 0x4116b9
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.0041b4a9
pop ecx
jmp 0x4116b9
test eax, eax
je 0x4116b9
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416559
add esp, 0x18
ret 0x14
Function at 0x411b3a
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 0x42c15c
push 1
push ebx
push 0x42c24c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x411c6f
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push 0x42c23c
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x42a230]
call dword [esi]
test eax, eax
js 0x411c5b
cmp byte [ebp + 8], bl
je 0x411ba0
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 [0x42a230]
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 [0x42a230]
call esi
cmp dword [ebp + 0x18], ebx
je 0x411bd1
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 [0x42a230]
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 0x411be8
push 0x42a584
jmp 0x411beb
push dword [ebp + 0x1c]
push eax
call dword [0x42a230]
call esi
cmp dword [ebp + 0x20], ebx
je 0x411c0f
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 [0x42a230]
call esi
cmp dword [ebp + 0x14], ebx
je 0x411c2a
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 [0x42a230]
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 [0x42a230]
call esi
test eax, eax
js 0x411c48
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42a230]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42a230]
call esi
pop esi
mov al, bl
pop ebx
leave
ret 0x1c

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

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x42b4ac
push dword [esp + 0x18]
push dword [0x457d84]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x411e8b
push esi
push dword [0x457d84]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x411e8b
push esi
push dword [0x457d84]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411e8b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x411e8b
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 0x411e83
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x411e7c
push edi
push esi
push eax
call fcn.00417d40
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 0x411e75
push ebp
push dword [esp + 0x14]
call fcn.00411cd6
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42a230]
call esi
test edi, edi
je 0x411e75
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x411e63
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x411e63
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x42a230]
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 0x411e8d
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4
Function at 0x41256c
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
mov esi, dword [ebp + 0x7c]
lea eax, [ebp + 0x18]
push eax
call fcn.004128f0
test al, al
je 0x412624
push ebx
push edi
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], 0x11060000
xor edi, edi
mov dword [ebp + 4], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp], edi
inc ebx
mov dword [ebp - 0x10], 3
push eax
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x412622
push ebx
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x412614
push edi
push dword [ebp + 0x14]
lea eax, [ebp + 0x5c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x412614
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], 0xc
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0x14], edi
je 0x412622
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.00416559
add ebp, 0x74
leave
ret 4

Function at 0x412636
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xfa8]
mov eax, 0x1028
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp + 0xfa4], eax
cmp word [0x458d92], 0
je 0x4126e7
push esi
push 6
push dword [0x435604]
mov esi, 0x458d92
push esi
call fcn.00404029
push eax
call fcn.0040856e
test eax, eax
jne 0x4126e6
push 0x457d90
call fcn.004122d8
push 0x800
push esi
lea eax, [ebp - 0x60]
push eax
call fcn.00407077
lea eax, [ebp - 0x60]
push eax
call fcn.0041b233
pop ecx
lea eax, [eax*2 + 2]
cmp eax, 0x1002
jae 0x4126fc
xor ecx, ecx
push 0x1e
mov word [ebp + eax - 0x60], cx
lea eax, [ebp - 0x80]
push ecx
push eax
call fcn.00417690
add esp, 0xc
mov dword [ebp - 0x7c], 3
push 0x14
pop eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov ecx, dword [ebp + 0xfa4]
xor ecx, ebp
call fcn.00416559
add ebp, 0xfa8
leave
ret
call fcn.004167a5
int3
Function at 0x412758
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x43561c], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, 0x400
push edi
mov edi, dword [ebp + 0x14]
jne 0x4127b3
push 0x64
lea eax, [ebp - 0x130]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x130]
mov word [0x46824c], ax
xor eax, eax
mov word [0x46824e], ax
mov dword [0x43561c], 0x46824c
push 0x32
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406f0e
push edi
push esi
xor eax, eax
push 0x43560c
mov word [esi], ax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + edi*2 - 2], ax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00416559
leave
ret 0x10

Function at 0x41297a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1f90]
mov eax, 0x2010
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp + 0x1f8c], eax
cmp byte [0x459d98], 0
push esi
mov esi, dword [ebp + 0x1f98]
je 0x412a46
push 0x800
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.00413f1a
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412a46
push edi
lea eax, [ebp - 0x78]
mov edi, 0x1000
push eax
lea eax, [ebp + 0xf8c]
mov dword [ebp - 0x78], edi
push eax
lea eax, [ebp - 0x80]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412a3c
mov eax, dword [ebp - 0x78]
shr eax, 1
mov dword [ebp - 0x78], eax
cmp eax, 0x7ff
jae 0x412a1a
add eax, eax
cmp eax, edi
jae 0x412a5e
jmp 0x412a1f
mov eax, 0xffe
push dword [ebp + 0x1f9c]
xor ecx, ecx
mov word [ebp + eax + 0xf8c], cx
lea eax, [ebp + 0xf8c]
push eax
push esi
call fcn.00407077
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x1f8c]
xor ecx, ebp
pop esi
call fcn.00416559
add ebp, 0x1f90
leave
ret 8
call fcn.004167a5
int3
Function at 0x412b3d
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x200c
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x2008], eax
mov ecx, dword [esp + 0x201c]
mov eax, dword [esp + 0x2014]
push ebx
push ebp
mov ebp, dword [esp + 0x2028]
xor ebx, ebx
mov dword [esp + 8], eax
push esi
push edi
mov edi, dword [esp + 0x2028]
test ecx, ecx
je 0x412b81
mov byte [ecx], bl
test ebp, ebp
je 0x412b88
mov byte [ebp], bl
mov esi, dword [esp + 0x2020]
test esi, esi
je 0x412c48
movzx edx, word [esi]
test dx, dx
je 0x412c48
mov dword [esp + 0x14], ebx
add esi, 2
cmp dx, 0x3d
jne 0x412bc3
test edi, edi
je 0x412bcf
test ebx, ebx
jne 0x412bcf
test ecx, ecx
je 0x412bbf
mov byte [ecx], 1
mov ebx, eax
jmp 0x412be9
cmp dx, 0xd
je 0x412c07
cmp dx, 0xa
je 0x412c0a
mov word [eax], dx
add eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2034]
add eax, 0xfffffffe
cmp dword [esp + 0x14], eax
jge 0x412c01
movzx eax, word [esi]
inc dword [esp + 0x14]
mov edx, eax
test ax, ax
mov eax, dword [esp + 0x10]
jne 0x412ba7
mov eax, dword [esp + 0x10]
jmp 0x412c0a
mov byte [ebp], 1
jmp 0x412bfb
add esi, 2
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x412c44
xor eax, eax
mov word [edi], ax
test ebx, ebx
je 0x412c44
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x2034]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00407077
xor eax, eax
mov word [ebx], ax
mov eax, esi
jmp 0x412c4a
xor eax, eax
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416559
add esp, 0x200c
ret 0x18
Function at 0x4152f8
Capabilities:
Hide graphical window

Disassembly:
and dword [0x457d8c], 0
push 1
push dword [esp + 8]
mov byte [0x450965], 1
mov byte [0x450966], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004011b3
cmp dword [0x468238], 0
jne 0x415338
cmp byte [0x450973], 0
je 0x415341
cmp dword [0x45096c], 0
jne 0x415354
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41541a
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp + 0xf88], eax
cmp byte [0x459d98], 0
push esi
mov esi, dword [ebp + 0xf94]
je 0x4154b8
cmp word [0x459d9a], 0
je 0x4154b8
push edi
push 0x800
lea eax, [ebp - 0x78]
push eax
push 0x459d9a
call fcn.00413f1a
lea eax, [ebp - 0x80]
xor edi, edi
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4154b7
push esi
call fcn.0041b233
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push edi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
pop esi
call fcn.00416559
add ebp, 0xf8c
leave
ret 4

Function at 0x4154d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push esi
call fcn.00406d80
mov esi, eax
test esi, esi
je 0x415531
movzx ecx, word [esi]
push ecx
jmp 0x41551c
add esi, 2
movzx eax, word [esi]
push eax
call fcn.00406e9c
test al, al
jne 0x415515
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416559
leave
ret 4
Function at 0x4172b3
Capabilities:
Parse pe header

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

Function at 0x429590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4295bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4295bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret