joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
push edi
je 0x4b2b50
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push 2
push ebp
push ebx
push ecx
push esi
push 0
push eax
call fcn.004c0cd0
mov edi, dword [esp + 0x78]
add esp, 0x24
jmp 0x4b2b71
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov edi, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4b2ba8
lea edx, [esp + 0x30]
lea ecx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x64]
push ecx
push 2
push ebp
push ebx
push edx
push esi
push 0x10000
push eax
call fcn.004c0cd0
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
add esp, 0x24
jmp 0x4b2bc1
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
imul eax, edi
mov ecx, dword [esp + 0x70]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x60], eax
mov dword [ecx], eax
jle 0x4b2c5e
mov edx, dword [esp + 0x74]
lea ecx, [edx + 0x1c]
jmp 0x4b2be5
mov edi, dword [esp + 0x54]
mov eax, ebx
cdq
idiv edi
mov eax, ebx
mov esi, edx
cdq
idiv edi
shl esi, 4
mov edx, esi
mov esi, dword [esp + edx + 0x10]
mov dword [ecx - 0x1c], esi
shl eax, 4
mov ebp, dword [esp + eax + 0x34]
mov edi, dword [esp + eax + 0x30]
mov dword [ecx - 0x10], ebp
mov ebp, dword [esp + edx + 0x18]
mov dword [ecx - 0x18], edi
mov edi, dword [esp + edx + 0x14]
mov edx, dword [esp + edx + 0x1c]
mov dword [ecx - 0xc], ebp
mov ebp, dword [esp + eax + 0x38]
mov eax, dword [esp + eax + 0x3c]
mov dword [ecx - 0x14], edi
mov dword [ecx - 8], ebp
mov dword [ecx - 4], edx
mov dword [ecx], eax
mov edx, dword [ecx - 0x18]
cmp esi, edi
jne 0x4b2c41
mov eax, dword [ecx - 8]
mov dword [ecx - 0x10], edx
mov dword [ecx], eax
jmp 0x4b2c52
cmp edx, dword [ecx - 0x10]
jne 0x4b2c52
mov eax, dword [ecx - 0x1c]
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0x14], eax
mov dword [ecx - 4], edx
mov eax, dword [esp + 0x60]
inc ebx
add ecx, 0x20
cmp ebx, eax
jl 0x4b2be1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x12928c4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x12bb03c], 0x8088405
inc edx
mov dword [0x12bb03c], edx
mul edx
mov eax, edx
ret

Function at 0x129ba98
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffefc
mov ebp, edx
mov dword [esp], eax
xor ebx, ebx
mov esi, dword [esp]
lea edi, [esp + 4]
mov byte [esi], bl
mov eax, ebx
cdq
idiv ecx
add edx, ebp
mov al, byte [edx]
mov byte [edi], al
inc ebx
inc edi
inc esi
cmp ebx, 0x100
jne 0x129bab0
xor esi, esi
mov ebx, pe_nt_image_headers32
mov eax, dword [esp]
lea edi, [esp + 4]
mov dl, byte [eax]
xor ecx, ecx
mov cl, dl
add esi, ecx
xor ecx, ecx
mov cl, byte [edi]
add esi, ecx
and esi, 0xff
mov ecx, dword [esp]
mov cl, byte [ecx + esi]
mov byte [eax], cl
mov ecx, dword [esp]
mov byte [ecx + esi], dl
inc edi
inc eax
dec ebx
jne 0x129bad6
mov edx, dword [esp]
mov eax, dword [esp]
add eax, 0x100
mov ecx, pe_nt_image_headers32
call fcn.01295f78
add esp, 0x104
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x129bb30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ecx, ecx
xor edx, edx
mov ebx, dword [ebp + 8]
dec ebx
test ebx, ebx
jl 0x129bbc1
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
inc ecx
and cl, 0xff
xor ebx, ebx
mov bl, cl
add dl, byte [eax + ebx]
and dl, 0xff
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov byte [ebp - 9], bl
mov esi, edx
and esi, 0xff
xor ebx, ebx
mov bl, cl
lea edi, [eax + ebx]
mov bl, byte [eax + esi]
mov byte [edi], bl
mov bl, byte [ebp - 9]
mov byte [eax + esi], bl
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov esi, edx
and esi, 0xff
add bl, byte [eax + esi]
and bl, 0xff
mov byte [ebp - 9], bl
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov bl, byte [ebx + esi]
movzx esi, byte [ebp - 9]
xor bl, byte [eax + esi]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov byte [esi + edi], bl
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x129bb56
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x12a0050
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x58], eax
xor edi, edi
mov dword [ebp - 0x10], 0x67452301
mov dword [ebp - 0xc], 0xefcdab89
mov dword [ebp - 8], 0x98badcfe
mov dword [ebp - 4], 0x10325476
mov eax, ebx
shl eax, 3
mov edx, eax
add edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x54]
jae 0x12a0099
inc dword [ebp - 0x58]
add dword [ebp - 0x54], eax
mov eax, ebx
shr eax, 0x1d
add dword [ebp - 0x58], eax
mov esi, dword [ebp + 0xc]
cmp ebx, 0x40
jb 0x12a00c1
mov edx, esi
lea eax, [ebp - 0x10]
call fcn.012a0160
add esi, 0x40
sub ebx, 0x40
cmp ebx, 0x40
jae 0x12a00ac
test ebx, ebx
jbe 0x12a00d6
mov edi, ebx
lea eax, [ebp - 0xa8]
mov ecx, edi
mov edx, esi
call fcn.01295f78
push edi
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x68]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
lea edx, [ebp - 0xa8]
lea eax, [ebp - 0x50]
mov ecx, edi
call fcn.01295f78
mov byte [ebp + edi - 0x50], 0x80
lea eax, [edi + 1]
cmp eax, 0x38
jbe 0x12a011f
mov edx, 0x40
sub edx, eax
lea eax, [ebp + eax - 0x50]
call fcn.01295f8c
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x68]
call fcn.012a0160
xor eax, eax
mov edx, 0x38
sub edx, eax
lea eax, [ebp + eax - 0x50]
call fcn.01295f8c
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x68]
call fcn.012a0160
mov eax, dword [ebp + 8]
mov edi, eax
lea esi, [ebp - 0x68]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x12a7af4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
test dx, dx
jbe 0x12a7b22
mov eax, ecx
mov edi, esi
xor al, byte [edi]
mov ebx, ecx
shr ebx, 8
xor al, bl
mov ebx, ecx
shr ebx, 0x10
xor al, bl
mov ebx, ecx
shr ebx, 0x18
xor al, bl
mov byte [edi], al
inc esi
dec edx
test dx, dx
ja 0x12a7afe
pop edi
pop esi
pop ebx
ret

Function at 0x12afea0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ecx
push edx
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov ecx, dword [eax]
cmp ecx, eax
je 0x12afece
mov edx, ecx
mov ecx, dword [ecx]
cmp dword [edx + 8], 0
je 0x12afece
push dword [edx + 0x18]
call fcn.012afd24
jmp 0x12afeb6
pop edi
pop esi
pop edx
pop ecx
ret
Function at 0x12c8651
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x12c866e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x12c865f
add dl, dl
jne 0x12c8679
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x12c86c5
xor eax, eax
add dl, dl
jne 0x12c8686
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x12c8762
add dl, dl
jne 0x12c8695
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12c86a0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12c86ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12c86b6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x12c86c0
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x12c8665
mov eax, 1
add dl, dl
jne 0x12c86d3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12c86de
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12c86ca
sub eax, 2
jne 0x12c870d
mov ecx, 1
add dl, dl
jne 0x12c86f3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x12c86fe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12c86ea
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x12c8665
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x12c8724
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x12c872f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12c871b
cmp eax, 0x7d00
jae 0x12c8752
cmp eax, 0x500
jb 0x12c874d
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x12c8665
cmp eax, 0x7f
ja 0x12c8755
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x12c8665
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x12c877e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x12c8665
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429004]
jne 0x401010
repz ret
jmp fcn.00401649

Function at 0x405ef6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d6f
and dword [ebp - 4], 0
cmp dword [0x42bc5c], 0
mov ebx, eax
jne 0x405fa7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406058
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406058
push eax
call fcn.00404cfd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42bc5c], eax
call esi
push eax
call fcn.00404cfd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42bc60], eax
call esi
push eax
call fcn.00404cfd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42bc64], eax
call esi
push eax
call fcn.00404cfd
pop ecx
mov dword [0x42bc6c], eax
test eax, eax
je 0x405fa7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404cfd
pop ecx
mov dword [0x42bc68], eax
mov eax, dword [0x42bc68]
cmp eax, ebx
je 0x405fff
cmp dword [0x42bc6c], ebx
je 0x405fff
push eax
call fcn.00404d78
push dword [0x42bc6c]
mov esi, eax
call fcn.00404d78
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405fff
test edi, edi
je 0x405fff
call esi
test eax, eax
je 0x405ff6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405ff6
test byte [ebp - 0xc], 1
jne 0x405fff
or dword [ebp + 0x10], 0x200000
jmp 0x406038
mov eax, dword [0x42bc60]
cmp eax, ebx
je 0x406038
push eax
call fcn.00404d78
pop ecx
test eax, eax
je 0x406038
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406038
mov eax, dword [0x42bc64]
cmp eax, ebx
je 0x406038
push eax
call fcn.00404d78
pop ecx
test eax, eax
je 0x406038
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bc5c]
call fcn.00404d78
pop ecx
test eax, eax
je 0x406058
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40605a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409b80
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x23433ac], 0x930
jne 0x409baa
push str.sobugo
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x23433ac], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x23431f0], eax
jne 0x409bdd
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
call sub.KERNEL32.dll_VerLanguageNameW
lea edx, [ebp - 0x820]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
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 0x409b70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x409b92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409b99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409b88
mov eax, 1
add ebx, ebx
jne 0x409bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409ba0
jne 0x409bbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409ba0
xor ecx, ecx
sub eax, 3
jb 0x409bd0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409c42
mov ebp, eax
add ebx, ebx
jne 0x409bdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409be8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409c0c
inc ecx
add ebx, ebx
jne 0x409bf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409bed
jne 0x409c09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409bed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409c2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409c1d
jmp 0x409b8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409c2c
add edi, ecx
jmp 0x409b8e
pop esi
mov edi, esi
mov ecx, 0x28
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409c4a
cmp byte [edi], 0
jne 0x409c4a
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 0x409c4f
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x409cbe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbae0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbb98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409c7c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbba0]
or eax, eax
je 0x409cb8
mov dword [ebx], eax
add ebx, 4
jmp 0x409c99
call dword [esi + 0xbb9c]
mov ebp, dword [esi + 0xbba4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x409cf2
sub esp, 0xffffff80
jmp 0x401c30
Function at 0x5c2a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x134000]
push edi
or ebp, 0xffffffff
jmp 0x5c2a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5c2a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c2a38
mov eax, 1
add ebx, ebx
jne 0x5c2a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5c2a6c
jne 0x5c2a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c2a8b
dec eax
add ebx, ebx
jne 0x5c2a78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5c2a50
add ebx, ebx
jne 0x5c2a87
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5c2add
xor ecx, ecx
sub eax, 3
jb 0x5c2aa3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5c2b12
sar eax, 1
mov ebp, eax
jmp 0x5c2aae
add ebx, ebx
jne 0x5c2aae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c2a7c
inc ecx
add ebx, ebx
jne 0x5c2abc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c2a7c
add ebx, ebx
jne 0x5c2ac9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5c2abe
jne 0x5c2ada
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5c2abe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5c2afc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5c2aee
jmp 0x5c2a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5c2afc
add edi, ecx
jmp 0x5c2a3e
pop esi
mov edi, esi
mov ecx, 0x37e4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5c2b1a
cmp byte [edi], 0x13
jne 0x5c2b1a
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 0x5c2b1f
lea edi, [esi + 0x1bf000]
mov eax, dword [edi]
or eax, eax
je 0x5c2b97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1cad58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1cae1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5c2b4c
mov ecx, edi
jns 0x5c2b7b
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 + 0x1cae24]
or eax, eax
je 0x5c2b91
mov dword [ebx], eax
add ebx, 4
jmp 0x5c2b69
call dword [esi + 0x1cae20]
mov ebp, dword [esi + 0x1cae28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x5c2bcb
sub esp, 0xffffff80
jmp 0x46f1ee

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 0x2ef3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02ef378f
jae 0x2ef370e
xor ecx, ecx
call fcn.02ef378f
jae 0x2ef373d
xor eax, eax
call fcn.02ef378f
jae 0x2ef374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02ef378f
adc al, al
jae 0x2ef372f
jne 0x2ef3779
stosb byte es:[edi], al
jmp 0x2ef3711
call fcn.02ef379b
sub ecx, ebx
jne 0x2ef3756
call fcn.02ef3799
jmp 0x2ef3775
lodsb al, byte [esi]
shr eax, 1
je 0x2ef3783
adc ecx, ecx
jmp 0x2ef3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02ef3799
cmp eax, 0x7d00
jae 0x2ef3772
cmp ah, 5
jae 0x2ef3773
cmp eax, 0x7f
ja 0x2ef3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2ef3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x2f13700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02f1378f
jae 0x2f1370e
xor ecx, ecx
call fcn.02f1378f
jae 0x2f1373d
xor eax, eax
call fcn.02f1378f
jae 0x2f1374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02f1378f
adc al, al
jae 0x2f1372f
jne 0x2f13779
stosb byte es:[edi], al
jmp 0x2f13711
call fcn.02f1379b
sub ecx, ebx
jne 0x2f13756
call fcn.02f13799
jmp 0x2f13775
lodsb al, byte [esi]
shr eax, 1
je 0x2f13783
adc ecx, ecx
jmp 0x2f13772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02f13799
cmp eax, 0x7d00
jae 0x2f13772
cmp ah, 5
jae 0x2f13773
cmp eax, 0x7f
ja 0x2f13774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2f13711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x3f6f2f48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, ecx
shl eax, 2
cmp ecx, 4
jl 0x3f6f2f90
add eax, ebx
mov ecx, dword [edi + 0x954]
mov esi, eax
shl esi, 2
cmp dword [esi + ecx], 0
je 0x3f6f2f96
mov eax, dword [edi + 0x954]
pop edi
mov eax, dword [esi + eax]
pop esi
pop ebx
ret 0xc
mov eax, dword [edi + 0x954]
pop edi
mov eax, dword [esi + eax]
pop esi
pop ebx
ret 0xc
add eax, dword [esp + 0x18]
jmp 0x3f6f2f61
add eax, 0x3e8
push 0xa
movzx eax, ax
push eax
push dword [0x3f7ea024]
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x3f7d3043
push eax
push dword [0x3f7ea024]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov ecx, dword [edi + 0x954]
mov dword [esi + ecx], eax
jmp 0x3f6f2f81
test ebx, ebx
jl 0x3f6f2f81
cmp ebx, 2
jle 0x3f7d306b
cmp ebx, 3
jne 0x3f6f2f81
mov eax, dword [edi + 0x954]
mov dword [esi + eax], 0x3f7b5a80
jmp 0x3f6f2f81
mov eax, dword [edi + 0x954]
mov dword [esi + eax], 0x3f7b5a7c
jmp 0x3f6f2f81

Function at 0x3f70d0e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x3f70d0f5
pop dword [ebp - 0x14]
mov eax, 0x9ff6517b
add eax, 0x9f7a7f7a
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x4b625
push 0
mov eax, 0xb1c73bb1
sub eax, 0x725a2b11
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xd1895843
sub ecx, 0xd189133c
xor edi, edi
add edi, eax
mov edx, 0x3f830000
add edx, dword [ebp - 0x14]
mov esi, 0xeee03e25
add esi, 0xa312ea64
add dword [ebp - 4], 0xed73083
mov ebx, dword [edx]
add dword [ebp - 0xc], edx
add ebx, esi
xor dword [ebp - 8], 0x72d9020
mov dword [edi], ebx
sub dword [ebp - 4], 0x147f4260
add edi, 0x306fe759
add edi, 0xcf9018ab
add edx, 0x3bedd144
add edx, 0xc4122ec0
loop 0x3f70d150
add eax, 0xe9472c9c
sub eax, 0xe94625ad
xor ebx, ebx
add ebx, eax
add eax, 0xb0c68a71
add eax, 0x4f397594
mov ecx, 0xaa300303
add ecx, 0x953cfcfd
add ecx, dword [ebp - 0x14]
call ebx
leave
ret