joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50a15b
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf04f70c0
jmp 0x50a25d
push ebx
mov byte [esp], ch
pushal
mov word [esp + 0x1b], bx
mov dword [esp + 0x20], eax
jmp 0x50a152
mov dword [esp + 0x1c], ecx
call fcn.0050a136
jmp 0x50a18c
pop word [esp + 5]
pop dword [esp]
jmp 0x50a1b7
push word [esp + 7]
je 0x50a176
pop word [esp + 5]
pop dword [esp]
mov byte [esp], bh
mov dword [esp + 0x40], esp
pushfd
jmp 0x50a24b
mov byte [esp], bh
mov dword [esp + 0x40], esp
pushfd
jmp 0x50a24b
mov dword [esp], esp
mov dword [esp + 0x40], ebp
call fcn.0050a1f5
pushfd
jmp 0x509c20
xchg ebx, eax
not di
mov ebp, dword [esp + 0x2c]
jmp 0x50a2c5
lea edi, [esp]
ror al, 6
jne 0x50a29f
bswap ebx
jmp 0x50a2a9
jmp 0x50a287
bswap ebx
or ah, ah
jmp 0x50a2ef
or ah, ah
jmp 0x50a2ef
rdtsc
call 0x50a2d9
mov esi, 0x24d5b21c
mov dword [reloc.MSVCRT.dll_strncpy], eax
imul ebx, eax, 8
stosd dword es:[edi], eax
ret 0x4c7d
rdtsc
mov esi, 0x762519ec
lea esi, reloc.MSVCRT.dll_strncpy
bsr edx, edx
jbe 0x50a29d
ja 0x50a29d
mov edx, ebp
push ebp
setb bl
pop ax
lea esp, [esp + 2]
jmp 0x50a40c
sub esp, 0xc0
mov esi, esp
mov ch, byte [esp]
bswap ebx
jmp 0x50a2ad
not ebp
sub esp, 0x17
jge 0x50a362
mov eax, 0x8017d411
mov eax, dword [esp + 8]
sub esp, 0x1e
call fcn.0050a369
mov ecx, 0x4dd2fb98
fmul qword [ebp + 0x42b85142]
jg 0x50a38b
lea eax, [edx + 0x51]
mov eax, 0xe4497f42
mov ecx, edx
jmp 0x50a31d
in al, 0x8b
retf 0xd6eb
mov eax, dword [esp + 8]
sub esp, 0x1e
lea ebx, [ecx*4]
mov ecx, edi
lea esp, [esp + 1]
jmp 0x50a3f4
mov eax, 0x8017d411
jmp 0x50a347
jmp 0x50a357
push esi
pop ecx
jmp 0x50a33b
stc
pop ebx
mov bx, cx
push dword [esp + 0xc]
ret 0x10
lea esp, [esp + 0x34]
dec ebp
call fcn.0050a5cc
sti
ja 0x50a3e8
xor byte [ecx - 0x32], 0xe3
push 0xab6899fe
add eax, 0x79dff6b4
cmpsd dword [esi], dword es:[edi]
neg bh
jns 0x50a3b7
push esi
pop ecx
lea eax, [edx + 0x51]
mov eax, 0xe4497f42
mov ecx, edx
jmp 0x50a31d

Function at 0x50a1d5
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
mov dword [esp + 0x40], ebx
call fcn.0050a171

Function at 0x50a1f5
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp]
jmp 0x50a21f
push word [esp + 1]
jno 0x50a1df
pop word [esp]
push word [esp + 3]
lea esp, [esp + 2]
mov dword [esp + 0x40], esi
pushal
jmp 0x50a233
push word [esp + 3]
lea esp, [esp + 2]
mov dword [esp + 0x40], esi
jmp 0x50a232
pushal
pop word [esp + 3]
pop word [esp + 0x13]
mov dword [esp + 0x58], edi
lea esp, [esp + 0x58]
jmp 0x50a257

Function at 0x54e575
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
mov word [esp], ax
jmp 0x54e5c5
jne 0x54e5aa
je 0x54e61e
movsb byte es:[edi], byte [esi]
lds ebx, [esi]
dec byte [ebp + 0x781f6006]
inc eax
adc eax, 0xc7440621
outsb dx, byte [esi]
jns 0x54e61d
lea esp, [esp + 0x28]
cmp word [ecx], ax
jmp 0x54e5af
push esp
mov eax, dword [ecx + 0x3c]
call fcn.0054e5f8
Function at 0x54e791
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
mov si, word [esp + 1]
mov si, word [esp + 2]
jmp 0x54e7c9
mov esi, 0x14c
jmp 0x54e7b3

