joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ab385
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x101c8c1c], 0x1dce
mov dword [ebp - 0x10], eax
call fcn.101ac2b4
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x101ab3cb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x101c8c18], 0x18ed
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x101ab4f3
jmp 0x101ab455
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [0x101c8c1c], 0x1dce
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
jmp 0x101ab469
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov edx, dword [ebp - 0x3c]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
jb 0x101ab406
jmp 0x101ab4f3
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
jmp 0x101ab406
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x101ab4ba
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x101ab469
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x101ab4c6
jmp 0x101ab42c
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov dword [0x101c8c18], 0x1941
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101c8c1c], 0x92b
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101ab81a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x101ab877
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [0x101c8c18], ecx
add esp, 0x24
pop esi
pop ebp
ret
mov dword [0x101c8c18], 0x636
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x101ab8c2
jmp 0x101ab92b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x101ab8a4
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
jl 0x101ab877
mov eax, dword [ebp - 0x28]
mov dword [0x101c8c1c], 0x258e
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x101ab859
jmp 0x101ab92b
mov dword [0x101c8c18], 0x3d46
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x101ab92b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101ab92b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x101ab92b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x101ab92b
mov eax, 0x18d0
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
je 0x101ab847
mov eax, 0x1088
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
jmp 0x101ab847
Function at 0x101abaec
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101c8c24], 0
mov byte [0x101c8c28], 0
mov edi, dword [0x101c8c18]
add edi, 0xfffff8e9
mov dword [0x101c8c1c], edi
mov dword [0x101c8c20], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101abbf5
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101c8c2c], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101c8c24]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101c8c2c], esi
mov dword [0x101c8c18], 0xa1b
mov eax, esi
cdq
idiv ecx
mov dword [0x101c8c24], edx
mov dword [0x101c8c1c], 0xd32
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101c8c28], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101c8c28]
mov esi, dword [0x101c8c24]
mov byte [ebx + esi], cl
mov esi, dword [0x101c8c20]
add esi, 1
mov dword [0x101c8c20], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x101abb3e
jmp 0x101abc31
xor eax, eax
mov dword [0x101c8c20], 0
mov dword [ebp - 0x20], eax
jmp 0x101abb3e
mov eax, dword [ebp - 0x1c]
mov dword [0x101c8c18], 0x7c1
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101c8c1c], 0x17ea
mov eax, dword [0x101c8c20]
add eax, 1
mov dword [0x101c8c20], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101abbf5
jmp 0x101abbe1
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101abfe9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101c8c1c], 0x1e49
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x101ac0b8
mov eax, dword [ebp - 0x34]
mov dword [0x101c8c18], 0x2091
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 [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.101ab948
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101c8c18], 0x1f7a
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x18], ecx
mov dword [0x101c8c1c], 0x8aa
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x5c], ecx
add ecx, 0x1c30
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x101ac0af
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101ad97d]
mov dh, byte [eax + 0x101ad94e]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x101ac0b8
lea eax, [ebp - 0x24]
mov dword [0x101c8c1c], 0x1a22
mov ecx, dword [0x101c8c18]
add ecx, 0xffffefe3
mov dword [0x101c8c18], ecx
mov dword [ebp - 0x44], eax
call fcn.101ab4fe
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.101ab10c
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x101ac010
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x101ac43c
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 edi, 0x1e25
xor ebx, ebx
mov dword [0x101c8c20], 0
mov dword [0x101c8c24], 0
mov dword [0x101c8c30], 0
mov dword [0x101c8c18], 0xfa3
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x101ac5d7
jmp 0x101ac4bb
mov eax, dword [0x101c8c18]
add eax, 0xe82
mov dword [ebp - 0x2c], eax
jmp 0x101ac5d7
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
add ecx, 1
mov edi, eax
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101c8c20], edx
mov dword [0x101c8c18], 0x3264
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101c8c24], edx
mov ecx, dword [0x101c8c1c]
add ecx, 0xfffff82b
mov dword [0x101c8c1c], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101c8c28], cl
mov dword [0x101c8c18], 0x26b4
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101c8c1c], 0x112a
mov cl, byte [0x101c8c28]
mov edx, dword [0x101c8c24]
mov byte [ebx + edx], cl
mov edx, dword [0x101c8c20]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101c8c24]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x101c8c1c], 0x55d
and ecx, 0xff
mov dword [0x101c8c30], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x101c8c18], 0x65f
mov dword [0x101c8c1c], 0xffffdf97
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x3c], edi
je 0x101ac4a9
mov eax, dword [0x101c8c20]
mov ecx, dword [0x101c8c24]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edx
jmp 0x101ac4bb
mov eax, dword [ebp - 0x2c]
mov dword [0x101c8c18], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101ac5e7
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov edx, dword [0x101c8c18]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101c8c1c], esi
add edx, 0xffffe928
mov dword [0x101c8c18], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101abd03
lea ecx, [0x101aba85]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], 0x134200
mov edx, dword [0x101c8c04]
mov dword [esp + 0x78], edx
mov edx, dword [0x101c8c08]
mov dword [esp + 0x74], edx
mov edx, dword [0x101c8c0c]
mov dword [esp + 0x54], edx
mov edx, dword [0x101c8c10]
mov dword [esp + 0x88], edx
mov dword [0x101c8c18], 0x5bd
mov edx, dword [0x101c8c14]
mov dword [esp + 0x40], edx
mov dword [0x101c8c1c], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101ac6d3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x101ac6f6
jmp 0x101ac6e2
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101abfe9
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
jmp 0x101ac726
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x101ac691
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101ac6d3
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x3c], edx
mov dword [0x101c8c18], 0xe1c
call fcn.101ab81a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x101ac6a7
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x899710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x308000]
push edi
jmp 0x89972a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x899731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x899720
mov eax, 1
add ebx, ebx
jne 0x899743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x899754
jne 0x899773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x899773
dec eax
add ebx, ebx
jne 0x899760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x899738
add ebx, ebx
jne 0x89976f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8997c5
xor ecx, ecx
sub eax, 3
jb 0x89978b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8997fa
sar eax, 1
mov ebp, eax
jmp 0x899796
add ebx, ebx
jne 0x899796
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x899764
inc ecx
add ebx, ebx
jne 0x8997a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x899764
add ebx, ebx
jne 0x8997b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8997a6
jne 0x8997c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8997a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8997e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8997d6
jmp 0x899726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8997e4
add edi, ecx
jmp 0x899726
pop esi
mov edi, esi
mov ecx, 0xb6c2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x899802
cmp byte [edi], 0x19
jne 0x899802
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 0x899807
lea edi, [esi + 0x483000]
mov eax, dword [edi]
or eax, eax
je 0x89987f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d8c4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d8df0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x899834
mov ecx, edi
jns 0x899863
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 + 0x4d8df8]
or eax, eax
je 0x899879
mov dword [ebx], eax
add ebx, 4
jmp 0x899851
call dword [esi + 0x4d8df4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8998b0
cmp al, 0xef
ja 0x8998a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x899885
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x899892
mov ebp, dword [esi + 0x4d8dfc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x8998e4
sub esp, 0xffffff80
jmp 0x41e970
Function at 0x401340
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x40138b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x40137b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x401361
jmp 0x401380
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x4013db
mov edi, edx
lea ecx, [edi + 2]
jmp 0x4013a0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4013a0
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x4013bc
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402e00
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4013fd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401470
mov esi, dword [ebx]
cmp esi, ebx
je 0x401470
test esi, esi
je 0x401470
cmp word [esi + 0x24], 2
jbe 0x40146a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x40146a
cmp dword [esi + 0x18], 0
je 0x40146a
test ebp, ebp
je 0x401425
cmp ebp, eax
jne 0x40146a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402e00
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40144a
cmp eax, dword [esi + 0x18]
jne 0x40146a
cmp dword [esp + 0x10], 0
je 0x40147d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00403210
add esp, 8
test eax, eax
je 0x40147d
mov esi, dword [esi]
cmp esi, ebx
jne 0x401403
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x4020b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40210b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4020d0
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x4020ec
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402e00
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40212d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40219f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40219f
test esi, esi
je 0x40219f
cmp word [esi + 0x24], 2
jbe 0x402199
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x402199
cmp dword [esi + 0x18], 0
je 0x402199
test ebp, ebp
je 0x402155
cmp ebp, eax
jne 0x402199
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402e00
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40217a
cmp edx, dword [esi + 0x18]
jne 0x402199
cmp dword [esp + 0x14], eax
je 0x4021ac
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00403210
add esp, 8
test eax, eax
je 0x4021ac
mov esi, dword [esi]
cmp esi, ebx
jne 0x402133
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x402880
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x80ab08]
sub esp, 0x11c
test eax, eax
jne 0x40297e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00402b90
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x4028d0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41a100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x4028e0
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41a104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x402915
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.004020b0
pop edi
pop esi
pop ebx
test eax, eax
je 0x402979
mov eax, dword [eax + 0x18]
test eax, eax
je 0x402979
mov dword [0x80ab08], eax
add esp, 0x11c
ret
mov eax, dword [0x80ab08]
add esp, 0x11c
ret
Function at 0x403270
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x809f48
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403399
cmp dword fs:[0xc0], eax
je 0x40329b
mov dword [0x809f44], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x809e2c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x809e30], eax
movzx edx, word [esi + 0xac]
mov dword [0x809e34], edx
mov eax, dword [esi + 0xb0]
mov dword [0x809e38], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x4032fb
push 0x7f
push eax
push 0x809e3c
call fcn.00402e00
mov edx, dword [0x809e34]
add esp, 0xc
jmp 0x403303
xor eax, eax
mov word [0x809e3c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x809f3c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x809f3e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x809f40], ax
mov ecx, eax
mov byte [0x809f42], 0
cmp byte [0x7ffe0268], 0
je 0x40334a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x809f42], bl
cmp ebx, 1
pop ebx
jne 0x403364
and ecx, 0xffef
mov word [0x809f40], cx
test edx, edx
jne 0x403399
call fcn.00403270
cmp dword [0x809e2c], 6
ja 0x403399
jb 0x403381
cmp dword [0x809e30], 4
jae 0x403399
call fcn.00403270
cmp dword [0x809e2c], 0xa
jae 0x403399
mov dword [0x809e34], 1
ret
Function at 0x403680
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x4036a8
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x4036b6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x4036cf
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x4036dd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x4036f6
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x403704
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40371d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40372b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x403772
add dword [esp], 5
retf