joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f0fd
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 0x44f1ac
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 0x44f1b0
cmp dword [ebp - 0x1c], 0x10
jne 0x44f17b
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x44f17b
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.0044b005
pop ecx
test al, al
jne 0x44f19d
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 0x44f1b0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x44f148
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 0x44f1ce
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x44f1d3
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 0x44f205
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 0x453c61
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x52ce14
call fcn.004e27d2
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.00453fee
call fcn.004488b2
push eax
lea ecx, [ebp - 0x94]
call fcn.0044ddda
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004488b8
mov ecx, eax
call fcn.0044e5c9
test al, al
je 0x453d77
push ebx
lea ecx, [ebp - 0x94]
call fcn.0044e040
push edi
push 0x80
push 3
push edi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.0044e46d
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x453ce8
push str.Error_opening_file
jmp 0x453e58
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
test edi, edi
je 0x453df1
cmp edi, 0x400000
ja 0x453e02
and dword [ebp - 0x2c8], 0
push edi
call fcn.004e2329
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 0x453d60
push ebx
call fcn.004e20ec
pop ecx
mov ecx, esi
call fcn.00453fee
push 0
push str.Could_not_read_file
jmp 0x453e58
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00453ea3
push dword [ebp - 0x2cc]
jmp 0x453e86
call fcn.004488b8
push eax
lea ecx, [ebp - 0x94]
call fcn.0044e023
call fcn.00448984
test al, al
je 0x453d98
call fcn.004488be
jmp 0x453daf
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0044e46d
push eax
call fcn.0045f39e
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x453dc0
push eax
push str.Error_opening_zip_file
jmp 0x453e58
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0045edde
add esp, 0x14
test eax, eax
je 0x453de7
push 0
push str.Could_not_find_ziped_file
jmp 0x453e58
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x453dfa
push 0
push str.File_is_empty
jmp 0x453e58
cmp ebx, 0x400000
jbe 0x453e0b
push 0
push 0x53525c
jmp 0x453e58
push ebx
call fcn.004e2329
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.0045f775
add esp, 0x18
test eax, eax
je 0x453e63
cmp eax, 0x600
je 0x453e63
push dword [ebp - 0x2c8]
call fcn.004e20ec
pop ecx
call fcn.00448984
test al, al
jne 0x453e51
push edi
call fcn.0045ec3a
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00454016
mov bl, al
jmp 0x453e8e
call fcn.00448984
test al, al
jne 0x453e73
push edi
call fcn.0045ec3a
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.00453ea3
push edi
mov bl, al
call fcn.004e20ec
pop ecx
lea ecx, [ebp - 0x94]
call fcn.0044df15
mov al, bl
call fcn.004e277c
ret 8
Function at 0x45e89a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4d8], edi
je 0x45e904
cmp dword [ebp + 8], 0x100
jne 0x45e8f3
cmp word [ebp + 0xc], 0xd
jne 0x45e8f3
cmp byte [esi + 0x4de], 0
je 0x45e8da
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x45e8f3
cmp byte [esi + 0x4df], 0
jne 0x45e8f3
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x45e8ef
push edi
push edi
push edi
push str.return
push esi
call fcn.0044a6a5
xor eax, eax
jmp 0x45e907
mov eax, dword [esi + 0x4d8]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x45ec8c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x578704]
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 0x45ed46
movzx eax, word [esi]
test ax, ax
je 0x45ed46
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x45ecce
cmp dx, 0x5c
jne 0x45ecd0
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x45ecc2
cmp edi, esi
je 0x45ed19
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.005106fa
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x45ed54
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0045ec8c
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0051076e
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0051073d
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.004e1d28
leave
ret
call fcn.004e2455
int3

Function at 0x45f318
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x45f394
cmp dword [edi + 4], 0xffffffff
jne 0x45f394
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push 0x537784
push esi
call fcn.0051073d
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x45f366
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
je 0x45f366
mov eax, 0x2000000
jmp 0x45f399
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00461857
add esp, 0x10
test eax, eax
jne 0x45f384
mov eax, dword [ebp - 4]
jmp 0x45f399
push eax
call fcn.00461f79
mov dword [edi], eax
mov eax, dword [0x57da60]
pop ecx
jmp 0x45f399
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x461964
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x461997
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x461992
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4619c1
mov edx, dword [edi + 0x18]
push esi
mov esi, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ecx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004faeb0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x461b5d
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x461c1c
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 + 0x537050]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x537050]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x537050]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x537050]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x537050]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x537050]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x537050]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x537050]
sub edi, 1
jne 0x461b75
pop edi
test esi, esi
je 0x461c38
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x537050]
inc edx
sub esi, 1
jne 0x461c20
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x470a92
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x578704]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x470aff
cmp dword [esi + 0x10], 0
je 0x470aff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004e29e0
mov ebx, esp
test ebx, ebx
je 0x470aff
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.0044dfb7
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0044a6a5
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1d28
leave
ret 0x10
Function at 0x471806
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x52d968
call fcn.004e27d2
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.004488b2
push eax
lea ecx, [ebp - 0x94]
call fcn.0044ddda
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004488b8
mov ecx, eax
call fcn.0044e5c9
test al, al
je 0x4718f4
push ebx
lea ecx, [ebp - 0x94]
call fcn.0044e040
push edi
push 0x80
push 3
push edi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.0044e46d
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x471897
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044df15
jmp 0x4719d5
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
test esi, esi
je 0x471883
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004e2329
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 0x4719c0
push edi
call fcn.004e20ec
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044df15
jmp 0x4719d3
call fcn.004488b8
push eax
lea ecx, [ebp - 0x94]
call fcn.0044e023
call fcn.00448984
test al, al
je 0x471915
call fcn.004488be
jmp 0x47192c
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0044e46d
push eax
call fcn.0045f39e
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x471883
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.0045edde
add esp, 0x14
test eax, eax
jne 0x471883
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x471883
push esi
call fcn.004e2329
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.0045f775
add esp, 0x18
test eax, eax
je 0x4719b0
cmp eax, 0x600
je 0x4719b0
push edi
call fcn.004e20ec
pop ecx
call fcn.00448984
test al, al
jne 0x4718e0
push ebx
call fcn.0045ec3a
jmp 0x4718df
call fcn.00448984
test al, al
jne 0x4719c0
push ebx
call fcn.0045ec3a
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044df15
test edi, edi
jne 0x471a47
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 0x471a43
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
test esi, esi
je 0x471a43
push esi
mov dword [ebp - 0x2d0], edi
call fcn.004e2329
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 0x471a3f
push edi
call fcn.004e20ec
pop ecx
xor edi, edi
test edi, edi
jne 0x471a47
xor eax, eax
jmp 0x471a62
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00471a6a
push 1
push edi
mov esi, eax
call fcn.004e20bb
pop ecx
pop ecx
mov eax, esi
call fcn.004e277c
ret 4
Function at 0x472e3f
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x578704]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
cmp esi, 0x4e
jne 0x472e67
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, 8
jne 0x472f24
push ebx
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x472edd
push 0x20
pop edi
push edi
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.004fb430
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push ebx
push 0x100e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x18], 0x1010003
je 0x472ed5
cmp dword [ebp - 0x18], 0x2010003
jne 0x472f20
xor eax, eax
inc eax
jmp 0x472f9e
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jl 0x472f0b
cmp eax, dword [ebp - 0xc]
jg 0x472f0b
cmp eax, dword [ebp - 0x10]
jl 0x472f0b
cmp eax, dword [ebp - 8]
jle 0x472f20
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
call fcn.004730dc
mov ebx, eax
mov eax, ebx
jmp 0x472f9e
mov eax, dword [ebp + 0xc]
mov ecx, 0x101
cmp esi, ecx
jne 0x472f92
cmp eax, 0x2e
je 0x472f5e
cmp eax, 8
je 0x472f5e
cmp eax, 0x1b
jne 0x472f92
push dword [ebp + 0x10]
push eax
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [ecx + 0x594], 3
jmp 0x472f83
push dword [ebp + 0x10]
push eax
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [ecx + 0x594], 2
mov ecx, dword [edi + 0x10]
call fcn.00473144
push ebx
push ebx
push 0x10
mov ecx, edi
call fcn.0044ef25
mov eax, esi
jmp 0x472f9e
push dword [ebp + 0x10]
mov ecx, edi
push eax
push esi
call fcn.0044edf7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1d28
leave
ret 0xc
Function at 0x47a1d7
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 0x47a205
cmp eax, edi
jge 0x47a1f9
push esi
call fcn.0047847e
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 0x47a22b
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 0x47a20e
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x47a245
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x47a236
xor dl, dl
jmp 0x47a23b
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x47a22d
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 0x47a27a
push str.zlib_corrupt
call fcn.0047833b
add esp, 4
jmp 0x47a2b7
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x47a28a
push str.read_past_buffer
jmp 0x47a270
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x47a2a1
push edi
push esi
call fcn.0047834a
pop ecx
pop ecx
test eax, eax
je 0x47a2b7
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004faeb0
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 0x486d20
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x486d73
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.00496c20
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x486d36
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x48c8e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, dword [ebx]
mov edx, dword [ebx + 8]
mov dword [ebp - 4], edx
cmp ecx, 0x57839c
jne 0x48c90d
mov edx, dword [ebx + 0xc]
add edx, 0x180
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
jmp 0x48c918
mov eax, dword [ebx + 0xc]
add eax, 0x140
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 0xc]
cmp ecx, 0x57839c
mov esi, 0x434
mov eax, 0x3cc
cmove eax, esi
mov cl, 1
mov esi, dword [ebp + 0x10]
mov byte [ebp + 0xb], cl
mov dword [esi], 0
add eax, edi
je 0x48ca98
cmp byte [eax + 0x3c], 0
je 0x48ca98
cmp dword [edi + 0x8d8], 0
je 0x48ca98
mov eax, dword [edi + 0x78]
test eax, eax
je 0x48c96d
test byte [eax + 4], 0x10
je 0x48c96d
add eax, 0x78
jmp 0x48c973
lea eax, [edi + 0x8dc]
cmp dword [edi + 0x4a4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
jbe 0x48ca66
mov dword [ebp - 8], 0
xor eax, eax
mov esi, dword [edi + 0x8d8]
add esi, eax
cmp dword [esi + 0xc], 0
je 0x48ca4a
push dword [esi]
push dword [edx + 8]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x48ca44
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x1c9]
test al, al
jne 0x48c9d1
cmp dword [esi + 4], 0
je 0x48c9e8
test al, al
je 0x48ca44
mov eax, dword [esi + 4]
test eax, eax
je 0x48ca44
push eax
push dword [ecx + 0x64]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x48ca44
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x1ca]
test al, al
jne 0x48c9ff
cmp dword [esi + 0x1c], 0xffffffff
je 0x48ca0f
test al, al
je 0x48ca44
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
je 0x48ca44
cmp dword [ecx + 0x440], eax
jne 0x48ca44
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
cmp eax, dword [esi + 0x18]
jne 0x48ca47
mov eax, dword [ecx + 0x1e0]
push dword [esi + 8]
push dword [eax]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x48ca44
lea eax, [esi + 0x20]
push eax
push dword [ebp - 0xc]
call fcn.0048c5c0
add esp, 8
test al, al
jne 0x48ca6f
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
add eax, 0x60
inc esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
cmp esi, dword [edi + 0x4a4]
jb 0x48c993
mov cl, byte [ebp + 0xb]
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x48ca8d
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop edi
xor cl, cl
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6cf], 0
je 0x4931e7
cmp dword [esi + 0x1a4], 0
je 0x4931b1
push esi
call fcn.00481d60
push 1
push esi
mov byte [ebp + 8], al
call fcn.00481fb0
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.00481fb0
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4931e7
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x53d3b8
push 2
push eax
call fcn.005032e0
push dword [esi + 0x150]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005032e0
add esp, 0x20
pop esi
pop ebp
ret

Function at 0x494cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005164e3

Function at 0x494f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x494f60
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x53d5c0
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x53d5d0
push esi
mov dword [ebp - 8], ebx
call fcn.0051150a
add esp, 8
test eax, eax
je 0x494fac
test ebx, ebx
je 0x494f9c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x494fd5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x494fd5
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x495097
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494ff1
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x578348]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x49508d
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x49508d
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495030
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495050
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x495064
mov eax, dword [ebp - 8]
test eax, eax
je 0x495084
push 8
push 0
push ebx
call eax
jmp 0x49508b
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x57834c]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret