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

Disassembly:
cmp dword [0x44f6b0], 0
je 0x40b977
or eax, 0xffffffff
ret
mov eax, dword [0x43f58c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40b9b5
mov ecx, dword [0x43f588]
jl 0x40b990
cmp ecx, ebp
ja 0x40b9b5
or ebx, 0xffffffff
mov dword [0x44f5d0], ebp
add ecx, ebx
mov dword [0x44f5d4], ebp
mov dword [0x43f588], ecx
adc eax, ebx
mov dword [0x43f58c], eax
mov eax, ebx
jmp 0x40babf
push esi
push edi
mov edi, dword [0x44f5d4]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40ba1a
jl 0x40b9d0
mov esi, dword [0x44f5d0]
cmp esi, ebp
ja 0x40ba20
mov esi, 0x2000
push esi
push dword [0x44f5c4]
call fcn.0040bc99
cdq
mov ecx, eax
mov dword [0x44f5d0], eax
or ecx, edx
mov dword [0x44f5d4], edx
je 0x40ba5c
and eax, edx
cmp eax, ebx
je 0x40ba4d
add dword [0x44f608], esi
mov eax, dword [0x44f5c4]
adc dword [0x44f60c], ebp
mov dword [0x44f5c8], eax
call fcn.0040b396
mov edi, dword [0x44f5d4]
mov esi, dword [0x44f5d0]
mov eax, dword [0x43f5b8]
test byte [eax + 0x70], 1
je 0x40ba9f
cmp byte [0x45076d], 0
mov eax, esi
je 0x40ba6c
or eax, edi
je 0x40ba9f
push esi
push dword [0x44f5c8]
push 0x450778
call fcn.0040f338
jmp 0x40ba93
push 0x46601a
mov ecx, 0x45bdac
call fcn.00401a13
mov dword [0x44f5d0], ebp
mov eax, ebx
mov dword [0x44f5d4], ebp
jmp 0x40babd
or eax, edi
mov ebp, dword [0x44f5c8]
je 0x40ba9f
add esi, ebx
adc edi, ebx
call fcn.0040f103
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040f22a
mov eax, esi
inc ebp
or eax, edi
jne 0x40ba76
mov esi, dword [0x44f5d0]
mov edi, dword [0x44f5d4]
mov eax, dword [0x44f5c8]
add esi, ebx
mov dword [0x44f5d0], esi
adc edi, ebx
mov dword [0x44f5d4], edi
movzx eax, byte [eax]
inc dword [0x44f5c8]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40f164
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.0040f121
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00417a90
add esp, 0xc
xor esi, esi
call fcn.0040f103
xor byte [ebp + esi - 0x10], al
movzx eax, byte [ebp + esi - 0x10]
push eax
call fcn.0040f22a
inc esi
cmp esi, 0xc
jl 0x40f192
mov eax, dword [0x43f5b8]
movzx edx, byte [ebp - 5]
movzx ecx, byte [0x44f627]
test byte [eax + 0x70], 2
jne 0x40f1c9
movzx ecx, byte [0x44f62f]
cmp edx, ecx
je 0x40f1d2
or eax, 0xffffffff
jmp 0x40f21b
cmp byte [ebp + 0x10], 0
je 0x40f219
mov ecx, dword [0x44f5d0]
mov eax, ecx
cdq
cmp edx, dword [0x43f58c]
jl 0x40f1f5
mov esi, dword [0x43f588]
jg 0x40f1f7
cmp eax, esi
ja 0x40f1f7
mov esi, ecx
push edi
mov edi, dword [0x44f5c8]
test esi, esi
je 0x40f218
call fcn.0040f103
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040f22a
inc edi
sub esi, 1
jne 0x40f202
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416329
leave
ret 0xc

Function at 0x40f22a
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 0x40f46e
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.0040f80d
test ebp, ebp
je 0x40f4bb
cmp byte [esi], 0
je 0x40f4bb
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
jmp 0x40f4df
lea edi, [ebx + 0x60]
push 0x40
mov eax, edi
pop ecx
xor byte [eax], 0x6a
inc eax
sub ecx, 1
jne 0x40f4c3
push ebx
call fcn.00406835
push 0x40
push edi
push ebx
call fcn.00406866
test ebp, ebp
je 0x40f4f4
cmp byte [esi], 0
jne 0x40f4f4
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.00406866
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040f80d
cmp dword [esp + 0x3c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40f52c
push dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call fcn.00417a90
add esp, 0xc
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00416329
add esp, 0x20
ret 0x14
Function at 0x40f53d
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 0x40f56d
push esi
call fcn.00406835
push edi
push dword [esp + 0x18]
push esi
call fcn.00406866
push ebx
push esi
call fcn.0040f80d
push 0x14
pop edi
jmp 0x40f57b
push edi
push dword [esp + 0x18]
push ebx
call fcn.00417a90
add esp, 0xc
mov dword [esi + 0xa0], edi
test edi, edi
je 0x40f59d
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 0x40f58c
push 0x40
pop eax
sub eax, edi
push eax
lea eax, [esi + 0x60]
add eax, edi
push 0x36
push eax
call fcn.00417460
add esp, 0xc
push esi
call fcn.00406835
push 0x40
push ebx
push esi
call fcn.00406866
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40f5c8
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 0x40f60b
mov eax, ebx
push eax
push ecx
lea eax, [esp + 0x204]
push eax
call fcn.00417a90
push 0xa8
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.00417460
add esp, 0x18
lea eax, [esp + 0x12c]
push dword [esp + 0x24c]
push esi
push eax
call fcn.0040f53d
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 0x40f7c9
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 0x40f6d8
push eax
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00406866
push 0
push 0
push 0x14
pop esi
push esi
lea eax, [esp + 0x1e8]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040f46e
push esi
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0x1f8]
push eax
call fcn.00417a90
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x13], 0
test eax, eax
je 0x40f787
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.00406866
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.0040f46e
xor ecx, ecx
mov al, byte [esp + ecx + 0x1dc]
xor byte [esp + ecx + 0x1f0], al
inc ecx
cmp ecx, esi
jb 0x40f76b
sub ebx, 1
jne 0x40f71d
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x264]
sub eax, ebp
cmp eax, esi
jbe 0x40f796
mov eax, esi
push eax
lea eax, [esp + 0x1f4]
push eax
mov eax, dword [esp + 0x28]
add eax, ebp
push eax
call fcn.00417a90
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 0x40f679
pop edi
pop ebp
push 0x44
lea eax, [esp + 0x200]
push eax
call fcn.00405ea5
push esi
lea eax, [esp + 0x1ec]
push eax
call fcn.00405ea5
push esi
lea eax, [esp + 0x1d8]
push eax
call fcn.00405ea5
mov ecx, dword [esp + 0x240]
pop esi
pop ebx
xor ecx, esp
call fcn.00416329
add esp, 0x23c
ret 0x1c
Function at 0x41004f
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 [0x42a22c]
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 [0x42a22c]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x410134
cmp byte [ebp - 0x80], 0x4d
jne 0x410134
cmp byte [ebp - 0x7f], 0x5a
jne 0x410134
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 0x44]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x42a22c]
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 [0x42a22c]
mov ecx, edi
call esi
cmp eax, ebx
jne 0x410134
cmp byte [ebp - 0x80], 0x50
jne 0x410134
cmp byte [ebp - 0x7f], 0x45
jne 0x410134
cmp byte [ebp - 0x7e], 0
jne 0x410134
cmp byte [ebp - 0x7d], 0
jne 0x410134
cmp byte [ebp - 0x68], 0xb
jne 0x410134
cmp byte [ebp - 0x67], 1
jne 0x41011d
cmp dword [ebp - 0xc], 4
jbe 0x41011d
mov eax, dword [ebp + 0x18]
jmp 0x410136
cmp byte [ebp - 0x68], 0xb
jne 0x410134
cmp byte [ebp - 0x67], 2
jne 0x410134
cmp dword [ebp + 4], 4
jbe 0x410134
mov eax, dword [ebp + 0x28]
jmp 0x410136
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416329
add ebp, 0x8c
leave
ret 4
Function at 0x411345
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.00411074
cmp dword [ebx + 0x20], 0
je 0x411397
push dword [ebx + 0x20]
call fcn.0041b279
pop ecx
test edi, edi
jne 0x41139f
xor eax, eax
jmp 0x4113a6
push edi
call fcn.0041ea66
pop ecx
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4113b8
push eax
call fcn.0041ea66
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 0x4113ed
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 0x411473
cmp dword [ebx + 0x10], esi
jne 0x411473
test ebp, ebp
je 0x411489
cmp dword [ebx + 0x24], esi
jne 0x411489
cmp dword [ebx + 0x20], esi
je 0x411489
push dword [ebx + 0x20]
mov ecx, ebx
call fcn.0041116e
mov esi, eax
test esi, esi
je 0x411489
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.0041b279
pop ecx
jmp 0x411489
test eax, eax
je 0x411489
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.00416329
add esp, 0x18
ret 0x14
Function at 0x41190a
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 0x411a3f
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 [0x42a22c]
call dword [esi]
test eax, eax
js 0x411a2b
cmp byte [ebp + 8], bl
je 0x411970
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 [0x42a22c]
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 [0x42a22c]
call esi
cmp dword [ebp + 0x18], ebx
je 0x4119a1
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 [0x42a22c]
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 0x4119b8
push 0x42a584
jmp 0x4119bb
push dword [ebp + 0x1c]
push eax
call dword [0x42a22c]
call esi
cmp dword [ebp + 0x20], ebx
je 0x4119df
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 [0x42a22c]
call esi
cmp dword [ebp + 0x14], ebx
je 0x4119fa
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 [0x42a22c]
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 [0x42a22c]
call esi
test eax, eax
js 0x411a18
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42a22c]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42a22c]
call esi
pop esi
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x411acd
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 0x411b42
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 0x411c5b
push esi
push dword [0x457d84]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x411c5b
push esi
push dword [0x457d84]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411c5b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x411c5b
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 0x411c53
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x411c4c
push edi
push esi
push eax
call fcn.00417a90
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 0x411c45
push ebp
push dword [esp + 0x14]
call fcn.00411aa6
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42a22c]
call esi
test edi, edi
je 0x411c45
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x411c33
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x411c33
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x42a22c]
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 0x411c5d
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4
Function at 0x41233a
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.004126be
test al, al
je 0x4123f2
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 0x4123f0
push ebx
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4123e2
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 0x4123e2
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 0x4123f0
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.00416329
add ebp, 0x74
leave
ret 4

Function at 0x412404
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xfa8]
mov eax, 0x1028
call fcn.004163d0
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp + 0xfa4], eax
cmp word [0x458d92], 0
je 0x4124b5
push esi
push 6
push dword [0x435604]
mov esi, 0x458d92
push esi
call fcn.00403bbb
push eax
call fcn.00408283
test eax, eax
jne 0x4124b4
push 0x457d90
call fcn.004120a6
push 0x800
push esi
lea eax, [ebp - 0x60]
push eax
call fcn.00406d8c
lea eax, [ebp - 0x60]
push eax
call fcn.0041b003
pop ecx
lea eax, [eax*2 + 2]
cmp eax, 0x1002
jae 0x4124ca
xor ecx, ecx
push 0x1e
mov word [ebp + eax - 0x60], cx
lea eax, [ebp - 0x80]
push ecx
push eax
call fcn.00417460
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.00416329
add ebp, 0xfa8
leave
ret
call fcn.00416545
int3
Function at 0x412526
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 0x412581
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.00406c23
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.00416329
leave
ret 0x10

Function at 0x412748
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1f90]
mov eax, 0x2010
call fcn.004163d0
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp + 0x1f8c], eax
cmp byte [0x459d98], 0
push esi
mov esi, dword [ebp + 0x1f98]
je 0x412814
push 0x800
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.00413cea
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 0x412814
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 0x41280a
mov eax, dword [ebp - 0x78]
shr eax, 1
mov dword [ebp - 0x78], eax
cmp eax, 0x7ff
jae 0x4127e8
add eax, eax
cmp eax, edi
jae 0x41282c
jmp 0x4127ed
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.00406d8c
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.00416329
add ebp, 0x1f90
leave
ret 8
call fcn.00416545
int3
Function at 0x41290d
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x200c
call fcn.004163d0
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 0x412951
mov byte [ecx], bl
test ebp, ebp
je 0x412958
mov byte [ebp], bl
mov esi, dword [esp + 0x2020]
test esi, esi
je 0x412a18
movzx edx, word [esi]
test dx, dx
je 0x412a18
mov dword [esp + 0x14], ebx
add esi, 2
cmp dx, 0x3d
jne 0x412993
test edi, edi
je 0x41299f
test ebx, ebx
jne 0x41299f
test ecx, ecx
je 0x41298f
mov byte [ecx], 1
mov ebx, eax
jmp 0x4129b9
cmp dx, 0xd
je 0x4129d7
cmp dx, 0xa
je 0x4129da
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 0x4129d1
movzx eax, word [esi]
inc dword [esp + 0x14]
mov edx, eax
test ax, ax
mov eax, dword [esp + 0x10]
jne 0x412977
mov eax, dword [esp + 0x10]
jmp 0x4129da
mov byte [ebp], 1
jmp 0x4129cb
add esi, 2
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x412a14
xor eax, eax
mov word [edi], ax
test ebx, ebx
je 0x412a14
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.00406d8c
xor eax, eax
mov word [ebx], ax
mov eax, esi
jmp 0x412a1a
xor eax, eax
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416329
add esp, 0x200c
ret 0x18