joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e251
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d3034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49e29c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049e713
test al, al
jne 0x49e296
sub edx, 2
cmp edx, edi
jne 0x49e27c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49e2be
lea eax, [edi + 2]
cmp edx, eax
je 0x49e2be
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049de4a
add esp, 0x10
jmp 0x49e3b8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049e713
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49e301
push dword [ebp - 0x25c]
jmp 0x49e2ae
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49e33e
cmp word [ebp - 0x226], 0
je 0x49e35f
cmp word [ebp - 0x226], ax
jne 0x49e33e
cmp word [ebp - 0x224], 0
je 0x49e35f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049de4a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49e3ab
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49e318
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49e393
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49e3b8
push 0x49d832
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056f0
add esp, 0x10
jmp 0x49e388
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403107
leave
ret

Function at 0x10013a4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x248]
mov edi, 0xfffff758
and eax, edi
or eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10013e4
mov eax, dword [esi + 0x248]
and eax, edi
or eax, dword [ebp + 8]
mov dword [esi + 0x248], eax
mov al, 1
jmp 0x10013f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
pop ebp
ret 8
Function at 0x40a310
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x40a332
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a339
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a328
mov eax, 1
add ebx, ebx
jne 0x40a34b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a340
jne 0x40a35c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a340
xor ecx, ecx
sub eax, 3
jb 0x40a370
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a3e2
mov ebp, eax
add ebx, ebx
jne 0x40a37b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a388
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a3ac
inc ecx
add ebx, ebx
jne 0x40a398
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a38d
jne 0x40a3a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a38d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a3cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a3bd
jmp 0x40a32e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a3cc
add edi, ecx
jmp 0x40a32e
pop esi
mov edi, esi
mov ecx, 0x150
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40a3ea
cmp byte [edi], 1
jne 0x40a3ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40a3ef
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a467
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa8a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa90c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a41c
mov ecx, edi
jns 0x40a44b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa910]
or eax, eax
je 0x40a461
mov dword [ebx], eax
add ebx, 4
jmp 0x40a439
call dword [esi + 0xa914]
popal
jmp 0x40332e
Function at 0x44e4c1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [0x4571d0], 0
jne 0x44e4e9
push 0x456bc0
call dword [0x452008]
mov dword [0x4571d0], 1
mov esi, dword [0x457118]
add esi, dword [0x45711c]
dec esi
movzx ebx, byte [edi]
movzx edx, byte [edi + 1]
movzx edx, dx
shl edx, 8
or ebx, edx
movzx ebx, bx
add esi, ebx
mov word [ebp - 4], si
movzx eax, word [ebp - 4]
mov edx, dword [0x457184]
sub edx, 3
cmp eax, edx
je 0x44e59b
push 0x456bc0
call dword [0x45665c]
movsx eax, word [0x4570e0]
add eax, 3
mov word [ebp - 2], ax
jmp 0x44e54f
movzx eax, word [ebp - 2]
add eax, edi
movsx edx, byte [eax]
movsx ecx, byte [edi + 2]
xor edx, ecx
mov byte [eax], dl
inc word [ebp - 2]
movzx eax, word [ebp - 2]
movzx edx, word [ebp - 4]
cmp eax, edx
jl 0x44e53a
mov eax, dword [0x457160]
add eax, dword [0x457108]
sub eax, 8
movsx edx, word [0x457150]
sub edx, 5
mov byte [edi + eax], dl
mov eax, dword [0x45714c]
add eax, dword [0x457164]
sub eax, 5
mov edx, dword [0x457178]
sub edx, 3
mov byte [edi + eax], dl
push 0x456bc0
call dword [0x45564c]
lea eax, [edi + 3]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x450236
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
pushal
mov edi, dword [ebp + 8]
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
popal
pop ebp
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x412e87
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x1c
push 0
push 0
push 0
call esi
add byte [edi + ebp], 6
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x52
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x46
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x55
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xce
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x87
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xee
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x5e
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xfa
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x1e
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x54
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x82
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xf7
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x41
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb3
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xaf
push 0
push 0
push 0
call esi
add byte [edi + ebp], 2
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x6b
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xf0
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xdf
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xf6
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe6
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x82
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x33
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xec
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x8f
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x53
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x55
inc edi
cmp edi, ebx
jb 0x412d20
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451c59
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451c6a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405902
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b112
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b123
pop esi
ret
push ebx
push edi
push esi
call fcn.0049aff9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b14b
push ebx
push esi
push edi
call fcn.004056f5
add esp, 0xc
push 0
call fcn.0040623f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402658
Capabilities:
Terminate process

Disassembly:
xor edi, edi
xor esi, esi
mov edx, eax
mov eax, 5
add eax, 5
inc eax
test eax, 0xb
jne 0x40267a
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401036], eax
ret
Function at 0x406080
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x81013b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40434c
call fcn.00406ce1
push 4
mov dword [esp + 0x18], 0
call fcn.00407ba2
mov edi, eax
add esp, 4
test edi, edi
je 0x4060f4
push ebx
call fcn.00406bb9
mov dword [edi], eax
call fcn.00406978
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406ca2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4060e8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406cca
pop ebx
jmp 0x4060f6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408611
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813dc0]
jne 0x40861b
repz ret
jmp fcn.0040dd7c
Function at 0x412984
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813dc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a98a
and dword [ebp - 0x14], 0
cmp dword [0x8163b4], 0
mov dword [ebp - 0x18], eax
jne 0x412a37
push 0x403fa0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412adf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f94
push ebx
call edi
test eax, eax
je 0x412adf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f84
push ebx
mov dword [0x8163b4], eax
call edi
push eax
call esi
push 0x403f70
push ebx
mov dword [0x8163b8], eax
call edi
push eax
call esi
push 0x403f54
push ebx
mov dword [0x8163bc], eax
call edi
push eax
call esi
mov dword [0x8163c4], eax
test eax, eax
je 0x412a37
push 0x403f3c
push ebx
call edi
push eax
call esi
mov dword [0x8163c0], eax
mov eax, dword [0x8163c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412a90
cmp dword [0x8163c4], ecx
je 0x412a90
push eax
call esi
push dword [0x8163c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412a90
test ebx, ebx
je 0x412a90
call edi
test eax, eax
je 0x412a87
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412a87
test byte [ebp - 8], 1
jne 0x412a90
or dword [ebp + 0x10], 0x200000
jmp 0x412ac3
mov eax, dword [0x8163b8]
cmp eax, dword [ebp - 0x18]
je 0x412ac3
push eax
call esi
test eax, eax
je 0x412ac3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412ac3
mov eax, dword [0x8163bc]
cmp eax, dword [ebp - 0x18]
je 0x412ac3
push eax
call esi
test eax, eax
je 0x412ac3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8163b4]
call esi
test eax, eax
je 0x412adf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412ae1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408611
leave
ret

Function at 0x80eac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0xb9a118], ax
mov word [0xb9a11c], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0xb9a118
mov dword [0xb9a124], 0x320033
mov dword [0xb9a12c], 0x6c006c
mov word [0xb9a11e], cx
mov dword [0xb9a120], 0x6c0065
mov dword [0xb9a128], 0x64002e
mov word [0xb9a11a], dx
mov word [0xb9a130], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0xb9a114]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0xb9a110], eax
mov eax, dword [0x81b164]
push edx
push eax
mov byte [0x8163db], 0x65
mov dword [0x8163d1], 0x75747269
mov word [0x8163d5], 0x6c61
mov byte [0x8163d0], 0x56
mov word [0x8163dc], 0x7463
mov byte [0x8163de], 0
mov dword [0x8163d7], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x80ebb0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9a114], 0x37
jne 0x80ec57
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
mov ecx, dword [esp]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea edx, [esp + 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0x404110
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov eax, dword [0xb9b108]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x81b164]
mov byte [eax + esi], dl
add esp, 0xc0c
ret
Function at 0x80ee50
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9a114]
sub esp, 0x9d4
push ebx
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
mov edi, dword [0x81b164]
cmp eax, esi
jbe 0x80f02e
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x80ee86
mov edi, dword [esp + 0x1c]
xor esi, esi
cmp dword [0xb9a114], 0x1c
jne 0x80eea1
lea eax, [esp + 0x40]
push eax
push esi
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, dword [0x8146f8]
mov eax, dword [0x8146fc]
mov ecx, dword [0x814700]
mov ebx, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [0x814704]
mov ebp, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], 0x20
jmp 0x80eee2
xor esi, esi
mov ecx, ebx
shl ecx, 4
add ecx, dword [esp + 0x3c]
mov eax, ebx
shr eax, 5
add eax, dword [esp + 0x38]
lea edx, [ebx + ebp]
xor ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [0xb9a084], esi
mov eax, dword [esp + 0x18]
add dword [0xb9a084], eax
mov eax, dword [0xb9a084]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
sub edi, dword [esp + 0x18]
mov ecx, edi
shl ecx, 4
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], eax
cmp dword [0xb9a114], 0x1be
jne 0x80ef61
lea edx, [esp + 0x30]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x34]
cmp dword [0xb9a114], 0x979
mov dword [0xb9a088], 0xff6b3619
mov dword [0xb9a08c], 0xffffffff
jne 0x80efb3
mov eax, dword [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
lea ecx, [esp + 0x1e4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [edi + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub ebx, eax
add ebp, 0x61c88647
dec dword [esp + 0x20]
mov dword [esp + 0x14], eax
jne 0x80eee0
cmp dword [0xb9a114], 0x8d4
jne 0x80efeb
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x1c]
mov dword [esi], ebx
mov dword [esi + 4], edi
cmp dword [0xb9a114], 0x17
jne 0x80f01d
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jne 0x80ee80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9d4
ret
Function at 0x992210
Capabilities:
Decompress data using aplib

Disassembly:
call 0x992360
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x992236
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x992222
add dl, dl
jne 0x992241
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x992294
xor eax, eax
add dl, dl
jne 0x99224e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x992335
add dl, dl
jne 0x99225d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x992268
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x992273
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x99227e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x99228a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x99222d
mov eax, 1
add dl, dl
jne 0x9922a2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9922ad
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x992299
sub eax, ebx
mov ebx, 1
jne 0x9922e0
mov ecx, 1
add dl, dl
jne 0x9922c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9922d1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9922bd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x99222d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9922f7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x992302
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9922ee
cmp eax, 0x7d00
jae 0x992325
cmp eax, 0x500
jb 0x992320
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x99222d
cmp eax, 0x7f
ja 0x992328
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x99222d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x992356
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x99222d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10