joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d576
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x7030b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x210]
mov dword [ebx + 0x214], eax
call fcn.0044f1f2
test al, al
je 0x45d5c4
push edi
pop ecx
push esi
push ebx
push edi
push ebp
push ebp
push esp
pop eax
pop edi
pop ecx
pop ebp
pop ecx
pop esp
push esi
pop eax
pop ebp
push ebp
push ebp
push eax
pop edi
push edx
push eax
push eax
pop ebp
push ebx
pop edx
push ebp
pop esi
xor esi, esi
mov edi, 0x114
lea eax, [ebp - 0x118]
push edi
push esi
push eax
call fcn.004a08c0
add esp, 0xc
mov dword [ebp - 0x118], edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x45d5ff
mov ecx, ebx
call fcn.0045cd51
jmp 0x45d614
mov edi, esi
test esi, esi
jne 0x45d614
mov ecx, ebx
call fcn.0045cc04
inc edi
mov esi, eax
cmp edi, 0xa
jl 0x45d601
mov eax, dword [ebx + 0x214]
mov ecx, 0x1b0
sub eax, dword [ebx + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004421e5
mov esp, ebp
pop ebp
ret

Function at 0x46612b
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 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x46614e
or esi, 1
push 1
call edi
test ax, ax
jns 0x46615a
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x466166
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x466172
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x468944
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx + 4]
je 0x468977
cmp esi, dword [ebx + 0x60]
je 0x468a39
cmp byte [ebx + 0xc4], 0
jne 0x468977
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x60]
je 0x468a39
cmp dword [ebx + 0x60], 0
push edi
je 0x4689ca
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x60]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x60]
call fcn.004685e9
mov dword [ebx + 0x60], edi
test esi, esi
je 0x468a38
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp eax, ebx
jne 0x468a38
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd8]
test al, al
je 0x468a38
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe8]
test al, al
je 0x468a38
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x60], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x60]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x60]
call fcn.004685e9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x46b1a9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7030b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x24], 0
je 0x46b216
cmp dword [esi + 0x1c], 0
je 0x46b216
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004c2720
mov ebx, esp
test ebx, ebx
je 0x46b216
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x1c]
push ebx
add ecx, 0x1bc
call fcn.00469d34
mov ecx, dword [esi + 0x1c]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push 0x654540
push ecx
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004685e9
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004421e5
mov esp, ebp
pop ebp
ret 0x10