Function at 0x54e7f1
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
jmp 0x54e830
mov esi, dword [edx + 0x3c]
call 0x54e7f3

Function at 0x60504f
Capabilities:
Packed with generic packer

Disassembly:
pushfd
push dword [esp + 0x26]
pop dword [esp + 0x10]
mov word [esp + 0x12], si
jmp 0x605088
mov word [esp + 7], cx
pushal
lea esp, [esp + 0x4b]
call fcn.00605072

Function at 0x6050c3
Capabilities:
Packed with generic packer

Disassembly:
mov word [esp + 0xb], si
mov dword [esp + 2], esi
push word [esp + 9]
push dword [esp + 0x15]
call fcn.0060500e
push dword [esp + 0xc]
push dword [esp + 0x10]
pop dword [esp + 0x14]
jmp 0x605038

Function at 0x605ac7
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0x14
xchg dl, ah
bt ecx, eax
pop ax
mov bx, cx
jmp 0x605ae0
pop ebp
jmp 0x605ab1
xchg edx, ebp
sub edx, 0x230cbcbb
setns ch
xchg word [esp + 0xb], bx
jmp 0x605b27
lea eax, [eax - 0x99]
mov ecx, dword [esp + 0xb]
push word [esp + 0xf]
pop word [esp + 5]
lea edx, [esp + ebx]
sub esp, 0x1a
jmp 0x605aca
cpuid
xchg byte [esp + 0x29], ah
push word [esp + 0x2f]
xchg bh, cl
mov ax, word [esp + 7]
mov bp, word [esp + 0x11]
jmp 0x605b11

Function at 0x605f41
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp + 6], bp
jmp 0x605f9d
bsf ebx, eax
setnp bl
mov al, 0x26
mov byte [esp + 2], bl
xchg di, si
jmp 0x605fcf
add esp, 6
mov ax, 0xd146
inc esi
mov dh, bl
bsf bp, ax
mov dword [esp], ebx
jmp 0x605f87
push dword [esp + 1]
lea edx, [esi*4]
pop dword [esp]
xchg byte [esp + 1], dh
cmc
xchg dword [esp], edx
lea edi, reloc.MSVCRT.dll_strncpy
btr ecx, eax
rdtsc
push word [esp + 2]
lea esp, [esp + 1]
jmp 0x605fb0
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x21b069ec
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x7bc753ae
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1014fd9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1017484]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x210]
push eax
mov esi, 0x20a
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
cmp eax, ebx
je 0x1015075
cmp eax, esi
ja 0x1015075
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll__mbsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1015034
cmp byte [eax + 1], bl
jne 0x1015034
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.01014db6
test eax, eax
jne 0x1015053
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.01014e8e
cmp dword [ebp + 0xc], 0x104
jb 0x1015086
push dword [ebp - 0x420]
lea eax, [ebp - 0x210]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x10150dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01012bde
leave
ret 0xc
lea eax, [ebp - 0x41c]
push eax
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x10150a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1015075
lea eax, [ebp - 0x41c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10150b1
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, dword [ebp + 0xc]
ja 0x1015075
mov edi, dword [ebp - 0x420]
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x41c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
inc eax
jmp 0x1015077
Function at 0x423125
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x423261
push edi
call dword [0x1004b68c]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x423261
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [ebp + 8]
call dword [0x1004b0b4]
test eax, eax
je 0x423261
mov eax, dword [ebp - 0x24]
lea ecx, [eax*4 + 1]
imul ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.0045a35a
mov ebx, eax
pop ecx
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x423261
mov eax, dword [ebp - 0x24]
push esi
mov dword [ebp - 0x50], eax
push edi
lea esi, [eax + eax*2 + 3]
mov eax, dword [ebp - 0x20]
neg eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0x20]
and esi, 0xfffffffc
mov dword [ebp - 0x54], 0x28
mov word [ebp - 0x46], 0x18
push edi
mov word [ebp - 0x48], 1
push dword [ebp + 8]
mov dword [ebp - 0x44], edi
push dword [ebp - 0xc]
call dword [0x1004b0c0]
cmp dword [ebp - 0x20], edi
mov dword [ebp - 8], edi
jle 0x42322c
lea eax, [ebx + 1]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x24], edi
mov dword [ebp + 8], edi
jle 0x42321e
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 1]
movzx edx, byte [ecx]
imul eax, eax, 0x4d
imul edx, edx, 0x97
add eax, edx
mov ebx, 0x100
movzx edx, byte [ecx - 1]
imul edx, edx, 0x1c
lea eax, [eax + edx + 0x7f]
cdq
idiv ebx
inc dword [ebp + 8]
mov byte [ecx + 1], al
mov byte [ecx], al
mov byte [ecx - 1], al
mov eax, dword [ebp + 8]
add ecx, 3
cmp eax, dword [ebp - 0x24]
jl 0x4231e0
mov ebx, dword [ebp - 0x10]
inc dword [ebp - 8]
add dword [ebp - 4], esi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x20]
jl 0x4231d5
lea eax, [ebp - 0x54]
push edi
push eax
push ebx
lea eax, [ebp - 0x54]
push 4
push eax
push dword [ebp - 0xc]
call dword [0x1004b06c]
push dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
push edi
mov dword [esi], eax
call dword [0x1004b690]
push ebx
call fcn.0045a360
xor eax, eax
cmp dword [esi], edi
pop ecx
pop esi
setne al
jmp 0x423263
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x428f5e
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x120
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x428f82
push eax
call fcn.0044d602
push 2
call fcn.0044d591
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.0045ab5c
add esp, 0xc
pop edi
pop esi
ret
Function at 0x429843
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1004941a
call fcn.0045ab34
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 8]
mov dword [ebp - 0x10], ebx
call fcn.0045a36c
xor esi, esi
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], esi
call fcn.0045a36c
mov edi, 0x1005e084
mov byte [ebp - 4], 1
or dword [ebx], 0xffffffff
push edi
lea ecx, [ebx + 8]
mov dword [ebx + 4], esi
call fcn.0045a684
push edi
lea ecx, [ebx + 0xc]
call fcn.0045a684
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or dword [ebx + 0x10], 0xffffffff
or dword [ebx + 0x14], 0xffffffff
or dword [ebx + 0x30], 0xffffffff
push 0x12
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [0x1004b714]
call esi
push 0x12
mov dword [ebx + 0x34], eax
call esi
push 0x12
mov dword [ebx + 0x38], eax
call esi
push 0x11
mov dword [ebx + 0x3c], eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x40], eax
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43e03a
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x43e067
push esi
call fcn.004413d0
cmp byte [esi + 0x40], 0
pop ecx
je 0x43e060
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x43e0d6
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x43e0cb
mov eax, dword [esi + 8]
test eax, eax
je 0x43e088
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x43e0c7
cmp eax, 2
je 0x43e0cb
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e07d
cmp eax, 3
je 0x43e0ac
cmp eax, 1
jne 0x43e07d
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x43e07d
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e07d
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x43e0f4
cmp eax, 0xcc
je 0x43e0f4
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.0043e0fd
pop ecx
pop esi
ret
Function at 0x452ea7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 1
call fcn.0044d5a2
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x452f10
push esi
call fcn.004293af
mov eax, 0xf4240
push ebx
mov dword [esi + 0x264], eax
push esi
mov dword [esi + 0x268], eax
call fcn.0045add0
add esp, 0xc
test eax, eax
je 0x452f17
mov edi, dword [ebp - 8]
push dword [edi + 0xac]
lea esi, [edi + 0xac]
push edi
call fcn.0044d6b2
push edi
mov dword [esi], ebx
call fcn.0044d602
add esp, 0xc
xor eax, eax
jmp 0x453019
push dword [ebp + 0x20]
mov esi, dword [ebp - 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.0044d744
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0044d577
mov ecx, dword [ebp + 8]
mov edi, 0x1004d0e8
mov dword [ebp - 4], ecx
add esp, 0x20
sub dword [ebp - 4], edi
mov eax, edi
mov edx, dword [ebp - 4]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
je 0x452f59
or byte [esi + 0x6e], 2
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x452f4b
test byte [esi + 0x6e], 2
je 0x452fd7
cmp ecx, ebx
je 0x452fad
mov al, byte [ecx]
cmp al, byte [0x1004d0e8]
jne 0x452f8d
cmp al, 0x31
jne 0x452f83
mov dl, byte [ecx + 2]
cmp dl, byte [0x1004d0ea]
jne 0x452f8d
cmp al, 0x30
jne 0x452fd7
cmp byte [ecx + 2], 0x39
jge 0x452fd7
cmp ecx, ebx
je 0x452fad
push ecx
lea eax, [ebp - 0x58]
push 0x1005bb3c
push eax
call fcn.0045ad64
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.0044d36e
add esp, 0x14
push edi
lea eax, [ebp - 0x58]
push 0x1005bb04
push eax
call fcn.0045ad64
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.0044d36e
push 0x1005bacc
push esi
mov dword [esi + 0x6c], ebx
call fcn.0044d2de
add esp, 0x1c
mov eax, 0x2000
push eax
push esi
mov dword [esi + 0xb0], eax
call fcn.0044d649
push ebx
push ebx
push ebx
push esi
mov dword [esi + 0xac], eax
call fcn.00454760
push ebx
push ebx
push 1
push ebx
push esi
call fcn.0045347c
push ebx
push esi
call fcn.0045add0
add esp, 0x34
test eax, eax
je 0x453016
jmp 0x45af44
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f9680
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9c000]
mov dword [edi + 0xcf740], 0x5074c016
push edi
jmp 0x4f96aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f96b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f96a0
mov eax, 1
add ebx, ebx
jne 0x4f96c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f96d4
jne 0x4f96f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f96f3
dec eax
add ebx, ebx
jne 0x4f96e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f96b8
add ebx, ebx
jne 0x4f96ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f9745
xor ecx, ecx
sub eax, 3
jb 0x4f970b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f977a
sar eax, 1
mov ebp, eax
jmp 0x4f9716
add ebx, ebx
jne 0x4f9716
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f96e4
inc ecx
add ebx, ebx
jne 0x4f9724
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f96e4
add ebx, ebx
jne 0x4f9731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f9726
jne 0x4f9742
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f9726
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f9764
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f9756
jmp 0x4f96a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f9764
add edi, ecx
jmp 0x4f96a6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f9782
cmp byte [edi], 0x11
jne 0x4f9782
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 0x4f9787
lea edi, [esi + 0xf2000]
mov eax, dword [edi]
or eax, eax
je 0x4f97ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10ce18]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10cf94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f97b4
mov ecx, edi
jns 0x4f97e3
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 + 0x10cf98]
or eax, eax
je 0x4f97f9
mov dword [ebx], eax
add ebx, 4
jmp 0x4f97d1
call dword [esi + 0x10cfa8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f9830
cmp al, 0xef
ja 0x4f9823
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f9805
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f9812
mov ebp, dword [esi + 0x10cf9c]
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 0x4f9864
sub esp, 0xffffff80
jmp 0x420577
Function at 0x10009840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000984f
pop dword [ebp - 0x28]
mov eax, 0x96d3e411
sub eax, 0x86d34bc2
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x22b6f28d
sub dword [ebp - 0x38], 0xd464ad42
mov dword [ebp - 0x34], 0xca21452b
sub dword [ebp - 0x34], 0x97edf8e6
mov dword [ebp - 0x30], 0x8e9deb9f
sub dword [ebp - 0x30], 0x4251a771
mov dword [ebp - 0x2c], 0xf57d46a3
sub dword [ebp - 0x2c], 0xf57d46a3
lea eax, [ebp - 0x38]
push eax
mov eax, 0x9c9e6dec
add eax, 0x7362b254
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x739ec777
sub dword [ebp - 0x38], 0xff2c5e21
mov dword [ebp - 0x34], 0xe01c371e
add dword [ebp - 0x34], 0x61502a57
mov dword [ebp - 0x30], 0x382746a6
sub dword [ebp - 0x30], 0xd4b7da3a
mov dword [ebp - 0x2c], 0xa6759137
sub dword [ebp - 0x2c], 0xa6759137
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3a04a
push 0
call eax
mov ecx, 0x4846
xor esi, esi
add esi, eax
mov edx, 0xcb32bcd
sub edx, 0xfcb17bcd
add edx, dword [ebp - 0x28]
mov ebx, 0x1c2ca1dc
sub ebx, 0xeff034ea
add dword [ebp - 0x18], 0x206955a5
mov edi, dword [edx]
xor dword [ebp - 0x10], eax
xor edi, ebx
add dword [ebp - 8], esi
mov dword [esi], edi
xor dword [ebp - 0x1c], 0x3c833e83
add esi, 0xea0fbb1f
sub esi, 0xea0fbb1b
add edx, 4
loop 0x10009968
add eax, 0x6dadc12b
sub eax, 0x6dacad40
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xe4f008], 0x8088405
inc edx
mov dword [ebx + 0xe4f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41c674
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41c6a5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c68d
add dl, dl
jne 0x41c6b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c701
xor eax, eax
add dl, dl
jne 0x41c6bd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c79e
add dl, dl
jne 0x41c6cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6e2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6ed
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c6f7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c69c
mov eax, 1
add dl, dl
jne 0x41c70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c706
sub eax, ebx
mov ebx, 1
jne 0x41c74d
mov ecx, 1
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c72a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c764
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c76f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c75b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c7bf
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 0x41c69c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret