joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cb44
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417fd4]
call fcn.00404e68
xor eax, eax
push ebp
push 0x46cc88
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x63207c], 0
jne 0x46cb97
mov ecx, dword [0x651b1c]
mov dl, 1
mov eax, dword [0x407d04]
call fcn.0040d008
call fcn.00403c28
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e3c
mov eax, ebx
call fcn.00404b2c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46cc98
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040614c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404b3c
test eax, eax
jle 0x46cc2f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46cc28
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404534
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040451c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408c88
test eax, eax
jne 0x46cc28
mov ebx, 0x15
jmp 0x46cc34
mov ebx, 0x10
jmp 0x46cc34
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x63207c]
call fcn.0046ca40
mov eax, dword [ebp - 8]
call fcn.0046ca40
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cc8f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004042d0
lea eax, [ebp - 0x10]
mov edx, dword [0x417fd4]
call fcn.00404f38
ret

Function at 0x46db68
Capabilities:
Check os version
Get common file path
Get program files directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdd4
mov esi, eax
mov bl, 1
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x94
call fcn.00402e3c
mov dword [esp + 4], 0x94
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x46dbb0
mov eax, dword [esp + 0x14]
dec eax
je 0x46dbae
dec eax
jne 0x46dbb0
cmp dword [esp + 8], 6
setae bl
jmp 0x46dbb0
xor ebx, ebx
sub bl, 1
jb 0x46dbc0
jne 0x46dc34
mov eax, esi
call fcn.0046da70
jmp 0x46dc34
push esp
push 0x26
mov eax, dword [0x651e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00418348
sub al, 1
jb 0x46dc0c
jne 0x46dc18
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x46dc02
mov edx, esi
lea eax, [esp + 0x98]
call fcn.00409b44
mov eax, dword [esp]
call fcn.004076f0
jmp 0x46dc18
mov eax, esi
mov edx, 0x46dc48
call fcn.00404300
mov eax, dword [esi]
call fcn.0040456c
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x5c
je 0x46dc34
mov eax, esi
mov edx, 0x46dc64
call fcn.00404574
add esp, 0x22c
pop esi
pop ebx
ret
Function at 0x46dec4
Capabilities:
Check os version
Get common file path
Get program files directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdd4
mov esi, eax
mov bl, 1
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x94
call fcn.00402e3c
mov dword [esp + 4], 0x94
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x46df0c
mov eax, dword [esp + 0x14]
dec eax
je 0x46df0a
dec eax
jne 0x46df0c
cmp dword [esp + 8], 6
setae bl
jmp 0x46df0c
xor ebx, ebx
sub bl, 1
jb 0x46df1c
jne 0x46df90
mov eax, esi
call fcn.0046ddcc
jmp 0x46df90
push esp
push 0x26
mov eax, dword [0x651e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00418348
sub al, 1
jb 0x46df68
jne 0x46df74
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x46df5e
mov edx, esi
lea eax, [esp + 0x98]
call fcn.00409b44
mov eax, dword [esp]
call fcn.004076f0
jmp 0x46df74
mov eax, esi
mov edx, 0x46dfa4
call fcn.00404300
mov eax, dword [esi]
call fcn.0040456c
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x5c
je 0x46df90
mov eax, esi
mov edx, 0x46dfc0
call fcn.00404574
add esp, 0x22c
pop esi
pop ebx
ret

Function at 0x471130
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47115e
mov eax, ebx
call fcn.00471be4
cmp dword [ebx + 0x40], 0
je 0x471157
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4711cf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4711c1
cmp dword [ebx + 8], 0
je 0x471180
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x471192
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4711c1
cmp dword [ebx + 8], 0
je 0x471173
cmp eax, 3
je 0x4711a5
dec eax
jne 0x471173
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x471173
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x471173
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4711ed
cmp dword [ebx + 0x14], 0xcc
je 0x4711ed
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004711f8
pop ebx
ret

Function at 0x483648
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x483699
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x483680
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x483670
jmp 0x483699
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x483681
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4925c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4925f7
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x492676
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00490e84
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x492644
mov cx, word [esp]
sub cx, si
jmp 0x492646
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x49262d
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x49266c
mov cx, word [esp]
sub cx, si
jmp 0x49266e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x492655
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4926d3
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0049229c
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4926be
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4926d3
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4925d2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x498b40
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x653f7c
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x498b62
shr eax, 1
xor eax, 0xedb88320
jmp 0x498b64
shr eax, 1
dec edx
jne 0x498b50
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x498b49
mov byte [0x65437c], 1
pop esi
pop ebx
ret

Function at 0x498b80
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x65437c], 0
jne 0x498b97
call fcn.00498b40
mov eax, edi
dec eax
test eax, eax
jl 0x498bc0
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x653f7c]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x498ba1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x49b620
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x49b651
dec al
je 0x49b68d
dec al
je 0x49b6d1
dec al
je 0x49b73c
jmp 0x49b7c6
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x49b7c6
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x49b661
jmp 0x49b7c6
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49b7c6
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x49b69d
jmp 0x49b7c6
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49b7c6
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x49b6ff
xor ebp, ebp
jmp 0x49b710
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x49b719
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x49b6e1
jmp 0x49b7c6
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49b7c6
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x49b794
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00498bc8
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x49b750
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a2480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a24f1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x636404]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4a24db
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004a2470
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4a227c]
call fcn.004a2518
mov dword [0x636468], eax
mov eax, dword [ebp - 4]
call fcn.004a2420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a24f8
lea eax, [ebp - 8]
call fcn.0040614c
ret

Function at 0x4a828c
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
mov bl, 0xb
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
sub eax, 1
jb 0x4a83c9
je 0x4a8378
dec eax
jne 0x4a83cb
cmp dword [esp + 4], 0xa
jne 0x4a82d7
cmp dword [esp + 8], 0
jne 0x4a82d7
mov bl, 0xd
jmp 0x4a83cb
cmp dword [esp + 4], 6
jne 0x4a82ec
cmp dword [esp + 8], 3
jne 0x4a82ec
mov bl, 0xc
jmp 0x4a83cb
cmp dword [esp + 4], 6
jne 0x4a8301
cmp dword [esp + 8], 2
jne 0x4a8301
mov bl, 0xc
jmp 0x4a83cb
cmp dword [esp + 4], 6
jne 0x4a8316
cmp dword [esp + 8], 1
jne 0x4a8316
mov bl, 0xb
jmp 0x4a83cb
cmp dword [esp + 4], 6
jne 0x4a832b
cmp dword [esp + 8], 0
jne 0x4a832b
mov bl, 9
jmp 0x4a83cb
cmp dword [esp + 4], 5
jne 0x4a8340
cmp dword [esp + 8], 2
jne 0x4a8340
mov bl, 8
jmp 0x4a83cb
cmp dword [esp + 4], 5
jne 0x4a8352
cmp dword [esp + 8], 1
jne 0x4a8352
mov bl, 7
jmp 0x4a83cb
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x4a8366
cmp dword [esp + 8], 0
jne 0x4a8366
mov bl, 6
jmp 0x4a83cb
cmp eax, 4
jne 0x4a836f
mov bl, 5
jmp 0x4a83cb
cmp eax, 4
jae 0x4a83cb
mov bl, 5
jmp 0x4a83cb
cmp dword [esp + 4], 4
jne 0x4a839a
cmp dword [esp + 8], 0
jne 0x4a839a
mov al, byte [esp + 0x15]
cmp al, 0x43
je 0x4a8392
cmp al, 0x42
jne 0x4a8396
mov bl, 2
jmp 0x4a83cb
mov bl, 2
jmp 0x4a83cb
cmp dword [esp + 4], 4
jne 0x4a83b7
cmp dword [esp + 8], 0xa
jne 0x4a83b7
cmp byte [esp + 0x15], 0x41
jne 0x4a83b3
mov bl, 3
jmp 0x4a83cb
mov bl, 3
jmp 0x4a83cb
cmp dword [esp + 4], 4
jne 0x4a83cb
cmp dword [esp + 8], 0x5a
jne 0x4a83cb
mov bl, 4
jmp 0x4a83cb
mov bl, 1
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x4a8af0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
xor eax, eax
mov dword [esp], eax
sub dl, 1
jb 0x4a8b04
je 0x4a8b15
jmp 0x4a8b7c
lea eax, [ebx + 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
push ebx
call sub.kernel32.dll_QueryPerformanceCounter_1
jmp 0x4a8b7c
lea eax, [ebx + 8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
sub eax, dword [ebx]
sbb edx, dword [ebx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
cmp dword [esp + 0xc], 0
jne 0x4a8b42
cmp dword [esp + 8], 0
setbe al
jmp 0x4a8b45
setle al
sub al, 1
jb 0x4a8b52
jne 0x4a8b7c
xor eax, eax
mov dword [esp], eax
jmp 0x4a8b7c
cmp dword [ebx + 0x14], 0
jne 0x4a8b60
cmp dword [ebx + 0x10], 0
jbe 0x4a8b77
jmp 0x4a8b62
jle 0x4a8b77
fild qword [esp + 8]
fild qword [ebx + 0x10]
fdivp st(1)
fmul dword [0x4a8b84]
fstp dword [esp]
wait
jmp 0x4a8b7c
xor eax, eax
mov dword [esp], eax
fld dword [esp]
add esp, 0x10
pop ebx
ret
Function at 0x4ab124
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, eax
or ebx, 0xffffffff
mov eax, esi
call fcn.0040456c
test eax, eax
jle 0x4ab15b
mov edx, 1
xor ecx, ecx
mov cl, byte [esi + edx - 1]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6364f8]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4ab13b
xor ebx, 0xffffffff
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4afa84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4afab3
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4afb32
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004ad49c
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4afb00
mov cx, word [esp]
sub cx, si
jmp 0x4afb02
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4afae9
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4afb28
mov cx, word [esp]
sub cx, si
jmp 0x4afb2a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4afb11
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4afc13
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004af7f8
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4afb7e
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x74]
cmp eax, 0x106
jae 0x4afb94
mov edx, dword [ebx]
cmp dword [edx + 4], 0
jne 0x4afa8e
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x16c0]
cmp ecx, edx
jbe 0x4afc13
mov esi, dword [ebx + 0x6c]
add esi, eax
cmp esi, edx
jbe 0x4afbd6
mov edi, ecx
sub edi, esi
cmp edi, 0x102
jbe 0x4afbbb
mov edi, 0x102
push edi
push 0
mov eax, dword [ebx + 0x38]
add eax, esi
push eax
call fcn.004ad4b4
add esp, 0xc
add edi, esi
mov dword [ebx + 0x16c0], edi
jmp 0x4afc13
lea edx, [esi + 0x102]
mov eax, dword [ebx + 0x16c0]
cmp edx, eax
jbe 0x4afc13
mov edi, edx
mov edx, dword [ebx + 0x3c]
sub edx, eax
sub edi, eax
cmp edi, edx
jbe 0x4afbfc
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x16c0]
push edi
push 0
mov edx, dword [ebx + 0x38]
add edx, eax
push edx
call fcn.004ad4b4
add esp, 0xc
add dword [ebx + 0x16c0], edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c6f10
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00402e3c
ret

Function at 0x4d3df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b2c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4d3e09
test al, 0x10
jne 0x4d3e0d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4d6dbc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x4d6dd7
add esp, 0xfffffff0
call fcn.004037c0
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d6efd
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004d4f24
push 0
mov eax, dword [ebp - 4]
add eax, 0x30
mov ecx, 1
mov edx, dword [0x4d4b74]
call fcn.00405974
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040456c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
call fcn.00404344
lea eax, [ebp - 0x14]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004047cc
mov eax, dword [ebp - 0x14]
mov edx, 0x4d6f2c
call fcn.004046b8
jne 0x4d6e77
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.0040480c
mov eax, dword [ebp - 0xc]
call fcn.0040456c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
call fcn.0040456c
mov edx, eax
test edx, edx
jle 0x4d6ea6
mov eax, 1
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + eax - 1], 0x7d
jne 0x4d6ea2
mov dword [ebp - 8], eax
inc eax
dec edx
jne 0x4d6e95
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004047cc
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0xc]
call fcn.0040456c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
xor eax, eax
mov dword [ebp - 0x10], eax
push ebp
lea eax, [ebp - 0x10]
call fcn.004d62c8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6f04
lea eax, [ebp - 0x14]
call fcn.004042ac
lea eax, [ebp - 0xc]
call fcn.004042ac
ret
Function at 0x4de49c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4de4ca
mov eax, ebx
call fcn.004def50
cmp dword [ebx + 0x40], 0
je 0x4de4c3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4de53b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4de52d
cmp dword [ebx + 8], 0
je 0x4de4ec
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4de4fe
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4de52d
cmp dword [ebx + 8], 0
je 0x4de4df
cmp eax, 3
je 0x4de511
dec eax
jne 0x4de4df
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4de4df
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4de4df
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4de559
cmp dword [ebx + 0x14], 0xcc
je 0x4de559
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004de564
pop ebx
ret
Function at 0x5122e8
Capabilities:
Decompress data using quicklz

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
xor edi, edi
xor ebx, ebx
jmp 0x51242c
mov edx, 4
mov eax, esi
call fcn.005133c0
movsx eax, word [eax*2 + 0x642fc0]
mov ebp, eax
shr ebp, 1
and ebp, 0xf
mov edx, eax
shr edx, 5
and edx, 0x7ff
cmp edx, 0x64
jne 0x5123d8
mov edx, 9
mov eax, esi
call fcn.005134e8
movsx eax, word [eax*2 + 0x642fe8]
mov edx, eax
and edx, 1
mov dword [esp], edx
mov ebp, eax
shr ebp, 1
and ebp, 0xf
mov edx, eax
shr edx, 5
and edx, 0x7ff
cmp ebp, 0xc
jne 0x5123a1
mov edx, 5
mov eax, esi
call fcn.005139bc
mov edx, 4
mov eax, esi
call fcn.005133c0
movsx eax, word [eax*2 + 0x642fa0]
mov ebp, eax
shr ebp, 1
and ebp, 7
mov edx, eax
shr edx, 4
and edx, 0xfff
add edi, edx
mov edx, 4
sub edx, ebp
mov eax, esi
call fcn.005139bc
jmp 0x51242c
cmp ebp, 0xf
jne 0x5123be
mov ecx, 0x512444
mov dl, 1
mov eax, dword [0x418a6c]
call fcn.0040cf4c
call fcn.00403c28
jmp 0x51242c
add edi, edx
mov edx, 9
sub edx, ebp
mov eax, esi
call fcn.005139bc
cmp dword [esp], 0
jne 0x51242c
mov bl, 1
jmp 0x51242c
cmp edx, 0xc8
jne 0x51241a
mov edx, 2
mov eax, esi
call fcn.005133c0
movsx eax, word [eax*2 + 0x642fe0]
mov edx, eax
shr edx, 5
and edx, 0x7ff
add edi, edx
mov ebp, eax
shr ebp, 1
and ebp, 0xf
mov edx, 2
sub edx, ebp
mov eax, esi
call fcn.005139bc
mov bl, 1
jmp 0x51242c
add edi, edx
mov edx, 4
sub edx, ebp
mov eax, esi
call fcn.005139bc
mov bl, 1
test bl, bl
je 0x5122f8
mov eax, edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret