joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4543b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x454400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x454400
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x454405
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x4543eb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x454412
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x463180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x4631ce
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4631ce
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x4631d3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x4631b9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x4631e3
test esi, esi
jne 0x463201
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x4631ff
mov byte [eax + esi - 1], 0
jne 0x463208
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x468960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x4689b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4689b0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x4689b5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x46899b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x4689c2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x4781e7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x478217
push edi
call ebx
push eax
call fcn.0047df0f
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x478241
test byte [ebp - 4], 1
je 0x478241
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x478241
push edi
call ebx
push eax
call fcn.0047df0f
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x4782e7
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00478134
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x478273
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00478134
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x478289
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00478134
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4782b3
push 0
call ebx
push eax
call fcn.0047df0f
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4782d1
push eax
call ebx
push eax
call fcn.0047df0f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4782e5
push eax
call ebx
push eax
call fcn.0047df0f
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x47830e
test byte [ebp - 4], 1
jne 0x47830e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x47830e
push edi
call ebx
push eax
call fcn.0047df0f
pop edi
pop ebx
leave
ret 8

Function at 0x47adb0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47ade8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00477c6b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00477c43
jmp 0x47adf4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x47cbb2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47cbf4
call fcn.00488089
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47cbf4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47cbeb
xor eax, eax
jmp 0x47cbfc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047cc02
pop edi
pop esi
pop ebx
ret 4
Function at 0x404847
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.0040e880
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
xor esi, esi
cmp dword [0x4104d4], esi
push edi
mov dword [ebp - 8], esi
jne 0x40487d
jmp 0x404873
push 0x2710
call ebx
call fcn.00409193
cmp eax, 1
jne 0x40486c
cmp dword [ebp + 0x18], esi
jne 0x40488f
push 4
push esi
push 7
call fcn.0040c35f
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
cmp dword [ebp + 0x14], esi
jle 0x4048c8
push dword [ebp + 0x20]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004092d9
add esp, 0x14
test eax, eax
jne 0x4048cf
push 0xea60
inc edi
call ebx
cmp edi, dword [ebp + 0x14]
jl 0x40489f
xor eax, eax
jmp 0x40496e
cmp dword [ebp + 0x18], esi
jne 0x4048e1
push 4
push esi
push 8
call fcn.0040c35f
add esp, 0xc
push 0x44
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0040e800
lea eax, [ebp - 0x2064]
add esp, 0xc
push eax
mov edx, 0x4015c0
call fcn.0040779f
pop ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2064]
call fcn.0040777b
mov ecx, 0x4015c4
call fcn.0040777b
cmp dword [ebp + 0x10], esi
je 0x40493e
mov edx, dword [ebp + 0x10]
mov eax, 0x40127c
call fcn.00407701
test eax, eax
je 0x40493e
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x2064]
call fcn.0040777b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
push eax
push 0x41fce0
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x2064]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40496b
or dword [ebp - 8], 8
jmp 0x40496e
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x40497a
mov edx, dword [ebp - 8]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057a0
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 0x4057cb
movzx eax, ax
cmp ax, 3
je 0x4057d3
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x4057bb
cmp word [edx], 3
je 0x4057d3
xor edx, edx
test edx, edx
je 0x4057e3
call fcn.0040d5d3
mov dword [ebp - 4], eax
mov ebx, ecx
jmp 0x4057fb
lea ebx, [ebp - 0x40]
mov eax, ebx
push eax
mov edx, 0x402364
mov dword [ebp - 4], 0x1c
call fcn.0040779f
pop ecx
mov ecx, dword [ebp + 8]
call fcn.0040d5d3
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp edi, 0xff
jge 0x405868
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x140]
call fcn.0040d4a2
test al, al
je 0x405868
dec edi
xor ecx, ecx
xor esi, esi
test edi, edi
jle 0x40585e
cmp esi, dword [ebp - 4]
jne 0x405834
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 0x40584b
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 0x40582d
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 0x405b0f
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.0040d10c
lea eax, [ebp - 0x70]
push eax
mov edx, 0x4022d0
call fcn.0040779f
pop ecx
lea eax, [ebp - 0x30]
push eax
mov edx, 0x4022b8
call fcn.0040779f
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.0040a654
add esp, 0xc
cmp eax, 0xffffffff
je 0x405b94
cmp eax, ebx
jbe 0x405b94
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.0040586f
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x405c09
lea eax, [ebp - 0x48]
push eax
mov edx, 0x4022a0
call fcn.0040779f
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 0x405c00
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x4058d6
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0040a40d
add esp, 0x24
inc esi
cmp esi, 3
jb 0x405bc5
cmp dword [ebp - 4], ebx
jbe 0x405c15
mov esi, dword [ebp - 8]
call fcn.00405767
jmp 0x405c1e
push dword [ebp - 8]
call fcn.0040d0a9
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405c23
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.0040a795
push edx
push eax
call fcn.0040a766
ret
Function at 0x405c46
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.0040d5d3
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x405d6b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
call fcn.0040d4a2
test al, al
je 0x405d6b
sub esi, 4
xor ebx, ebx
test esi, esi
mov dword [ebp - 4], 0xcf671
jle 0x405cb3
push 8
lea ecx, [ebp - 4]
lea edi, [ebp + ebx - 0x108]
call fcn.00405c23
pop ecx
movsx ecx, al
mov al, byte [edi]
rol al, cl
inc ebx
cmp ebx, esi
mov byte [edi], al
jl 0x405c93
mov dword [ebp - 4], 0x3039
mov dword [ebp - 8], 0x100
push esi
lea ecx, [ebp - 4]
call fcn.00405c23
pop ecx
push esi
lea ecx, [ebp - 4]
movsx edi, al
call fcn.00405c23
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 0x405cc1
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xa564
jle 0x405d1d
push 0x100
lea ecx, [ebp - 4]
call fcn.00405c23
xor byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x405d03
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xd431
jle 0x405d44
push 0x100
lea ecx, [ebp - 4]
call fcn.00405c23
sub byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x405d2a
xor eax, eax
test esi, esi
jle 0x405d5f
movzx cx, byte [ebp + eax - 0x108]
mov edx, dword [ebp + 8]
mov word [edx + eax*2], cx
inc eax
cmp eax, esi
jl 0x405d4a
mov eax, dword [ebp + 8]
and word [eax + esi*2], 0
mov eax, esi
jmp 0x405d6d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405db9
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 [0x423538]
call edi
mov ebx, eax
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x14], ebx
je 0x405f89
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 0x405f82
lea ecx, [eax + 1]
mov eax, ebx
call fcn.0040d6e4
test al, al
je 0x405f82
push 0xc0c
push 8
push dword [0x423538]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x405f82
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.0040779f
pop ecx
lea eax, [ebp - 0x34]
push eax
mov edx, 0x402260
call fcn.0040779f
pop ecx
lea eax, [ebp - 0x24]
push eax
mov edx, 0x402254
call fcn.0040779f
pop ecx
lea eax, [ebp - 0x48]
push eax
mov edx, 0x402240
call fcn.0040779f
pop ecx
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x40222c
call fcn.0040779f
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 0x405f62
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x405f62
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 0x405f62
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 0x405f62
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 0x405f62
push dword [ebp - 8]
call fcn.00405c46
test eax, eax
pop ecx
jle 0x405f62
lea eax, [ebp - 0x94]
push eax
mov edx, 0x4023c8
call fcn.0040779f
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.0040d668
add esp, 0x10
test eax, eax
jle 0x405f5f
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0040d27a
test al, al
pop ecx
je 0x405f5f
inc dword [edi + 4]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push 1
call fcn.0040d704
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x405e97
push edi
call fcn.0040d0a9
mov ebx, dword [ebp - 0x14]
pop ecx
push ebx
call fcn.0040d0a9
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405fdf
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.0040d10c
lea eax, [ebp - 0x100]
mov ebx, 0x4021e8
push eax
mov edx, ebx
call fcn.0040779f
pop ecx
lea eax, [ebp - 0x6c]
push eax
mov edx, 0x4021cc
call fcn.0040779f
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.0040a654
add esp, 0xc
cmp eax, 0xffffffff
je 0x406078
test eax, eax
jbe 0x406078
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.00405db9
pop ecx
pop ecx
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 8], 0
jne 0x4061cd
lea eax, [ebp - 0x40]
push eax
mov edx, 0x40219c
call fcn.0040779f
pop ecx
lea eax, [ebp - 0x9c]
push eax
mov edx, 0x402178
call fcn.0040779f
pop ecx
lea eax, [ebp - 0x54]
push eax
mov edx, 0x402164
call fcn.0040779f
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 0x40614e
cmp edi, 0x24
jne 0x406129
xor edi, edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.00405d72
add esp, 0xc
mov word [ebp - 0x302], di
jmp 0x40612b
xor edi, edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x405f8e
push 2
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0040a40d
add esp, 0x24
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jb 0x4060e7
cmp dword [ebp - 8], 0
jne 0x4061cd
lea eax, [ebp - 0xb8]
push eax
mov edx, ebx
call fcn.0040779f
pop ecx
lea eax, [ebp - 0x40]
push eax
mov edx, 0x4021b4
call fcn.0040779f
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.0040a654
add esp, 0xc
cmp eax, 0xffffffff
je 0x4061c9
test eax, eax
jbe 0x4061c9
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.00405d72
add esp, 0xc
cmp dword [ebp - 8], 0
jbe 0x4061d9
mov esi, dword [ebp - 0xc]
call fcn.00405767
jmp 0x4061e2
push dword [ebp - 0xc]
call fcn.0040d0a9
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4064b6
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.0040779f
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.0040d10c
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 0x406536
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x4061e7
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0040a40d
add esp, 0x24
inc edi
cmp edi, 3
jb 0x4064fb
cmp dword [ebp - 4], esi
jbe 0x40654b
mov esi, dword [ebp - 8]
call fcn.00405767
jmp 0x406554
push dword [ebp - 8]
call fcn.0040d0a9
pop ecx
pop edi
pop esi
leave
ret

Function at 0x406558
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.0040d0e5
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 0x4065ac
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 0x406599
pop esi
and word [edi + eax*2], 0
leave
ret
Function at 0x406841
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov ecx, edi
call fcn.0040d5d3
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x4068f3
lea ecx, [ebp - 0x100]
mov eax, edi
call fcn.0040d4a2
test al, al
je 0x4068f3
xor eax, eax
test esi, esi
jle 0x40688a
xor byte [ebp + eax - 0x100], 0x5c
inc eax
cmp eax, esi
jl 0x40687d
mov bl, byte [ebp - 0x100]
cmp bl, 0xff
jne 0x4068a3
mov bl, byte [ebp - 0xfe]
lea eax, [ebp - 0xfd]
jmp 0x4068a9
lea eax, [ebp - 0xff]
movzx ecx, byte [eax]
lea ecx, [eax + ecx + 1]
movzx eax, bl
lea edx, [eax + ecx]
lea esi, [ebp + esi - 0x100]
cmp edx, esi
ja 0x4068f3
cmp eax, dword [ebp + 8]
jl 0x4068f3
cmp byte [ebp - 0x100], 0xff
jne 0x4068d5
add ecx, dword [ebp + 8]
sub bl, byte [ebp + 8]
movzx eax, bl
xor edx, edx
test eax, eax
jle 0x4068ec
movzx si, byte [edx + ecx]
mov word [edi + edx*2], si
inc edx
cmp edx, eax
jl 0x4068de
and word [edi + eax*2], 0
jmp 0x4068f5
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x406e5b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push esi
lea eax, [ebp - 0x38]
push edi
push eax
mov edx, 0x401f98
call fcn.0040779f
pop ecx
lea eax, [ebp - 0x38]
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.0040d10c
xor edi, edi
lea eax, [ebp - 0x240]
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 0x406edb
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x406b95
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0040a40d
add esp, 0x24
inc edi
cmp edi, 3
jb 0x406ea0
cmp dword [ebp - 4], esi
jbe 0x406ef0
mov esi, dword [ebp - 8]
call fcn.00405767
jmp 0x406ef9
push dword [ebp - 8]
call fcn.0040d0a9
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4074ff
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
push ebx
push esi
push edi
push 8
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0040d10c
lea eax, [ebp - 0x128]
push eax
mov edx, 0x401ef8
call fcn.0040779f
lea eax, [ebp - 0xb8]
push eax
mov edx, 0x401e70
call fcn.0040779f
lea eax, [ebp - 0x54]
push eax
mov edx, 0x401ecc
call fcn.0040779f
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x401e60
call fcn.0040779f
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov ebx, 0x104
push ebx
push dword [ebp + esi - 0x14]
lea edi, [ebp - 0x330]
push dword [ebp + esi - 0x1c]
mov eax, 0x80000001
call fcn.0040a654
add esp, 0xc
cmp eax, 0xffffffff
je 0x4075cc
test eax, eax
jbe 0x4075cc
push ebx
lea eax, [ebp - 0x538]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x538]
push eax
call fcn.00407244
pop ecx
pop ecx
add esi, 4
dec dword [ebp - 4]
jne 0x407584
cmp dword [ebp - 8], 0
jbe 0x4075e4
mov esi, dword [ebp - 0xc]
call fcn.00405767
jmp 0x4075ed
push dword [ebp - 0xc]
call fcn.0040d0a9
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408ce9
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040e880
push ebx
push edi
push 0x400
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.004076eb
pop ecx
xor ebx, ebx
inc eax
xor ecx, ecx
cmp esi, ebx
je 0x408d3c
cmp eax, ebx
jbe 0x408d3c
mov byte [ebp - 0x804], bl
cmp word [esi + ecx*2], bx
mov dl, byte [esi + ecx*2]
mov byte [ebp + ecx - 0x804], dl
je 0x408d3c
inc ecx
cmp ecx, eax
jb 0x408d27
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408d63
xor eax, eax
jmp 0x408d88
push ebx
lea eax, [ebp - 4]
push eax
push esi
call fcn.004076eb
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret