joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446a64
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043ec53
xor ebx, ebx
cmp dword [0x460578], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x446b3a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x446c1a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x446c1a
push eax
call fcn.0043ebe5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x460578], eax
call esi
push eax
call fcn.0043ebe5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46057c], eax
call esi
push eax
call fcn.0043ebe5
mov dword [0x460580], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043e72d
test eax, eax
pop ecx
pop ecx
je 0x446b08
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00437605
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x446b3a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043ebe5
cmp eax, ebx
pop ecx
mov dword [0x460588], eax
je 0x446b3a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043ebe5
pop ecx
mov dword [0x460584], eax
mov eax, dword [0x460584]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x446bbf
cmp dword [0x460588], ecx
je 0x446bbf
push eax
call fcn.0043ec5c
push dword [0x460588]
mov esi, eax
call fcn.0043ec5c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x446bbf
cmp edi, ebx
je 0x446bbf
call esi
cmp eax, ebx
je 0x446b8c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x446b8c
test byte [ebp - 0x18], 1
jne 0x446bbf
lea eax, [ebp - 0x10]
push eax
call fcn.0043e764
test eax, eax
pop ecx
je 0x446ba7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00437605
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x446bb6
or dword [ebp + 0x10], 0x200000
jmp 0x446bfa
or dword [ebp + 0x10], 0x40000
jmp 0x446bfa
mov eax, dword [0x46057c]
cmp eax, dword [ebp - 8]
je 0x446bfa
push eax
call fcn.0043ec5c
cmp eax, ebx
pop ecx
je 0x446bfa
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x446bfa
mov eax, dword [0x460580]
cmp eax, dword [ebp - 8]
je 0x446bfa
push eax
call fcn.0043ec5c
cmp eax, ebx
pop ecx
je 0x446bfa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x460578]
call fcn.0043ec5c
cmp eax, ebx
pop ecx
je 0x446c1a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x446c1c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58ce70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10f000]
push edi
or ebp, 0xffffffff
jmp 0x58ce92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x58ce99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58ce88
mov eax, 1
add ebx, ebx
jne 0x58ceab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x58cebc
jne 0x58cecc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58cecc
dec eax
add ebx, ebx
jne 0x58cec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x58cea0
xor ecx, ecx
sub eax, 3
jb 0x58cee4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58cf56
sar eax, 1
mov ebp, eax
jmp 0x58ceef
add ebx, ebx
jne 0x58ceef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x58cefc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x58cf20
inc ecx
add ebx, ebx
jne 0x58cf0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x58cf01
jne 0x58cf1d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x58cf01
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x58cf40
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x58cf31
jmp 0x58ce8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x58cf40
add edi, ecx
jmp 0x58ce8e
pop esi
mov edi, esi
mov ecx, 0x60fd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x58cf5e
cmp byte [edi], 0x2d
jne 0x58cf5e
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 eax, ebx
loop 0x58cf63
lea edi, [esi + 0x188000]
mov eax, dword [edi]
or eax, eax
je 0x58cfdb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18e46c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18e5ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x58cf90
mov ecx, edi
jns 0x58cfbf
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 + 0x18e5b0]
or eax, eax
je 0x58cfd5
mov dword [ebx], eax
add ebx, 4
jmp 0x58cfad
call dword [esi + 0x18e5b4]
popal
jmp 0x4bc69a
Function at 0x403b99
Capabilities:
Access peb ldr_data

Disassembly:
xor eax, eax
pushal
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov edi, ebx
mov esi, dword [ebx + 0x28]
xor eax, eax
xor edx, edx
mov ecx, dword [esi]
test cx, cx
je 0x403be6
mov al, cl
cmp al, 0x61
jb 0x403bc1
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
shr ecx, 0x10
test cx, cx
je 0x403be6
mov al, cl
cmp al, 0x61
jb 0x403bd9
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
lea esi, [esi + 4]
jmp 0x403bb2
cmp edx, dword [esp + 0x18]
je 0x403bf6
mov ebx, dword [ebx]
cmp edi, dword [ebx]
jne 0x403bab
xor eax, eax
jmp 0x403bf9
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x403c01
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
pushal
mov ebx, ecx
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
test eax, eax
je 0x403ce8
lea esi, [ebx + eax]
test edx, 0xffff0000
je 0x403cee
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
lea edi, [ebx + edi]
mov ebp, dword [edi + ecx*4 - 4]
lea ebp, [ebx + ebp]
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x403c4d
cmp al, 0x61
jb 0x403c45
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x403c38
cmp edx, dword [esp + 0x14]
je 0x403c5d
dec ecx
jne 0x403c2d
xor eax, eax
jmp 0x403ce8
mov edx, dword [esi + 0x24]
lea edx, [ebx + edx]
mov edx, dword [edx + ecx*2 - 2]
and edx, 0xffff
mov eax, dword [esi + 0x1c]
lea eax, [ebx + eax]
mov eax, dword [eax + edx*4]
lea eax, [ebx + eax]
cmp eax, esi
jbe 0x403ce8
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x7c]
add esi, ecx
cmp eax, esi
jae 0x403ce8
mov ebp, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
cmp al, 0x61
jb 0x403c99
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
inc ebp
cmp al, 0x2e
je 0x403ca8
jmp 0x403c90
ror edx, 0xd
add edx, 0x44
ror edx, 0x1a
add edx, 0x4c
ror edx, 0x1a
add edx, 0x4c
ror edx, 0xd
mov ecx, edx
call fcn.00403b99
test eax, eax
je 0x403ce8
mov ecx, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x403ce3
cmp al, 0x61
jb 0x403cdb
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x403cce
call fcn.00403c01
mov dword [esp + 0x1c], eax
popal
ret
mov ecx, dword [esi + 0x10]
cmp edx, ecx
jb 0x403d06
mov eax, dword [esi + 0x14]
dec eax
cmp edx, eax
ja 0x403d06
sub edx, ecx
mov ecx, edx
jmp 0x403c5d
xor eax, eax
jmp 0x403ce8
Function at 0x40fe0c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x40fe44
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x40fe32
mov al, 1
jmp 0x40fea3
cmp dword [ebx + 0x54], ecx
jne 0x40fe3b
mov al, 2
jmp 0x40fea3
cmp dword [ebx + 0x7c], ecx
jne 0x40fea3
mov al, 3
jmp 0x40fea3
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x40fe59
mov al, 4
jmp 0x40fea3
cmp ecx, 5
jne 0x40fe79
cmp ebx, 0
jne 0x40fe67
mov al, 5
jmp 0x40fea3
cmp ebx, 1
jne 0x40fe70
mov al, 6
jmp 0x40fea3
cmp ebx, 2
jne 0x40fe79
mov al, 7
jmp 0x40fea3
cmp ecx, 6
jne 0x40fea1
cmp ebx, 0
jne 0x40fe87
mov al, 8
jmp 0x40fea3
cmp ebx, 1
jne 0x40fe8e
mov al, 9
cmp ebx, 2
jne 0x40fe95
mov al, 0xa
cmp ebx, 3
jne 0x40fe9c
mov al, 0xb
cmp ebx, 4
jne 0x40fea3
mov al, 0xc
pop ebx
leave
ret

Function at 0x4140cd
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x5dcd78]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x414108
add dword [esp], 5
retf

Function at 0x414c48
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x5dcd78]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x414c83
add dword [esp], 5
retf

Function at 0x414d79
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414e60
mov dword [ebp - 4], 0
mov eax, dword [0x5dcd78]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x414dd9
add dword [esp], 5
retf

Function at 0x414e60
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x5dcd78]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x414e9b
add dword [esp], 5
retf

Function at 0x416a51
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x416a5b
add dword [esp], 5
retf

Function at 0x416c19
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x416c23
add dword [esp], 5
retf
Function at 0x416cae
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor eax, eax
cmp word [ecx], 0x5a4d
jne 0x416d2e
dec esp
arpl word [ecx + 0x3c], ax
dec ecx
add eax, ecx
inc ecx
cmp dword [eax], reloc.MSVFW32.dll_DrawDibDraw
jne 0x416d2e
inc ebp
mov eax, dword [eax + 0x88]
inc ebp
test eax, eax
je 0x416d2e
dec edx
lea edi, [ecx + eax]
inc esp
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x14]
test esi, esi
dec esi
lea edx, [ecx + eax]
je 0x416d2e
movzx ebx, byte [edx]
inc ebp
xor ebx, ebx
inc ebp
mov ecx, dword [edx]
dec ecx
add ecx, ecx
inc ecx
cmp byte [ecx], bl
jne 0x416d1f
test bl, bl
je 0x416d32
dec eax
mov eax, edx
jmp 0x416d0b
inc ebp
test al, al
je 0x416d32
dec eax
add eax, 1
dec ecx
mov eax, eax
dec ecx
sub eax, edx
inc edi
movzx eax, byte [eax + ecx]
inc esp
cmp al, byte [eax]
je 0x416d06
inc ecx
add ebx, 1
dec ecx
add edx, 4
inc ecx
cmp ebx, esi
jne 0x416cf2
xor eax, eax
pop ebx
pop esi
pop edi
ret
inc esp
cmp esi, ebx
je 0x416d2c
mov edx, dword [edi + 0x24]
dec esi
lea eax, [ecx + ebx*2]
mov eax, dword [edi + 0x1c]
inc ecx
movzx edx, word [eax + edx]
dec eax
lea edx, [ecx + edx*4]
mov eax, dword [edx + eax]
dec eax
add eax, ecx
pop ebx
pop esi
pop edi
ret

Function at 0x416d7f
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x416d89
add dword [esp], 5
retf

Function at 0x41ea9e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x41eae3
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, reloc.MSVFW32.dll_DrawDibDraw
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x41eae9
add eax, 4
pop esi
dec esi
push esi
jne 0x41eacb
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x4424c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5e9550]
xor edx, edx
cmp eax, edx
jne 0x4424e6
xor eax, eax
mov byte [eax + 0x5e9450], al
inc eax
cmp eax, 0x100
jl 0x4424ce
mov dword [0x5e9550], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5e9450
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x442577
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x44254a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x442518
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4425f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x442643
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x44262a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457a30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bbf78
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x457a69
inc eax
mov dword [esi + 0x10], eax
jmp 0x457b7c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x457a7d
mov eax, 0xffffffc7
jmp 0x457b7e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x457a8e
cmp dword [esi + 8], eax
jne 0x457a7d
cmp dword [esi + 8], eax
jne 0x457aa7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x457aa7
mov eax, 0xffffffc7
jmp 0x457b7e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x457abb
push eax
mov ecx, ebx
call fcn.00457260
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004225e0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x457aec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00422600
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004569d0
test eax, eax
mov dword [esp + 0x38], eax
je 0x457b1f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], reloc.MSVFW32.dll_DrawDibDraw
mov dword [esp + 0x10], 0x5ae990
call fcn.004227e0
mov eax, dword [esp + 0x38]
jmp 0x457b7e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00457890
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x457b63
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004578b0
mov esi, eax
test esi, esi
jne 0x457b93
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00457890
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x457b35
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], reloc.MSVFW32.dll_DrawDibDraw
mov dword [esp + 0x10], 0x5ae990
call fcn.004227e0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], reloc.MSVFW32.dll_DrawDibDraw
mov dword [esp + 0x10], 0x5ae990
call fcn.004227e0
mov eax, esi
jmp 0x457b7e
Function at 0x46b050
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46b083
push esi
call fcn.004792f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46b07c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x46b109
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46b0f2
mov eax, dword [esi + 8]
test eax, eax
je 0x46b0a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46b0ee
cmp eax, 2
je 0x46b0f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46b09a
cmp eax, 3
je 0x46b0cd
cmp eax, 1
jne 0x46b09a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46b09a
mov edx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46b09a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046b130
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46b118
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046b130
add esp, 4
pop esi
ret
Function at 0x4db7b7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4aecd0]
xor edx, edx
cmp eax, edx
jne 0x4db7dd
xor eax, eax
mov byte [eax + 0x4aebd0], al
inc eax
cmp eax, 0x100
jl 0x4db7c5
mov dword [0x4aecd0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4aebd0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4db86e
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4db841
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4db80f
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4db8e7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4db93a
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4db921
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dfd17
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x4dff38
cmp eax, 8
jg 0x4dff38
cmp dword [esp + 0x8c], 2
jl 0x4dff38
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x4dff38
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x4dff38
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4dfd9e
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x4dff21
mov ebp, dword [fcn.0047d438]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x4dfdd0
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4dff08
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4dfdf0
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [fcn.0047d44c]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4dfe2f
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.0047d444]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.0047d404]
test eax, eax
jne 0x4dfeef
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.004df327
cmp eax, 1
jne 0x4dff19
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.004dfbd7
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x4dfde4
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x4dff21
jmp 0x4dfdbb
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.004deeb7
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c