Function at 0x1000b840
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.100d3780
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x5c]
push ebp
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x50], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x58], ecx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
mov edi, eax
mov edx, dword [esp + 0x64]
push edx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
mov esi, eax
mov ebx, dword [esp + 0x60]
push ebx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
cmp esi, 0x18
jne 0x1000bd8e
cmp edi, esi
jne 0x1000bd8e
cmp eax, esi
jne 0x1000bd8e
lea eax, [esp + 0x48]
push eax
call fcn.100c4c10
mov esi, eax
call fcn.100a0c60
lea esi, [esi + esi*2]
mov edi, eax
push esi
push edi
mov dword [esp + 0x1c], edi
call fcn.100a0c80
push esi
push edi
mov dword [esp + 0x70], eax
call fcn.100a0c80
test eax, eax
mov dword [esp + 0x10], eax
je 0x1000bce5
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x1000bce1
push ebx
call sym.GEAR32PO.OCX_GPb_width_get
mov esi, eax
push ebx
dec esi
call sym.GEAR32PO.OCX_GPb_height_get
mov edi, eax
push ebp
dec edi
call sym.GEAR32PO.OCX_GPb_width_get
push ebp
call sym.GEAR32PO.OCX_GPb_height_get
lea edx, [esp + 0x38]
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
add esi, eax
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x48]
add edi, eax
push ecx
push edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], edi
call fcn.100c4e20
test eax, eax
je 0x1000bd1b
lea eax, [esp + 0x38]
push eax
call sym.GEAR32PO.OCX_rect_number_of_segments
xor edi, edi
lea ecx, [esp + 0x2c]
push edi
lea edx, [esp + 0x3c]
mov esi, eax
push ecx
push edx
mov dword [esp + 0x78], esi
call sym.GEAR32PO.OCX_rect_segment_get
lea eax, [esp + 0x38]
push eax
call fcn.100c4c10
cmp esi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edi
jle 0x1000bd1b
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
lea edi, [ecx - 1]
mov dword [esp + 0x70], edi
jmp 0x1000b9a3
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x70]
lea edx, [esp + 0x2c]
push esi
push edx
push ebp
call sym.GEAR32PO.OCX_GPb_row_get
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x10]
push eax
push ecx
push ebx
call sym.GEAR32PO.OCX_GPb_row_get
cmp edi, 7
ja case.default.0x1000b9c8
jmp dword [edi*4 + 0x1000bdb8]
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000b9c8
mov edx, dword [esp + 0x68]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, 3
sub esi, edx
xor eax, eax
xor ebx, ebx
mov al, byte [esi + ecx]
mov bl, byte [ecx]
add eax, ebx
cmp eax, 0xff
jle 0x1000ba05
mov eax, 0xff
mov byte [ecx], al
inc ecx
dec edi
jne 0x1000b9ee
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jl 0x1000b9e3
jmp case.default.0x1000b9c8
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jle case.default.0x1000b9c8
mov ebp, dword [esp + 0x68]
mov ecx, esi
mov edx, dword [esp + 0x10]
mov esi, 3
sub edx, ebp
xor eax, eax
xor ebx, ebx
mov al, byte [ecx + edx]
mov bl, byte [ecx]
lea eax, [eax + ebx - 0x7f]
test eax, eax
jge 0x1000ba4d
xor eax, eax
jmp 0x1000ba59
cmp eax, 0xff
jle 0x1000ba59
mov eax, 0xff
mov byte [ecx], al
inc ecx
dec esi
jne 0x1000ba38
mov eax, dword [esp + 0x28]
inc edi
cmp edi, eax
jl 0x1000ba2d
jmp case.default.0x1000b9c8
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000b9c8
mov ebx, dword [esp + 0x68]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, 3
sub esi, ebx
xor edx, edx
mov dl, byte [ecx + esi]
mov eax, edx
xor edx, edx
mov dl, byte [ecx]
sub edx, eax
mov eax, 0
sets al
dec eax
and eax, edx
mov byte [ecx], al
inc ecx
dec edi
jne 0x1000ba8c
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jl 0x1000ba81
jmp case.default.0x1000b9c8
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000b9c8
mov edx, dword [esp + 0x68]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, 3
sub esi, edx
xor eax, eax
xor ebx, ebx
mov al, byte [ecx + esi]
mov bl, byte [ecx]
imul eax, ebx
test eax, eax
jge 0x1000baeb
xor eax, eax
jmp 0x1000baf7
cmp eax, 0xff
jle 0x1000baf7
mov eax, 0xff
mov byte [ecx], al
inc ecx
dec edi
jne 0x1000bad7
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jl 0x1000bacc
jmp case.default.0x1000b9c8
mov eax, dword [esp + 0x28]
xor ebx, ebx
test eax, eax
jle case.default.0x1000b9c8
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
sub edi, eax
mov ebp, 3
mov cl, byte [esi + edi]
test cl, cl
jne 0x1000bb40
mov al, byte [esi]
neg al
sbb eax, eax
and eax, 0xff
jmp 0x1000bb61
xor eax, eax
and ecx, 0xff
mov al, byte [esi]
cdq
idiv ecx
test eax, eax
jge 0x1000bb55
xor eax, eax
jmp 0x1000bb61
cmp eax, 0xff
jle 0x1000bb61
mov eax, 0xff
mov byte [esi], al
inc esi
dec ebp
jne 0x1000bb2c
mov eax, dword [esp + 0x28]
inc ebx
cmp ebx, eax
jl 0x1000bb1d
jmp case.default.0x1000b9c8
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000b9c8
mov edx, dword [esp + 0x68]
mov eax, esi
mov esi, dword [esp + 0x10]
mov edi, 3
sub esi, edx
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax + esi]
mov bl, byte [eax]
and ecx, ebx
mov byte [eax], cl
inc eax
dec edi
jne 0x1000bb94
mov ecx, dword [esp + 0x28]
inc ebp
cmp ebp, ecx
jl 0x1000bb89
jmp case.default.0x1000b9c8
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000b9c8
mov edx, dword [esp + 0x68]
mov eax, esi
mov esi, dword [esp + 0x10]
mov edi, 3
sub esi, edx
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax + esi]
mov bl, byte [eax]
or ecx, ebx
mov byte [eax], cl
inc eax
dec edi
jne 0x1000bbcb
mov ecx, dword [esp + 0x28]
inc ebp
cmp ebp, ecx
jl 0x1000bbc0
jmp case.default.0x1000b9c8
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000b9c8
mov eax, esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
sub esi, ecx
mov edi, 3
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + esi]
mov dl, byte [eax]
xor ecx, edx
mov byte [eax], cl
inc eax
dec edi
jne 0x1000bc02
mov ecx, dword [esp + 0x28]
inc ebp
cmp ebp, ecx
jl 0x1000bbf3
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x2c]
push esi
push eax
push ecx
call sym.GEAR32PO.OCX_GPb_row_set
mov eax, dword [esp + 0x74]
test eax, eax
je 0x1000bc57
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000bc57
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
push edx
push ecx
call eax
test eax, eax
je 0x1000bc7a
jmp 0x1000bc5b
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
inc ebx
inc eax
cmp eax, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
jl 0x1000b997
jmp 0x1000bd1b
push esi
mov esi, dword [esp + 0x18]
push esi
call fcn.100a1010
test eax, eax
je 0x1000bca0
push 0
push eax
push 0xfffff42a
push 0x147
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
mov edx, dword [esp + 0x10]
push edx
push esi
call fcn.100a1010
test eax, eax
je 0x1000bcc6
push 0
push eax
push 0xfffff42a
push 0x14e
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
push esi
call fcn.100a12c0
push edi
mov eax, dword [esp + 0x24]
push eax
push 0xfffff7bf
push 0x153
jmp 0x1000bd9c
test eax, eax
jne 0x1000bcfc
push 0
push esi
push 0xfffffc18
push 0xa7
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x1000bd1b
push 0
push esi
push 0xfffffc18
push 0xaa
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
mov eax, dword [esp + 0x68]
test eax, eax
je 0x1000bd4b
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.100a1010
test eax, eax
je 0x1000bd4f
push 0
push eax
push 0xfffff42a
push 0x161
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
jmp 0x1000bd4f
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000bd79
push eax
push esi
call fcn.100a1010
test eax, eax
je 0x1000bd79
push 0
push eax
push 0xfffff42a
push 0x168
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
push esi
call fcn.100a12c0
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x1c
push 0
push 0
push 0xfffff402
push 0x97
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x1c