joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c3517
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 0x100c37ed
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6dcf369f
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6dcea665
push 0xffffffffffffffff
call fcn.100ba717
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 0x100c3581
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100c3599
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 0x100c37e1
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100c37b5
Function at 0x100d2fe7
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 0x100d3009
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100d3009
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100d3009
ret
cmp word [ebx + 4], 0x14c
jne 0x100d3009
test word [ebx + 0x16], 2
je 0x100d3009
test word [ebx + 0x16], 0x100
je 0x100d3009
cmp word [ebx + 0x18], 0x10b
jne 0x100d3009
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100d3009
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100d3095
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x100d3029
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.100b9f74
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100d3009
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 0x100d3095
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 0x100d3009
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100d3009
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100d3009
ret
cmp word [ebx + 4], 0x14c
jne 0x100d3009
test word [ebx + 0x16], 2
je 0x100d3009
test word [ebx + 0x16], 0x100
je 0x100d3009
cmp word [ebx + 0x18], 0x10b
jne 0x100d3009
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100d3009
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100d3095
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x100d3029
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.100b9f74
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100d3009
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 0x100d314c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100d31a5
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100d314c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100d315b
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 0x104d8dfe
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 0x100d31ac
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.100ba022
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100d324b
add edi, 4
add eax, 2
dec ecx
jne 0x100d3191
call 0x100d31f8
loope 0x100d31ee
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100d3248
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 0x100d3259
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 0x100d320c
cmp eax, ecx
ja 0x100d320c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100d3296
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100d328c
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100ba501
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x100d315b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100d31a5
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100d314c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100d315b
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 0x104d8dfe
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 0x100d31ac
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.100ba022
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100d324b
add edi, 4
add eax, 2
dec ecx
jne 0x100d3191
call 0x100d31f8
loope 0x100d31ee
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100d3248
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 0x100d3259
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 0x100d320c
cmp eax, ecx
ja 0x100d320c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100d3296
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100d328c
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100ba501
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x101d6c70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101e99bc], 0
mov byte [0x101e99c0], 0
mov dword [0x101e99b0], 0x25ec
mov dword [0x101e99b8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov dword [0x101e99b4], 0xaf6
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101e99b4]
mov esi, eax
add esi, 0xffffe4f3
mov dword [0x101e99b0], esi
mov esi, dword [0x101e99b8]
add esi, 1
mov dword [0x101e99b8], esi
cmp esi, 0x100
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
jl 0x101d6cb5
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [0x101e99b8], 0
mov edx, eax
add edx, 0xffffd26b
add eax, 0x2417
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x1b14
mov edi, 0xfffff02c
mov ebx, 0x100
mov dword [0x101e99c4], 0
mov dword [0x101e99b0], eax
mov eax, dword [0x101e99bc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + ecx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x3c], edx
mov edx, ecx
mov ecx, dword [ebp - 0x10]
div ecx
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + edx]
mov ecx, dword [ebp - 0x38]
add ecx, edx
mov dword [0x101e99c4], ecx
mov eax, ecx
cdq
idiv ebx
mov dword [0x101e99bc], edx
mov dword [0x101e99b0], 0x1802
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x34]
mov cl, byte [ecx + ebx]
mov byte [0x101e99c0], cl
mov ecx, dword [ebp - 0x3c]
mov dword [0x101e99b0], ecx
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
mov cl, byte [0x101e99c0]
mov edx, dword [0x101e99bc]
mov ebx, dword [ebp - 0x18]
mov byte [ebx + edx], cl
mov dword [0x101e99b0], 0x2b4
mov dword [0x101e99b4], 0xfffff6fd
mov edx, dword [0x101e99b8]
add edx, 1
mov dword [0x101e99b8], edx
cmp edx, 0x100
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], edi
jl 0x101d6d24
mov dword [0x101e99b0], 0xffffeb3b
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101d6eb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x101e99b8], 0
mov dword [0x101e99bc], 0
mov dword [0x101e99c8], 0
mov edi, dword [0x101e99b0]
add edi, 0x3c3
mov dword [0x101e99b0], edi
mov dword [0x101e99b4], 0x5f1
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jne 0x101d6f24
mov dword [0x101e99b0], 0xb60
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x101d6f35
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x101e99b4], 0x1cfd
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101e99b8], edx
mov dword [0x101e99b0], 0x18db
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101e99bc], edx
mov dword [0x101e99b4], 0x198a
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101e99c0], cl
mov dword [0x101e99b0], 0x13a5
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101e99b4], 0x1ce8
mov dword [0x101e99b0], 0x15f
mov cl, byte [0x101e99c0]
mov edx, dword [0x101e99bc]
mov byte [edi + edx], cl
mov edx, dword [0x101e99b0]
add edx, 0xffffedd6
mov dword [0x101e99b0], edx
mov edx, dword [0x101e99b8]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101e99bc]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101e99c8], ebx
mov dword [0x101e99b0], 0x2cc
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov edx, dword [0x101e99b4]
mov bl, cl
add bl, byte [0x101e99cd]
mov byte [0x101e99cc], bl
mov byte [0x101e99cd], ch
mov byte [0x101e99ce], cl
xor ch, cl
add edx, 0xffffee6e
mov dword [0x101e99b4], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov byte [edx + esi], ch
mov dword [0x101e99b0], 0x13c3
add esi, 1
mov edx, dword [ebp - 0x10]
cmp esi, edx
mov dword [ebp - 0x38], esi
je 0x101d7097
mov eax, dword [0x101e99b8]
mov ecx, dword [0x101e99bc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
jmp 0x101d6f35
jmp 0x101d6f12
Function at 0x101d7880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x101e99b4], 0x1626
mov ecx, dword [0x101e99b0]
add ecx, 0x31
mov dword [0x101e99b0], ecx
mov dword [ebp - 0x10], eax
call fcn.101d7250
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x101e99b0], 0xd6b
mov esi, dword [eax + esi + 0x78]
mov dword [0x101e99b0], 0x12
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x101e99b4], 0x40a
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x101d7a02
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x46], cl
mov byte [ebp - 0x47], bl
je 0x101d799b
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x46]
and ch, dl
cmp eax, 0x20
setb dl
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], ch
mov byte [ebp - 0x4e], dl
mov al, byte [ebp - 0x4d]
mov cl, byte [ebp - 0x4e]
and al, cl
test al, 1
mov edx, dword [ebp - 0x4c]
mov al, byte [ebp - 0x46]
mov dword [ebp - 0x40], edx
mov byte [ebp - 0x47], al
jne 0x101d792e
mov al, byte [ebp - 0x47]
test al, 1
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x54], ecx
jne 0x101d79cc
mov eax, dword [ebp - 0x38]
add eax, 2
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jb 0x101d7914
jmp 0x101d79fb
mov eax, dword [ebp - 0x54]
movzx eax, word [eax]
mov dword [0x101e99b4], 0x182a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x1c]
mov esi, dword [ebp - 0x1c]
add esi, dword [ecx + eax*4]
mov dword [0x101e99b0], 0x274
mov dword [ebp - 0x28], esi
jmp 0x101d7a02
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x101d7a02
mov eax, dword [ebp - 0x28]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101d7a10
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword [0x101e99b4]
add eax, 0x1c78
mov dword [0x101e99b4], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x101e99b4], 0x19
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x101d7a74
mov eax, dword [ebp - 0x14]
add esp, 0x28
pop ebp
ret
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jge 0x101d7a8a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x101d7a5d
mov eax, dword [ebp - 0x1c]
mov dword [0x101e99b4], 0x56e
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x101d7b62
mov dword [0x101e99b0], 0x582
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x101d7b62
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x101d7b62
mov dword [0x101e99b0], 0x7df
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101d7b62
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff7
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2], 0x64
jne 0x101d7b62
mov dword [0x101e99b0], 0x91c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
sete dl
mov byte [ebp - 0x25], dl
mov al, byte [ebp - 0x25]
test al, 1
jne 0x101d7b32
jmp 0x101d7b62
mov dword [0x101e99b4], 0x153e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x101d7b62
mov dword [0x101e99b4], 0x190e
mov eax, 1
mov dword [ebp - 0x14], eax
jmp 0x101d7a55
mov dword [0x101e99b0], 0x10e3
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x101d7a55
Function at 0x101d84a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, esp
mov eax, 0x10
call fcn.101d66a0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [0x101e99b0], 0x1594
mov dword [esi + 0x2c], eax
call fcn.10001090
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x28], ecx
jne 0x101d8639
lea eax, [esi + 0x30]
mov dword [0x101e99b4], 0x1aa1
mov dword [0x101e99b0], 0x17ad
mov dword [esi + 0x24], eax
call fcn.101d7a10
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x20], ecx
jne 0x101d8633
sub esp, 4
mov eax, dword [esi + 0x2c]
mov dword [esp], eax
call fcn.101d7c60
add esp, 4
lea ecx, [0x101d6960]
mov edx, dword [esi + 0x2c]
mov edi, dword [edx]
mov dword [esi + 0x80], edi
mov dword [0x101e99b4], 0x1364
mov dword [esi + 0x48], 0x12aa00
mov edi, dword [0x101e999c]
mov dword [esi + 0x6c], edi
mov edi, dword [0x101e99a0]
mov dword [esi + 0x58], edi
mov edi, dword [0x101e99a4]
mov dword [esi + 0x34], edi
mov edi, dword [0x101e99a8]
mov dword [esi + 0x5c], edi
mov edi, dword [0x101e99ac]
mov dword [esi + 0x64], edi
mov dword [0x101e99b0], 0x423
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0x18]
cmp word [eax], 0x5a4d
mov dword [esi + 0x14], eax
jne 0x101d85ba
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
sete dl
mov dword [esi + 0x10], ecx
mov byte [esi + 0xf], dl
mov al, byte [esi + 0xf]
test al, 1
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 4], edx
jne 0x101d85cc
jmp 0x101d85ba
mov eax, dword [esi + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esi + 0x18], eax
jmp 0x101d8582
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
lea edx, [esi + 0x30]
mov dword [esi + 0x7c], eax
mov dword [0x101e99b4], 0x2099
mov eax, dword [eax + ecx + 0x50]
mov dword [esi + 0x54], eax
mov dword [0x101e99b0], 0xa15
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
push ecx
push edx
call fcn.101d75c0
add esp, 8
mov ecx, dword [0x101e99b0]
add ecx, 0xbd7
mov dword [0x101e99b0], ecx
sub esp, 4
mov ecx, esp
lea edx, [esi + 0x30]
mov dword [ecx], edx
call eax
mov eax, 1
mov dword [0x101e99b0], 0x1824
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41ce78
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 0x41cea9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce91
add dl, dl
jne 0x41ceb4
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf05
xor eax, eax
add dl, dl
jne 0x41cec1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfa2
add dl, dl
jne 0x41ced0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cedb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cee6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cef1
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cefb
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cea0
mov eax, 1
add dl, dl
jne 0x41cf13
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf1e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf0a
sub eax, ebx
mov ebx, 1
jne 0x41cf51
mov ecx, 1
add dl, dl
jne 0x41cf37
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf2e
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cea0
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cf68
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf73
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf5f
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 0x41cea0
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cfc3
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 0x41cea0
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 0x41e6ac
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a1b6b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e75d
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e746
test esi, esi
jbe 0x41e75d
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41e738
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 0x41e75d
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e715
jmp 0x41e75d
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e75d
mov eax, ecx
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 0x4a1b72
ret