joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402df7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x512d9c]
sub esi, dword [0x592da8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x597c60], eax
jle 0x402f55
push dword [0x592da4]
call fcn.00402de0
push ebx
push ebx
push dword [0x592da8]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x512d98], esi
mov dword [0x40ad0c], ebx
mov ebp, 0x412d98
mov eax, dword [0x592da0]
sub eax, dword [0x592da4]
mov edi, 0x80000
cmp eax, edi
jg 0x402e6c
mov edi, eax
push edi
mov esi, 0x512da0
push esi
call fcn.00402dae
test eax, eax
je 0x402f67
add dword [0x592da4], edi
mov dword [0x412d28], esi
mov dword [0x412d2c], edi
cmp dword [0x597c0c], ebx
je 0x402ec3
cmp dword [0x597ce0], ebx
jne 0x402ec3
mov eax, dword [0x512d98]
sub eax, dword [0x512d9c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x592da8]
mov dword [0x40ad0c], eax
call fcn.00402d0f
pop ecx
mov ecx, 0x412d10
mov dword [0x412d30], ebp
mov dword [0x412d34], 0x100000
call fcn.00406384
test eax, eax
jl 0x402f6c
mov esi, dword [0x412d30]
sub esi, ebp
je 0x402f21
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f71
cmp esi, dword [esp + 0x10]
jne 0x402f71
add dword [0x592da8], esi
cmp dword [0x412d2c], ebx
jne 0x402e92
jmp 0x402f2d
cmp dword [0x412d2c], ebx
jne 0x402f6c
cmp edi, ebx
je 0x402f6c
mov eax, dword [0x512d9c]
mov ecx, eax
sub ecx, dword [0x592da8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402e56
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402d0f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402f5f
push 0xfffffffffffffffd
pop eax
jmp 0x402f5f
push 0xfffffffffffffffe
jmp 0x402f6e
Function at 0x402f75
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402fa1
mov ecx, dword [0x597c58]
push edi
add eax, ecx
push edi
push eax
push dword [0x409018]
mov dword [0x512d9c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402df7
cmp eax, edi
jl 0x40309a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x403096
cmp dword [ebp - 4], esi
jne 0x403096
push dword [ebp + 8]
add dword [0x512d9c], esi
call fcn.00402df7
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403099
cmp dword [ebp + 0x10], edi
jne 0x403065
cmp dword [ebp + 8], edi
jle 0x403091
mov esi, 0x512da0
mov edi, 0x80000
cmp dword [ebp + 8], edi
jge 0x403015
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x403096
cmp edi, dword [ebp - 4]
jne 0x403096
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403061
cmp dword [ebp + 0x14], edi
jne 0x403061
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x512d9c], eax
cmp dword [ebp + 8], 0
jg 0x403008
jmp 0x403091
push 0xfffffffffffffffe
jmp 0x403098
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403070
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x403096
mov eax, dword [ebp - 4]
add dword [0x512d9c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403099
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405f91
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405b67
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405fb5
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4060ee
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x595648], 0x4c554e
mov edi, 0x400
mov ebp, 0x595648
je 0x405ff9
push 1
push 0
push esi
call fcn.004058d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4060f4
cmp eax, edi
jg 0x4060f4
push edi
mov esi, 0x595f88
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4060f4
cmp eax, edi
jg 0x4060f4
push esi
push ebp
push str._s_s_r_n
push 0x595a48
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x597c0c]
push dword [eax + 0x128]
push esi
call fcn.00405d3b
push 4
push 0xc0000000
push esi
call fcn.004058d5
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4060ee
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4060e7
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4060e7
cmp edi, dword [esp + 0x18]
jne 0x4060e7
push str._Rename__r_n
push esi
call fcn.00405ce5
test eax, eax
jne 0x4060fb
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405a84
add edi, 0xa
mov eax, edi
push ebx
push 0x595a48
add eax, esi
push eax
call fcn.00405891
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x597cd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x4076ac
add eax, 0xa
push eax
call fcn.00405ce5
test eax, eax
je 0x4060b2
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x406122
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x406117
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4060b4

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x59678c], 0
jne 0x406331
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40630a
mov dword [ecx*4 + 0x596788], eax
inc ecx
cmp ecx, 0x100
jl 0x406305
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40635e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x596788]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40633f
not eax
pop ebp
ret 0xc
Function at 0x1000105b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov al, byte [ecx]
and dword [ebp - 0xc], 0
push ebx
push esi
mov byte [edx], al
lea eax, [edx + 1]
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov esi, dword [ebp - 8]
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
call fcn.100011ec
test eax, eax
je 0x100011a5
lea ecx, [ebp - 0x18]
call fcn.100011ec
lea ecx, [ebp - 0x18]
test eax, eax
je 0x1000111b
call fcn.100011ec
test eax, eax
je 0x100010dd
push 4
xor edi, edi
pop ebx
lea ecx, [ebp - 0x18]
call fcn.100011ec
lea edi, [eax + edi*2]
dec ebx
jne 0x100010b2
mov edx, dword [ebp - 0x14]
test edi, edi
je 0x100010d1
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x100010d4
mov byte [edx], 0
mov ebx, dword [ebp - 4]
inc edx
jmp 0x100011b4
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [ebp - 0x18], eax
je 0x10001110
test ecx, ecx
je 0x100011a0
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x10001102
jmp 0x1000119d
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
jmp 0x100011a0
call fcn.100011cb
test edi, edi
jne 0x1000114e
cmp eax, 2
jne 0x10001149
lea ecx, [ebp - 0x18]
call fcn.100011cb
mov edx, dword [ebp - 0x14]
mov edi, eax
test edi, edi
je 0x100011a0
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x1000113e
jmp 0x1000119d
sub eax, 3
jmp 0x10001151
sub eax, 2
mov ecx, dword [ebp - 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
call fcn.100011cb
mov ecx, eax
cmp esi, 0x7d00
jb 0x10001175
inc ecx
cmp esi, 0x500
jb 0x1000117e
inc ecx
cmp esi, 0x80
jae 0x10001189
add ecx, 2
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x100011a0
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x10001194
mov dword [ebp - 0x14], edx
xor edi, edi
inc edi
jmp 0x100011b9
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [ebp - 0x18], ecx
xor edi, edi
mov dword [ebp - 0x14], edx
test ebx, ebx
je 0x10001085
sub edx, dword [ebp - 8]
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret
Function at 0x10001282
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
push esi
mov esi, ecx
xor ecx, ecx
mov edx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add edx, esi
mov dword [eax], ecx
mov eax, 0x14c
push edi
mov edi, ecx
cmp word [edx + 4], ax
jne 0x100013c9
push ebx
mov ebx, dword [edx + 0x88]
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x100013c8
cmp dword [edx + 0x8c], ecx
je 0x100013c8
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
movzx edx, word [edx + 6]
test edx, edx
je 0x100013c8
cmp dword [eax + 0xc], ebx
je 0x100012f3
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x100012e1
jmp 0x100013c8
mov edx, dword [eax + 0x14]
add edx, esi
push 0
movzx ecx, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
pop ebx
je 0x100013c8
xor eax, eax
mov esi, dword [edx + eax*8 + 0x14]
and esi, 0x7fffffff
add esi, edx
push 0
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
pop ecx
mov dword [ebp - 0xc], ecx
je 0x100013bb
xor eax, eax
cmp word [esi + eax*8 + 0x10], 0x76
jne 0x100013ab
mov ecx, dword [esi + eax*8 + 0x14]
and ecx, 0x7fffffff
add ecx, edx
mov dword [ebp - 8], 0
movzx eax, word [ecx + 0xe]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0xc]
add dword [ebp - 4], eax
je 0x100013a4
xor eax, eax
mov edx, 0x409
cmp word [ecx + eax*8 + 0x10], dx
mov edx, dword [ebp - 0x10]
je 0x10001387
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, ax
cmp eax, dword [ebp - 4]
jb 0x10001367
jmp 0x100013a4
mov ecx, dword [ecx + eax*8 + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + edx]
sub eax, dword [ebp - 0x14]
add eax, edx
mov dword [edi], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov dword [ecx], eax
inc edi
test edi, edi
jne 0x100013c8
mov ecx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x18]
jb 0x1000133a
test edi, edi
jne 0x100013c8
inc ebx
movzx eax, bx
cmp eax, dword [ebp - 0x1c]
jb 0x10001313
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x100013d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x10001404
mov al, byte [ebp + 0xc]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [ebp + 8]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x100013e7
jmp 0x10001407
mov eax, dword [ebp + 8]
test edi, edi
je 0x10001411
xor byte [esi], al
inc esi
dec edi
jne 0x1000140b
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1000213b
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc74
push ebx
push esi
push edi
lea eax, [ebp - 0x470]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x268]
push eax
xor ebx, ebx
push ebx
push 0x10006484
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ax, word [ebp - 0x268]
lea esi, [ebp - 0x268]
mov edx, ebx
test ax, ax
je 0x100021b3
movzx eax, ax
mov ecx, ebx
cmp ax, 0x5c
je 0x1000219a
cmp ax, 0x2f
jne 0x100021a2
lea esi, [ebp - 0x266]
add esi, ecx
inc edx
lea ecx, [edx + edx]
movzx eax, word [ebp + ecx - 0x268]
test ax, ax
jne 0x1000218e
mov ecx, esi
call fcn.10003390
lea eax, [ebp - 0x268]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000227e
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
inc ecx
mov esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
push edi
cmovne esi, ecx
call ebx
test esi, esi
je 0x1000227e
lea eax, [ebp - 0x268]
push eax
push str.cmd__C___s_
lea eax, [ebp - 0xc70]
push 0x400
push eax
call fcn.10003400
push 0x44
pop esi
push esi
lea eax, [ebp - 0x60]
push 0
push eax
call sub.ntdll.dll_memset
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
xor ecx, ecx
lea eax, [ebp - 0x470]
push eax
push ecx
push 0xc000000
push ecx
push ecx
push ecx
lea eax, [ebp - 0xc70]
push eax
push ecx
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000227e
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0x14]
call ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100025ed
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [0x10007284]
xor esi, esi
push esi
push esi
xor ebx, ebx
inc ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
test eax, eax
je 0x10002628
push esi
push esi
push edi
push 0x10002285
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [edi + 0xc], eax
cmovne esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100035d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push 1
mov ebx, edx
push 0x80000000
push ecx
mov dword [ebx], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003607
mov eax, 0x80004005
jmp 0x1000365e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x10003622
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003600
test eax, eax
je 0x10003619
mov ecx, eax
call fcn.10003550
mov dword [ebx], eax
test eax, eax
je 0x10003619
push edi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push dword [ecx]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10003655
mov ecx, dword [ebx]
call fcn.100035c0
mov edi, 0x80004005
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100038d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 0
cmp edi, 0x40
jbe 0x10003a7f
sub esp, 8
lea eax, [edi - 0x40]
add eax, esi
push eax
lea edx, [ebp - 4]
lea ecx, [ebp - 0x44]
call fcn.10004a60
test eax, eax
jne 0x10003a7f
mov ebx, dword [ebp - 0x24]
sub edi, 0x40
cmp ebx, edi
ja 0x10003a81
lea ebx, [ebx]
cmp byte [ebp + eax - 0x34], 0
jne 0x10003959
inc eax
cmp eax, 0x10
jb 0x10003920
push ebx
push 0
push dword [0x10007250]
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10003952
push ebx
push esi
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x100039cd
xor edi, edi
jmp 0x10003a61
and edi, 0xfffffff0
mov dword [ebp - 8], edi
test esi, esi
je 0x10003a7f
push edi
push 0
push dword [0x10007250]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x10003a7f
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xf8]
call fcn.10005190
mov eax, edi
shr eax, 4
test eax, eax
je 0x100039bd
mov edi, dword [ebp - 4]
sub edi, esi
mov ebx, eax
nop
lea eax, [edi + esi]
push eax
mov edx, esi
lea ecx, [ebp - 0xf8]
call fcn.100050e0
add esi, 0x10
dec ebx
jne 0x100039a0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
lea eax, [ebx + 0xf]
and eax, 0xfffffff0
cmp edi, eax
jne 0x10003a5c
mov edi, ebx
mov esi, dword [ebp - 4]
push ebx
mov edx, esi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xa0], 0x67452301
mov dword [ebp - 0x9c], 0xefcdab89
mov dword [ebp - 0x98], 0x98badcfe
mov dword [ebp - 0x94], 0x10325476
call fcn.100045d0
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x1c]
call fcn.10004510
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x44]
jne 0x10003a5c
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jne 0x10003a5c
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x3c]
jne 0x10003a5c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x38]
jne 0x10003a5c
mov eax, dword [ebp + 8]
mov dword [eax], esi
test ebx, ebx
je 0x10003a5e
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor edi, edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003a51
push eax
push 0
push dword [0x10007250]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005190
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
xor edi, edi
xor ecx, ecx
xor eax, eax
movzx esi, byte [ecx + edx]
shl eax, 8
inc ecx
or eax, esi
test cl, 3
jne 0x100051be
mov dword [ebp + edi*4 - 0x1d8], eax
inc edi
xor eax, eax
cmp ecx, 0x10
jb 0x100051a5
mov dword [ebp - 0xd8], 0xb7e15163
mov ecx, 1
mov eax, dword [ebp + ecx*4 - 0xdc]
sub eax, 0x61c88647
mov dword [ebp + ecx*4 - 0xd8], eax
inc ecx
cmp ecx, 0x2c
jb 0x100051d2
mov ecx, 0x2c
cmp edi, ecx
mov eax, edi
cmovb eax, ecx
xor edx, edx
lea eax, [eax + eax*2]
xor ecx, ecx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x1000525c
nop
mov eax, dword [ebp + ecx*4 - 0xd8]
add eax, esi
add ebx, eax
ror ebx, 3
mov eax, dword [ebp - 0xc]
mov dword [ebp + ecx*4 - 0xd8], ebx
lea ecx, [esi + ebx]
add esi, dword [ebp + edx*4 - 0x1d8]
inc eax
add esi, ebx
ror esi, cl
mov ecx, 0x2c
mov dword [ebp + edx*4 - 0x1d8], esi
xor edx, edx
div ecx
mov eax, dword [ebp - 8]
inc eax
mov ecx, edx
xor edx, edx
div edi
dec dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jne 0x10005210
mov edi, dword [ebp - 0x10]
mov ecx, 0x2c
lea esi, [ebp - 0xd8]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x42253a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422541
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422530
mov eax, 1
add ebx, ebx
jne 0x422553
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422548
jne 0x422564
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422548
xor ecx, ecx
sub eax, 3
jb 0x422578
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4225ea
mov ebp, eax
add ebx, ebx
jne 0x422583
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422590
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4225b4
inc ecx
add ebx, ebx
jne 0x4225a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422595
jne 0x4225b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422595
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4225d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4225c5
jmp 0x422536
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4225d4
add edi, ecx
jmp 0x422536
pop esi
mov edi, esi
mov ecx, 0x659
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4225f2
cmp byte [edi], 0xa
jne 0x4225f2
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 al, bl
loop 0x4225f7
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x422666
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2235c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x223c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422624
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x223c4]
or eax, eax
je 0x422660
mov dword [ebx], eax
add ebx, 4
jmp 0x422641
call dword [esi + 0x223d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x422697
cmp al, 0xef
ja 0x42268a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42266c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x422679
mov ebp, dword [esi + 0x223c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4226cb
sub esp, 0xffffff80
jmp 0x402dba