joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4224c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x431188]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x422508
cmp word [ebx], dx
jne 0x422508
or byte [eax + edi + 0x28], 4
jmp 0x42250d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x422670
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x422650
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42254e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x422584
cmp eax, edx
jae 0x422592
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x422529
jmp 0x422670
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42264b
cmp dword [ebp - 0x18], 0
je 0x42264b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x431188]
test byte [eax + edi + 0x28], 0x48
je 0x422621
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4225e5
mov word [esi], cx
jmp 0x42261c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x431188]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x431188]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x431188]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x422670
pop eax
cmp word [ebp - 4], ax
jne 0x422631
cmp esi, ebx
jne 0x422631
mov word [esi], ax
jmp 0x42266d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004222e5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x422670
push 0xd
pop eax
jmp 0x42262c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x431188]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42266a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x422670
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422d79
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00422cf5
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x422ee8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x422ee8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x422e9d
jg 0x422dd5
test eax, eax
je 0x422e93
push 1
push 0x1000
call fcn.00415e58
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x422df8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x422e8a
push 0x8000
push ebx
call fcn.0041430f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x422e21
jg 0x422e1c
cmp ecx, 0x1000
jb 0x422e21
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041e170
add esp, 0x10
cmp eax, 0xffffffff
je 0x422e66
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x422e1c
jl 0x422e4d
test ecx, ecx
jne 0x422e0e
push dword [ebp - 0xc]
push ebx
call fcn.0041430f
push esi
call fcn.00415eb5
add esp, 0xc
xor ebx, ebx
jmp 0x422ef6
cmp byte [edi + 0x24], 0
je 0x422e7d
cmp dword [edi + 0x20], 5
jne 0x422e7d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x422e88
mov ebx, dword [edi + 0x18]
jmp 0x422e8a
xor ebx, ebx
push esi
call fcn.00415eb5
pop ecx
jmp 0x422ef6
test ecx, ecx
jg 0x422e5f
jl 0x422e9d
test eax, eax
jae 0x422e5f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004222e5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x422ebd
cmp byte [edi + 0x1c], 0
je 0x422e5f
jmp 0x422eee
push ebx
call fcn.00413821
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x422e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x422ef6
cmp byte [edi + 0x1c], 0
je 0x422ef3
mov ebx, dword [edi + 0x18]
jmp 0x422ef6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004222e5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x424c00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424c2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424c2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
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
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4011f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x30
mov eax, dword [esp + 0x38]
movzx ecx, word [eax + 4]
add eax, 4
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov esi, eax
cmp cx, di
je 0x40121e
mov edx, eax
add edx, 2
add esi, 2
cmp word [edx], di
jne 0x401213
add esi, 2
mov dword [esp + 0x20], esi
cmp cx, di
je 0x40139c
push ebx
push ebp
mov ebp, eax
mov dword [esp + 0x24], ebp
jmp 0x401244
mov esi, dword [esp + 0x28]
mov ax, word [eax]
mov ecx, 0x3fff
and ax, cx
movzx ebx, ax
xor edx, edx
mov eax, ebx
mov ecx, 0xc
div ecx
add esi, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], esi
mov esi, eax
test edx, edx
jne 0x40139a
mov eax, dword [esp + 0x44]
lea edx, [esi*4]
push edx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
je 0x40139a
xor eax, eax
test esi, esi
je 0x4012b7
mov ecx, dword [esp + 0x1c]
add ecx, 0xa
mov dx, word [ecx]
mov word [edi + eax*4], dx
mov word [edi + eax*4 + 2], ax
inc eax
add ecx, 0xc
cmp eax, esi
jb 0x4012a3
push 0x4011d0
push 4
push esi
push edi
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
test esi, esi
je 0x401374
add edi, 2
mov dword [esp + 0x34], 0x10204080
mov dword [esp + 0x38], 0x1020408
mov byte [esp + 0x3c], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
movzx eax, word [eax]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + eax*2]
movzx eax, byte [edx + ecx*4]
and eax, 0x80000001
lea ecx, [edx + ecx*4]
jns 0x401312
dec eax
or eax, 0xfffffffe
inc eax
jne 0x401319
mov bl, byte [ecx + 8]
jmp 0x40131c
mov bl, byte [ecx + 9]
test eax, eax
jne 0x401325
mov dl, byte [ecx + 9]
jmp 0x401328
mov dl, byte [ecx + 8]
lea edi, [esp + 0x34]
mov ebp, ecx
mov ecx, edi
mov al, 0x80
sub ebp, ecx
mov cl, al
and cl, bl
cmp cl, al
jne 0x401355
mov al, byte [edi + ebp]
test dl, dl
je 0x401345
xor al, dl
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x4c]
mov byte [ecx + esi], al
inc ecx
mov dword [esp + 0x18], ecx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401334
add dword [esp + 0x10], 4
dec dword [esp + 0x20]
jne 0x4012f1
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
add dword [esp + 0x14], ebx
add ebp, 2
cmp word [ebp], 0
mov dword [esp + 0x24], ebp
mov eax, ebp
jne 0x401240
pop ebp
pop ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
xor ecx, ecx
cmp eax, dword [edx]
pop edi
setne cl
pop esi
dec ecx
and eax, ecx
add esp, 0x30
ret
Function at 0x401420
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
xor ecx, ecx
xor edx, edx
test esi, esi
je 0x40152d
mov ebx, dword [esp + 0x18]
lea esp, [esp]
mov eax, esi
sub eax, edx
cmp eax, 2
jb 0x401456
cmp byte [edx + ebx], 0xd
jne 0x401456
cmp byte [edx + ebx + 1], 0xa
je 0x401481
mov al, byte [edx + ebx]
cmp al, 0xa
je 0x401481
cmp al, 0x3d
jne 0x401467
inc ecx
cmp ecx, 2
ja 0x4014a2
cmp al, 0x7f
ja 0x4014a2
movzx eax, al
mov al, byte [eax + 0x4202f0]
cmp al, 0x7f
je 0x4014a2
cmp al, 0x40
jae 0x401480
test ecx, ecx
jne 0x4014a2
inc edi
inc edx
cmp edx, esi
jb 0x401440
test edi, edi
je 0x40152d
mov ecx, dword [esp + 0x14]
lea eax, [edi + edi*2]
lea eax, [eax + eax + 7]
shr eax, 3
cmp dword [ecx], eax
jae 0x4014a9
mov dword [ecx], eax
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov esi, dword [esp + 0x10]
xor ecx, ecx
xor edi, edi
push ebp
mov ebp, 3
test edx, edx
je 0x401522
jmp 0x4014c0
mov al, byte [ebx]
cmp al, 0xd
je 0x40151a
cmp al, 0xa
je 0x40151a
movzx eax, al
mov al, byte [eax + 0x4202f0]
xor ebx, ebx
cmp al, 0x40
sete bl
movzx eax, al
and eax, 0x3f
shl ecx, 6
inc edi
sub ebp, ebx
or ecx, eax
cmp edi, 4
jne 0x401516
xor edi, edi
test ebp, ebp
je 0x4014fb
mov eax, ecx
shr eax, 0x10
mov byte [esi], al
inc esi
cmp ebp, 1
jbe 0x401508
mov eax, ecx
shr eax, 8
mov byte [esi], al
inc esi
mov ebx, dword [esp + 0x1c]
cmp ebp, 2
jbe 0x40151a
mov byte [esi], cl
inc esi
jmp 0x40151a
mov ebx, dword [esp + 0x1c]
inc ebx
dec edx
mov dword [esp + 0x1c], ebx
jne 0x4014c0
sub esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x401540
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x20], 0
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, eax
je 0x401620
mov eax, edx
sub eax, ebp
mov dword [esp + 0xc], eax
mov eax, edx
sub eax, esi
push ebx
mov dword [esp + 0xc], eax
push edi
jmp 0x401570
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
nop
lea ecx, [ebp + 1]
lea edi, [edx + 3]
mov eax, esi
sub ebp, esi
mov dword [esp + 0x18], 4
mov edi, edi
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + eax]
xor bl, byte [eax]
add eax, 4
mov byte [eax + ebp - 4], bl
mov ebx, dword [esp + 0x14]
movzx ebx, byte [ebx + ecx]
xor bl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], bl
movzx ebx, byte [eax - 2]
xor bl, byte [edi - 1]
add edi, 4
mov byte [ecx - 3], bl
movzx ebx, byte [eax - 1]
xor bl, byte [edi - 4]
dec dword [esp + 0x18]
mov byte [ecx - 2], bl
jne 0x4015a0
nop
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x34]
mov dword [edx], eax
mov eax, dword [esp + 0x24]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 8], eax
mov eax, 0x10
sub dword [esp + 0x10], eax
sub dword [esp + 0x14], eax
add ebp, eax
add esi, eax
sub dword [esp + 0x30], eax
mov dword [edx + 0xc], ecx
mov dword [esp + 0x34], ebp
jne 0x401570
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x402e20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x402f35
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x28]
mov eax, ebx
sub eax, ebp
mov esi, edi
sub esi, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov edi, edi
dec dword [esp + 0x2c]
cmp dword [esp + 0x34], 0
je 0x402e6f
mov eax, dword [esp + 0x20]
push ebp
push edi
push ebx
call fcn.00401fa0
add esp, 0xc
jmp 0x402f0c
test ebp, ebp
je 0x402efd
mov eax, dword [esp + 0x10]
lea ecx, [eax + ebp + 1]
lea esi, [esi + ebp + 3]
mov eax, ebp
sub edi, ebx
mov dword [esp + 0x18], 4
nop
mov edx, dword [esp + 0x14]
movzx edx, byte [edx + eax]
xor dl, byte [eax]
mov ebx, dword [esp + 0x10]
mov byte [ebx + eax], dl
movzx edx, byte [edi + ecx]
xor dl, byte [eax + 1]
add eax, 4
mov byte [ecx], dl
movzx edx, byte [eax - 2]
xor dl, byte [esi - 1]
add ecx, 4
mov byte [ecx - 3], dl
movzx edx, byte [eax - 1]
xor dl, byte [esi]
add esi, 4
dec dword [esp + 0x18]
mov byte [ecx - 2], dl
jne 0x402e90
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ebx
mov eax, ebx
call fcn.00401a40
mov eax, dword [ebx]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov dword [ebp], eax
mov ecx, dword [ebx + 4]
mov dword [ebp + 4], ecx
mov edx, dword [ebx + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x402f09
mov ecx, dword [esp + 0x20]
push ebx
mov eax, edi
call fcn.00401a40
add esp, 4
add dword [esp + 0x10], 0x10
add edi, 0x10
add esi, 0x10
add ebx, 0x10
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
jne 0x402e50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4015c0
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx]
mov dword [ebp - 4], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx]
mov dword [ebp - 8], eax
call fcn.00401720
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 0x9e3779b9
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x1c], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x20], ecx
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x14], ecx
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
jmp 0x40164c
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
jae 0x4016a5
mov ecx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 5
add eax, dword [ebp - 0x18]
xor ecx, eax
mov edx, dword [ebp - 8]
sub edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
xor eax, ecx
mov edx, dword [ebp - 8]
shr edx, 5
add edx, dword [ebp - 0x20]
xor eax, edx
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], edx
jmp 0x401643
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx + ecx], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x40a714
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4162e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407e06
mov dword [ebp - 0x14], eax
cmp dword [0x51996c], esi
jne 0x40a807
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40a794
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a8e7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40a8e7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a8e7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x51996c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x519970], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x519974], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x51997c], eax
test eax, eax
je 0x40a804
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x519978], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a82c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a81f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40a841
push 4
pop eax
jmp 0x40a8e9
cmp dword [ebp - 0x14], esi
je 0x40a841
push dword [0x51996c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a826
mov eax, dword [0x519978]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40a89f
cmp dword [0x51997c], edi
je 0x40a89f
push eax
call ebx
push dword [0x51997c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a89f
test eax, eax
je 0x40a89f
call ecx
test eax, eax
je 0x40a894
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a894
test byte [ebp - 8], 1
jne 0x40a89f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40a8cf
mov eax, dword [0x519970]
cmp eax, edi
je 0x40a8cc
push eax
call ebx
test eax, eax
je 0x40a8cc
call eax
mov esi, eax
test esi, esi
je 0x40a8cc
mov eax, dword [0x519974]
cmp eax, edi
je 0x40a8cc
push eax
call ebx
test eax, eax
je 0x40a8cc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x51996c]
call ebx
test eax, eax
je 0x40a8e7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40a8e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040dc
mov esp, ebp
pop ebp
ret
Function at 0x401984
Capabilities:
Hide graphical window

Disassembly:
push ebp
sub esp, 0x40
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
add esp, 0x40
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
loop 0x40199b
push esp
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4040b0], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x4016e2
mov dword [ebp - 4], str.risiliency
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040b0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.ebsement
push str.risiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040b8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a36
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a1d
pop ebp
ret 0x10

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

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x408490
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4084ac
shr eax, 1
xor eax, 0xedb88320
jmp 0x4084ae
shr eax, 1
dec edx
jne 0x40849f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x408498
pop esi
ret

Function at 0x4084db
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4084e7
call fcn.00408490
push 1
push 0x40c558
call fcn.00404ffc
mov eax, edi
test esi, esi
je 0x408512
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4084ed
mov eax, ebx
pop edi
pop esi
pop ebx
ret