joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49cb21
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
leave
add dword [esp], 0x11e67
xchg dword [esp], edx
push ebx
mov ebx, dword [esp + 4]
lea ebx, [ebx + 0x5a]
xchg dword [esp + 4], ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp]
lea esp, [esp + 4]
xchg dword [esp + 4], edx
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x66]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], edx
push edx
mov edx, dword [esp + 4]
lea edx, [edx + 0x56]
xchg dword [esp + 4], edx
mov dword [esp + 4], edx
mov edx, dword [esp]
lea esp, [esp + 4]
popfd
push edx
mov edx, dword [esp + 4]
lea edx, [edx + 0x73]
xchg dword [esp + 4], edx
mov dword [esp + 4], edx
mov edx, dword [esp]
lea esp, [esp + 4]
jmp 0x4ae988
add byte [eax], al
xchg ecx, eax
mov ecx, dword [ebp - 0x10]
push eax
xchg ecx, eax
pop ecx
shl eax, 2
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x23]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
xchg ecx, ebx
mov ebx, dword [ebp + 0xc]
push ecx
xchg ecx, ebx
pop ebx
push eax
cmp ecx, dword [esp]
pushfd
not dword [esp + 4]
inc dword [esp + 4]
add ecx, dword [esp + 4]
popfd
lea esp, [esp + 4]
xchg dword [ebp - 0x14], eax
mov eax, ecx
push dword [ebp - 0x14]
xchg dword [ebp - 0x14], eax
pop eax
je 0x485130
xchg dword [ebp - 8], eax
mov eax, 0x7116e77c
push dword [ebp - 8]
xchg dword [ebp - 8], eax
pop eax
pushfd
push edx
mov edx, dword [esp + 4]
lea edx, [edx + 4]
xchg dword [esp + 4], edx
mov dword [esp + 4], edx
mov edx, dword [esp]
lea esp, [esp + 4]
push 0x7116e77c
push esi
mov esi, dword [esp + 4]
xor dword [ebp - 8], esi
mov esi, dword [esp]
lea esp, [esp + 8]
popfd
push ebx
mov ebx, dword [esp + 4]
lea ebx, [ebx + 0x76]
xchg dword [esp + 4], ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp]
lea esp, [esp + 4]
jmp 0x49fce8
xchg edx, eax
add byte [ebp + 0x24748b56], bl
add al, 0x8d
jbe 0x4ad57d
popfd
push esi
mov esi, dword [esp + 4]
lea esi, [esi + 0x6c]
xchg dword [esp + 4], esi
mov dword [esp + 4], esi
mov esi, dword [esp]
lea esp, [esp + 4]
je 0x48c920
jne 0x48c920
jmp 0x48c91e
and al, 0x8d
and al, 4
xchg dword [esp + 4], ebx
mov edi, edi
xchg dword [esp], ebx
pushfd
add ebp, 0x53
popfd
lea ebp, [ebp - 0x53]
popfd
push ebp
mov ebp, esp
leave
ret
call fcn.004b5bcc
sub eax, 0x71f29fd6
out 0xe8, eax
arpl word [eax + eax], di
pushfd
push ecx
mov ecx, dword [esp + 8]
pop ecx
xchg esi, eax
lea esp, [esp - 4]
mov dword [esp], esi
mov esi, eax
mov eax, dword [esp]
xchg edx, eax
lea esp, [esp - 4]
mov dword [esp], eax
mov eax, edx
mov edx, dword [esp]
rdtsc
push esi
mov esi, dword [esp + 4]
lea esi, [esi + 0x61]
xchg dword [esp + 4], esi
mov dword [esp + 4], esi
mov esi, dword [esp]
lea esp, [esp + 4]
and eax, 1
push edx
mov edx, dword [esp + 4]
lea edx, [edx + 9]
xchg dword [esp + 4], edx
mov dword [esp + 4], edx
mov edx, dword [esp]
lea esp, [esp + 4]
xchg edx, eax
xchg dword [esp], eax
xchg edx, eax
lea esp, [esp + 4]
xchg ecx, eax
xchg dword [esp], ecx
xchg ecx, eax
lea esp, [esp + 4]
je 0x4ad508
jne 0x4b74ec
jmp 0x4ad506
popfd
mov eax, eax
je 0x4a0688
jne 0x4a0688
jmp 0x4a0686
Function at 0x4a1570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0x4a15cb
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
sub dword [ebp + 8], 1
mov byte [edi - 1], dl
jne 0x4a1590
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret

Function at 0x4a6ddb
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, ecx
pop ebx
add dword [esp], 0xd9ff
xchg dword [esp], ecx
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x16]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
xchg dword [esp + 4], ecx
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x27]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], ecx
push ebp
mov ebp, esp
leave
popfd
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x5b]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
jmp 0x4b4794
call fcn.0057aa8c
and al, 0xdc
popfd
aad 0x2b
fbstp tbyte [ebx + 0x3bea]

Function at 0x4b0ba2
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x18]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0xc360f
xchg dword [esp], ebx
push ebp
mov ebp, esp
leave
xchg dword [esp + 4], ebx
pushfd
add ebp, 0x7b
popfd
lea ebp, [ebp - 0x7b]
xchg dword [esp], ebx
push esi
mov esi, dword [esp + 4]
lea esi, [esi + 0x2c]
xchg dword [esp + 4], esi
mov dword [esp + 4], esi
mov esi, dword [esp]
lea esp, [esp + 4]
popfd
mov esi, esi
jmp fcn.004a1570
Function at 0x4042c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4043a0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4043a0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40430a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404311
inc edi
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp ebp, edi
jne 0x4042f0
jmp 0x404313
mov esi, 0x1505
jmp 0x404313
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
test ebx, ebx
je 0x4043a0
mov eax, ebx
xor eax, 1
mov edi, ebx
and edi, 0xfffffffe
add edi, edi
sub edi, eax
mov dword [esp + 8], edi
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404344
inc edi
dec ebx
je 0x40439e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40439e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404340
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040c7b0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404340
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040c7d0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404340
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4043a0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
xor eax, eax
cmp dword [esp + 0x1c], 0
je 0x404b2e
mov edi, dword [esp + 0x20]
test edi, edi
jle 0x404ad9
mov edx, dword [esp + 0x1c]
lea ebp, [edx + edi]
mov dword [esp], ebp
jmp 0x404959
cmp dword [esp + 4], 0xc0
jne 0x404b2e
and ebx, 0x1ff800
cmp ebx, 0xd800
mov ebp, dword [esp]
je 0x404b2e
add edx, esi
cmp edx, ebp
jae 0x404ad9
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x404b2e
mov ecx, ebx
and cl, 0xfe
cmp cl, 0xc0
je 0x404b2e
mov ecx, ebx
and ecx, 0xffffffc0
cmp ecx, 0x80
je 0x404b2e
mov esi, 1
test bl, bl
jns 0x40494f
mov ebp, ebx
and ebp, 0xffffffe0
cmp ebp, 0xc0
mov dword [esp + 4], ebp
jne 0x4049c3
movzx ebp, byte [edx + 1]
mov ecx, ebp
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404b2e
and ebx, 0x1f
shl ebx, 6
mov esi, 2
jmp 0x404a11
mov ecx, ebx
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne 0x404a18
movzx esi, byte [edx + 1]
mov ecx, esi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404b2e
movzx ebp, byte [edx + 2]
mov ecx, ebp
not ecx
or ecx, 0xc0
add ecx, ebp
cmp ecx, 0x7f
jne 0x404b2e
and ebx, 0xf
shl ebx, 0xc
and esi, 0x3f
shl esi, 6
or ebx, esi
mov esi, 3
xor ecx, ecx
jmp 0x404a9c
mov ecx, ebx
and ecx, 0xfffffff8
cmp ecx, 0xf0
jne 0x404b2e
movzx ecx, byte [edx + 1]
mov esi, ecx
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x404b2e
movzx eax, byte [edx + 2]
mov edi, eax
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x404b2c
movzx ebp, byte [edx + 3]
mov esi, ebp
xor esi, 0xffffff3f
mov edi, ebp
or edi, 0xc0
and edi, esi
cmp edi, 0x80
jne 0x404b2c
shl ebx, 0xc
and ecx, 0x3f
shl ecx, 6
or ecx, ebx
and eax, 0x3f
or eax, ecx
shl eax, 6
add eax, 0xfc400000
mov cl, 1
mov esi, 4
mov ebx, eax
xor eax, eax
mov edi, dword [esp + 0x20]
and ebp, 0x3f
or ebp, ebx
cmp ebp, 0x80
jb 0x404b2e
cmp ebp, 0x7ff
jbe 0x40492c
cmp ebp, 0xffff
ja 0x404acb
test cl, cl
je 0x40493a
jmp 0x404b2e
cmp ebp, 0x10ffff
jbe 0x40493a
jmp 0x404b2e
lea eax, [edi + 1]
push eax
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x404b2c
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x20]
push eax
call fcn.0040c540
add esp, 0xc
push 0x10
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x404b22
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x404b2e
push esi
call dword [0x44a004]
add esp, 4
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404b40
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x404c93
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404c93
cmp dword [esp + 0x2c], 0
je 0x404c93
push esi
call fcn.0040c7b0
add esp, 4
test eax, eax
je 0x404baa
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404bb1
inc edi
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
mov ecx, ebx
cmp eax, edi
jne 0x404b90
jmp 0x404bb3
mov ebx, 0x1505
jmp 0x404bb3
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
test esi, esi
je 0x404c35
mov dword [esp], eax
mov eax, esi
xor eax, 1
mov edi, esi
and edi, 0xfffffffe
add edi, edi
sub edi, eax
mov dword [esp + 8], edi
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404be4
inc edi
dec esi
je 0x404c35
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404c3a
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404be0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040c7b0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404be0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040c7d0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404be0
mov eax, 0xffffffff
jmp 0x404c93
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jae 0x404c7f
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
jmp 0x404c93
call fcn.00405860
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
je 0x404c9b
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.0040c7b0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
test esi, esi
je 0x404d2e
mov eax, esi
xor eax, 1
mov edi, esi
and edi, 0xfffffffe
add edi, edi
sub edi, eax
mov dword [esp + 8], edi
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404cd4
inc edi
dec esi
je 0x404d2e
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404c42
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404cd0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040c7b0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404cd0
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040c7d0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404cd0
jmp 0x404c42
mov ebp, 0xffffffff
jmp 0x404c42
Function at 0x4055a0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, 0xffffffff
cmp dword [esp + 0x28], 0
je 0x405783
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405783
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x405783
cmp dword [ecx], 0
jne 0x405783
push esi
call fcn.0040c7b0
add esp, 4
test eax, eax
je 0x40560a
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405611
inc ebx
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
mov ecx, edi
cmp eax, ebx
jne 0x4055f0
jmp 0x405613
mov edi, 0x1505
jmp 0x405613
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4056cd
mov dword [esp], eax
mov eax, edx
xor eax, 1
mov ebx, edx
and ebx, 0xfffffffe
add ebx, ebx
sub ebx, eax
mov dword [esp + 0xc], ebx
and ebx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x405654
inc ebx
dec edx
je 0x4056cd
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x4056d2
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405650
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0040c7b0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x405650
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040c7d0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405650
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.004046d0
mov edx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [eax + esi*4], ecx
mov esi, ecx
jmp 0x405776
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405712
call fcn.00405860
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x405783
push esi
call fcn.0040c7b0
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.00405790
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040c7b0
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x40577e
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040c540
add esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], edi
inc dword [edx + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
xor eax, eax
jmp 0x405783
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406880
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x406a26
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x406a1f
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebx, esi
sub ebx, eax
jmp 0x406910
add ebp, dword [esp + 0x10]
mov esi, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp + 4]
mov ebx, 0x15b0
je 0x406a1f
mov dword [esp], esi
xor edx, edx
cmp ebx, 8
jb 0x40697a
xor eax, eax
nop
nop
nop
nop
movzx edx, byte [ebp]
add edx, edi
add ecx, edx
movzx esi, byte [ebp + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebp + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebp + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + 6]
add edx, esi
add ecx, edx
movzx edi, byte [ebp + 7]
add edi, edx
add ecx, edi
mov esi, eax
and esi, 8
xor eax, 8
lea edx, [eax + esi*2]
add ebp, 8
lea esi, [eax + esi*2]
add esi, 7
mov eax, edx
cmp esi, ebx
jb 0x406920
mov eax, edx
sub eax, ebx
mov dword [esp + 4], ebx
jae 0x4068d4
sub ebx, edx
mov dword [esp + 0x10], ebx
and ebx, 3
mov dword [esp + 8], ebx
je 0x4069d0
mov dword [esp + 0xc], eax
neg dword [esp + 8]
xor esi, esi
mov ebx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebx]
inc ebx
add edi, eax
add ecx, edi
dec esi
cmp dword [esp + 8], esi
jne 0x4069b0
sub edx, esi
mov eax, dword [esp + 0xc]
cmp eax, 0xfffffffc
ja 0x4068d0
jmp 0x4069db
mov ebx, ebp
cmp eax, 0xfffffffc
ja 0x4068d0
mov eax, dword [esp + 4]
sub eax, edx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [ebx + edx]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 3]
add edi, esi
add ecx, edi
add edx, 4
cmp eax, edx
jne 0x4069f0
jmp 0x4068d0
shl ecx, 0x10
or ecx, edi
jmp 0x406a2b
mov ecx, 1
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406a40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x406a6e
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x406b0c
not eax
test bl, 1
jne 0x406a75
mov edx, ebx
cmp ebx, 1
jne 0x406aa8
jmp 0x406b0a
xor eax, eax
jmp 0x406b0c
lea edx, [ebx - 1]
mov esi, eax
shr esi, 4
movzx edi, byte [ecx]
xor eax, edi
and eax, 0xf
xor esi, dword [eax*4 + 0x447c50]
mov eax, esi
and eax, 0xf
shr edi, 4
xor edi, eax
shr esi, 4
xor esi, dword [edi*4 + 0x447c50]
inc ecx
mov eax, esi
cmp ebx, 1
je 0x406b0a
xor esi, esi
nop
nop
nop
nop
nop
nop
mov edi, eax
shr edi, 4
movzx ebx, byte [ecx + esi]
xor eax, ebx
and eax, 0xf
xor edi, dword [eax*4 + 0x447c50]
mov eax, edi
and eax, 0xf
shr ebx, 4
xor ebx, eax
shr edi, 4
xor edi, dword [ebx*4 + 0x447c50]
mov eax, edi
shr eax, 4
movzx ebx, byte [ecx + esi + 1]
xor edi, ebx
and edi, 0xf
xor eax, dword [edi*4 + 0x447c50]
mov edi, eax
and edi, 0xf
shr ebx, 4
xor ebx, edi
shr eax, 4
xor eax, dword [ebx*4 + 0x447c50]
add esi, 2
cmp edx, esi
jne 0x406ab0
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x40cd70
Capabilities:
Create process on windows
Encode data using xor
Terminate process