Function at 0x46df85
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 0x46dfb7
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 0x46e4cb
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x649736
call fcn.004c2130
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0046e85a
call fcn.00465ed9
push eax
lea ecx, [ebp - 0x94]
call fcn.00469b69
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00465edf
mov ecx, eax
call fcn.0046a338
test al, al
je 0x46e5e1
push ebx
lea ecx, [ebp - 0x94]
call fcn.00469da8
push edi
push 0x80
push 3
push edi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.0045403f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x46e552
push str.Error_opening_file
jmp 0x46e6c2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x46e65b
cmp edi, 0x400000
ja 0x46e66c
and dword [ebp - 0x2c8], 0
push edi
call fcn.0044223c
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x46e5ca
push ebx
call fcn.004421f6
pop ecx
mov ecx, esi
call fcn.0046e85a
push 0
push str.Could_not_read_file
jmp 0x46e6c2
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.0046e70d
push dword [ebp - 0x2cc]
jmp 0x46e6f0
call fcn.00465edf
push eax
lea ecx, [ebp - 0x94]
call fcn.00469d8b
call fcn.00466012
test al, al
je 0x46e602
call fcn.00465ee5
jmp 0x46e619
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0045403f
push eax
call fcn.0047f261
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x46e62a
push eax
push str.Error_opening_zip_file
jmp 0x46e6c2
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0047eca2
add esp, 0x14
test eax, eax
je 0x46e651
push 0
push str.Could_not_find_ziped_file
jmp 0x46e6c2
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x46e664
push 0
push str.File_is_empty
jmp 0x46e6c2
cmp ebx, 0x400000
jbe 0x46e675
push 0
push 0x654d28
jmp 0x46e6c2
push ebx
call fcn.0044223c
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.0047f621
add esp, 0x18
test eax, eax
je 0x46e6cd
cmp eax, 0x600
je 0x46e6cd
push dword [ebp - 0x2c8]
call fcn.004421f6
pop ecx
call fcn.00466012
test al, al
jne 0x46e6bb
push edi
call fcn.0047eafc
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0046e882
mov bl, al
jmp 0x46e6f8
call fcn.00466012
test al, al
jne 0x46e6dd
push edi
call fcn.0047eafc
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.0046e70d
push edi
mov bl, al
call fcn.004421f6
pop ecx
lea ecx, [ebp - 0x94]
call fcn.00469ca4
mov al, bl
call fcn.004c20eb
ret 8
Function at 0x47c534
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x47c548
xor eax, eax
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x47c55a
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x47c544
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x47c575
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x47c5ac
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.0049d3b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x47c5b0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x47c5b3
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x47e4ff
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x88
mov eax, 0x649175
call fcn.004c2130
mov esi, ecx
cmp dword [esi + 0x4f0], 0
mov ebx, dword [ebp + 0x14]
je 0x47e5f3
cmp dword [ebp + 8], 0x100
jne 0x47e5d9
cmp word [ebp + 0xc], 0xd
jne 0x47e572
cmp byte [esi + 0x4f6], 0
je 0x47e553
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x47e572
cmp byte [esi + 0x4f7], 0
jne 0x47e572
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x47e56b
push 0
push 0
push 0
push str.return
push esi
call fcn.004685e9
xor eax, eax
jmp 0x47e5f6
cmp dword [ebp + 0xc], 0x43
jne 0x47e5d9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x47e5d9
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.0047cd3c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.0046a1e8
lea ecx, [ebp - 0x94]
lea eax, [eax*2 + 2]
push eax
call fcn.0045403f
mov ecx, dword [esi + 0x40]
push eax
push 0x2042
call fcn.0046d82e
push eax
call fcn.0047c534
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.00469ca4
jmp 0x47e56b
mov eax, dword [esi + 0x4f0]
push ebx
push dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x47e5f6
xor eax, eax
inc eax
call fcn.004c20eb
ret 0x10
Function at 0x47eb4e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x7030b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x47ec04
movzx eax, word [esi]
test ax, ax
je 0x47ec04
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x47eb8e
cmp ax, 0x5c
jne 0x47eb90
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x47eb82
cmp edi, esi
je 0x47ebd7
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.004b075e
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x47ec14
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0047eb4e
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004a53e9
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004a6224
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004421e5
mov esp, ebp
pop ebp
ret
call fcn.00442751
int3

Function at 0x47f1d9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x47f255
cmp dword [edi + 4], 0xffffffff
jne 0x47f255
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x64fe6c
push esi
call fcn.004a6224
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x47f227
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x47f227
mov eax, 0x2000000
jmp 0x47f25a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004816f4
add esp, 0x10
test eax, eax
jne 0x47f245
mov eax, dword [ebp - 4]
jmp 0x47f25a
push eax
call fcn.00481dfc
mov dword [edi], eax
mov eax, dword [0x712394]
pop ecx
jmp 0x47f25a
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x481801
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x481835
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x481830
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x48185c
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x481845
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0049d3b0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4819cf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4819dd
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x481a9c
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6560e8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6560e8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6560e8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6560e8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6560e8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6560e8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6560e8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6560e8]
sub edi, 1
jne 0x4819f5
pop edi
test esi, esi
je 0x481ab8
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6560e8]
inc edx
sub esi, 1
jne 0x481aa0
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x48f3b5
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x64a3b9
call fcn.004c2130
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.00465ed9
push eax
lea ecx, [ebp - 0x94]
call fcn.00469b69
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00465edf
mov ecx, eax
call fcn.0046a338
test al, al
je 0x48f4a3
push ebx
lea ecx, [ebp - 0x94]
call fcn.00469da8
push edi
push 0x80
push 3
push edi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.0045403f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48f446
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00469ca4
jmp 0x48f584
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x48f432
push esi
mov dword [ebp - 0x2c8], edi
call fcn.0044223c
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x48f56f
push edi
call fcn.004421f6
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00469ca4
jmp 0x48f582
call fcn.00465edf
push eax
lea ecx, [ebp - 0x94]
call fcn.00469d8b
call fcn.00466012
test al, al
je 0x48f4c4
call fcn.00465ee5
jmp 0x48f4db
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0045403f
push eax
call fcn.0047f261
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x48f432
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.0047eca2
add esp, 0x14
test eax, eax
jne 0x48f432
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x48f432
push esi
call fcn.0044223c
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.0047f621
add esp, 0x18
test eax, eax
je 0x48f55f
cmp eax, 0x600
je 0x48f55f
push edi
call fcn.004421f6
pop ecx
call fcn.00466012
test al, al
jne 0x48f48f
push ebx
call fcn.0047eafc
jmp 0x48f48e
call fcn.00466012
test al, al
jne 0x48f56f
push ebx
call fcn.0047eafc
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00469ca4
test edi, edi
jne 0x48f5f6
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48f5f2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x48f5f2
push esi
mov dword [ebp - 0x2d0], edi
call fcn.0044223c
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x48f5ee
push edi
call fcn.004421f6
pop ecx
xor edi, edi
test edi, edi
jne 0x48f5f6
xor eax, eax
jmp 0x48f611
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0048f619
push 1
push edi
mov esi, eax
call fcn.0044222e
pop ecx
pop ecx
mov eax, esi
call fcn.004c20eb
ret 4
Function at 0x499832
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x499856
cmp dword [esi + 8], edi
jge 0x49984e
push esi
call fcn.00497ad3
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x49987f
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 0x499862
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x49989c
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x49988a
xor eax, eax
jmp 0x499892
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x499881
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 0x4998d1
push str.zlib_corrupt
call fcn.0049798e
add esp, 4
jmp 0x49990e
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4998e1
push str.read_past_buffer
jmp 0x4998c7
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4998f8
push edi
push esi
call fcn.0049799d
pop ecx
pop ecx
test eax, eax
je 0x49990e
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0049d3b0
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 0x49d1f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x8c
mov eax, 0x64a8e7
call fcn.004c2130
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call fcn.00465ed9
push eax
lea ecx, [ebp - 0x94]
call fcn.00469b69
xor edi, edi
lea ecx, [ebp - 0x94]
push esi
mov dword [ebp - 4], edi
call fcn.00469da8
push edi
push 0x80
push 3
push edi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.0045403f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49d29a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
je 0x49d29a
and dword [ebp - 0x98], 0
push eax
call fcn.0044223c
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x98]
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebx]
je 0x49d29c
push esi
call fcn.004421f6
pop ecx
xor esi, esi
lea ecx, [ebp - 0x94]
call fcn.00469ca4
mov eax, esi
call fcn.004c20eb
ret

Function at 0x4b698c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b680b

Function at 0x4b7d86
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b7a46
Function at 0x4c6980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4c69ac
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4c699d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4c69e0
cmp dword [esi + 8], 0
jne 0x4c69d0
push 0x64ec88
push dword [eax + 8]
call fcn.004abe45
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4c69d0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004acace
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4c6a02
mov eax, dword [esi + 8]
test eax, eax
je 0x4c69fc
push eax
call fcn.004ab6e4
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4c6e20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x7030b8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4c6e70
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4c6e6a
shr eax, 8
cmp al, 2
jne 0x4c6e6a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004421e5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004421e5
mov esp, ebp
pop ebp
ret
Function at 0x4c7f50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d92a0

Function at 0x4c8f70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.004c9250
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4c8ff4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4c8fcc
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.004c6f70
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004c8c30
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85b8], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4c9250
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x248]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4c9300
cmp dword [ecx + edx*4 + 0x17c], 0x4c8ec0
jne 0x4c9300
cmp dword [esi], 0
je 0x4c9298
test edi, edi
je 0x4c9300
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004d7320
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c9300
test al, 1
je 0x4c9300
cmp dword [esi], 0
jne 0x4c92e9
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x704374]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4c92e9
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4c9300
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4c9310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x4c9339
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4c936f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x6693d8
push 2
push eax
call fcn.004abbc8
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004abbc8
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret