joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2678
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x638], edi
lea ecx, [edi + 8]
mov dword [ebp - 0x63c], edi
mov dword [edi], 0
call fcn.0042f000
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 0
call fcn.0042f000
lea ecx, [edi + 0x38]
call fcn.0042f000
push 0x6194d2
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 2
call fcn.0042d9a0
push 0
mov byte [ebp - 4], 3
call fcn.004de7f4
push eax
call fcn.004eb36a
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004d7c10
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x443420
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.004d7c10
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x443411
test eax, eax
je 0x443411
add eax, eax
cmp eax, 0x412
jae 0x44340c
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x443417
call fcn.0048493a
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x20]
call fcn.00427640
lea ecx, [edi + 0x20]
call fcn.0042f120
test al, al
jne 0x443451
lea ecx, [edi + 0x20]
call fcn.0042f150
dec eax
lea ecx, [edi + 0x20]
push eax
call fcn.00438ef0
cmp word [eax], 0x5c
je 0x443451
push 0x6194dc
lea ecx, [edi + 0x20]
call fcn.00427600
lea ecx, [edi + 0x20]
call fcn.0042f120
test al, al
je 0x44346a
push 0x6194d4
lea ecx, [edi + 0x20]
call fcn.00427640
mov dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484636
mov esp, ebp
pop ebp
ret
Function at 0x444ca0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a28a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x62b370]
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 + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x63a988
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x63a988
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x6194d2
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00446bc0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x445a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2988
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x62b370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x445a91
push ebx
push ebx
push ebx
push 2
call fcn.004487a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi + 0x18]
test esi, esi
je 0x445aa7
mov ecx, esi
mov esi, dword [esi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x445a98
push 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
push ebx
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.004df5fd
push ebx
call fcn.004dfbf6
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x14], esi
call fcn.004df5fd
add esp, 0x1c
test esi, esi
jne 0x445b0b
push esi
push esi
push esi
push 0xd
mov ecx, edi
call fcn.004487a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x10], 0x63a988
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00446ca0
lea eax, [esi + 1]
push eax
call fcn.004846b0
push ebx
push 1
mov ebx, eax
mov dword [ebp + 8], eax
push esi
push ebx
mov byte [eax], 0
call fcn.004df278
add esp, 0x14
cmp eax, 1
je 0x445b5b
push 0
push 0
push 0
push 2
mov ecx, edi
call fcn.004487a0
xor bl, bl
jmp 0x445bfe
mov eax, dword [ebp - 0x14]
mov ecx, ebx
mov esi, ebx
mov byte [ebx + eax], 0
cmp byte [ebx], 0
je 0x445bc8
nop dword [eax + eax]
mov al, byte [esi]
cmp al, 0xa
jne 0x445b8a
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00446b70
inc esi
mov ecx, esi
jmp 0x445bc3
cmp al, 0xd
jne 0x445bc2
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x445ba0
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00446b70
push 1
lea eax, [ebp + 8]
mov byte [ebp + 8], 0xa
push eax
lea ecx, [ebp - 0x10]
call fcn.00446b70
cmp byte [esi + 1], 0xa
lea ecx, [esi + 1]
jne 0x445bbe
lea ecx, [esi + 2]
mov esi, ecx
jmp 0x445bc3
inc esi
cmp byte [esi], 0
jne 0x445b70
sub esi, ecx
je 0x445bd6
push esi
push ecx
lea ecx, [ebp - 0x10]
call fcn.00446b70
push ebx
call fcn.00484647
mov eax, dword [ebp - 0x10]
add esp, 4
mov edx, dword [edi]
add eax, 8
mov ecx, edi
push dword [ebp + 0xc]
push 0
push eax
call dword [edx + 8]
cmp byte [edi + 0x2c], 0
je 0x445bfc
xor bl, bl
jmp 0x445bfe
mov bl, 1
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x63a988
je 0x445c12
push ecx
call fcn.00484647
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44cbb5
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 0x44cbd8
or esi, 1
push 1
call edi
test ax, ax
jns 0x44cbe4
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x44cbf0
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x44cbfc
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x44f36b
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 0x44f39e
cmp esi, dword [ebx + 0x60]
je 0x44f460
cmp byte [ebx + 0xc4], 0
jne 0x44f39e
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x60]
je 0x44f460
cmp dword [ebx + 0x60], 0
push edi
je 0x44f3f1
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.0044f010
mov dword [ebx + 0x60], edi
test esi, esi
je 0x44f45f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp eax, ebx
jne 0x44f45f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd8]
test al, al
je 0x44f45f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe8]
test al, al
je 0x44f45f
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.0044f010
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x453917
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x24], 0
je 0x453984
cmp dword [esi + 0x1c], 0
je 0x453984
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00485220
mov ebx, esp
test ebx, ebx
je 0x453984
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.0045071c
mov ecx, dword [esi + 0x1c]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push 0x5ac1d0
push ecx
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0044f010
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484636
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4566ed
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 0x45671f
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 0x456c5b
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x5a35f3
call fcn.00485177
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.00456fea
call fcn.0044c963
push eax
lea ecx, [ebp - 0x94]
call fcn.00450543
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0044c969
mov ecx, eax
call fcn.00450d23
test al, al
je 0x456d71
push ebx
lea ecx, [ebp - 0x94]
call fcn.00450790
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.00450bc9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x456ce2
push str.Error_opening_file
jmp 0x456e52
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x456deb
cmp edi, 0x400000
ja 0x456dfc
and dword [ebp - 0x2c8], 0
push edi
call fcn.004846b0
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 0x456d5a
push ebx
call fcn.00484647
pop ecx
mov ecx, esi
call fcn.00456fea
push 0
push str.Could_not_read_file
jmp 0x456e52
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00456e9d
push dword [ebp - 0x2cc]
jmp 0x456e80
call fcn.0044c969
push eax
lea ecx, [ebp - 0x94]
call fcn.00450773
call fcn.0044ca9c
test al, al
je 0x456d92
call fcn.0044c96f
jmp 0x456da9
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00450bc9
push eax
call fcn.00465b81
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x456dba
push eax
push str.Error_opening_zip_file
jmp 0x456e52
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.004655c2
add esp, 0x14
test eax, eax
je 0x456de1
push 0
push str.Could_not_find_ziped_file
jmp 0x456e52
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x456df4
push 0
push str.File_is_empty
jmp 0x456e52
cmp ebx, 0x400000
jbe 0x456e05
push 0
push 0x5ac9d0
jmp 0x456e52
push ebx
call fcn.004846b0
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00465f41
add esp, 0x18
test eax, eax
je 0x456e5d
cmp eax, 0x600
je 0x456e5d
push dword [ebp - 0x2c8]
call fcn.00484647
pop ecx
call fcn.0044ca9c
test al, al
jne 0x456e4b
push edi
call fcn.0046541c
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00457012
mov bl, al
jmp 0x456e88
call fcn.0044ca9c
test al, al
jne 0x456e6d
push edi
call fcn.0046541c
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.00456e9d
push edi
mov bl, al
call fcn.00484647
pop ecx
lea ecx, [ebp - 0x94]
call fcn.0045067e
mov al, bl
call fcn.00485121
ret 8
Function at 0x462e75
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 0x462e89
xor eax, eax
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x462e9b
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x462e85
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x462eb6
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x462eed
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.004d4c70
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 0x462ef1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x462ef4
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x464e25
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x88
mov eax, 0x5a4554
call fcn.00485177
mov esi, ecx
cmp dword [esi + 0x4f0], 0
mov ebx, dword [ebp + 0x14]
je 0x464f19
cmp dword [ebp + 8], 0x100
jne 0x464eff
cmp word [ebp + 0xc], 0xd
jne 0x464e98
cmp byte [esi + 0x4f6], 0
je 0x464e79
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x464e98
cmp byte [esi + 0x4f7], 0
jne 0x464e98
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x464e91
push 0
push 0
push 0
push str.return
push esi
call fcn.0044f010
xor eax, eax
jmp 0x464f1c
cmp dword [ebp + 0xc], 0x43
jne 0x464eff
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x464eff
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.00463665
and dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.00450bd3
lea ecx, [ebp - 0x94]
lea eax, [eax*2 + 2]
push eax
call fcn.00450bc9
mov ecx, dword [esi + 0x40]
push eax
push 0x2042
call fcn.00458ed3
push eax
call fcn.00462e75
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.0045067e
jmp 0x464e91
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 0x464f1c
xor eax, eax
inc eax
call fcn.00485121
ret 0x10
Function at 0x46546e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x62b370]
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 0x465524
movzx eax, word [esi]
test ax, ax
je 0x465524
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x4654ae
cmp ax, 0x5c
jne 0x4654b0
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4654a2
cmp edi, esi
je 0x4654f7
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.004e79eb
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x465534
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0046546e
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004d95d7
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004ddf30
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.00484636
mov esp, ebp
pop ebp
ret
call fcn.0048493a
int3

Function at 0x465af9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x465b75
cmp dword [edi + 4], 0xffffffff
jne 0x465b75
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x6194dc
push esi
call fcn.004ddf30
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x465b47
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x465b47
mov eax, 0x2000000
jmp 0x465b7a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00468014
add esp, 0x10
test eax, eax
jne 0x465b65
mov eax, dword [ebp - 4]
jmp 0x465b7a
push eax
call fcn.0046871c
mov dword [edi], eax
mov eax, dword [0x63b0bc]
pop ecx
jmp 0x465b7a
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x468121
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 0x468155
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 0x468150
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x46817c
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x468165
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.004d4c70
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 0x4682ef
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4682fd
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4683bc
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 + 0x5ad968]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5ad968]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5ad968]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5ad968]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5ad968]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5ad968]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5ad968]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5ad968]
sub edi, 1
jne 0x468315
pop edi
test esi, esi
je 0x4683d8
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5ad968]
inc edx
sub esi, 1
jne 0x4683c0
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x47791f
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x5a42f4
call fcn.00485177
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.0044c963
push eax
lea ecx, [ebp - 0x94]
call fcn.00450543
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0044c969
mov ecx, eax
call fcn.00450d23
test al, al
je 0x477a0d
push ebx
lea ecx, [ebp - 0x94]
call fcn.00450790
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.00450bc9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4779b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0045067e
jmp 0x477aee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x47799c
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004846b0
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 0x477ad9
push edi
call fcn.00484647
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0045067e
jmp 0x477aec
call fcn.0044c969
push eax
lea ecx, [ebp - 0x94]
call fcn.00450773
call fcn.0044ca9c
test al, al
je 0x477a2e
call fcn.0044c96f
jmp 0x477a45
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00450bc9
push eax
call fcn.00465b81
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x47799c
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.004655c2
add esp, 0x14
test eax, eax
jne 0x47799c
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x47799c
push esi
call fcn.004846b0
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00465f41
add esp, 0x18
test eax, eax
je 0x477ac9
cmp eax, 0x600
je 0x477ac9
push edi
call fcn.00484647
pop ecx
call fcn.0044ca9c
test al, al
jne 0x4779f9
push ebx
call fcn.0046541c
jmp 0x4779f8
call fcn.0044ca9c
test al, al
jne 0x477ad9
push ebx
call fcn.0046541c
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0045067e
test edi, edi
jne 0x477b60
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x477b5c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x477b5c
push esi
mov dword [ebp - 0x2d0], edi
call fcn.004846b0
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 0x477b58
push edi
call fcn.00484647
pop ecx
xor edi, edi
test edi, edi
jne 0x477b60
xor eax, eax
jmp 0x477b7b
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00477b83
push 1
push edi
mov esi, eax
call fcn.0048467f
pop ecx
pop ecx
mov eax, esi
call fcn.00485121
ret 4
Function at 0x480d4c
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 0x480d70
cmp dword [esi + 8], edi
jge 0x480d68
push esi
call fcn.0047efed
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 0x480d99
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 0x480d7c
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x480db6
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x480da4
xor eax, eax
jmp 0x480dac
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 0x480d9b
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 0x480deb
push str.zlib_corrupt
call fcn.0047eea8
add esp, 4
jmp 0x480e28
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x480dfb
push str.read_past_buffer
jmp 0x480de1
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x480e12
push edi
push esi
call fcn.0047eeb7
pop ecx
pop ecx
test eax, eax
je 0x480e28
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004d4c70
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 0x4862c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x62b370]
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 0x486310
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x48630a
shr eax, 8
cmp al, 2
jne 0x48630a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484636
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.00484636
mov esp, ebp
pop ebp
ret