Disassembly:
push ebx
push edi
push esi
sub esp, 0x28
call fcn.00440b50
test al, al
je 0x40cfa8
mov dword [esp], 0xc9cae2df
mov eax, 0xfc737334
mov ecx, 0x38c8ccc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 0x38c8ccc]
mov edi, ecx
and edi, 0x388044a
mov edx, ecx
or edx, 0xbc169985
add edx, eax
or edx, edi
xor edx, esi
mov esi, edx
and esi, 1
xor edx, 0x7b
or edx, esi
add edx, esi
mov byte [esp + eax + 0x38c8ccc], dl
inc eax
dec ecx
cmp eax, 0xfc737338
jne 0x40cda0
mov eax, dword [esp]
mov dword [esp], 0x171c92a5
mov byte [esp + 4], 0
xor ecx, ecx
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x41
xor dl, byte [esp + ecx]
add dl, 0xbb
mov byte [esp + ecx], dl
inc ecx
cmp ecx, 5
jne 0x40cdf0
mov edx, eax
or edx, 0xc97ed9
mov ecx, eax
and ecx, 0xc97ed9
imul edx, ecx
and eax, 0xff368126
xor ecx, 0xc97ed9
imul ecx, eax
add ecx, edx
mov edx, ecx
shr edx, 7
mov esi, edx
and esi, ecx
add esi, esi
mov eax, esi
not eax
and eax, edx
not edx
and edx, esi
sub eax, edx
add eax, ecx
mov ecx, eax
or ecx, 0xb9fe1a8
mov edx, eax
and edx, 0xb9fe1a8
imul ecx, edx
xor edx, 0xb9fe1a8
and eax, 0xf4601e57
imul eax, edx
add eax, ecx
cmp eax, dword [esp]
jne 0x40cf71
mov dword [esp], 0x33a73193
mov dword [esp + 4], 0x2f782db0
mov dword [esp + 8], 0x2ba229b5
mov dword [esp + 0xc], 0x274625b9
mov dword [esp + 0x10], 0x23812177
mov dword [esp + 0x14], 0x1d1c
mov eax, 0x7c81cf
movzx ecx, byte [esp + eax - 0x7c81cf]
lea edx, [eax - 0x7c8143]
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov esi, ecx
xor esi, 0xfffffffe
mov edx, ecx
or edx, 1
and edx, esi
mov esi, edx
and esi, 0xfd
mov edi, edx
and edi, 2
or edx, 2
imul edx, edi
xor edi, 2
imul edi, esi
xor ecx, 1
add ecx, edx
add ecx, edi
mov byte [esp + eax - 0x7c81cf], cl
inc eax
cmp eax, 0x7c81e7
jne 0x40cea0
mov dword [esp + 0x18], 0x93029107
mov dword [esp + 0x1c], 0x9f089d31
mov dword [esp + 0x20], 0x9998
mov word [esp + 0x24], 0
mov byte [esp + 0x26], 0
mov eax, 0xb18514e4
mov ecx, 0x1b
nop
movzx esi, byte [esp + eax + 0x4e7aeb34]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
mov ebx, edx
and ebx, 0xb
add ebx, ebx
mov esi, edx
or esi, 0x74
not edx
or edx, 0x8b
and edx, esi
sub ebx, edx
mov byte [esp + eax + 0x4e7aeb34], bl
inc eax
dec ecx
cmp eax, 0xb18514f3
jne 0x40cf20
mov eax, esp
lea ecx, [esp + 0x18]
push 5
push 0
push eax
push 0x4493da
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00439010
test al, al
je 0x40cfa3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call dword [sym.imp.USER32.dll_GetInputState]
test eax, eax
je 0x40cf90
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.0040e070
test al, al
je 0x40cfa3
call fcn.00410bf0
call fcn.0040f8e0
call fcn.00441b50
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]