joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40283b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040f4d0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x40288b
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004033cf
test al, al
je 0x40288b
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4029e8
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.0040f4d0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x402a82
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x402aa9
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.004033cf
test al, al
je 0x402a5b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x402aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402a75
cmp eax, 3
je 0x402a75
cmp eax, 0x12
je 0x402a75
xor eax, eax
inc eax
jmp 0x402a77
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x402b57
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402aa1
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x402b57
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.004045a8
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.0040373d
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00404d90
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00404d90
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00404d90
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x4033cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040f4d0
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x4033ed
xor al, al
jmp 0x40356f
push esi
push edi
call fcn.00403576
push edi
call fcn.00414965
pop ecx
push edi
mov esi, eax
call fcn.004035a2
test al, al
je 0x40348d
push edi
call fcn.00403576
test al, al
je 0x40343c
lea eax, [esi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x403486
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00415d26
lea eax, [esi + 8]
push edi
push eax
call fcn.00414943
add esp, 0x14
jmp 0x40347f
push 0x5c
pop eax
cmp word [edi], ax
jne 0x403486
add edi, 2
cmp word [edi], ax
jne 0x403486
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x403486
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00415d26
lea eax, [esi + 8]
push 0x4222a8
push eax
call fcn.00414943
lea eax, [esi + 0xe]
push edi
push eax
call fcn.00414943
add esp, 0x1c
mov al, 1
jmp 0x40356e
xor al, al
jmp 0x40356e
push ebx
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40356b
cmp eax, ebx
ja 0x40356b
movzx eax, word [edi]
push eax
call fcn.004035d8
test al, al
je 0x4034fb
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x40356b
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00415d26
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00415d26
lea eax, [esi + 0xc]
push edi
push eax
call fcn.00414943
add esp, 0x20
jmp 0x403567
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402fe1
lea eax, [ebp - 0x1000]
push eax
call fcn.00414965
add eax, 4
add eax, esi
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40356b
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00415d26
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00414943
add esp, 0x14
cmp word [edi], 0x2e
jne 0x40355d
movzx eax, word [edi + 2]
push eax
call fcn.004035d8
test al, al
je 0x40355d
add edi, 4
push dword [ebp + 0x10]
push edi
push esi
call fcn.0040457c
mov al, 1
jmp 0x40356d
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404202
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x42fa94]
test ecx, ecx
jne 0x40421f
mov ecx, 0x42fa8c
call fcn.00404183
mov ecx, dword [0x42fa94]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
and eax, 0xf
mov edx, esi
sub edx, eax
xor eax, eax
cmp byte [ebp + 0x14], al
setne al
cmp byte [ebp + 0x10], 0
je 0x40426d
test ecx, ecx
je 0x404289
push eax
push edx
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4042ae
push str.CryptProtectMemory_failed
mov esi, 0x44a2fc
push esi
call fcn.0040197d
pop ecx
pop ecx
mov ecx, esi
call fcn.0041422d
push 2
mov ecx, esi
call fcn.00401978
jmp 0x4042ae
mov ecx, dword [0x42fa98]
test ecx, ecx
je 0x404289
push eax
push edx
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4042ae
push str.CryptUnprotectMemory_failed
jmp 0x40424e
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x4042ad
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 0x40429f
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x407342
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
jne 0x402319
mov al, 1
jmp 0x40240a
cmp dword [edi + 0xc], 1
jne 0x40232a
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 0x40237f
xor esi, esi
test ebp, ebp
je 0x4023a1
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x40234f
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 0x4023a1
add esi, 0x4000
cmp esi, ebp
jb 0x40233f
jmp 0x40239d
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 0x402402
cmp byte [edi + 0x14], 0
je 0x402402
cmp dword [edi + 0xc], 0
jne 0x402402
push 0
lea eax, [edi + 0x1e]
mov ecx, 0x44a2fc
push eax
call fcn.00401912
test al, al
je 0x4023f2
cmp dword [esp + 0x18], ebp
jae 0x40232c
cmp dword [esp + 0x18], 0
jbe 0x40232c
mov esi, dword [edi]
mov ecx, edi
push 0
call dword [esi + 0x10]
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb edx, 0
push edx
push eax
call dword [esi + 0xc]
jmp 0x40232c
lea eax, [edi + 0x1e]
mov ecx, 0x44a2fc
push eax
push 0
call fcn.00401b0b
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 [0x43fffc]
call fcn.00401764
cmp byte [0x44f4e1], 0
mov dword [0x43fffc], eax
jne 0x407376
cmp dword [ebp + 0xc], 0
jbe 0x407376
mov ecx, dword [0x4400f8]
pop ebp
jmp 0x402306
pop ebp
ret 8
Function at 0x40764d
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4400e8], 0
je 0x40765a
or eax, 0xffffffff
ret
mov eax, dword [0x42ffd4]
push esi
xor esi, esi
push edi
cmp eax, esi
jg 0x407698
mov ecx, dword [0x42ffd0]
jl 0x407673
cmp ecx, esi
ja 0x407698
or edi, 0xffffffff
mov dword [0x440008], esi
add ecx, edi
mov dword [0x44000c], esi
mov dword [0x42ffd0], ecx
adc eax, edi
mov dword [0x42ffd4], eax
mov eax, edi
jmp 0x407761
push ebx
mov ebx, dword [0x44000c]
or edi, 0xffffffff
cmp ebx, esi
jg 0x407702
jl 0x4076b0
cmp dword [0x440008], esi
ja 0x407702
mov ebx, 0x2000
push ebx
push dword [0x440000]
call fcn.00407914
cdq
mov ecx, eax
mov dword [0x440008], eax
or ecx, edx
mov dword [0x44000c], edx
je 0x407773
and eax, edx
cmp eax, edi
je 0x407764
add dword [0x440040], ebx
mov eax, dword [0x440000]
adc dword [0x440044], esi
mov dword [0x440004], eax
call fcn.0040710b
mov ebx, dword [0x44000c]
mov eax, dword [0x42fff4]
mov esi, dword [0x440004]
push ebp
test byte [eax + 0x40], 1
je 0x407747
mov ebp, dword [0x440008]
mov eax, ebp
or eax, ebx
je 0x407747
add ebp, edi
adc ebx, edi
call fcn.0040a2d6
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040a3e8
mov eax, ebp
inc esi
or eax, ebx
jne 0x407720
mov ebx, dword [0x44000c]
mov esi, dword [0x440004]
add dword [0x440008], edi
pop ebp
adc ebx, edi
mov dword [0x44000c], ebx
movzx eax, byte [esi]
inc esi
mov dword [0x440004], esi
pop ebx
pop edi
pop esi
ret
push 0x4525f2
mov ecx, 0x44a2fc
call fcn.00401a44
mov dword [0x440008], esi
mov eax, edi
mov dword [0x44000c], esi
jmp 0x407760

Function at 0x40a337
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040a2f4
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00410ca0
add esp, 0xc
xor esi, esi
call fcn.0040a2d6
movzx ecx, byte [ebp + esi - 0xc]
xor eax, ecx
mov byte [ebp + esi - 0xc], al
movzx eax, al
push eax
call fcn.0040a3e8
inc esi
cmp esi, 0xc
jl 0x40a359
mov eax, dword [0x42fff4]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44005f]
test byte [eax + 0x40], 2
jne 0x40a395
movzx ecx, byte [0x440067]
cmp edx, ecx
je 0x40a39e
or eax, 0xffffffff
jmp 0x40a3e1
mov ecx, dword [0x440008]
mov eax, ecx
cdq
cmp edx, dword [0x42ffd4]
jl 0x40a3bb
mov esi, dword [0x42ffd0]
jg 0x40a3bd
cmp eax, esi
ja 0x40a3bd
mov esi, ecx
push edi
mov edi, dword [0x440004]
test esi, esi
je 0x40a3de
call fcn.0040a2d6
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040a3e8
inc edi
sub esi, 1
jne 0x40a3c8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
mov ecx, dword [0x44112c]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x441134]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x42fbb0]
movzx eax, cl
add eax, dword [0x441130]
mov dword [0x44112c], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x441130], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x42fbb0]
mov dword [0x441134], edx
ret 4
Function at 0x40a919
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 edi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call ebx
mov esi, dword [esp + 0x38]
mov ebp, eax
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push esi
call dword [ecx + 0x48]
test eax, eax
js 0x40a950
cmp dword [esp + 0x10], 0
jne 0x40a998
call ebx
sub eax, ebp
cmp eax, 0x7d0
ja 0x40a998
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 0x40a93a
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 0x40a93a
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
test esi, esi
js 0x40aa06
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40a9fe
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x4234fc
push ecx
call dword [eax]
mov esi, eax
test esi, esi
js 0x40a9f0
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
js 0x40a9e6
mov eax, dword [esp + 0x14]
push dword [esp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, 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 esi, esi
js 0x40aa06
test ecx, ecx
jne 0x40aa57
xor ebp, ebp
cmp dword [edi + 8], ebp
je 0x40aa57
cmp dword [edi + 0x18], ebp
jne 0x40aa57
cmp dword [edi + 0x14], ebp
je 0x40aa57
push dword [edi + 0x14]
mov ecx, edi
call fcn.0040af4e
mov ebx, eax
test ebx, ebx
je 0x40aa57
push 0x204
push ebp
push ebp
push ebp
push ebp
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.00414980
pop ecx
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
setns al
pop ebx
add esp, 0x24
ret 8
Function at 0x40b133
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.0040ae98
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 0x40b19d
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 str.RarHtmlClassName
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x40b21f
test ebp, ebp
je 0x40b235
cmp dword [ebx + 0x18], esi
jne 0x40b235
cmp dword [ebx + 0x14], esi
je 0x40b235
push dword [ebx + 0x14]
mov ecx, ebx
call fcn.0040af4e
mov esi, eax
test esi, esi
je 0x40b235
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.00414980
pop ecx
jmp 0x40b235
test eax, eax
je 0x40b235
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 0x40b4bb
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 0x42346c
push 1
push ebx
push 0x42353c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40b58c
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x42352c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40b583
cmp byte [ebp + 8], bl
je 0x40b50e
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40b52b
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
cmp dword [ebp + 0x1c], ebx
jne 0x40b53d
push 0x422310
jmp 0x40b540
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40b555
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40b566
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x40b57a
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x40b63a
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x40bb23
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040f4d0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040b63a
cmp byte [0x4538c2], 0
jne 0x40bbb8
push 6
push dword [0x42b038]
lea eax, [ebp - 0x1020]
push eax
call fcn.00403689
push eax
call fcn.00405663
test eax, eax
jne 0x40bbb8
push 0x42226c
call fcn.0040b9d4
lea eax, [ebp - 0x1020]
push eax
call fcn.00414965
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x101e], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00410480
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 0x40bc14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x42b04c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x40bc5f
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 [0x4558f0], ax
xor eax, eax
mov word [0x4558f2], ax
mov dword [0x42b04c], 0x4558f0
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004044c8
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x42b03c
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 0x40beb9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040f4d0
cmp byte [0x4481f8], 0
je 0x40bf62
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0040d256
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 0x40bf62
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 0x40bf59
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x40bf3d
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.004045a8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x40c010
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0040f4d0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x40c02b
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x40c038
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x40c0fb
movzx eax, word [esi]
test ax, ax
je 0x40c0fb
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 0x40c085
test edi, edi
je 0x40c08f
test ebx, ebx
jne 0x40c08f
test ecx, ecx
je 0x40c081
mov byte [ecx], 1
mov ebx, ebp
jmp 0x40c0a6
cmp eax, 0xd
je 0x40c0b9
cmp eax, 0xa
je 0x40c0bc
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x40c0b4
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x40c067
jmp 0x40c0bc
mov byte [edx], 1
jmp 0x40c0bc
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x40c0f5
mov word [edi], ax
test ebx, ebx
je 0x40c0f5
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.004045a8
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x40c0fd
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x40c108
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 0x40c157
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 0x40c15f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8