joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102065e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10245f50], 0x795
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x10245f5c], 0
mov byte [0x10245f60], 0
mov dword [0x10245f58], 0
mov dword [ebp - 0x1c], eax
jmp 0x10206651
xor eax, eax
mov dword [0x10245f50], 0x9b7
mov dword [0x10245f58], 0
mov ecx, dword [0x10245f54]
add ecx, 0x146c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10206683
mov eax, dword [ebp - 0x1c]
mov dword [0x10245f50], 0xc9a
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10245f58]
add eax, 1
mov dword [0x10245f58], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10206651
jmp 0x10206627
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0xf92
mov esi, 0x100
mov dword [ebp - 0x28], eax
mov eax, ecx
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov dword [0x10245f64], 0
mov ebx, dword [ebp - 0x28]
mov dword [0x10245f54], ebx
mov ebx, dword [0x10245f5c]
mov edi, dword [ebp - 0x18]
movzx edi, byte [edi + ecx]
add edi, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x10245f64], edi
mov eax, edi
cdq
idiv esi
mov dword [0x10245f5c], edx
mov dword [0x10245f50], 0x1e22
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x10245f60], bl
mov dword [0x10245f50], 0x112f
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x10245f60]
mov ecx, dword [0x10245f5c]
mov byte [esi + ecx], bl
mov dword [0x10245f50], 0xa8a
mov dword [0x10245f54], 0xfffffb26
mov ecx, dword [0x10245f58]
add ecx, 1
mov dword [0x10245f58], ecx
cmp ecx, 0x100
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jl 0x10206683
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10207120
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [0x10245f50], 0xa55
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10245f50], 0xa74
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x10207200
jmp 0x102071e5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff9
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ecx, dword [ebp - 0x20]
cmp word [ecx], 0x6c
mov dword [ebp - 0x24], eax
je 0x102072a6
jmp 0x102072ba
xor eax, eax
mov dword [0x10245f50], 0xfffff436
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x24], eax
je 0x1020727e
jmp 0x102072ba
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x24], eax
je 0x10207238
jmp 0x102072ba
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x1020715e
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [0x10245f50], 0x21ff
mov edx, dword [0x10245f54]
add edx, 0xfffffbd3
mov dword [0x10245f54], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
je 0x102071cc
jmp 0x102072ba
mov dword [0x10245f50], 0xfffffc44
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x25], dl
xor eax, eax
mov cl, byte [ebp - 0x25]
test cl, 1
mov dword [ebp - 0x24], eax
jne 0x10207264
jmp 0x102072ba
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x24], eax
je 0x102071a5
jmp 0x102072ba
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x2c], ecx
xor eax, eax
mov ecx, dword [ebp - 0x2c]
cmp word [ecx], 0x6c
mov dword [ebp - 0x24], eax
je 0x1020717a
jmp 0x102072ba
mov dword [0x10245f50], 0x12d7
mov eax, 1
mov dword [ebp - 0x24], eax
jmp 0x102072ba
mov eax, dword [ebp - 0x24]
add esp, 0x2c
pop ebp
ret
Function at 0x102072d0
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dl, 0x6b
xor esi, esi
lea edi, [ebp - 0x6c]
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x8c]
mov byte [ebp - 0x8c], 0x56
mov byte [ebp - 0x8b], 0x69
mov byte [ebp - 0x8a], 0x72
mov byte [ebp - 0x89], 0x74
mov byte [ebp - 0x88], 0x75
mov byte [ebp - 0x87], 0x61
mov byte [ebp - 0x86], 0x6c
mov byte [ebp - 0x85], 0x41
mov byte [ebp - 0x84], 0x6c
mov byte [ebp - 0x83], 0x6c
mov byte [ebp - 0x82], 0x6f
mov byte [ebp - 0x81], 0x63
mov byte [ebp - 0x80], 0
mov byte [ebp - 0x7f], 6
mov byte [ebp - 0x2c], 0x6b
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x6e
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x6c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 6
mov dword [0x10245f54], 0xd93
mov dword [0x10245f50], 0x642
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x9c], edi
mov byte [ebp - 0x9d], dl
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], esi
jmp 0x10207436
xor eax, eax
lea ecx, [ebp - 0x6c]
mov dword [0x10245f54], 0x956
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0xac], eax
call fcn.10205e90
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
mov ecx, dword [ebp - 0x94]
mov dword [esp + 4], ecx
call fcn.10206290
xor ecx, ecx
mov edx, dword [0x10245f54]
add edx, 0xffffe8c4
mov dword [0x10245f54], edx
cmp eax, 0
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb8], ecx
je 0x1020752d
jmp 0x10207470
mov eax, dword [ebp - 0xa8]
mov cl, byte [ebp - 0x9d]
movsx edx, cl
mov si, dx
mov word [ebp + eax*2 - 0x6c], si
mov edx, eax
add edx, 1
mov cl, byte [ebp + eax - 0x2b]
cmp cl, 0
mov byte [ebp - 0x9d], cl
mov dword [ebp - 0xa8], edx
je 0x102073c6
jmp 0x10207436
mov eax, dword [ebp - 0xb4]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x10245f54], 0x1cc2
mov dword [esp], eax
mov ecx, dword [ebp - 0x90]
mov dword [esp + 4], ecx
mov dword [ebp - 0xbc], eax
call fcn.10206450
xor eax, eax
mov ecx, dword [ebp - 0xbc]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x3c], ecx
mov ecx, dword [ebp - 0xbc]
mov dword [edx + 0x2c], ecx
mov dword [0x10245f50], 0x1b22
mov dword [0x10245f54], 0x10
cmp ecx, 0
mov dword [ebp - 0xb8], eax
je 0x1020752d
mov dword [0x10245f50], 0x1d80
mov eax, dword [ebp - 0xbc]
add eax, 0x26dc
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102076b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10245f58], 0
mov dword [0x10245f5c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [0x10245f68], 0
mov dword [0x10245f50], 0x1678
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x10207836
jmp 0x1020770e
jmp 0x10207836
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 0x1020771f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10245f58], edx
mov ecx, dword [0x10245f54]
mov edi, ecx
add edi, 0xffffe86c
mov dword [0x10245f50], edi
mov edi, dword [ebp - 0x1c]
movzx ebx, byte [edi + edx]
mov edi, dword [ebp - 0x30]
add ebx, edi
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10245f5c], edx
add ecx, 0xffffe02d
mov dword [0x10245f54], ecx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10245f60], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x10245f50], 0x12a7
mov cl, byte [0x10245f60]
mov edx, dword [0x10245f5c]
mov byte [edi + edx], cl
mov edx, dword [0x10245f58]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10245f5c]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x10245f50], 0x1110
and ebx, 0xff
mov dword [0x10245f68], ebx
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
xor cl, byte [edx + ebx]
mov dword [0x10245f54], 0x363b
mov dword [0x10245f50], 0xfffffab4
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
add ebx, 1
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x38], ebx
je 0x10207709
mov eax, dword [0x10245f58]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x10245f5c]
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 0x1020771f
mov dword [0x10245f50], 0x1361
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102079e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [0x10245f50], 0xd9e
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.10206770
mov ecx, 0x1ae7
lea edx, [0x102070a0]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x74], esi
mov dword [esp + 0x90], 0x11d000
mov esi, dword [0x10245f3c]
mov dword [esp + 0x58], esi
mov esi, dword [0x10245f40]
mov dword [esp + 0x44], esi
mov esi, dword [0x10245f44]
mov dword [esp + 0x60], esi
mov esi, dword [0x10245f48]
mov dword [esp + 0x84], esi
mov dword [0x10245f50], 0x26c3
mov esi, dword [0x10245f4c]
mov dword [esp + 0x88], esi
mov dword [0x10245f54], 0x29d7
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jmp 0x10207aaa
mov eax, dword [esp + 0x1c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, 0xf45
mov ecx, dword [esp + 0x18]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jne 0x10207a8d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
jne 0x10207a8d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [0x10245f54], eax
mov dword [esp + 0x80], ecx
mov dword [0x10245f50], 0x1b01
mov eax, dword [ecx + edx + 0x50]
mov dword [esp + 0x54], eax
call fcn.10207120
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
jne 0x10207a83
lea eax, [esp + 0x40]
mov dword [0x10245f50], 0x189e
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.102072d0
mov dword [0x10245f54], 0x1d69
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x1c], eax
jmp 0x10207a83
Function at 0x42a660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
or ebp, 0xffffffff
jmp 0x42a682
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42a689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42a678
mov eax, 1
add ebx, ebx
jne 0x42a69b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42a690
jne 0x42a6ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a690
xor ecx, ecx
sub eax, 3
jb 0x42a6c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42a732
mov ebp, eax
add ebx, ebx
jne 0x42a6cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42a6d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42a6fc
inc ecx
add ebx, ebx
jne 0x42a6e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42a6dd
jne 0x42a6f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a6dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42a71c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42a70d
jmp 0x42a67e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42a71c
add edi, ecx
jmp 0x42a67e
pop esi
mov edi, esi
mov ecx, 0x18e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42a73a
cmp byte [edi], 4
jne 0x42a73a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42a73f
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42a7b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a3c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a3fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42a76c
mov ecx, edi
jns 0x42a79b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a400]
or eax, eax
je 0x42a7b1
mov dword [ebx], eax
add ebx, 4
jmp 0x42a789
call dword [esi + 0x2a410]
mov ebp, dword [esi + 0x2a404]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42a7eb
sub esp, 0xffffff80
jmp 0x402868
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x6bf915eb
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x4406053f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401a4d
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
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, 0x45bc085
jg 0x401a76
inc edi
cmp edi, 0x323bbf1
jl 0x401a5c
cmp dword [0x282843c], 0x400
jne 0x401ab6
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
call dword [sym.imp.USER32.dll_ShowCursor]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call fcn.00401ec1
push esi
call fcn.00402063
push esi
call fcn.00402072
add esp, 0xc
xor edi, edi
cmp edi, 0xd036
jge 0x401ad5
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsI]
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 0x401afb
inc edi
cmp edi, 0x263ff
jl 0x401ab8
mov eax, dword [0x43a574]
mov dword [0x282843c], eax
call fcn.004017c2
mov edi, 0x3078f
cmp dword [0x282843c], 0x51f
jne 0x401b29
push esi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x401b0f
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x4041ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420310]
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.00403163
and dword [ebp - 0x14], 0
cmp dword [0x4450e4], 0
mov dword [ebp - 0x18], eax
jne 0x40425e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404306
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404306
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4450e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4450e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4450ec], eax
call edi
push eax
call esi
mov dword [0x4450f4], eax
test eax, eax
je 0x40425e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4450f0], eax
mov eax, dword [0x4450f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4042b7
cmp dword [0x4450f4], ecx
je 0x4042b7
push eax
call esi
push dword [0x4450f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4042b7
test ebx, ebx
je 0x4042b7
call edi
test eax, eax
je 0x4042ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4042ae
test byte [ebp - 8], 1
jne 0x4042b7
or dword [ebp + 0x10], 0x200000
jmp 0x4042ea
mov eax, dword [0x4450e8]
cmp eax, dword [ebp - 0x18]
je 0x4042ea
push eax
call esi
test eax, eax
je 0x4042ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4042ea
mov eax, dword [0x4450ec]
cmp eax, dword [ebp - 0x18]
je 0x4042ea
push eax
call esi
test eax, eax
je 0x4042ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4450e4]
call esi
test eax, eax
je 0x404306
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404308
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404516
leave
ret

Function at 0x404516
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420310]
jne 0x404520
repz ret
jmp fcn.004053e6
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd64
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 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
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 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
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 0x41cd8c
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 0x41e5a4
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 0x8afa63
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 0x41e655
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 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
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 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
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 0x8afa6a
ret