joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10194398
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1019466e
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6bf3289f
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6bf29865
push 0xffffffffffffffff
call fcn.1018b598
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x10194402
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1019441a
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10194662
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x10194636
Function at 0x101a3e68
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x101a3e8a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x101a3e8a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x101a3e8a
ret
cmp word [ebx + 4], 0x14c
jne 0x101a3e8a
test word [ebx + 0x16], 2
je 0x101a3e8a
test word [ebx + 0x16], 0x100
je 0x101a3e8a
cmp word [ebx + 0x18], 0x10b
jne 0x101a3e8a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x101a3e8a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x101a3f16
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x101a3eaa
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1018adf5
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x101a3e8a
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x101a3f16
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x101a3e8a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x101a3e8a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x101a3e8a
ret
cmp word [ebx + 4], 0x14c
jne 0x101a3e8a
test word [ebx + 0x16], 2
je 0x101a3e8a
test word [ebx + 0x16], 0x100
je 0x101a3e8a
cmp word [ebx + 0x18], 0x10b
jne 0x101a3e8a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x101a3e8a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x101a3f16
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x101a3eaa
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1018adf5
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x101a3e8a
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x101a3fcd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x101a4026
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x101a3fcd
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x101a3fdc
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x105a9c7f
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x101a402d
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1018aea3
cmp eax, dword [ebp + 0xc]
pop eax
je 0x101a40cc
add edi, 4
add eax, 2
dec ecx
jne 0x101a4012
call 0x101a4079
loope 0x101a406f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x101a40c9
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x101a40da
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x101a408d
cmp eax, ecx
ja 0x101a408d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x101a4117
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x101a410d
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1018b382
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x101a3fdc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x101a4026
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x101a3fcd
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x101a3fdc
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x105a9c7f
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x101a402d
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1018aea3
cmp eax, dword [ebp + 0xc]
pop eax
je 0x101a40cc
add edi, 4
add eax, 2
dec ecx
jne 0x101a4012
call 0x101a4079
loope 0x101a406f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x101a40c9
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x101a40da
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x101a408d
cmp eax, ecx
ja 0x101a408d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x101a4117
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x101a410d
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1018b382
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x405819
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x405842
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x50db20]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x405822
pop esi
ret

Function at 0x40a288
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, eax
mov eax, dword [ebx + 0x3c]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax], edi
jne 0x40a2b5
push eax
mov eax, dword [ebx + 0x78]
mov ecx, ebx
call fcn.00409e94
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x40a37d
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x40a2e9
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.004502b0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x3c]
push 5
mov dword [ebp - 0xc], edx
call fcn.0040275e
mov eax, dword [ebx + 0x18]
pop ecx
pop ecx
mov dword [ebx + 0x24], eax
test esi, esi
je 0x40a37d
mov edi, dword [esi + 0xc]
cmp edi, dword [ebx + 0x18]
ja 0x40a370
test byte [esi + 0x14], 0x20
jne 0x40a370
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.004502b0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp edi, 1
jne 0x40a323
call fcn.00409a49
push dword [ebp - 0xc]
mov eax, dword [esi]
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
push dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x3c]
call fcn.004026f1
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x40a35d
mov eax, dword [ebp - 8]
add eax, 0x18
push 0x10
push eax
lea eax, [ebx + 0x64]
push eax
call fcn.00442100
add esp, 0xc
cmp edi, dword [ebx + 0x20]
jbe 0x40a365
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.00414442
pop ecx
cmp dword [ebp - 4], 0
mov esi, dword [esi + 8]
je 0x40a2e9
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x4227c3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4228db
test esi, esi
je 0x4228db
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x42287f
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x42287f
xor cl, dl
test cl, 0x10
jne 0x42287f
mov al, byte [edi]
cmp al, byte [esi]
jne 0x42287f
push dword [esi + 8]
push dword [edi + 8]
call fcn.004227c3
pop ecx
pop ecx
test eax, eax
jne 0x42287f
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.004227c3
pop ecx
pop ecx
test eax, eax
jne 0x42287f
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.004228ea
test eax, eax
jne 0x42287f
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x42287f
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x42287f
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x422884
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x42287f
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x4228ae
push 2
pop eax
jmp 0x4228e6
cmp byte [edi], 0x98
je 0x4228ae
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4228ae
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x42287f
mov edx, dword [esi + 4]
test edx, edx
je 0x42287f
call fcn.00404d8d
test eax, eax
jne 0x42287f
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, pe_nt_image_headers32
and ecx, eax
and dx, ax
cmp cx, dx
je 0x4228ca
xor eax, eax
inc eax
jmp 0x4228e6
test cx, cx
je 0x4228d7
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x42287f
xor eax, eax
jmp 0x4228e6
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
ret
Function at 0x4385cb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esi + 4]
call fcn.00437544
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x14]
imul edx, edx, 0x28
add edx, edi
cmp byte [ebx + 0x16], 0
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edx
jne 0x4387c3
cmp dword [ebx + 0x34], 0
jne 0x4387c3
jmp 0x4387b7
mov eax, pe_nt_image_headers32
cmp word [edi + 0x10], ax
jne 0x4387b4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
not eax
and eax, dword [edi + 0x20]
not ecx
and ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x4387b4
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x160]
mov esi, dword [ecx + 0x164]
and eax, dword [esp + 0x28]
and esi, dword [esp + 0x2c]
or eax, esi
je 0x4387b4
mov esi, dword [ecx + 0x14]
fldz
mov ebx, dword [ecx + 0x1c]
imul esi, esi, 0x28
fst qword [esp + 0x20]
fstp qword [esp + 0x30]
and dword [esp + 0x10], 0
add esi, ebx
and dword [esp + 0x14], 0
jmp 0x438753
mov eax, 0x200
cmp word [ebx + 0x10], ax
jne 0x4386b4
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebx + 0xc]
jmp 0x438701
mov eax, dword [esp + 0x3c]
cmp dword [ebx + 8], eax
jne 0x438750
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
lea eax, [esp + 0x70]
push dword [ebp + 0x1c]
mov dword [esp + 0x74], ecx
push dword [ebp + 0x18]
mov byte [esp + 0x88], 0x45
push dword [ebp + 0x14]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
push eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.00439603
fld qword [esp + 0x70]
fadd qword [esp + 0x38]
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0x78]
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
fstp qword [esp + 0x38]
fld qword [esp + 0x60]
or dword [esp + 0x2c], eax
fadd qword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
add esp, 0x18
fstp qword [esp + 0x30]
fld qword [ecx + 0x18]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jnp 0x43875e
add ebx, 0x28
cmp ebx, esi
jb 0x438693
mov ecx, dword [ebp + 0x28]
cmp dword [ebp + 0x24], 0
je 0x438781
fld qword [esp + 0x30]
push ecx
push ecx
fstp qword [esp]
call fcn.0043858d
fmul qword [esp + 0x38]
add esp, 8
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [ecx + 0x18]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x4387b4
mov eax, dword [esp + 0x10]
fld qword [esp + 0x20]
fstp qword [ecx + 0x18]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x14]
fld qword [esp + 0x30]
fstp qword [ecx + 8]
mov dword [ecx + 0x24], eax
mov dword [ecx], 0x10000000
mov dword [ecx + 0x10], edi
add edi, 0x28
mov dword [esp + 0x1c], edi
cmp edi, edx
jb 0x438621
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471928
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
push ebx
push esi
mov ecx, edi
call fcn.004e9f40
push 1
push 0
push ecx
mov eax, esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push eax
call fcn.004e839f
xor ebx, ebx
mov esi, 0x80000001
lea eax, [esp + 0x14]
call fcn.004739d7
cmp dword [esp + 0x38], ebx
je 0x47197f
push ecx
mov eax, esp
push str.Desktop
push eax
call fcn.004e839f
mov eax, edi
lea ecx, [esp + 0xc]
call fcn.004742e3
test eax, eax
jne 0x471994
push str._windows_Desktop
push edi
call fcn.004e8373
push 1
mov ecx, edi
call fcn.00470222
pop ecx
lea ecx, [esp + 8]
call fcn.00473a9f
pop esi
mov eax, edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48cfe5
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
add eax, 0x78
push eax
xor edi, edi
lea eax, [ebp - 8]
mov ebx, 0x5302dc
push eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0x5302e8
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x50], 0x5302fc
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x48], 0x53030c
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x40], 0x530320
mov dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x38], 0x530334
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x30], 0x53034c
mov dword [ebp - 0x2c], 0x20000000
mov dword [ebp - 0x28], 0x530358
mov dword [ebp - 0x24], 0x40000000
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call fcn.004ea069
mov esi, 0x50213c
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.004e9835
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], edi
je 0x48d13e
mov eax, ebx
push eax
lea eax, [ebp - 4]
push eax
call fcn.004e980f
test eax, eax
je 0x48d107
mov eax, dword [ebp + edi*8 - 0x58]
inc edi
test eax, eax
jne 0x48d09d
mov edi, dword [ebp + 8]
mov esi, dword [edi]
push 1
push 1
push 0x1cd
push ecx
mov eax, esp
push 0x530364
push eax
add esi, 0x10
call fcn.004e839f
push ecx
mov eax, esp
push 0x53038c
push eax
lea ecx, [ebp - 4]
call fcn.004e9a57
pop ecx
pop ecx
push 1
mov ecx, edi
call dword [esi]
xor esi, esi
lea ecx, [ebp - 4]
call fcn.004e8425
lea ecx, [ebp - 8]
call fcn.004e8425
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp + edi*8 - 0x5c]
or dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.004e9835
lea edi, [ebp - 4]
call fcn.004e9792
lea ecx, [ebp - 0x14]
call fcn.004e8425
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
je 0x48d13e
xor edi, edi
jmp 0x48d09b
mov esi, dword [ebp - 0xc]
jmp 0x48d0ee
Function at 0x4d3205
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret

Function at 0x4d3280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x53f270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
inc dword [0x54d040]
cmp dword [0x54d040], 1
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
jne 0x4d32c9
push 0
call fcn.00445367
xor eax, 0xbb40e64e
push eax
call fcn.00445333
pop ecx
pop ecx
push edi
mov ecx, ebx
mov eax, esi
call fcn.004d3248
add esp, 4
xor esi, esi
call fcn.00445345
mov ebx, eax
mov eax, dword [ebp - 0x14]
sar ebx, 7
and ebx, 0xff
call fcn.004d3edc
mov ecx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x18], eax
call fcn.004d3205
xor bl, byte [ebp - 0x18]
add esp, 4
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xa
jl 0x4d32d8
mov eax, dword [ebp - 0x20]
push edi
call fcn.004d3248
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
add esp, 4
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
call fcn.004d3edc
mov bl, byte [ebp + esi - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
movzx eax, bl
push eax
call fcn.004d3205
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, esi
add esp, 4
inc esi
cmp esi, 0xa
mov byte [ebp + eax - 0x10], bl
jl 0x4d3325
mov eax, ecx
call fcn.004d3edc
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
shr ebx, 0x10
mov eax, ebx
and eax, 0xff
push eax
call fcn.004d3205
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi], bl
mov eax, ecx
inc esi
call fcn.004d3edc
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
shr ebx, 0x18
push ebx
mov dword [ebp - 0x18], eax
call fcn.004d3205
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
add esp, 8
mov byte [eax + esi], bl
pop edi
lea eax, [esi + 1]
pop esi
xor ecx, ebp
pop ebx
call fcn.00440531
leave
ret
Function at 0x4d39f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0x4090], eax
je 0x4d3a54
cmp dword [esi + 0x6c], eax
jbe 0x4d3a54
push ebx
mov dword [ebp - 4], 0xffffff78
sub dword [ebp - 4], esi
push edi
lea ebx, [esi + 0x88]
lea edx, [esi + 0x4094]
mov eax, edx
call fcn.004d3edc
mov edi, dword [esi + 0x40a0]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
push eax
mov ecx, edx
call fcn.004d3205
mov al, byte [ebp - 0xc]
xor byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 4
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x6c]
jb 0x4d3a1e
pop edi
pop ebx
push dword [esi + 0x6c]
lea eax, [esi + 0x88]
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [esi + 8]
add esp, 0x10
cmp eax, dword [esi + 0x6c]
je 0x4d3a73
or dword [ebp - 8], 0xffffffff
and dword [esi + 0x6c], 0
mov eax, dword [ebp - 8]
leave
ret
Function at 0x4d3d26
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push edi
xor edi, edi
mov dword [esp + 4], edi
mov dword [esp + 8], edi
cmp ebx, edi
jne 0x4d3b70
push 0xffffffffffffff9a
pop eax
jmp 0x4d3d21
cmp dword [ebx + 0x2c], edi
je 0x4d3b68
cmp dword [ebx + 0x80], 8
push ebp
push esi
mov dword [ebx + 0x34], edi
jne 0x4d3bcc
cmp dword [ebx + 0x84], edi
jne 0x4d3bcc
lea ebp, [ebx + 0x30]
cmp dword [ebx + 0x40], 0
jne 0x4d3bab
mov esi, ebx
call fcn.004d39f4
lea eax, [ebx + 0x88]
mov dword [ebx + 0x40], 0x4000
mov dword [ebx + 0x3c], eax
mov esi, dword [ebx + 0x44]
push 4
mov edi, ebp
call fcn.004d53ec
mov edi, eax
mov eax, dword [ebx + 0x44]
sub eax, esi
add dword [ebx + 0x6c], eax
test edi, edi
je 0x4d3b8e
cmp edi, 1
jne 0x4d3bcc
xor edi, edi
cmp dword [ebx + 0x6c], 0
jbe 0x4d3be4
test edi, edi
jne 0x4d3be4
mov esi, ebx
call fcn.004d39f4
cmp eax, 0xffffffff
jne 0x4d3be4
or edi, eax
cmp dword [ebx + 0x80], 8
jne 0x4d3c04
cmp dword [ebx + 0x84], 0
jne 0x4d3c1e
lea esi, [ebx + 0x30]
call fcn.004d5af6
and dword [ebx + 0x68], 0
mov edi, eax
cmp dword [ebx + 0x84], 0
jne 0x4d3c1e
mov eax, dword [ebx + 0x408c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x10], eax
mov esi, dword [ebx + 0x74]
mov ebp, dword [ebx + 0x40a4]
mov ecx, dword [esp + 0xc]
add ebp, dword [ebx + 0x44]
push 4
add esi, 0x10
pop edx
call fcn.004d34c9
mov esi, dword [ebx + 0x74]
push 4
add esi, 0x14
pop edx
mov ecx, ebp
call fcn.004d34c9
xor ecx, ecx
inc ecx
cmp dword [ebx + 0x5c], ecx
jne 0x4d3c5f
mov esi, dword [ebx + 0x74]
push 2
add esi, 0x24
pop edx
call fcn.004d34c9
mov esi, dword [ebx + 0x74]
mov ecx, dword [esp + 0x10]
push 4
add esi, 0x18
pop edx
call fcn.004d34c9
test edi, edi
jne 0x4d3c87
push dword [ebx + 0x78]
lea edi, [ebx + 0x24]
push dword [ebx + 0x74]
call fcn.004d33f2
pop ecx
pop ecx
mov edi, eax
push dword [ebx + 0x74]
call fcn.00440708
pop ecx
test edi, edi
jne 0x4d3d13
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x70]
push edi
add eax, 0xe
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x18
test eax, eax
je 0x4d3cbe
or edi, 0xffffffff
jmp 0x4d3cfa
push dword [ebx + 0x20]
mov ecx, dword [esp + 0x10]
push 4
pop esi
mov edi, ebx
call fcn.004d3480
mov edi, eax
pop ecx
test edi, edi
jne 0x4d3cfa
push dword [ebx + 0x20]
mov ecx, ebp
mov edi, ebx
call fcn.004d3480
mov edi, eax
pop ecx
test edi, edi
jne 0x4d3cfa
push dword [ebx + 0x20]
mov ecx, dword [esp + 0x14]
mov edi, ebx
call fcn.004d3480
pop ecx
mov edi, eax
push 0
push dword [esp + 0x18]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x10
test eax, eax
je 0x4d3d13
or edi, 0xffffffff
inc dword [ebx + 0x40b0]
and dword [ebx + 0x2c], 0
pop esi
mov eax, edi
pop ebp
pop edi
add esp, 0xc
ret
jmp 0x4d3b56