joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
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 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
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 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
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
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x83454a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x834551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x8358af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x85254c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x85254c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x851378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8358b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4683b4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x88
mov ebx, ecx
mov edx, dword [0xa95e48]
mov byte [esp + 2], 0xe5
mov dword [ebx + 0x1212c], edx
xor ecx, ecx
mov dword [esp + 4], ecx
mov byte [esp + 3], cl
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov eax, 0x88
mov word [esp], ax
push 0xffff
call fcn.006c1bcc
mov eax, dword [eax + 0x364]
mov dword [esp + 0x14], eax
push 0xffff
call fcn.006c1bcc
add esp, 8
add eax, 0x370
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x38]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0x40]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0x44]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0x48]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x60], edx
mov edx, dword [eax + 0x50]
mov dword [esp + 0x64], edx
mov edx, dword [eax + 0x54]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0x58]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0x60]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x64]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
movzx edx, word [esp]
lea ecx, [esp]
push edx
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x20]
push dword [ebx + 0x1212c]
call fcn.006c1a80
add esp, 0x8c
pop ebx
ret
Function at 0x4aabd8
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d07b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
call fcn.008193cc
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
mov dword [eax], 0xafa280
mov edx, dword [0x9a81ac]
push 0x40
mov dword [eax + 4], edx
mov ecx, dword [esi]
mov dword [eax + 0x120], ecx
mov ebx, dword [esi + 4]
mov dword [eax + 0x124], ebx
mov edi, dword [esi + 8]
mov dword [eax + 0x128], edi
xor edx, edx
mov dword [eax + 0x12c], edx
mov dword [eax + 0x124], 0x40000000
mov dword [eax + 0x1c], edx
add eax, 0x120
mov edx, dword [0xa476f4]
push dword [edx + 0xc]
push eax
call fcn.0050b7a4
mov edx, dword [ebp - 0x24]
mov eax, dword [0xa476f4]
push 0x40
add edx, 0x120
push dword [eax + 8]
push edx
call fcn.0050b7a4
add esp, 0x18
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x20], edx
mov dword [eax + 0xa0], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0x28], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0xac], edx
mov dword [eax + 0x30], edx
mov dword [eax + 0xb0], edx
mov dword [eax + 0x34], edx
mov dword [eax + 0xb4], edx
mov dword [eax + 0x38], edx
mov dword [eax + 0xb8], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0xbc], edx
mov dword [eax + 0x40], edx
mov dword [eax + 0xc0], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0xc4], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0xc8], edx
mov dword [eax + 0x4c], edx
mov dword [eax + 0xcc], edx
mov dword [eax + 0x50], edx
mov dword [eax + 0xd0], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0xd4], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0xd8], edx
mov dword [eax + 0x5c], edx
mov dword [eax + 0xdc], edx
mov dword [eax + 0x60], edx
mov dword [eax + 0xe0], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0xe4], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0xe8], edx
mov dword [eax + 0x6c], edx
mov dword [eax + 0xec], edx
mov dword [eax + 0x70], edx
mov dword [eax + 0xf0], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0xf4], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0xf8], edx
mov dword [eax + 0x7c], edx
mov dword [eax + 0xfc], edx
mov dword [eax + 0x80], edx
mov dword [eax + 0x100], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x104], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x108], edx
mov dword [eax + 0x8c], edx
mov dword [eax + 0x10c], edx
mov dword [eax + 0x90], edx
mov dword [eax + 0x110], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x114], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x118], edx
mov dword [eax + 0x9c], edx
mov dword [eax + 0x11c], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4bd260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d106c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x14], eax
call fcn.008193cc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x44]
mov dword [edx], 0xafb250
mov eax, dword [0x9abce8]
mov dword [edx + 0x34], 0x3727c5ac
mov dword [edx + 4], eax
mov dword [edx + 0x28], 0
call fcn.008587a5
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x30], 0
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fdiv dword [0x907360]
fmul dword [0x907364]
fnstcw word [ebp - 0x38]
movzx eax, word [ebp - 0x38]
or eax, 0xc00
mov dword [ebp - 0x30], eax
fldcw word [ebp - 0x30]
fistp dword [edx + 0x2c]
fldcw word [ebp - 0x38]
call fcn.008587a5
mov ecx, dword [ebp - 0x44]
fld dword [0x90735c]
mov edx, dword [ebp - 0x14]
fadd dword [edx]
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fdiv dword [0x907360]
fmul dword [0x907358]
faddp st(1)
fstp dword [ecx + 0x1c]
mov eax, dword [edx + 4]
mov dword [ecx + 0x20], eax
call fcn.008587a5
mov edx, dword [ebp - 0x44]
fld dword [0x90735c]
mov esi, dword [ebp - 0x14]
fadd dword [esi + 8]
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fdiv dword [0x907360]
fmul dword [0x907358]
push 0x212
faddp st(1)
fstp dword [edx + 0x24]
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
mov edi, dword [esi + 8]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], edi
lea eax, [ebp - 0x50]
push eax
call fcn.00509590
add esp, 8
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [ebx + 0x40], eax
xor edx, edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x58], edx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov ecx, dword [0xa47f34]
mov dword [ebx + 0x78], ecx
mov eax, ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ce558
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
mov edi, ecx
mov esi, dword [esp + 0x10]
push dword [esp + 0xc]
mov ecx, edi
call fcn.008193cc
mov dword [edi], 0xafbb80
mov eax, dword [0xa48688]
test eax, eax
jne 0x4ce580
mov dword [0xa48688], edi
movzx edx, word [esi]
mov word [edi + 0x1c], dx
movzx eax, word [esi + 2]
mov word [edi + 0x1e], ax
movzx eax, word [esi + 4]
mov word [edi + 0x20], ax
movzx eax, word [esi + 6]
mov word [edi + 0x22], ax
movzx eax, word [esi + 8]
mov word [edi + 0x24], ax
movzx eax, word [esi + 0xa]
mov word [edi + 0x26], ax
movzx eax, word [esi + 0xc]
mov word [edi + 0x28], ax
movzx eax, word [esi + 0xe]
mov word [edi + 0x2a], ax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x54], eax
movzx eax, word [esi + 0x3c]
mov word [edi + 0x58], ax
movzx esi, word [esi + 0x3e]
mov word [edi + 0x5a], si
mov eax, edi
pop esi
pop edi
ret 8

Function at 0x4d6074
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d1f64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
call fcn.008193cc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [edx], 0xafc7d8
mov dword [edx + 0x34], eax
push 9
call fcn.004d31f4
mov esi, dword [ebp - 0x24]
mov eax, dword [0xa48a54]
mov edx, dword [eax + 0x178]
mov dword [esi + 0x1c], edx
mov ecx, dword [eax + 0x17c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 0x24]
mov ebx, dword [eax + 0x180]
mov dword [esi + 0x24], ebx
mov edi, dword [eax + 0x184]
mov dword [ecx + 0x28], edi
mov edx, dword [eax + 0x188]
mov dword [ecx + 0x2c], edx
mov eax, dword [eax + 0x18c]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 0x1c]
add eax, 0x28
push eax
push edx
call fcn.004d33c0
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov dword [0xa48a9c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4dd198
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d24f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
call fcn.008193cc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [edx], 0xafce98
mov ecx, dword [0x9b1030]
mov dword [edx + 0x20], 0
mov dword [edx + 4], ecx
mov ebx, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
add edx, 0x22c
mov dword [edx], ebx
mov dword [edx + 4], esi
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov ecx, dword [eax + 0x44]
mov eax, dword [eax + 0x48]
mov dword [edx + 0x44], ecx
mov dword [edx + 0x48], eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x28], 0x3c
mov dword [ecx + 0x24], 0
call fcn.004dd29c
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ec8d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d29de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
movzx eax, byte [0xa722b4]
test al, 1
jne 0x4ec918
mov dword [0xa722b8], 0x41380000
or eax, 1
mov byte [0xa722b4], al
test al, 2
jne 0x4ec92e
mov dword [0xa722bc], 0x41a00000
or eax, 2
mov byte [0xa722b4], al
test al, 4
jne 0x4ec947
mov dword [0xa722c0], 0xc2200000
movzx eax, al
or eax, 4
mov byte [0xa722b4], al
test al, 8
jne 0x4ec960
mov dword [0xa722c4], 0x442a0000
movzx eax, al
or eax, 8
mov byte [0xa722b4], al
test al, 0x10
jne 0x4ec97d
fld dword [0xa722b8]
fchs
fstp dword [0xa722c8]
movzx eax, al
or eax, 0x10
mov byte [0xa722b4], al
test al, 0x20
jne 0x4ec99f
fld dword [0x91dae8]
fadd dword [0xa722b8]
fst dword [0xa722cc]
or eax, 0xffffff20
mov byte [0xa722b4], al
jmp 0x4ec9a5
fld dword [0xa722cc]
fld dword [0xa722c8]
fcom st(1)
fnstsw ax
xor edx, edx
mov dword [ebp - 0x14], edx
sahf
jae 0x8d29cb
fld dword [0xa722c4]
fxch st(2)
fxch st(1)
fld dword [0xa722c0]
fcom st(3)
fnstsw ax
sahf
jae 0x8d29d4
fstp st(3)
fstp st(1)
fxch st(1)
fstp dword [ebp - 0x30]
fstp dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push 0x54
call fcn.005caba4
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4eca1e
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
push edx
mov ecx, eax
push dword [0xaca338]
call fcn.004ec5f0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
fld dword [ebp - 0x30]
fadd dword [0x91dae4]
fld dword [0xa722c4]
fcom st(1)
fnstsw ax
sahf
jbe 0x4eca42
fstp st(0)
fstp dword [ebp - 0x30]
jmp 0x4ec9e2
fstp st(1)
fld dword [ebp - 0x2c]
fld dword [0xa722cc]
fxch st(1)
fadd dword [0xa722b8]
fcom st(1)
fnstsw ax
xor dword [ebp - 0x14], 1
sahf
jae 0x4eca7c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ec9c5
fld dword [0xa722c0]
fadd dword [0xa722bc]
jmp 0x4ec9cb
fstp st(0)
fstp st(1)
fstp st(0)
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
fstp st(0)
fstp st(0)
jmp 0x4eca82
fstp st(0)
fxch st(1)
jmp 0x4eca4d
Function at 0x4f7eec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
push esi
mov ebx, ecx
push dword [esp + 0x14]
mov ecx, ebx
call fcn.004f7330
mov dword [ebx], 0xafe128
mov eax, dword [0x9b92c8]
mov dword [ebx + 4], eax
xor edx, edx
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x58], edx
mov esi, 1
mov dword [ebx + 0x50], 0
mov word [ebx + 0x5c], si
lea eax, [ebx + 0x78]
xor edi, edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov edi, dword [0xaafca4]
mov dword [ebx + 0x38], 0
xor esi, esi
test edi, edi
je 0x4f7fa6
movsx edx, word [edi + 8]
xor ecx, ecx
test edx, edx
jle 0x4f7fa6
mov dword [esp], ebp
lea eax, [ecx + ecx]
add eax, eax
sub eax, ecx
lea eax, [ecx + eax*4]
add eax, eax
add eax, eax
mov ebp, dword [edi + 0x10]
mov ebp, dword [eax + ebp]
cmp ebp, 0xffffffff
je 0x4f7f99
add esi, 1
mov dword [ebx + 0x38], esi
movsx edx, word [edi + 8]
add eax, 0x34
add ecx, 1
cmp ecx, edx
jl 0x4f7f84
mov ebp, dword [esp]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
ret 4