joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486c90
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.00577360
add esp, 0xc
xor edx, edx
mov word [ebp - 0x824], dx
push 0x206
push 0
lea eax, [ebp - 0x822]
push eax
call fcn.00577360
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.00577360
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00577360
add esp, 0xc
push 0x100
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.005899ff
add esp, 0x24
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x824]
push ecx
push str._s_sts_downloader.cfg
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486de3
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.AutoRun
push 0x60f840
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 1
jne 0x486dd1
mov dword [ebp - 0x828], 1
jmp 0x486ddb
mov dword [ebp - 0x828], 0
mov al, byte [ebp - 0x828]
jmp 0x486de5
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
Function at 0x486e00
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.00577360
add esp, 0xc
xor edx, edx
mov word [ebp - 0x824], dx
push 0x206
push 0
lea eax, [ebp - 0x822]
push eax
call fcn.00577360
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.00577360
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00577360
add esp, 0xc
push 0x100
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.005899ff
add esp, 0x24
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0x60f854
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486f53
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.FullLog
push str.Settings
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 1
jne 0x486f41
mov dword [ebp - 0x828], 1
jmp 0x486f4b
mov dword [ebp - 0x828], 0
mov al, byte [ebp - 0x828]
jmp 0x486f55
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
Function at 0x487cb0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x245], 1
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x244], 0xffffffff
mov eax, dword [0x60fd90]
mov dword [ebp - 0x20c], eax
mov ecx, dword [0x60fd94]
mov dword [ebp - 0x208], ecx
mov edx, dword [0x60fd98]
mov dword [ebp - 0x204], edx
mov ax, word [0x60fd9c]
mov word [ebp - 0x200], ax
push 0x1fa
push 0
lea ecx, [ebp - 0x1fe]
push ecx
call fcn.00577360
add esp, 0xc
mov dword [ebp - 0x250], 0
xor edx, edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x210], edx
xor eax, eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
movzx ecx, word [ebp + 8]
cmp ecx, 0x41
jl 0x487d92
movzx edx, word [ebp + 8]
cmp edx, 0x5a
jle 0x487da4
movzx eax, word [ebp + 8]
cmp eax, 0x61
jl 0x487da6
movzx ecx, word [ebp + 8]
cmp ecx, 0x7a
jg 0x487da6
jmp 0x487dad
xor eax, eax
jmp 0x487e6e
mov edx, 2
shl edx, 2
mov ax, word [ebp + 8]
mov word [ebp + edx - 0x20c], ax
push 0
push 0x80
push 3
push 0
push 3
push Ordinal_1
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x487df3
jmp 0x487e48
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
push 0
lea edx, [ebp - 0x250]
push edx
push 0x28
lea eax, [ebp - 0x240]
push eax
push 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x487e3c
jmp 0x487e48
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x244], 0xffffffff
je 0x487e68
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x244], 0xffffffff
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
Function at 0x48f800
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x492b99
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.00492aa3
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005807ca
push edi
call fcn.0057f28d
add esp, 0x10
cmp eax, 0xffffffff
jne 0x492be8
push edi
call fcn.00589adf
pop ecx
test eax, eax
je 0x492be8
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], 5
call fcn.00491311
lea ecx, [esi + 0x4c]
call fcn.00491311
mov dword [esi + 0x58], ebx
jmp 0x492c65
push 2
push ebx
push edi
call fcn.005807ca
push edi
call fcn.005896e9
push 0
push 0
push edi
mov ebx, eax
call fcn.005807ca
add esp, 0x1c
cmp ebx, 0xffffffff
jne 0x492c28
mov dword [esi + 0x38], 5
lea ecx, [esi + 0x40]
call fcn.00491311
lea ecx, [esi + 0x4c]
call fcn.00491311
and dword [esi + 0x58], 0
jmp 0x492c65
cmp ebx, 0xffffffff
jae 0x492c0b
test ebx, ebx
jne 0x492c3a
mov dword [esi + 0x38], 0xf
jmp 0x492c12
lea eax, [ebx + 1]
push eax
call fcn.004a400d
push edi
push ebx
push 1
push eax
mov dword [esi + 0x5c], eax
call fcn.00589cd6
add esp, 0x14
cmp eax, ebx
jne 0x492c0b
mov eax, dword [esi + 0x5c]
mov ecx, esi
mov byte [ebx + eax], 0
call fcn.00492e2d
mov eax, dword [esi + 0x38]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x49f8c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af18f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x63b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 8]
mov dword [esi], vtable.Json::BuiltStyledStreamWriter.0
call fcn.004185d0
lea ecx, [esi + 0x14]
call fcn.0042a1b0
push dword [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
mov dword [esi + 0x2c], 0x4a
call fcn.0042a200
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x4c]
push dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov dword [esi + 0x48], eax
call fcn.0042a200
push dword [ebp + 0x14]
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.0042a200
push dword [ebp + 0x18]
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.0042a200
mov cl, byte [ebp + 0x1c]
mov al, byte [esi + 0x94]
and cl, 1
and al, 0xf8
shl cl, 2
or cl, al
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x98], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x9c], eax
mov eax, esi
mov byte [esi + 0x94], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4a732d
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x4a7350
or esi, 1
push 2
call edi
test ax, ax
jns 0x4a735c
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4a7368
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4a7374
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4aa657
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x4b4]
call fcn.004b1215
mov edi, dword [ebp + 8]
test eax, eax
jle 0x4aa6af
push ebx
lea ecx, [esi + 0x4b4]
mov byte [ebp + 0xb], 0
call fcn.004b02a6
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
mov ecx, eax
jne 0x4aa713
lea ecx, [esi + 0x4b4]
inc ebx
call fcn.004b1215
cmp ebx, eax
jl 0x4aa676
sub edi, 0x100
je 0x4aa788
sub edi, 4
je 0x4aa71f
dec edi
sub edi, 1
jne 0x4aa842
push dword [ebp + 0xc]
and dword [ebp + 8], edi
call fcn.00585b54
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_select
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x4ac0c7
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x4aa842
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x128]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
jmp 0x4aa718
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov al, 1
jmp 0x4aa844
cmp dword [esi + 0x108], 0
je 0x4aa842
xor eax, eax
mov dword [ebp - 0x20], 6
mov word [ebp - 2], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x124]
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0xa], xmm0
mov dword [ebp - 0x10], eax
call fcn.004a732d
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
jmp 0x4aa842
cmp dword [ebp + 0xc], 9
jne 0x4aa842
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x4aa7e5
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x4aa7e5
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x4aa7e5
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00579128
pop ecx
pop ecx
test eax, eax
je 0x4aa7e5
mov ecx, dword [esi + 0x108]
call fcn.004d66fc
test al, al
jne 0x4aa842
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x4aa829
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x4aa829
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x4aa829
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00579128
pop ecx
pop ecx
test eax, eax
jne 0x4aa842
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.004ab87b
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4ab4ef
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x4ab51b
cmp esi, dword [edi + 0x108]
je 0x4ab51b
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x108]
cmp esi, eax
je 0x4ab601
test eax, eax
je 0x4ab582
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x17
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0x108]
call fcn.004ab14a
and dword [edi + 0x108], 0
test esi, esi
je 0x4ab601
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x4ab601
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x4ab601
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4ab601
xorps xmm0, xmm0
mov dword [edi + 0x108], esi
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0x108]
call fcn.004ab14a
pop edi
pop esi
leave
ret 4
Function at 0x4acbf8
Capabilities:
Terminate process

Disassembly:
push 0x2e0
mov eax, 0x5afbb7
call fcn.004a42a6
mov edi, ecx
push 0xfffffffffffffff0
call fcn.004b1215
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.004b1215
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi]
lea ebx, [edi + 0x30]
mov ecx, edi
call dword [eax + 0x30]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.004a6ffb
mov ecx, edi
lea eax, [edi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call fcn.004a636a
lea ecx, [ebp - 0x2e8]
call fcn.004c95cb
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
push ecx
xor esi, esi
mov ecx, edi
mov dword [ebp - 4], esi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.004b0892
lea ecx, [ebp - 0x94]
test al, al
mov eax, dword [edi]
push ecx
mov ecx, edi
jne 0x4acce8
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004b06da
push eax
call fcn.0057f661
pop ecx
lea ecx, [ebp - 0x94]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.004b01a7
mov ecx, edi
lea eax, [edi + 0x28]
neg ecx
push 0
sbb ecx, ecx
and ecx, eax
push ebx
push ecx
lea ecx, [ebp - 0x118]
call fcn.004b06da
push eax
push esi
lea ecx, [ebp - 0x2e8]
call fcn.004ca610
mov esi, eax
jmp 0x4acd26
call dword [eax + 0x2c]
mov edx, edi
mov byte [ebp - 4], 3
neg edx
lea ecx, [edi + 0x28]
push esi
sbb edx, edx
push ebx
and edx, ecx
mov ecx, eax
push edx
push esi
call fcn.004b06da
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x2e8]
call fcn.004ca610
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.004b01a7
test esi, esi
jne 0x4acd8f
push 0xffffffffffffffff
push 0x5ba614
lea ecx, [ebp - 0x94]
call fcn.004b00a5
mov eax, dword [edi]
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.004b02ed
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 4
call fcn.004b01a7
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.004b06da
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push esi
mov ecx, ebx
call fcn.004a6414
mov edx, edi
lea eax, [edi + 0x20]
neg edx
mov ecx, ebx
sbb edx, edx
and edx, eax
push edx
call fcn.004a62b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.004b01a7
lea ecx, [ebp - 0x2e8]
call fcn.004cc192
xor eax, eax
call fcn.004a4261
ret 0x10
Function at 0x4b1595
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
push dword [ebx + 4]
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4b1644
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4b1648
cmp dword [ebp - 0x1c], 0x10
jne 0x4b1613
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x4b1613
mov eax, dword [ebp - 0x18]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
lea eax, [ebp - 0x20]
push eax
call fcn.004abe21
pop ecx
test al, al
jne 0x4b1635
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x4b1648
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b15e0
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
cmp dword [ebp - 0x1c], 0x12
pop edi
pop esi
pop ebx
jne 0x4b1666
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4b166b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b169d
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4c0bf7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x4c0c25
cmp eax, edi
jge 0x4c0c19
push esi
call fcn.004bc269
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x4c0c48
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4c0c2e
mov dword [esi + 8], edx
jmp 0x4c0c5d
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4c0c53
xor dl, dl
jmp 0x4c0c58
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4c0c48
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4c0c95
push str.zlib_corrupt
call fcn.004bc18e
pop ecx
jmp 0x4c0cd5
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4c0ca5
push str.read_past_buffer
jmp 0x4c0c8d
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4c0cbf
push edi
push ecx
push esi
call fcn.004c3ec8
add esp, 0xc
test eax, eax
je 0x4c0cd5
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00576de0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4ce5e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ce614
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ce614
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4ce6ca
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x4ce633
cmp dx, 0x5c
jne 0x4ce635
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4ce627
cmp esi, ebx
je 0x4ce67d
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.00576de0
add esp, 0xc
cmp esi, 0x208
jae 0x4ce6d8
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.004ce5e0
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x4ce69a
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0058ea8c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0058ea5b
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ce6ca
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a39ef
leave
ret
call fcn.004a45cf
int3

Function at 0x4ced03
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4cedaf
cmp dword [esi + 4], 0xffffffff
jne 0x4cedaf
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push edi
call fcn.0058eaae
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x4ced56
cmp eax, 0x2f
je 0x4ced56
push 0x5ba460
push edi
call fcn.0058ea5b
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x4ced78
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4ced78
mov eax, 0x2000000
jmp 0x4cedb4
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004d1492
add esp, 0x10
test eax, eax
jne 0x4ced96
mov eax, dword [ebp - 4]
jmp 0x4cedb4
push eax
call fcn.004d1b6f
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4cedb4
mov eax, 0x1000000
pop esi
leave
ret 0xc