joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b530
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x40d100
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
mov eax, 0x2970
call fcn.00413280
mov eax, dword [0x4b1598]
xor eax, esp
mov dword [esp + 0x296c], eax
mov eax, dword [str.report.log]
mov ecx, dword [0x4883bc]
mov dx, word [0x4883c0]
push ebp
push esi
push 0x59
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov al, byte [0x4883c2]
lea ecx, [esp + 0x1b]
push 0
push ecx
mov word [esp + 0x20], dx
mov byte [esp + 0x22], al
call fcn.00410e00
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
cmp dword [0x4c2090], 0
jne 0x40d246
push 0
lea edx, [esp + 0x74]
push 0
push edx
nop
call fcn.00401d40
lea eax, [esp + 0x18]
add esp, 0xc
mov edx, eax
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d180
push edi
lea edi, [esp + 0x74]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40d193
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x74]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411d97
add esp, 8
test eax, eax
pop edi
jne 0x40d317
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
push 0x80
push 4
push eax
push 3
push 0x40000000
lea ecx, [esp + 0x88]
push ecx
call esi
cmp eax, 0xffffffff
mov dword [0x4c2090], eax
je 0x40d246
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [0x4c2090]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xe1000
jbe 0x40d246
mov eax, dword [0x4c2090]
push eax
call ebp
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea edx, [esp + 0x88]
push edx
call esi
mov dword [0x4c2090], eax
push 0x270f
lea eax, [esp + 0x269]
push 0
push eax
mov byte [esp + 0x270], 0
call fcn.00410e00
mov edx, dword [esp + 0x2988]
lea ecx, [esp + 0x298c]
push ecx
push edx
lea eax, [esp + 0x278]
push 0x2710
push eax
call fcn.00413257
lea eax, [esp + 0x280]
add esp, 0x1c
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x40d291
mov cx, word [0x48737c]
mov dl, byte [0x48737e]
mov esi, dword [0x4c2090]
cmp esi, 0xffffffff
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x264]
jne 0x40d2e0
push eax
call fcn.004130e1
add esp, 4
pop esi
pop ebp
mov ecx, dword [esp + 0x296c]
xor ecx, esp
call fcn.004117a8
add esp, 0x2970
ret
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d2e3
push 0
lea ecx, [esp + 0xc]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x270]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x4c2090]
push eax
call ebp
mov dword [0x4c2090], 0
mov ecx, dword [esp + 0x2974]
pop esi
pop ebp
xor ecx, esp
call fcn.004117a8
add esp, 0x2970
ret
Function at 0x4117a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b1598]
jne 0x4117b2
repz ret
jmp fcn.00417d0c

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x411d3d
call fcn.00416ac6
mov dword [eax], esi
call fcn.00416ab3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004113ad
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x411d19
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411d6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416ad9
pop ecx
call fcn.00416ab3
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x411d93
test al, 1
je 0x411d93
test byte [esp + 0xc], 2
je 0x411d93
call fcn.00416ac6
mov dword [eax], 5
call fcn.00416ab3
mov dword [eax], 0xd
jmp 0x411d63
xor eax, eax
pop esi
ret
Function at 0x422712
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00417651
xor ebx, ebx
cmp dword [0x4c2f00], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4227e7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x422752
xor eax, eax
jmp 0x4228ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48b174
push edi
call esi
cmp eax, ebx
je 0x42274b
push eax
call fcn.004175ee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4c2f00], eax
call esi
push eax
call fcn.004175ee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c2f04], eax
call esi
push eax
call fcn.004175ee
mov dword [0x4c2f08], eax
lea eax, [ebp - 8]
push eax
call fcn.00417f5c
test eax, eax
pop ecx
pop ecx
je 0x4227b5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004112b1
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4227e7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004175ee
cmp eax, ebx
pop ecx
mov dword [0x4c2f10], eax
je 0x4227e7
push 0x48b11c
push edi
call esi
push eax
call fcn.004175ee
pop ecx
mov dword [0x4c2f0c], eax
mov eax, dword [0x4c2f0c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x422860
cmp dword [0x4c2f10], esi
je 0x422860
push eax
call fcn.0041765a
pop ecx
call eax
cmp eax, ebx
je 0x42282d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4c2f10]
call fcn.0041765a
pop ecx
call eax
test eax, eax
je 0x42282d
test byte [ebp - 0x18], 1
jne 0x422860
lea eax, [ebp - 0xc]
push eax
call fcn.00417f93
test eax, eax
pop ecx
je 0x422848
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004112b1
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x422857
or dword [ebp + 0x10], 0x200000
jmp 0x422891
or dword [ebp + 0x10], 0x40000
jmp 0x422891
mov eax, dword [0x4c2f04]
cmp eax, esi
je 0x422891
push eax
call fcn.0041765a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x422891
mov eax, dword [0x4c2f08]
cmp eax, esi
je 0x422891
push dword [ebp - 4]
push eax
call fcn.0041765a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4c2f00]
call fcn.0041765a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4363b0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00413280
mov eax, dword [0x4b1598]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x436415
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x436415
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00416594
add eax, 0x40
push eax
call fcn.00480204
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004117a8
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.00413257
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4364a4
call fcn.004362d0
test eax, eax
je 0x4364a4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004117a8
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004117a8
add esp, 0x108
ret

Function at 0x436810
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x436859
mov al, byte [edx]
test al, al
je 0x436859
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
add edx, 1
xor esi, ecx
test al, al
jne 0x436827
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x442800
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00413280
mov eax, dword [0x4b1598]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
push edi
mov dword [esp + 0x14], ecx
je 0x44284f
mov eax, 1
mov dword [esi], ebx
jmp 0x442851
mov ebx, dword [esi]
test ecx, ecx
je 0x442918
push ebx
call fcn.00442380
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x442880
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.004364d0
add esp, 0xc
mov ebp, dword [esp + 0xa8]
cmp edi, ebp
jge 0x4428b9
mov ecx, dword [esp + 0x10]
push ecx
lea edi, [esi + 4]
push ebx
push edi
call fcn.00441b00
mov edx, dword [esp + 0x20]
push ebp
push edx
push edi
call fcn.00441b90
lea ebp, [esi + 0x34]
push ebp
lea eax, [esi + 0x38]
push eax
push edi
call fcn.00441ba0
add esp, 0x24
jmp 0x4428f4
cmp ebp, 0x80
jbe 0x4428d5
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.004364d0
add esp, 0xc
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esi + 0x38]
push edx
call fcn.00412200
mov eax, dword [esp + 0xb4]
lea ebp, [esi + 0x34]
add esp, 0xc
mov dword [ebp], eax
mov ebp, dword [ebp]
cmp ebp, 0x80
je 0x44291c
mov ecx, 0x80
sub ecx, ebp
push ecx
lea edx, [esi + ebp + 0x38]
push 0
push edx
call fcn.00410e00
add esp, 0xc
jmp 0x44291c
test eax, eax
je 0x442995
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
add eax, 1
cmp eax, 0x80
jl 0x442920
mov ebp, dword [esp + 0x10]
push ebp
lea edi, [esi + 0x14]
push ebx
push edi
call fcn.00441b00
push ebx
call fcn.00442380
push eax
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.00441b90
add esp, 0x1c
xor eax, eax
jmp 0x442960
mov cl, byte [esi + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
add eax, 1
cmp eax, 0x80
jl 0x442960
push ebp
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.00441b00
push ebx
call fcn.00442380
push eax
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.00441b90
add esp, 0x1c
lea eax, [esi + 0x14]
push eax
add esi, 4
push esi
call fcn.00441c90
mov ecx, dword [esp + 0xa0]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004117a8
add esp, 0x8c
ret
Function at 0x47ae10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x47ae29
mov edi, ebx
mov ebx, eax
jmp 0x47ae2b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x47ae41
push eax
push esi
call fcn.004409d0
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x47ae5f
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [ebx + 4]
jl 0x47ae48
cmp eax, dword [edi + 4]
jge 0x47ae76
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x47ae64
mov edi, dword [edi + 4]
test edi, edi
mov dword [esi + 4], edi
jle 0x47aea1
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
lea esp, [esp]
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x47aea1
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x47ae90
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40a4b2
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ecx + 0x6c], 0
je 0x40a543
cmp dword [ecx + 0x74], 0
je 0x40a543
push ebx
push esi
push edi
push 8
lea eax, [ebp - 8]
push eax
call dword [0x479394]
push 1
call dword [0x479398]
mov ebx, dword [0x47939c]
rdtsc
push 0x64
call dword [0x479238]
rdtsc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call ebx
mov esi, eax
add esi, 0x1f3
call ebx
cmp esi, eax
ja 0x40a501
rdtsc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp - 0xc]
jl 0x40a4e5
mov esi, dword [ebp - 0x18]
jg 0x40a521
cmp esi, dword [ebp - 0x10]
jb 0x40a4e5
push dword [ebp - 8]
call dword [0x4793a0]
sub esi, dword [ebp - 0x10]
push 0
sbb edi, dword [ebp - 0xc]
push 0x1388
push edi
push esi
call fcn.0044fad0
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
leave
ret

Function at 0x40b625
Capabilities:
Hash data using crc32b
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
mov eax, ecx
push 8
shl eax, 0x18
mov edx, ecx
pop esi
test eax, eax
jns 0x40b63f
add eax, eax
xor eax, 0x4c11db7
jmp 0x40b641
shl eax, 1
test dl, 1
je 0x40b650
shr edx, 1
xor edx, 0xedb88320
jmp 0x40b652
shr edx, 1
dec esi
jne 0x40b632
mov dword [ecx*4 + 0x7de170], eax
mov dword [ecx*4 + 0x7df970], edx
inc ecx
cmp ecx, 0xff
jbe 0x40b628
pop esi
ret

Function at 0x40bca6
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
jle 0x40bcd4
push esi
not eax
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x7df970]
inc ecx
dec edx
jne 0x40bcba
pop edi
not eax
pop esi
ret

Function at 0x40c9b1
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
inc esi
mov dword [0x7dfe78], eax
push edi
mov edx, esi
mov eax, 0x7dfe78
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x7e0834
jl 0x40c9c6
pop edi
mov dword [0x48f090], esi
mov dword [0x7e083c], esi
pop esi
ret
Function at 0x40c9f4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x7e083c], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x7dfe78
jne 0x40ca12
push 0x1571
call fcn.0040c9b1
pop ecx
mov dword [0x48f090], 0x270
mov dword [0x7e0838], esi
mov edx, 0xe3
mov ecx, 0x7ffffffe
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x40ca31
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x40ca67
mov edx, dword [0x7dfe78]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40cb03
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x48f090]
jne 0x40cb11
call fcn.0040c9f4
mov eax, dword [0x7e0838]
mov eax, dword [eax]
add dword [0x7e0838], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x40cb57
fadd qword [0x47b608]
fmul qword [0x47b600]
pop ecx
ret

Function at 0x424287
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x48f090]
jne 0x40cace
call fcn.0040c9f4
mov eax, dword [0x7e0838]
mov ecx, dword [eax]
add dword [0x7e0838], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
push 0x20031128
push 6
push 0x47da18
call fcn.0040bca6
push eax
push 0xf
push 0x47a928
call fcn.0040bca6
push eax
push 0x16
push 0x47da00
call fcn.0040bca6
push eax
call fcn.0040c9b1
add esp, 0x28
jmp 0x40cac1
Function at 0x456d20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x456d4e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x456d55
cmp ebx, dword [eax + 4]
jae 0x456d55
xor eax, eax
jmp 0x456f45
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x456d66
xor eax, eax
inc eax
jmp 0x456f44
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x456d7c
cmp ecx, edx
jae 0x456ec1
cmp dword [eax + 4], 0
je 0x456d85
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x456d6d
cmp dword [ebp + 8], 0
je 0x456da7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x456ec1
cmp eax, esi
jae 0x456ec1
mov eax, dword [0x7e3a10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x456dcc
cmp dword [esi*4 + 0x7e3a18], edi
je 0x456ec5
inc esi
cmp esi, eax
jl 0x456dba
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x479114]
test eax, eax
je 0x456f41
cmp dword [ebp - 8], 0x1000000
jne 0x456f41
test byte [ebp - 0xc], 0xcc
je 0x456e4a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x456f41
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x456f41
cmp word [eax + 0x18], 0x10b
jne 0x456f41
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x456f41
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x456e4a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x456e4a
test byte [ecx + 0x27], 0x80
jne 0x456ec1
push 1
push 0x7e3a58
call dword [0x479118]
test eax, eax
jne 0x456d5e
mov ecx, dword [0x7e3a10]
test ecx, ecx
mov edx, ecx
jle 0x456e7e
lea eax, [ecx*4 + 0x7e3a14]
cmp dword [eax], edi
je 0x456e7e
dec edx
sub eax, 4
test edx, edx
jg 0x456e72
test edx, edx
jne 0x456eaf
push 0xf
pop ebx
cmp ecx, ebx
jg 0x456e8b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x456ea3
lea eax, [edx*4 + 0x7e3a18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x456e91
cmp ecx, 0x10
jge 0x456eaf
inc ecx
mov dword [0x7e3a10], ecx
push 0
push 0x7e3a58
call dword [0x479118]
jmp 0x456d5e
xor eax, eax
jmp 0x456f44
test esi, esi
jle 0x456d5e
mov ebx, dword [0x479118]
push 1
push 0x7e3a58
call ebx
test eax, eax
jne 0x456d5e
cmp dword [esi*4 + 0x7e3a18], edi
je 0x456f1b
mov eax, dword [0x7e3a10]
lea esi, [eax - 1]
test esi, esi
jl 0x456f09
cmp dword [esi*4 + 0x7e3a18], edi
je 0x456f05
dec esi
jns 0x456ef9
test esi, esi
jge 0x456f19
cmp eax, 0x10
jge 0x456f14
inc eax
mov dword [0x7e3a10], eax
lea esi, [eax - 1]
jmp 0x456f1b
je 0x456f33
xor ecx, ecx
test esi, esi
jl 0x456f33
lea eax, [ecx*4 + 0x7e3a18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x456f21
push 0
push 0x7e3a58
call ebx
jmp 0x456d5e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x461fa0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x462041
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, edx
push edi
jle 0x461fef
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x492340]
shl eax, 8
xor eax, ebp
inc edx
cmp edx, esi
jl 0x461fd1
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x46201c
mov edi, dword [ecx + 8]
lea esp, [esp]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x492340]
shl eax, 8
xor eax, ebp
inc edx
cmp edx, esi
jl 0x462000
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0xe890b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e89200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe890d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe890c2
add dl, dl
jne 0xe890e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe89134
xor eax, eax
add dl, dl
jne 0xe890ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe891d5
add dl, dl
jne 0xe890fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe89108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe89113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe8911e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe8912a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe890cd
mov eax, 1
add dl, dl
jne 0xe89142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe8914d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe89139
sub eax, ebx
mov ebx, 1
jne 0xe89180
mov ecx, 1
add dl, dl
jne 0xe89166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe89171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe8915d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe890cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe89197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe891a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe8918e
cmp eax, 0x7d00
jae 0xe891c5
cmp eax, 0x500
jb 0xe891c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe890cd
cmp eax, 0x7f
ja 0xe891c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe890cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe891f6
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 0xe890cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x409bc3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c118]
jne 0x409bcd
repz ret
jmp fcn.0040a1e8