joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a1ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x49a113
add ebx, 0
push ecx
call 0x49a128
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6bf463ae
sub ebx, dword [0x6bf65bed]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6bf65bdd
call fcn.00495bf2
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.00495100
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x49a286
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x49a286
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x49a23d
mov eax, 1
lock xchg dword [0x6bf65be9], eax
push 0x3dd1fc71
call 0x49a1ca
push esi
add esp, 8
cmp eax, 0
jne 0x49a1b3
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x49a1d9
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x49a1ee
cmp ecx, edx
cmp eax, 0
je 0x49a213
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x49a1fd
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.0049a22c
dec eax
loope 0x49a22f
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6bf65be9], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x49a263
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x49a278
jmp 0x49a283
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x49a171

Function at 0x4a12eb
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 0x4a15c1
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6bf52861
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6bf49827
push 0xffffffffffffffff
call fcn.004984eb
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 0x4a1355
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.004a136d
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 0x4a15b5
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x4a1589
Function at 0x4b0dbb
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 0x4b0ddd
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4b0ddd
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4b0ddd
ret
cmp word [ebx + 4], 0x14c
jne 0x4b0ddd
test word [ebx + 0x16], 2
je 0x4b0ddd
test word [ebx + 0x16], 0x100
je 0x4b0ddd
cmp word [ebx + 0x18], 0x10b
jne 0x4b0ddd
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4b0ddd
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4b0e69
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4b0dfd
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00497d48
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4b0ddd
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 0x4b0e69
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 0x4b0ddd
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4b0ddd
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4b0ddd
ret
cmp word [ebx + 4], 0x14c
jne 0x4b0ddd
test word [ebx + 0x16], 2
je 0x4b0ddd
test word [ebx + 0x16], 0x100
je 0x4b0ddd
cmp word [ebx + 0x18], 0x10b
jne 0x4b0ddd
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4b0ddd
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4b0e69
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4b0dfd
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00497d48
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4b0ddd
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 0x4b0f20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4b0f79
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4b0f20
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4b0f2f
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 0x8b6bd2
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 0x4b0f80
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.00497df6
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4b101f
add edi, 4
add eax, 2
dec ecx
jne 0x4b0f65
call 0x4b0fcc
loope 0x4b0fc2
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4b101c
mov dh, pe_nt_image_headers32
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 0x4b102d
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 0x4b0fe0
cmp eax, ecx
ja 0x4b0fe0
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4b106a
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4b1060
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.004982d5
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4b0f2f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4b0f79
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4b0f20
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4b0f2f
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 0x8b6bd2
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 0x4b0f80
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.00497df6
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4b101f
add edi, 4
add eax, 2
dec ecx
jne 0x4b0f65
call 0x4b0fcc
loope 0x4b0fc2
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4b101c
mov dh, pe_nt_image_headers32
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 0x4b102d
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 0x4b0fe0
cmp eax, ecx
ja 0x4b0fe0
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4b106a
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4b1060
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.004982d5
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10267200
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword [0x102a5a58]
add eax, 0xffffe35c
mov dword [0x102a5a54], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [0x102a5a54]
add edx, 0xfffffffe
mov dword [0x102a5a58], edx
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 0x102672a1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x1026728d
jmp 0x10267285
xor eax, eax
mov dword [0x102a5a58], 0x250b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
je 0x10267320
mov eax, dword [ebp - 0x18]
add esp, 0x20
pop ebp
ret
mov eax, 1
mov dword [0x102a5a58], 0x1fa1
mov dword [ebp - 0x18], eax
jmp 0x10267285
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x102672d8
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [0x102a5a58], 0x25b9
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
jl 0x102672a1
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [0x102a5a58], 0x13f5
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jne 0x10267285
xor eax, eax
mov dword [0x102a5a54], 0xd1b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
je 0x10267263
jmp 0x10267285
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
jne 0x10267285
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x18], eax
jne 0x10267285
xor eax, eax
mov dword [0x102a5a54], 0x16c0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x18], eax
je 0x1026724d
jmp 0x10267285
Function at 0x10267490
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102a5a60], 0
mov byte [0x102a5a64], 0
mov edi, dword [0x102a5a58]
add edi, 0xffffe149
mov dword [0x102a5a54], edi
mov dword [0x102a5a5c], 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 ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102a5a58]
mov esi, eax
add esi, 0xffffe149
mov dword [0x102a5a54], esi
mov esi, dword [0x102a5a5c]
add esi, 1
mov dword [0x102a5a5c], esi
cmp esi, 0x100
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
jl 0x102674dd
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add eax, 0xffffd525
mov dword [0x102a5a58], eax
mov dword [0x102a5a5c], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov dword [0x102a5a68], 0
add eax, 0xffffe224
mov dword [ebp - 0x2c], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x102a5a54], 0x2253
mov edi, dword [0x102a5a60]
mov ebx, dword [ebp - 0x18]
movzx esi, byte [ebx + ecx]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x102a5a68], esi
mov eax, esi
cdq
mov esi, dword [ebp - 0x30]
idiv esi
mov dword [0x102a5a60], edx
mov dword [0x102a5a54], 0x1af3
mov bl, byte [ebx + ecx]
mov byte [0x102a5a64], bl
mov esi, dword [ebp - 0x2c]
mov dword [0x102a5a58], esi
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x102a5a64]
mov ecx, dword [0x102a5a60]
mov byte [esi + ecx], bl
mov ecx, dword [0x102a5a58]
mov edx, ecx
add edx, 0xffffe149
mov dword [0x102a5a54], edx
mov esi, dword [0x102a5a5c]
add esi, 1
mov dword [0x102a5a5c], esi
cmp esi, 0x100
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], edx
jl 0x1026753c
mov eax, dword [ebp - 0x34]
mov dword [0x102a5a54], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10268f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x102a5a5c], 0
mov dword [0x102a5a60], 0
mov dword [0x102a5a6c], 0
mov edi, dword [0x102a5a58]
mov ebx, edi
add ebx, 0xffffe149
mov dword [0x102a5a54], ebx
add edi, 0xffffd49d
mov dword [0x102a5a58], edi
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jne 0x10268f88
mov dword [0x102a5a54], 0x584
add esp, 0x28
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 0x10268f99
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov edi, edx
add edi, 1
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x102a5a5c], edx
mov dword [0x102a5a54], 0x13cb
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102a5a60], edx
mov dword [0x102a5a58], 0x7fe
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x102a5a64], cl
mov dword [0x102a5a54], 0xfae
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x102a5a58]
add edx, 0xffffe149
mov dword [0x102a5a54], edx
mov cl, byte [0x102a5a64]
mov edx, dword [0x102a5a60]
mov byte [ebx + edx], cl
mov edx, dword [0x102a5a54]
add edx, 0xffffddc4
mov dword [0x102a5a54], edx
mov edx, dword [0x102a5a5c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x102a5a60]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov edx, dword [0x102a5a58]
add edx, 0xffffe149
and ecx, 0xff
mov dword [0x102a5a6c], ecx
mov dword [0x102a5a54], edx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov byte [0x102a5a71], ch
mov byte [0x102a5a72], cl
xor ch, cl
mov byte [0x102a5a70], ch
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov dword [0x102a5a58], 0x87a
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x102690ca
mov eax, dword [0x102a5a60]
mov ecx, dword [0x102a5a5c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
jmp 0x10268f99
jmp 0x10268f76
Function at 0x102690d0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x102a5a54], 0x16de
mov dword [0x102a5a58], 0x1d5d
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.10268740
lea ecx, [0x10267380]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x78], edx
mov dword [esp + 0x68], 0x13fa00
mov edx, dword [0x102a5a40]
mov dword [esp + 0x84], edx
mov edx, dword [0x102a5a44]
mov dword [esp + 0x38], edx
mov edx, dword [0x102a5a48]
mov dword [esp + 0x6c], edx
mov edx, dword [0x102a5a4c]
mov dword [esp + 0x3c], edx
mov dword [0x102a5a54], 0x2af1
mov edx, dword [0x102a5a50]
mov dword [esp + 0x70], edx
mov dword [0x102a5a58], 0xb9a
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x102691b4
lea eax, [esp + 0x28]
mov ecx, dword [0x102a5a54]
add ecx, 0xfffff7cd
mov dword [0x102a5a54], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10267e40
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x10269223
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x102691db
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
je 0x102691ef
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x102691b4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov dword [0x102a5a54], 0xffffece3
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x64], eax
call fcn.10267200
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
je 0x10269173
mov eax, dword [esp + 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x4019a2
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45be4d9
jg 0x4019c8
inc edi
cmp edi, 0x332fe31
jl 0x4019ae
cmp dword [0x20d3264], 0x400
jne 0x401a07
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push esi
call fcn.00401f52
call fcn.00401e01
push esi
call fcn.00402144
pop ecx
pop ecx
xor edi, edi
cmp edi, 0xd036
jge 0x401a18
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0xd2ced2
jg 0x401a3e
inc edi
cmp edi, 0x263ff
jl 0x401a09
mov eax, dword [0x4865e4]
mov dword [0x20d3264], eax
call fcn.00401738
mov edi, 0x3078f
cmp dword [0x20d3264], 0x51f
jne 0x401a6a
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x401a52
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x4043d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46c338]
jne 0x4043de
repz ret
jmp fcn.0040557d
Function at 0x404549
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46c338]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004037ba
and dword [ebp - 0x14], 0
cmp dword [0x4910d0], 0
mov dword [ebp - 0x18], eax
jne 0x4045fc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4046a4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4046a4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4910d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4910d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4910d8], eax
call edi
push eax
call esi
mov dword [0x4910e0], eax
test eax, eax
je 0x4045fc
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4910dc], eax
mov eax, dword [0x4910dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404655
cmp dword [0x4910e0], ecx
je 0x404655
push eax
call esi
push dword [0x4910e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404655
test ebx, ebx
je 0x404655
call edi
test eax, eax
je 0x40464c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40464c
test byte [ebp - 8], 1
jne 0x404655
or dword [ebp + 0x10], 0x200000
jmp 0x404688
mov eax, dword [0x4910d4]
cmp eax, dword [ebp - 0x18]
je 0x404688
push eax
call esi
test eax, eax
je 0x404688
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404688
mov eax, dword [0x4910d8]
cmp eax, dword [ebp - 0x18]
je 0x404688
push eax
call esi
test eax, eax
je 0x404688
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4910d0]
call esi
test eax, eax
je 0x4046a4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4046a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043d4
leave
ret
Function at 0x403298
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ee4
test esi, esi
jne 0x4032ce
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404fd4
jmp 0x4032ec
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040319c
mov edi, eax
test esi, esi
je 0x4032ec
cmp dword [ebx], 0
je 0x4032ec
dec esi
jmp 0x4032d5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403320
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x462008], 0x8088405
inc edx
mov dword [ebx + 0x462008], edx
fld qword [ebx + 0x462758]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403eb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x462024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f50
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f30
xor eax, eax
push ebp
push 0x403f29
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403f6c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f30
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x462024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x462024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404d64
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x465048], 0
je 0x404dc5
cmp word [0x46521c], 0xd7b2
jne 0x404d8d
cmp dword [0x465224], 0
jbe 0x404d8d
mov eax, 0x465218
call dword [0x465234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404dec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x462030], 0
jne 0x404de1
push 0
push 0x462780
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret